valgrind: do leak checking, and exit with code 1 on error (not 0)
[gnulib.git] / ChangeLog
1 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2
3         valgrind: do leak checking, and exit with code 1 on error (not 0)
4         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5         to VALGRIND.
6
7 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8
9         posix-modules: say what it does.
10         * posix-modules: Add a line to the --help output saying what it does.
11
12 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13
14         xmalloc: Do not leak if underlying realloc is C99 compatible.
15         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
16         This avoids a leak on C99-based systems.  See
17         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18
19 2011-03-24  Eric Blake  <eblake@redhat.com>
20
21         realloc: document portability problem
22         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23         passing 0 size to realloc.
24
25 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
26
27         doc: update users.txt
28         * users.txt: Add cvsps, tmpwatch
29
30 2011-03-23  Matt Rice  <ratmice@gmail.com>
31
32         doc: update users.txt
33         * users.txt: Add gdb.
34
35 2011-03-23  Jim Meyering  <meyering@redhat.com>
36
37         doc: update users.txt
38         Looking through matches up to the following URL (there are still
39         several more pages), I found several projects that use gnulib:
40         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
41         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
42         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
43
44 2011-03-22  Bruno Haible  <bruno@clisp.org>
45
46         unictype/bidi*: Rename functions.
47         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
48         uc_bidi_class, uc_is_bidi_class): New declarations.
49         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
50         uc_bidi_category_byname.
51         (uc_bidi_category_byname): New function.
52         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
53         u_bidi_category_name.
54         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
55         (uc_bidi_category_name): New function.
56         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
57         uc_bidi_category.
58         (uc_bidi_category): New function.
59         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
60         uc_is_bidi_category. Invoke uc_bidi_class.
61         (uc_is_bidi_category): New function.
62         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
63         instead of uc_bidi_category_byname.
64         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
65         instead of uc_bidi_category_name.
66         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
67         uc_bidi_category.
68         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
69         instead of uc_is_bidi_category.
70
71 2011-03-21  Bruno Haible  <bruno@clisp.org>
72
73         New module 'unictype/joininggroup-all'.
74         * modules/unictype/joininggroup-all: New file.
75
76         Tests for module 'unictype/joininggroup-of'.
77         * modules/unictype/joininggroup-of-tests: New file.
78         * tests/unictype/test-joininggroup_of.c: New file.
79         * tests/unictype/test-joininggroup_of.h: New file, automatically
80         generated by gen-uni-tables.
81
82         New module 'unictype/joininggroup-of'.
83         * modules/unictype/joininggroup-of: New file.
84         * lib/unictype/joininggroup_of.c: New file.
85         * lib/unictype/joininggroup_of.h: New file, automatically generated by
86         gen-uni-tables.
87
88         Tests for module 'unictype/joininggroup-byname'.
89         * modules/unictype/joininggroup-byname-tests: New file.
90         * tests/unictype/test-joininggroup_byname.c: New file.
91
92         New module 'unictype/joininggroup-byname'.
93         * modules/unictype/joininggroup-byname: New file.
94         * lib/unictype/joininggroup_byname.c: New file.
95         * lib/unictype/joininggroup_byname.gperf: New file.
96
97         Tests for module 'unictype/joininggroup-name'.
98         * modules/unictype/joininggroup-name-tests: New file.
99         * tests/unictype/test-joininggroup_name.c: New file.
100
101         New module 'unictype/joininggroup-name'.
102         * modules/unictype/joininggroup-name: New file.
103         * lib/unictype/joininggroup_name.c: New file.
104         * lib/unictype/joininggroup_name.h: New file.
105
106         New module 'unictype/joiningtype-all'.
107         * modules/unictype/joiningtype-all: New file.
108
109         Tests for module 'unictype/joiningtype-of'.
110         * modules/unictype/joiningtype-of-tests: New file.
111         * tests/unictype/test-joiningtype_of.c: New file.
112         * tests/unictype/test-joiningtype_of.h: New file, automatically
113         generated by gen-uni-tables.
114
115         New module 'unictype/joiningtype-of'.
116         * modules/unictype/joiningtype-of: New file.
117         * lib/unictype/joiningtype_of.c: New file.
118         * lib/unictype/joiningtype_of.h: New file, automatically generated by
119         gen-uni-tables.
120
121         Tests for module 'unictype/joiningtype-byname'.
122         * modules/unictype/joiningtype-byname-tests: New file.
123         * tests/unictype/test-joiningtype_byname.c: New file.
124
125         New module 'unictype/joiningtype-byname'.
126         * modules/unictype/joiningtype-byname: New file.
127         * lib/unictype/joiningtype_byname.c: New file.
128
129         Tests for module 'unictype/joiningtype-name'.
130         * modules/unictype/joiningtype-name-tests: New file.
131         * tests/unictype/test-joiningtype_name.c: New file.
132
133         New module 'unictype/joiningtype-name'.
134         * modules/unictype/joiningtype-name: New file.
135         * lib/unictype/joiningtype_name.c: New file.
136
137         unictype: Add support for Arabic shaping properties.
138         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
139         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
140         declarations.
141         (UC_JOINING_GROUP_*): New enumeration values.
142         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
143         declarations.
144         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
145         (unicode_joining_type): New variable.
146         (UC_JOINING_GROUP_*): New enumeration values.
147         (unicode_joining_group): New variable.
148         (fill_arabicshaping, joining_type_as_c_identifier,
149         output_joining_type_test, output_joining_type,
150         joining_group_as_c_identifier, output_joining_group_test,
151         output_joining_group): New functions.
152         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
153         fill_arabicshaping and output_joining_type_test, output_joining_type,
154         output_joining_group_test, output_joining_group.
155         Reported by Simon Josefsson.
156
157 2011-03-21  Jim Meyering  <meyering@redhat.com>
158
159         strftime: fix a bug in yesterday's change
160         * lib/strftime.c (add): Accommodate width's initial value of -1.
161         Otherwise, nstrftime would copy uninitialized data into
162         the result buffer.
163
164 2011-03-21  Jim Meyering  <meyering@redhat.com>
165
166         tests: add strftime-tests module
167         * tests/test-strftime.c: New file.
168         * modules/strftime-tests: New module.
169
170 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
171
172         strftime: don't assume a byte count fits in 'int'
173         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
174         found this problem by static analysis, using gcc -Wstrict-overflow
175         (GCC 4.5.2, x86-64).  This reported an optimization that depended
176         on an integer overflow having undefined behavior, but it turns out
177         that the argument is a size, which might not fit in 'int' anyway,
178
179 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
180
181         stdio: don't require ignore_value around fwrite
182
183         This patch works around libc bug 11959
184         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
185         Without this patch, applications must often write
186         ignore_value (fwrite (...)) even though the ignore_value is
187         not helpful here.  It's common to write many objects, using
188         fwrite/printf/etc., and then use ferror to detect output error.
189
190         I considered making this patch optional, but decided against it,
191         because libc is obviously being inconsistent here: there is no
192         reason libc should insist that user code must inspect fwrite
193         return's value without also insisting that it inspect printf's,
194         putchar's, etc.  If user code wants to have a strict style where
195         all these functions' values are checked (so that ferror need not
196         be checked), we could add support for that style in a new gnulib
197         module, but in the meantime it's better to be consistent and to
198         support common usage.
199
200         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
201         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
202         that we are compiling in checking mode, and if not C++, and
203         if not already wrapping fwrite for some other reason.
204         (fwrite): #define to rpl_fwrite if the latter is defined.
205
206 2011-03-20  Bruno Haible  <bruno@clisp.org>
207
208         verror: Fix compilation error introduced on 2011-02-13.
209         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
210         instead of __attribute__.
211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
212
213 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
214             Bruno Haible  <bruno@clisp.org>
215
216         socklen: do not depend on sys_socket
217         While trying to modify Emacs to use gnulib's socklen module,
218         I discovered a circular dependency: socklen depends on sys_socket
219         and vice versa.  Emacs can use socklen, but it does not need
220         sys_socket because it has its own substitute for sys/socket.h.
221         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
222         gl_TYPE_SOCKLEN_T.
223         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
224         gl_PREREQ_SYS_H_SOCKET.
225         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
226         gl_PREREQ_SYS_H_SOCKET.
227         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
228         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
229         * modules/socklen (Depends-on): Do not depend on sys_socket.
230         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
231
232 2011-03-20  Jim Meyering  <meyering@redhat.com>
233
234         maint.mk: sort file names *after* new transformation
235         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
236         prefix would have led to an unwarranted failure in GNU parted.
237         Sort after that transformation.
238
239 2011-03-19  Jim Meyering  <meyering@redhat.com>
240
241         maint.mk: fix po-file syntax-check rule
242         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
243         Patch by Bruno Haible.
244
245 2011-03-19  Bruno Haible  <bruno@clisp.org>
246
247         socklen: Update comment.
248         * m4/socklen.m4: Update comment about platforms.
249
250 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
251             Bruno Haible  <bruno@clisp.org>
252
253         inet_ntop, inet_pton: Simplify.
254         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
255         documented to provide socklen_t and we already depend on sys_socket.
256         * modules/inet_pton (Depends-on): Likewise.
257         * lib/arpa_inet.in.h: Adjust comment.
258
259 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
260             Bruno Haible  <bruno@clisp.org>
261
262         netdb: Simplify.
263         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
264         documented to provide socklen_t and we already depend on sys_socket.
265         * lib/netdb.in.h: Adjust comment.
266
267 2011-03-19  Bruno Haible  <bruno@clisp.org>
268
269         sys_socket, netdb: Document problem with socklen_t.
270         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
271         platforms.
272         * doc/posix-headers/netdb.texi: Likewise.
273
274 2011-03-18  Eric Blake  <eblake@redhat.com>
275
276         maint.mk: let po check work in VPATH build
277         * top/maint.mk (po_file): Allow cfg.mk override.
278         (sc_po_check): Allow VPATH use.
279         Reported by Jiri Denemark.
280
281 2011-03-16  Jim Meyering  <meyering@redhat.com>
282
283         maint.mk: allow fine-grained syntax-check exclusion via Make variables
284         Before, you would have had to create one .x-sc_ file per rule in order
285         to exempt offending files.  Now, you may instead use a Make variable --
286         usually defined in cfg.mk -- whose name identifies the affected rule.
287         * top/maint.mk (_sc_excl): Define.
288         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
289         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
290
291 2011-03-13  Bruno Haible  <bruno@clisp.org>
292
293         ignore-value tests: Avoid warnings.
294         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
295         empty for gcc < 3.4.
296
297 2011-03-13  Bruno Haible  <bruno@clisp.org>
298
299         passfd: Fix link error on Solaris.
300         * modules/passfd (Description): Correct.
301         (Depends-on): Add socketlib.
302         (Link): New section.
303         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
304
305 2011-03-13  Bruno Haible  <bruno@clisp.org>
306
307         passfd: Fix link error on AIX 5.2.
308         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
309
310 2011-03-13  Bruno Haible  <bruno@clisp.org>
311
312         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
313         * lib/sys_socket.in.h: Include <stddef.h>.
314         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
315         CMSG_FIRSTHDR. Remove unused variable.
316
317 2011-03-13  Bruno Haible  <bruno@clisp.org>
318
319         passfd: Fix compilation error on OpenBSD.
320         * lib/passfd.c: Include <sys/uio.h>.
321
322 2011-03-13  Bruno Haible  <bruno@clisp.org>
323
324         passfd test: Fix warnings.
325         * tests/test-passfd.c: Include <sys/wait.h>.
326         (main): Fix typo.
327
328 2011-03-13  Bruno Haible  <bruno@clisp.org>
329
330         passfd module, part 4, tweaks.
331         * tests/test-passfd.c: Reorder includes.
332         (main): Fix perror and printf calls.
333
334 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
335
336         passfd module, part 4.
337         * modules/passfd-tests: New file.
338         * tests/test-passfd.c: New file.
339
340 2011-03-13  Jim Meyering  <meyering@redhat.com>
341
342         Makefile: rely on GNU make; derive syntax-check rule names
343         Rather than requiring that each sc_ rule be listed as a dependent
344         of "check", use features of GNU make to derive the list.
345         * Makefile (syntax-check-rules): Define.
346         (check): Depend on the new variable, not the hard-coded list.
347
348 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
349             Bruno Haible  <bruno@clisp.org>
350
351         passfd module, part 3.
352         * lib/passfd.h (recvfd): Add a flags argument.
353         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
354         (recvfd): Add a flags argument.
355         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
356         exists.
357         * modules/passfd (Depends-on): Add cloexec.
358         Suggested by Eric Blake.
359
360 2011-03-13  Bruno Haible  <bruno@clisp.org>
361
362         passfd module, part 2, tweaks.
363         * modules/passfd (Files): Reorder.
364         (Depends-on): Remove errno.
365         (Include): Remove <sys/socket.h>, <sys/un.h>.
366         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
367         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
368         specification header. Include <sys/socket.h> always. Don't include
369         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
370         (sendfd): Clarify that it sets errno when it fails.
371         (recvfd): Fix specification.
372
373 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
374
375         passfd module, part 2.
376         * modules/passfd: New file.
377         * lib/passfd.h: New file.
378         * lib/passfd.c: New file.
379
380 2011-03-12  Bruno Haible  <bruno@clisp.org>
381
382         wcswidth, mbswidth: Avoid integer overflow.
383         * lib/wcswidth.c: Include <limits.h>.
384         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
385         * lib/mbswidth.c: Include <limits.h>.
386         (mbsnwidth): Avoid 'int' overflow.
387         Reported by Jim Meyering.
388
389 2011-03-12  Bruno Haible  <bruno@clisp.org>
390
391         futimens, utimensat: Avoid endless recursion on Solaris 10.
392         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
393         Solaris.
394         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
395         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
396
397 2011-03-11  Jim Meyering  <meyering@redhat.com>
398
399         maint.mk: relax a regexp to accommodate other formatting styles
400         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
401         between "ngettext" and the following "(".
402
403 2011-03-11  Pádraig Brady <P@draigBrady.com>
404
405         maint.mk: suppress a false positive warning
406         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
407         diagnostics are marked with ngettext.
408
409 2011-03-10  Eric Blake  <eblake@redhat.com>
410
411         wchar: add explicit dependencies, for Tru64
412         * modules/mbmemcasecoll (Depends-on): Add wchar.
413         * modules/mbtowc (Depends-on): Likewise.
414         * modules/vasnprintf (Depends-on): Likewise.
415         * modules/unistdio/u-printf-args (Depends-on): Likewise.
416         * modules/wctomb (Depends-on): Likewise.
417         Reported by Peter O'Gorman.
418
419 2011-03-08  Bruno Haible  <bruno@clisp.org>
420
421         passfd module, part 1, tweaks.
422         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
423         Improve indentation. Improve AC_MSG_CHECKING messages.
424         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
425         gl_SOCKET_FAMILIES.
426
427 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
428
429         passfd module, part 1.
430         * m4/afunix.m4: New file.
431         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
432         sockets.
433
434 2011-03-08  Bruno Haible  <bruno@clisp.org>
435
436         regex-quote: New API.
437         * lib/regex-quote.h: Include <stdbool.h>.
438         (struct regex_quote_spec): New type.
439         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
440         New declarations.
441         (regex_quote_length, regex_quote_copy, regex_quote): Take a
442         'const struct regex_quote_spec *' argument.
443         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
444         (pcre_special): New constant.
445         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
446         New functions.
447         (regex_quote_length, regex_quote_copy, regex_quote): Take a
448         'const struct regex_quote_spec *' argument.
449         * modules/regex-quote (Depends-on): Add stdbool.
450         * tests/test-regex-quote.c (check): Update for new API. Add test for
451         anchored results.
452         * NEWS: Mention the API change.
453         Reported by Reuben Thomas and Eric Blake.
454
455 2011-03-06  Bruno Haible  <bruno@clisp.org>
456
457         regex-quote: Fix creation of POSIX extended regular expressions.
458         * lib/regex-quote.c (ere_special): Add grouping and alternation
459         operators.
460
461 2011-03-05  Bruno Haible  <bruno@clisp.org>
462
463         doc: Improve doc regarding autopoint vs. gnulib.
464         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
465         disable autopoint while running autoreconf.
466         Suggested by Ralf Wildenhues.
467
468 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
469
470         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
471         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
472
473 2011-03-03  Bruce Korb  <bkorb@gnu.org>
474
475         parse-duration: remove xalloc.h dependency
476         * lib/parse-duration.c (parse_period): handle NULL return from
477         strdup instead of calling xstrdup().
478         * modules/parse-duration: remove "xalloc" dependency
479
480 2011-03-03  Matthew Booth  <mbooth@redhat.com>
481
482         bootstrap: honor m4_base when running aclocal
483         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
484
485 2011-03-02  Jim Meyering  <meyering@redhat.com>
486
487         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
488         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
489         on request from Matt Booth.
490
491 2011-03-01  Eric Blake  <eblake@redhat.com>
492
493         test-link: work on Hurd
494         * tests/test-link.h (test_link): Hurd rejects linking directories
495         with EISDIR instead of the POSIX-mandated EPERM.
496
497 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
498
499         stdio: simplify by moving files to printf-posix, sigpipe
500         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
501         since this symbol is needed only if printf is replaced.
502         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
503         Require gl_ASM_SYMBOL_PREFIX.
504         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
505         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
506         (Depends-on): Add 'raise'.
507         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
508         * modules/stdio (Files): Remove lib/stdio-write.c,
509         m4/asm-underscore.m4.
510         (Depends-on): Remove 'raise'.
511
512         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
513         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
514         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
515         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
516
517 2011-02-28  Bruno Haible  <bruno@clisp.org>
518
519         localcharset: Assume ANSI C behaviour of free().
520         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
521         calling free().
522         Suggested by Simon Josefsson <simon@josefsson.org>.
523
524 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
525             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
526             Bruno Haible  <bruno@clisp.org>  (tiny change)
527
528         On Cygwin, use /proc file system instead of win32 API.
529         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
530         Win32 file names.
531         (DllMain): Simplify by removing Cygwin specific code.
532         (find_shared_library_fullname): Use Linux specific implementation also
533         for Cygwin.
534         (get_shared_library_fullname): Update accordingly.
535         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
536         Win32 file names.
537         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
538         Cygwin specific code.
539
540 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
541             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
542
543         Fix OpenMP flag detection for various Fortran compilers.
544         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
545         OpenMP-conditional compilation construct, to force compile
546         failure with missing OpenMP flag.
547         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
548
549 2011-02-25  Eric Blake  <eblake@redhat.com>
550
551         strstr: expand test coverage
552         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
553         compilation.
554         * tests/test-memmem.c (main): Duplicate tests.
555         * tests/test-strcasestr.c (main): Likewise.
556         * tests/test-c-strcasestr.c (main): Likewise.
557
558 2011-02-25  Jim Meyering  <meyering@redhat.com>
559
560         maint.mk: detect missing-NL-at-EOF, too
561         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
562         it also detects when a file lacks a newline at EOF.
563         (require_exactly_one_NL_at_EOF_): Renamed from
564         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
565         since people may well have .x-sc_... file names tied to the
566         existing name.  Suggested by Eric Blake.
567
568 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
569
570         dirname: move m4/dos.m4 functionality into lib/dosname.h
571
572         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
573         extracts symbols from it, puts them into config.h; but it's much
574         easier to use the symbols directly.  filename.h already does this,
575         but it disagrees with dos.m4 in some respects.  This patch
576         introduces a different include file dosname.h that packages up
577         dos.m4, and then later we can work on merging filename.h and
578         dosname.h.  Applications that need only the easy-to-configure
579         symbols should consider including dosname.h rather than dirname.h.
580         * NEWS: Mention incompatible changes.
581         * m4/dos.m4: Remove.
582         * lib/dosname.h, modules/dosname: New files.
583         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
584         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
585         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
586         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
587         Include dosname.h, not dirname.h.
588         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
589         Include dosname.h, for definitions of symbols like ISSLASH
590         that used to be in config.h.
591         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
592         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
593         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
594         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
595         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
596         * modules/rmdir (Files): Likewise.
597         * modules/stat (Files): Likewise.
598         * modules/unlink (Files): Likewise.
599         * modules/dirname-lgpl (Depends-on): Add dosname.
600         * modules/lstat (Depends-on): Likewise.
601         * modules/openat (Depends-on): Likewise.
602         * modules/rmdir (Depends-on): Likewise.
603         * modules/savewd (Depends-on): Likewise.
604         * modules/stat (Depends-on): Likewise.
605         * modules/unlink (Depends-on): Likewise.
606         * modules/openat (Depends-on): Remove dirname-lgpl.
607         * modules/savewd (Depends-on): Likewise.
608         * tests/test-dirname.c: Do not use removed symbols like
609         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
610         the remaining symbols, e.g., ISSLASH ('\\').
611
612 2011-02-25  Eric Blake  <eblake@redhat.com>
613
614         strstr: revert patches that introduced bug and pessimization
615         * lib/str-two-way.h: Add another reference.
616         (two_way_short_needle, two_way_long_needle): Revert changes from
617         2011-02-24; they pessimize search speed.
618         (critical_factorization): Partially revert changes from
619         2010-06-22; they violate the requirement that the left half of the
620         needle be smaller than the period of the needle.
621
622 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
623
624         filenamecat: remove unnecessary dependency on dirname-lgpl
625         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
626         is no direct dependency, just an indirect one via filenamecat-lgpl.
627
628         remove: remove unnecessary use of m4/dos.m4
629         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
630         * modules/remove (FILES): Remove m4/dos.m4.
631
632         * lib/openat-proc.c: Don't include dirname.h; not needed.
633
634         backupfile: remove unnecessary use of m4/dos.m4
635         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
636         of its symbols are used by the backupfile code.  backupfile.c does
637         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
638         for the rare case of programs that want all their backup file
639         names to live within 8+3 limits, and dos.m4 doesn't address that.
640         * modules/backupfile (Files): Remove m4/dos.m4.
641
642 2011-02-24  Jim Meyering  <meyering@redhat.com>
643
644         strstr: fix a bug whereby strstr would mistakenly return NULL
645         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
646         in period calculation.
647         (two_way_long_needle): Likewise.
648         The original problem was reported by Mike Stump in
649         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
650         Ralf Wildenhues provided the short needle and haystack.
651         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
652         Add a more involved test to trigger the bug in two_way_long_needle.
653
654 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
655
656         gnulib-tool: remove use of bold display in help screen
657         * gnulib-tool (func_usage): Do not use bold display anymore in the
658         help screen.  That was just meant to be a temporary emphasis for a
659         backward-incompatible change.
660
661 2011-02-23  Bruno Haible  <bruno@clisp.org>
662
663         Fix misindentation of preprocessor directives.
664         * lib/argp-namefrob.h: Reindent preprocessor directives.
665         * lib/getopt_int.h (struct _getopt_data): Likewise.
666         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
667         * lib/vasnprintf.c (decode_long_double): Likewise.
668         * tests/test-argmatch.c: Insert blank lines, for clarity.
669         * tests/test-exclude.c: Likewise.
670
671 2011-02-22  Bruno Haible  <bruno@clisp.org>
672
673         ioctl: Fix for MacOS X in 64-bit mode.
674         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
675         value.
676         Suggested by Eric Blake.
677         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
678
679 2011-02-22  Jim Meyering  <meyering@redhat.com>
680
681         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
682         * Makefile (sc_cpp_indent_check): Don't limit the check to files
683         in lib/.
684
685 2011-02-22  Eric Blake  <eblake@redhat.com>
686
687         maint: avoid any CDPATH issue
688         * Makefile (sc_cpp_indent_check): Anchor cd argument.
689
690         maint: adjust cpp indentation for my modules, as well
691         * Makefile (sc_cpp_indent_check): Add my name.
692         * lib/fbufmode.c: Filter through cppi.
693         * lib/fpurge.c: Likewise.
694         * lib/freadable.c: Likewise.
695         * lib/freading.c: Likewise.
696         * lib/fwritable.c: Likewise.
697         * lib/fwriting.c: Likewise.
698         * lib/sigaction.c: Likewise.
699
700 2011-02-22  Jim Meyering  <meyering@redhat.com>
701
702         maint: adjust cpp indentation to reflect nesting depth
703         I.e., in a block of code that begins with an unnested "#if",
704         put one space between the "#" in column 1 and following token.
705         For example,
706         -#include <sys/vfs.h>
707         +# include <sys/vfs.h>
708         Do this only in .c files that are part of a module I maintain.
709         * lib/linkat.c: Filter through cppi.
710         * lib/nanosleep.c: Likewise.
711         * lib/openat.c: Likewise.
712         * lib/openat-die.c: Likewise.
713         * lib/dup3.c: Likewise.
714         * lib/fchownat.c: Likewise.
715         * lib/flock.c: Likewise.
716         * lib/fsync.c: Likewise.
717         * lib/fts.c: Likewise.
718         * lib/getpass.c: Likewise.
719         * lib/gettimeofday.c: Likewise.
720         * lib/userspec.c: Likewise.
721         * Makefile (sc_cpp_indent_check): New rule, to check this.
722
723 2011-02-22  Bruno Haible  <bruno@clisp.org>
724
725         New module 'wctomb'.
726         * lib/stdlib.in.h (wctomb): New declaration.
727         * lib/wctomb.c: New file.
728         * lib/wctomb-impl.h: New file.
729         * m4/wctomb.m4: New file.
730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
731         REPLACE_WCTOMB.
732         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
733         REPLACE_WCTOMB.
734         * modules/wctomb: New file.
735         * tests/test-stdlib-c++.cc: Test signature of wctomb.
736         * doc/posix-functions/wctomb.texi: Mention the new module.
737         * modules/wctob (Depends-on): Add wctomb.
738
739 2011-02-22  Bruno Haible  <bruno@clisp.org>
740
741         New module 'mbtowc'.
742         * lib/stdlib.in.h (mbtowc): New declaration.
743         * lib/mbtowc.c: New file.
744         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
745         * m4/mbtowc.m4: New file.
746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
747         REPLACE_MBTOWC.
748         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
749         REPLACE_MBTOWC.
750         * modules/mbtowc: New file.
751         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
752         * doc/posix-functions/mbtowc.texi: Mention the new module.
753         * modules/btowc (Depends-on): Add mbtowc.
754
755 2011-02-22  Bruno Haible  <bruno@clisp.org>
756
757         wcrtomb: Add more tests for native Windows platforms.
758         * tests/test-wcrtomb-w32-1.sh: New file.
759         * tests/test-wcrtomb-w32-2.sh: New file.
760         * tests/test-wcrtomb-w32-3.sh: New file.
761         * tests/test-wcrtomb-w32-4.sh: New file.
762         * tests/test-wcrtomb-w32-5.sh: New file.
763         * tests/test-wcrtomb-w32.c: New file.
764         * modules/wcrtomb-tests (Files): Add them.
765         (Makefile.am): Arrange to run these tests.
766         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
767         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
768
769 2011-02-20  Bruno Haible  <bruno@clisp.org>
770
771         wcrtomb: Enhance test.
772         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
773
774 2011-02-20  Bruno Haible  <bruno@clisp.org>
775
776         mbrtowc: Tiny optimization.
777         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
778
779 2011-02-20  Jim Meyering  <meyering@redhat.com>
780
781         test-exclude.c: remove unmatched #endif
782         * tests/test-exclude.c: Remove stray #endif, left over from
783         the change of a week ago.
784
785 2011-02-19  Jim Meyering  <meyering@redhat.com>
786
787         git-version-gen: skip "-dirty" check when appropriate
788         * build-aux/git-version-gen: Don't run any git commands when the
789         version string comes from .tarball-version.  Prior to this, we
790         would run git update-index --refresh even from a just-unpacked
791         tarball directory, and that could affect a .git/ directory in a
792         parent of the build directory.  Reported by Mike Frysinger.
793
794 2011-02-19  Bruno Haible  <bruno@clisp.org>
795
796         unictype/property-byname: Reduce the size of the 'data' segment.
797         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
798
799 2011-02-19  Bruno Haible  <bruno@clisp.org>
800
801         unictype/scripts: Reduce the size of the 'data' segment.
802         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
803         '%pic'.
804         * lib/unictype/scripts_byname.gperf: Regenerated.
805
806 2011-02-19  Bruno Haible  <bruno@clisp.org>
807
808         stdint: Update documentation.
809         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
810
811 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
812
813         stdint: omit redundant check for wchar.h
814         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
815         always tests whether wchar.h exists, so remove the now-redundant test.
816
817 2011-02-18  Bruno Haible  <bruno@clisp.org>
818
819         stdint: Cut dependency to module 'wchar'.
820         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
821         include the necessary prerequisites.
822         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
823         * modules/stdint (Depends-on): Remove wchar.
824         (Makefile.am): Substitute HAVE_WCHAR_H.
825         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
826
827 2011-02-18  Eric Blake  <eblake@redhat.com>
828
829         longlong: skip, rather than fail, on cross-compilation
830         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
831         when cross-compiling; regression from 2011-02-16.
832
833 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
834
835         * NEWS: Mention 2011-02-08 change to stdlib.
836
837 2011-02-17  Bruno Haible  <bruno@clisp.org>
838
839         getloadavg: Add comments about platforms.
840         * m4/getloadavg.m4: Add comment.
841         * lib/getloadavg.c: Likewise.
842
843 2011-02-17  Bruno Haible  <bruno@clisp.org>
844
845         getloadavg: Fix link error on Solaris 2.6.
846         * modules/getloadavg (Link): New section.
847         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
848         linking test-getloadavg.
849         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
850         getloadavg.
851
852 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
853
854         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
855         It was 'int', but this doesn't match the IRIX 6.5 manual.
856         Suggested by Bruno Haible in
857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
858
859 2011-02-17  Bruno Haible  <bruno@clisp.org>
860
861         havelib: Fix comments.
862         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
863         change.
864
865 2011-02-17  Bruno Haible  <bruno@clisp.org>
866
867         havelib: Update config.rpath.
868         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
869
870 2011-02-17  Bruno Haible  <bruno@clisp.org>
871
872         getloadavg test: Add some plausibility checks.
873         * tests/test-getloadavg.c (check_avg): Print a warning when the value
874         is improbable.
875
876 2011-02-16  Eric Blake  <eblake@redhat.com>
877
878         maintainer-makefile: make syntax-check a no-op from tarballs
879         * top/maint.mk (no-vc-detected): New rule.
880         (local-checks-available): Use it to avoid hanging if someone tries
881         'make syntax-check' from a tarball.  Also append to any non-syntax
882         checks already defined in cfg.mk.
883
884 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
885
886         longlong: tune, particularly for common case of c99
887
888         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
889         or running anything if c99, or if unsigned long long int does not
890         work.  In either case, we know the answer without further tests.
891         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
892         it at most once, and use its results for both long long int and
893         unsigned long long int.  This is more likely to be efficient in
894         the common case where the program wants to check for both long
895         long int and unsigned long long int.
896         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
897         since the answer is already known.
898
899 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
900
901         getloadavg: set errno
902         * lib/getloadavg.c: Set errno when returning -1.  If no other
903         error number looks appropriate, set it to ENOSYS if the getloadavg
904         looks like it can't possibly ever work, ENOTSUP otherwise.
905         Suggested by Bruno Haible in
906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
907
908         getloadavg: trim unused parts and speed up 'configure'
909         * NEWS: Document this.
910         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
911         always compiled if getloadavg is absent.
912         Move test code to ...
913         * tests/test-getloadavg.c: New file, containing previous
914         contents of test from lib/getloadavg.c.  It also contains
915         suggestions by Bruno Haible in
916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
917         * modules/getloadavg-tests: New file.
918         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
919         Do tests in the same order as they're needed for getloadavg.c.
920         Omit setgid-related tests that generate symbols KMEM_GROUP,
921         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
922         Do only the tests that are needed to see whether the system has
923         getloadavg, moving the other tests into ...
924         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
925         NLIST_NAME_UNION; nobody should be using it.  Do not define
926         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
927         relevant, as the user of this module shouldn't care how getloadavg
928         is implemented.
929
930         getloadavg: omit unused var
931         * lib/getloadavg.c (getloadavg): Omit unused local variable.
932
933 2011-02-15  Jim Meyering  <meyering@redhat.com>
934
935         doc: update users.txt
936         * users.txt: Update iwhd's URL.
937
938 2011-02-13  Bruno Haible  <bruno@clisp.org>
939
940         Consistent macro naming for macros that use GCC __attribute__.
941         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
942         _ATTRIBUTE_NONNULL_.
943         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
944         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
945         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
946         ATTRIBUTE_DEPRECATED.
947         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
948         ATTRIBUTE_NORETURN.
949         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
950         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
951         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
952         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
953         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
954         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
955         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
956         ATTRIBUTE_SENTINEL.
957         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
958         ATTRIBUTE_RETURN_CHECK.
959         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
960         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
961         ATTRIBUTE_NORETURN.
962         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
963         Reported by Paul Eggert.
964
965 2011-02-13  Bruno Haible  <bruno@clisp.org>
966
967         Don't interfere with a program's definition of __attribute__.
968         * lib/argp.h (__attribute__): Remove definition.
969         (_GL_ATTRIBUTE_FORMAT): New macro.
970         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
971         * lib/argp-fmtstream.h (__attribute__): Remove definition.
972         (_GL_ATTRIBUTE_FORMAT): New macro.
973         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
974         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
975         GCC 3 or newer.
976         * lib/error.h (__attribute__): Remove definition.
977         (_GL_ATTRIBUTE_FORMAT): New macro.
978         (error, error_at_line): Use it.
979         * lib/hash.h (__attribute__): Remove definition.
980         (ATTRIBUTE_WUR): Update definition. Define always.
981         * lib/openat.h (__attribute__): Remove definition.
982         (ATTRIBUTE_NORETURN): Update definition. Define always.
983         * lib/sigpipe-die.h (__attribute__): Remove definition.
984         (ATTRIBUTE_NORETURN): Update definition. Define always.
985         * lib/vasnprintf.h (__attribute__): Remove definition.
986         (_GL_ATTRIBUTE_FORMAT): New macro.
987         (asnprintf, vasnprintf): Use it.
988         * lib/xalloc.h (__attribute__): Remove definition.
989         (ATTRIBUTE_NORETURN): Update definition. Define always.
990         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
991         * lib/xmemdup0.h (__attribute__): Remove definition.
992         (ATTRIBUTE_NORETURN): Update definition. Define always.
993         * lib/xprintf.h (__attribute__): Remove definition.
994         (_GL_ATTRIBUTE_FORMAT): New macro.
995         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
996         * lib/xstrtol.h (__attribute__): Remove definition.
997         (ATTRIBUTE_NORETURN): Update definition. Define always.
998         * lib/xvasprintf.h (__attribute__): Remove definition.
999         (_GL_ATTRIBUTE_FORMAT): New macro.
1000         (xasprintf, xvasprintf): Use it.
1001         * tests/test-argmatch.c (__attribute__): Remove definition.
1002         (ATTRIBUTE_NORETURN): Update definition. Define always.
1003         * tests/test-exclude.c (__attribute__): Remove definition.
1004         (ATTRIBUTE_NORETURN): Update definition. Define always.
1005         Reported by Paul Eggert.
1006
1007 2011-02-13  Bruno Haible  <bruno@clisp.org>
1008
1009         mbrtowc: Add more tests for native Windows platforms.
1010         * tests/test-mbrtowc-w32-1.sh: New file.
1011         * tests/test-mbrtowc-w32-2.sh: New file.
1012         * tests/test-mbrtowc-w32-3.sh: New file.
1013         * tests/test-mbrtowc-w32-4.sh: New file.
1014         * tests/test-mbrtowc-w32-5.sh: New file.
1015         * tests/test-mbrtowc-w32.c: New file.
1016         * modules/mbrtowc-tests (Files): Add them.
1017         (Makefile.am): Arrange to run these tests.
1018         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
1019         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
1020
1021 2011-02-13  Bruno Haible  <bruno@clisp.org>
1022
1023         mbrtowc: Work around native Windows bug.
1024         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
1025         guess when no suitable locale for testing was found.
1026         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
1027
1028 2011-02-13  Bruno Haible  <bruno@clisp.org>
1029
1030         mbsinit: Work around mingw bug.
1031         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
1032         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
1033         Windows.
1034         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
1035
1036 2011-02-13  Bruno Haible  <bruno@clisp.org>
1037
1038         mbsinit: Don't crash for a NULL argument.
1039         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
1040         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
1041
1042 2011-02-13  Bruno Haible  <bruno@clisp.org>
1043
1044         Don't interfere with a program's definition of __attribute__.
1045         * lib/stdio.in.h (__attribute__): Remove definition.
1046         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
1047         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
1048         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
1049         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
1050         * lib/string.in.h (__attribute__): Remove definition.
1051         Reported by Paul Eggert.
1052
1053 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1054
1055         stdlib: don't get in the way of non-GCC __attribute__
1056         See thread starting at
1057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
1058         Revert previous stdlib change, installing the following instead:
1059         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
1060         to get in the way of a non-GCC compiler that supports __attribute__.
1061         (_GL_ATTRIBUTE_RETURN): New macro.
1062         (_Exit): Use it instead of __attribute__.
1063
1064 2011-02-12  Bruno Haible  <bruno@clisp.org>
1065
1066         quotearg test: Avoid test failure on mingw.
1067         * tests/test-quotearg.sh: Convert the locale identifier from native
1068         Windows syntax to Unix syntax.
1069
1070 2011-02-12  Bruno Haible  <bruno@clisp.org>
1071
1072         setlocale: Prefer gnulib's override over libintl's override.
1073         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
1074         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
1075         GNULIB_defined_setlocale is set.
1076
1077 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         stdlib: support non-GCC __attribute__
1080
1081         Fix a serious and tricky problem encountered when attempting to
1082         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
1083         5.5, but it crashed due to memory corruption on Solaris 10 with
1084         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
1085         bits that are otherwise zero.  This tagging is optional inside
1086         Emacs but is preferred and is used when __attribute__ ((__aligned
1087         (8))) works, as it does with both recent-enough GCC and with Sun C
1088         5.11.  However, Sun C 5.11 is not GCC and does not #define
1089         __GNUC__ and __GNUC_MINOR__.
1090
1091         When I added the getloadavg module to Emacs, it brought in
1092         stdlib.in.h, which contained this fragment:
1093
1094            #ifndef __attribute__
1095            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
1096            #  define __attribute__(Spec)   /* empty */
1097            # endif
1098            #endif
1099
1100         When files that include <stdlib.h> were compiled with Sun C 5.11,
1101         the above code disabled __attribute__ ((__aligned (8))), which
1102         caused variables to not be properly aligned, which eventually led
1103         to the pointer corruption mentioned above.  (This was a bit hard
1104         to diagnose, unfortunately.)
1105
1106         Several "#define __attribute__(X) /* empty */" code snippets need
1107         to be eradicated from Gnulib to work with non-GCC compilers that
1108         support __attribute__.  The Autoconf way to do this is to test for
1109         each kind of attribute that we want support for, and selectively
1110         enable that in source code.
1111
1112         Fix this problem just for stdlib.h, by adding a test for the
1113         __noreturn__ attribute, and change stdlib.in.h to use that test
1114         when needed.  This technique can be easily generalized to the
1115         other *.in.h files and attributes, and a similar technique can be
1116         used for *.h and *.c files.  This patch is enough to solve the
1117         problem for Emacs + getloadavg, and I thought I'd publish it for
1118         feedback before undertaking further, similar fixes in other
1119         modules.
1120
1121         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
1122         because it's not needed for stdlib.h.  It merely substitutes the
1123         value directly into stdlib.h.  We may well need to #define it, or
1124         similar symbols, for other modules, but it's nice to also have an
1125         option to not #define it for applications like Emacs that do not
1126         need it.
1127
1128         * lib/stdlib.in.h (__attribute__): Do not #define.
1129         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
1130         be defined only if the _Exit module is also used.
1131         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
1132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
1133         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
1134         platforms.
1135         * modules/_Exit (Files): Add m4/attribute.m4.
1136         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
1137         * m4/attribute.m4: New file.
1138
1139 2011-02-12  Bruno Haible  <bruno@clisp.org>
1140
1141         wcsrtombs: Work around bug on native Windows.
1142         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
1143         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
1144         instead of len.
1145         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
1146
1147 2011-02-12  Bruno Haible  <bruno@clisp.org>
1148
1149         mbsrtowcs: Work around bug on native Windows.
1150         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
1151         against mingw bug.
1152         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
1153
1154 2011-02-12  Bruno Haible  <bruno@clisp.org>
1155
1156         Avoid setlocale bugs in tests.
1157         * modules/btowc (Dependencies): Add setlocale.
1158         * modules/c-strcase (Dependencies): Likewise.
1159         * modules/mbmemcasecmp (Dependencies): Likewise.
1160         * modules/mbmemcasecoll (Dependencies): Likewise.
1161         * modules/mbrtowc (Dependencies): Likewise.
1162         * modules/mbscasecmp (Dependencies): Likewise.
1163         * modules/mbscasestr (Dependencies): Likewise.
1164         * modules/mbschr (Dependencies): Likewise.
1165         * modules/mbscspn (Dependencies): Likewise.
1166         * modules/mbsinit (Dependencies): Likewise.
1167         * modules/mbsncasecmp (Dependencies): Likewise.
1168         * modules/mbsnrtowcs (Dependencies): Likewise.
1169         * modules/mbspbrk (Dependencies): Likewise.
1170         * modules/mbspcasecmp (Dependencies): Likewise.
1171         * modules/mbsrchr (Dependencies): Likewise.
1172         * modules/mbsrtowcs (Dependencies): Likewise.
1173         * modules/mbsspn (Dependencies): Likewise.
1174         * modules/mbsstr (Dependencies): Likewise.
1175         * modules/nl_langinfo (Dependencies): Likewise.
1176         * modules/quotearg (Dependencies): Likewise.
1177         * modules/unicase/locale-language (Dependencies): Likewise.
1178         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
1179         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
1180         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
1181         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
1182         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
1183         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
1184         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
1185         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
1186         * modules/vasnprintf-posix (Dependencies): Likewise.
1187         * modules/wcrtomb (Dependencies): Likewise.
1188         * modules/wcsnrtombs (Dependencies): Likewise.
1189         * modules/wcsrtombs (Dependencies): Likewise.
1190
1191 2011-02-12  Bruno Haible  <bruno@clisp.org>
1192
1193         setlocale: Workaround native Windows bug.
1194         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
1195         succeeds but sets LC_CTYPE to "C", report a failure.
1196         * tests/test-setlocale2.sh: New file.
1197         * tests/test-setlocale2.c: New file.
1198         * modules/setlocale-tests (Files): Add the new files.
1199         (Makefile.am): Enable test-setlocale2.sh test.
1200         * doc/posix-functions/setlocale.texi: Mention workaround.
1201
1202 2011-02-11  Bruno Haible  <bruno@clisp.org>
1203
1204         Tests for module 'setlocale'.
1205         * modules/setlocale-tests: New file.
1206         * tests/test-setlocale1.sh: New file.
1207         * tests/test-setlocale1.c: New file.
1208
1209         New module 'setlocale'.
1210         * lib/locale.in.h (setlocale): New declaration.
1211         * lib/setlocale.c: New file, based on
1212         gettext/gettext-runtime/intl/setlocale.c.
1213         * m4/setlocale.m4: New file.
1214         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
1215         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
1216         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
1217         REPLACE_SETLOCALE.
1218         * modules/setlocale: New file.
1219         * tests/test-locale-c++.cc: Test the declaration of setlocale.
1220         * doc/posix-functions/setlocale.texi: Mention the new module.
1221
1222 2011-02-11  Bruno Haible  <bruno@clisp.org>
1223
1224         Prepare for locale dependent tests on mingw.
1225         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
1226         because it has the wrong locale encoding.
1227         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
1228         French_France.1252 instead of "fr".
1229         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
1230         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
1231         because it has the wrong locale encoding.
1232         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
1233         native Windows, try Turkish_Turkey.65001.
1234         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
1235         Chinese_China.54936.
1236
1237         Prepare for locale dependent tests on mingw.
1238         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
1239         differently.
1240         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1241         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1242         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1243         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1244
1245 2011-02-11  Eric Blake  <eblake@redhat.com>
1246
1247         strptime: avoid compiler warnings
1248         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
1249         compiler warnings about dead code.
1250         Reported by Daniel P. Berrange.
1251
1252 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
1253
1254         doc: update users.txt
1255         * users.txt: Add rcs.
1256
1257 2011-02-10  John W. Eaton  <jwe@gnu.org>
1258
1259         doc: update users.txt
1260         * users.txt: Add octave.
1261
1262 2011-02-10  Jim Meyering  <meyering@redhat.com>
1263
1264         doc: update users.txt
1265         * users.txt: Add iwhd.
1266
1267 2011-02-09  Bruno Haible  <bruno@clisp.org>
1268
1269         gnulib-tool: Make copyright notice adjustment more robust.
1270         * gnulib-tool (func_import): In sed_transform_main_lib_file,
1271         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
1272         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
1273         License".
1274         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
1275
1276 2011-02-06  Bruno Haible  <bruno@clisp.org>
1277
1278         New module 'towctrans'.
1279         * modules/towctrans: New file.
1280         * lib/wctype.in.h (towctrans): New declaration.
1281         * lib/towctrans.c: New file.
1282         * lib/towctrans-impl.h: New file.
1283         * m4/towctrans.m4: New file.
1284         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
1285         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
1286         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
1287         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
1288         * doc/posix-functions/towctrans.texi: Mention the new module.
1289
1290 2011-02-06  Bruno Haible  <bruno@clisp.org>
1291
1292         New module 'wctrans'.
1293         * modules/wctrans: New file.
1294         * lib/wctype.in.h (wctrans): New declaration.
1295         * lib/wctrans.c: New file.
1296         * lib/wctrans-impl.h: New file.
1297         * m4/wctrans.m4: New file.
1298         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
1299         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
1300         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
1301         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
1302         * doc/posix-functions/wctrans.texi: Mention the new module.
1303
1304 2011-02-06  Bruno Haible  <bruno@clisp.org>
1305
1306         New module 'iswctype'.
1307         * modules/iswctype: New file.
1308         * lib/wctype.in.h (iswctype): New declaration.
1309         * lib/iswctype.c: New file.
1310         * lib/iswctype-impl.h: New file.
1311         * m4/iswctype.m4: New file.
1312         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
1313         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
1314         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
1315         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
1316         * doc/posix-functions/iswctype.texi: Mention the new module and the
1317         HP-UX 11.00 problem.
1318
1319 2011-02-06  Bruno Haible  <bruno@clisp.org>
1320
1321         New module 'wctype'.
1322         * modules/wctype: Change to represent the wctype() substitute.
1323         * lib/wctype.in.h (wctype): New declaration.
1324         * lib/wctype.c: New file.
1325         * lib/wctype-impl.h: New file.
1326         * m4/wctype.m4: New file.
1327         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
1328         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
1329         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
1330         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
1331         * doc/posix-functions/wctype.texi: Mention the new module and the
1332         HP-UX 11.00 problem.
1333
1334 2011-02-06  Bruno Haible  <bruno@clisp.org>
1335
1336         wctype-h: Ensure wctype_t and wctrans_t are defined.
1337         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
1338         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1339         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1340         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
1341         HAVE_WCTRANS_T.
1342         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
1343
1344 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1345
1346         flock: fix license typo
1347
1348         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
1349         omitted.
1350
1351 2011-02-08  Bruno Haible  <bruno@clisp.org>
1352
1353         Split large sed scripts, for HP-UX sed.
1354         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
1355         to avoid HP-UX limit of 99 commands, in the near future.
1356         * modules/stdlib (Makefile.am): Likewise.
1357         * modules/unistd (Makefile.am): Likewise.
1358         * modules/wchar (Makefile.am): Likewise.
1359         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1360         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
1361         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
1362
1363 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1364             Bruno Haible  <bruno@clisp.org>
1365
1366         stdlib: improve random_r modularization
1367         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
1368         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
1369         you also need the random_r module to get this material right.
1370         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
1371         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
1372         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
1373
1374 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1375
1376         stdlib: don't depend on stdint
1377         * lib/stdlib.in.h: Don't include <stdint.h> merely because
1378         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
1379         be independent of whether stdint.h is needed.
1380         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
1381         here, instead of ...
1382         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
1383         struct random_data should be using the random_r module, not just
1384         the stdlib module (which wouldn't make sense: what package needs
1385         just struct random_data without also needing random_r?).
1386         * modules/stdlib (Depends-on): Remove stdint.
1387
1388         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
1389         See the thread rooted at
1390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
1391         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
1392         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
1393         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
1394         __VMS)); previously it was always included (via fcntl--.h).
1395         (getloadavg): Do not use c_strtod.  Instead, approximate it by
1396         hand; this is good enough for load averages.  Also, do not use
1397         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
1398         flags directly if available and don't bother otherwise.  (Packages
1399         that need the extra reliability should use the modules that define
1400         these flags on older platforms that lack them.)
1401         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
1402         fcntl-safer.
1403
1404 2011-02-08  Jim Meyering  <meyering@redhat.com>
1405
1406         di-set.h, ino-map.h: add multiple-inclusion guard
1407         Technically, the guard is required only for ino-map.h, due to its
1408         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
1409         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
1410         * lib/ino-map.h: Likewise.
1411
1412 2011-02-06  Bruno Haible  <bruno@clisp.org>
1413
1414         iswblank: Ensure declaration on glibc systems.
1415         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
1416         * modules/iswblank (Dependencies): Add 'extensions'.
1417         * doc/posix-functions/iswblank.texi: Document the glibc problem.
1418
1419 2011-02-06  Bruno Haible  <bruno@clisp.org>
1420
1421         New module 'iswblank'.
1422         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
1423         * modules/iswblank: New file.
1424         * modules/wctype-h (Files): Remove lib/iswblank.c.
1425         (Makefile.am): Substitute GNULIB_ISWBLANK.
1426         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
1427         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
1428         (gl_WCTYPE_H_DEFAULTS): New macro.
1429         (gl_WCTYPE_H): Require it. Remove iswblank related code.
1430         * modules/iswblank-tests: New file.
1431         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
1432         * tests/test-wctype-h.c (main): Remove iswblank tests.
1433         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
1434         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
1435         of 'wctype-h'.
1436         * NEWS: Mention the change.
1437         * modules/mbchar (Depends-on): Add iswblank.
1438
1439 2011-02-08  Bruno Haible  <bruno@clisp.org>
1440
1441         di-set tests: Refactor.
1442         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
1443         unnecessary includes.
1444         (ASSERT): Remove macro.
1445         (main): Make C90 compliant by avoiding variable declaration after
1446         statement.
1447         * modules/di-set-tests (Files): Add tests/macros.h.
1448
1449 2011-02-08  Bruno Haible  <bruno@clisp.org>
1450
1451         ino-map tests: Refactor.
1452         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
1453         unnecessary includes.
1454         (ASSERT): Remove macro.
1455         (main): Make C90 compliant by avoiding variable declaration after
1456         statement.
1457         * modules/ino-map-tests (Files): Add tests/macros.h.
1458
1459 2011-02-08  Jim Meyering  <meyering@redhat.com>
1460
1461         di-set: add "const" to a cast
1462         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
1463         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
1464
1465 2011-02-06  Bruno Haible  <bruno@clisp.org>
1466
1467         Rename module 'wctype' to 'wctype-h'.
1468         * modules/wctype-h: Renamed from modules/wctype.
1469         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
1470         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
1471         (Files, Depends-on, Makefile.am): Update.
1472         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
1473         (Files, Makefile.am): Update.
1474         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
1475         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
1476         * doc/posix-headers/wctype.texi: Update.
1477         * doc/posix-functions/iswalnum.texi: Update.
1478         * doc/posix-functions/iswalpha.texi: Update.
1479         * doc/posix-functions/iswblank.texi: Update.
1480         * doc/posix-functions/iswcntrl.texi: Update.
1481         * doc/posix-functions/iswdigit.texi: Update.
1482         * doc/posix-functions/iswgraph.texi: Update.
1483         * doc/posix-functions/iswlower.texi: Update.
1484         * doc/posix-functions/iswprint.texi: Update.
1485         * doc/posix-functions/iswpunct.texi: Update.
1486         * doc/posix-functions/iswspace.texi: Update.
1487         * doc/posix-functions/iswupper.texi: Update.
1488         * doc/posix-functions/iswxdigit.texi: Update.
1489         * doc/posix-functions/towlower.texi: Update.
1490         * doc/posix-functions/towupper.texi: Update.
1491         * NEWS: Mention the change.
1492         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
1493         * modules/mbchar (Dependencies): Likewise.
1494         * modules/mbswidth (Dependencies): Likewise.
1495         * modules/quotearg (Dependencies): Likewise.
1496         * modules/regex (Dependencies): Likewise.
1497         * modules/wcscasecmp (Dependencies): Likewise.
1498         * modules/wcsncasecmp (Dependencies): Likewise.
1499         * modules/wcwidth (Dependencies): Likewise.
1500
1501 2011-02-06  Bruno Haible  <bruno@clisp.org>
1502
1503         New module 'wcswidth'.
1504         * modules/wcswidth: New file.
1505         * lib/wchar.in.h (wcswidth): New declaration.
1506         * lib/wcswidth.c: New file.
1507         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
1508         * m4/wcswidth.m4: New file.
1509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
1510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
1511         REPLACE_WCSWIDTH.
1512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
1513         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
1514         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
1515         * doc/posix-functions/wcswidth.texi: Mention the new module.
1516
1517 2011-02-06  Bruno Haible  <bruno@clisp.org>
1518
1519         New module 'wcstok'.
1520         * modules/wcstok: New file.
1521         * lib/wchar.in.h (wcstok): New declaration.
1522         * lib/wcstok.c: New file.
1523         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
1524         * m4/wcstok.m4: New file.
1525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
1526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
1527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
1528         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
1529         * doc/posix-functions/wcstok.texi: Mention the new module.
1530
1531 2011-02-06  Bruno Haible  <bruno@clisp.org>
1532
1533         New module 'wcsstr'.
1534         * modules/wcsstr: New file.
1535         * lib/wchar.in.h (wcsstr): New declaration.
1536         * lib/wcsstr.c: New file.
1537         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
1538         * m4/wcsstr.m4: New file.
1539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
1540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
1541         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
1542         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
1543         * doc/posix-functions/wcsstr.texi: Mention the new module.
1544
1545 2011-02-06  Bruno Haible  <bruno@clisp.org>
1546
1547         New module 'wcspbrk'.
1548         * modules/wcspbrk: New file.
1549         * lib/wchar.in.h (wcspbrk): New declaration.
1550         * lib/wcspbrk.c: New file.
1551         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
1552         * m4/wcspbrk.m4: New file.
1553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
1554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
1555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
1556         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
1557         * doc/posix-functions/wcspbrk.texi: Mention the new module.
1558
1559 2011-02-06  Bruno Haible  <bruno@clisp.org>
1560
1561         New module 'wcsspn'.
1562         * modules/wcsspn: New file.
1563         * lib/wchar.in.h (wcsspn): New declaration.
1564         * lib/wcsspn.c: New file.
1565         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
1566         * m4/wcsspn.m4: New file.
1567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
1568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
1569         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
1570         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
1571         * doc/posix-functions/wcsspn.texi: Mention the new module.
1572
1573 2011-02-06  Bruno Haible  <bruno@clisp.org>
1574
1575         New module 'wcscspn'.
1576         * modules/wcscspn: New file.
1577         * lib/wchar.in.h (wcscspn): New declaration.
1578         * lib/wcscspn.c: New file.
1579         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
1580         * m4/wcscspn.m4: New file.
1581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
1582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
1583         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
1584         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
1585         * doc/posix-functions/wcscspn.texi: Mention the new module.
1586
1587 2011-02-06  Bruno Haible  <bruno@clisp.org>
1588
1589         New module 'wcsrchr'.
1590         * modules/wcsrchr: New file.
1591         * lib/wchar.in.h (wcsrchr): New declaration.
1592         * lib/wcsrchr.c: New file.
1593         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
1594         * m4/wcsrchr.m4: New file.
1595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
1596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
1597         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
1598         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
1599         * doc/posix-functions/wcsrchr.texi: Mention the new module.
1600
1601 2011-02-06  Bruno Haible  <bruno@clisp.org>
1602
1603         New module 'wcschr'.
1604         * modules/wcschr: New file.
1605         * lib/wchar.in.h (wcschr): New declaration.
1606         * lib/wcschr.c: New file.
1607         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
1608         * m4/wcschr.m4: New file.
1609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
1610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
1611         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
1612         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
1613         * doc/posix-functions/wcschr.texi: Mention the new module.
1614
1615 2011-02-06  Bruno Haible  <bruno@clisp.org>
1616
1617         New module 'wcsdup'.
1618         * modules/wcsdup: New file.
1619         * lib/wchar.in.h (wcsdup): New declaration.
1620         * lib/wcsdup.c: New file.
1621         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
1622         * m4/wcsdup.m4: New file.
1623         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
1624         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
1625         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
1626         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
1627         * doc/posix-functions/wcsdup.texi: Mention the new module.
1628
1629 2011-02-06  Bruno Haible  <bruno@clisp.org>
1630
1631         New module 'wcsxfrm'.
1632         * modules/wcsxfrm: New file.
1633         * lib/wchar.in.h (wcsxfrm): New declaration.
1634         * lib/wcsxfrm.c: New file.
1635         * lib/wcsxfrm-impl.h: New file.
1636         * m4/wcsxfrm.m4: New file.
1637         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
1638         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
1639         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
1640         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
1641         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
1642
1643 2011-02-06  Bruno Haible  <bruno@clisp.org>
1644
1645         New module 'wcscoll'.
1646         * modules/wcscoll: New file.
1647         * lib/wchar.in.h (wcscoll): New declaration.
1648         * lib/wcscoll.c: New file.
1649         * lib/wcscoll-impl.h: New file.
1650         * m4/wcscoll.m4: New file.
1651         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
1652         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
1653         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
1654         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
1655         * doc/posix-functions/wcscoll.texi: Mention the new module.
1656
1657 2011-02-06  Bruno Haible  <bruno@clisp.org>
1658
1659         New module 'wcsncasecmp'.
1660         * modules/wcsncasecmp: New file.
1661         * lib/wchar.in.h (wcsncasecmp): New declaration.
1662         * lib/wcsncasecmp.c: New file.
1663         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
1664         * m4/wcsncasecmp.m4: New file.
1665         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
1666         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
1667         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
1668         HAVE_WCSNCASECMP.
1669         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
1670         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
1671
1672 2011-02-06  Bruno Haible  <bruno@clisp.org>
1673
1674         New module 'wcscasecmp'.
1675         * modules/wcscasecmp: New file.
1676         * lib/wchar.in.h (wcscasecmp): New declaration.
1677         * lib/wcscasecmp.c: New file.
1678         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
1679         * m4/wcscasecmp.m4: New file.
1680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
1681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
1682         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
1683         HAVE_WCSCASECMP.
1684         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
1685         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
1686
1687 2011-02-05  Bruno Haible  <bruno@clisp.org>
1688
1689         New module 'wcsncmp'.
1690         * modules/wcsncmp: New file.
1691         * lib/wchar.in.h (wcsncmp): New declaration.
1692         * lib/wcsncmp.c: New file.
1693         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
1694         * m4/wcsncmp.m4: New file.
1695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
1696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
1697         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
1698         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
1699         * doc/posix-functions/wcsncmp.texi: Mention the new module.
1700
1701 2011-02-05  Bruno Haible  <bruno@clisp.org>
1702
1703         New module 'wcscmp'.
1704         * modules/wcscmp: New file.
1705         * lib/wchar.in.h (wcscmp): New declaration.
1706         * lib/wcscmp.c: New file.
1707         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
1708         * m4/wcscmp.m4: New file.
1709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
1710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
1711         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
1712         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
1713         * doc/posix-functions/wcscmp.texi: Mention the new module.
1714
1715 2011-02-05  Bruno Haible  <bruno@clisp.org>
1716
1717         New module 'wcsncat'.
1718         * modules/wcsncat: New file.
1719         * lib/wchar.in.h (wcsncat): New declaration.
1720         * lib/wcsncat.c: New file.
1721         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
1722         * m4/wcsncat.m4: New file.
1723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
1724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
1725         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
1726         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
1727         * doc/posix-functions/wcsncat.texi: Mention the new module.
1728
1729 2011-02-05  Bruno Haible  <bruno@clisp.org>
1730
1731         New module 'wcscat'.
1732         * modules/wcscat: New file.
1733         * lib/wchar.in.h (wcscat): New declaration.
1734         * lib/wcscat.c: New file.
1735         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
1736         * m4/wcscat.m4: New file.
1737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
1738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
1739         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
1740         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
1741         * doc/posix-functions/wcscat.texi: Mention the new module.
1742
1743 2011-02-05  Bruno Haible  <bruno@clisp.org>
1744
1745         New module 'wcpncpy'.
1746         * modules/wcpncpy: New file.
1747         * lib/wchar.in.h (wcpncpy): New declaration.
1748         * lib/wcpncpy.c: New file.
1749         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
1750         * m4/wcpncpy.m4: New file.
1751         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
1752         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
1753         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
1754         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
1755         * doc/posix-functions/wcpncpy.texi: Mention the new module.
1756
1757 2011-02-05  Bruno Haible  <bruno@clisp.org>
1758
1759         New module 'wcsncpy'.
1760         * modules/wcsncpy: New file.
1761         * lib/wchar.in.h (wcsncpy): New declaration.
1762         * lib/wcsncpy.c: New file.
1763         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
1764         * m4/wcsncpy.m4: New file.
1765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
1766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
1767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
1768         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
1769         * doc/posix-functions/wcsncpy.texi: Mention the new module.
1770
1771 2011-02-05  Bruno Haible  <bruno@clisp.org>
1772
1773         New module 'wcpcpy'.
1774         * modules/wcpcpy: New file.
1775         * lib/wchar.in.h (wcpcpy): New declaration.
1776         * lib/wcpcpy.c: New file.
1777         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
1778         * m4/wcpcpy.m4: New file.
1779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
1780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
1781         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
1782         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
1783         * doc/posix-functions/wcpcpy.texi: Mention the new module.
1784
1785 2011-02-05  Bruno Haible  <bruno@clisp.org>
1786
1787         New module 'wcscpy'.
1788         * modules/wcscpy: New file.
1789         * lib/wchar.in.h (wcscpy): New declaration.
1790         * lib/wcscpy.c: New file.
1791         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
1792         * m4/wcscpy.m4: New file.
1793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
1794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
1795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
1796         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
1797         * doc/posix-functions/wcscpy.texi: Mention the new module.
1798
1799 2011-02-05  Bruno Haible  <bruno@clisp.org>
1800
1801         New module 'wcsnlen'.
1802         * modules/wcsnlen: New file.
1803         * lib/wchar.in.h (wcsnlen): New declaration.
1804         * lib/wcsnlen.c: New file.
1805         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
1806         * m4/wcsnlen.m4: New file.
1807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
1808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
1809         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
1810         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
1811         * doc/posix-functions/wcsnlen.texi: Mention the new module.
1812
1813 2011-02-05  Bruno Haible  <bruno@clisp.org>
1814
1815         New module 'wcslen'.
1816         * modules/wcslen: New file.
1817         * lib/wchar.in.h (wcslen): New declaration.
1818         * lib/wcslen.c: New file.
1819         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
1820         * m4/wcslen.m4: New file.
1821         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
1822         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
1823         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
1824         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
1825         * doc/posix-functions/wcslen.texi: Mention the new module.
1826
1827 2011-02-05  Bruno Haible  <bruno@clisp.org>
1828
1829         New module 'wmemset'.
1830         * modules/wmemset: New file.
1831         * lib/wchar.in.h (wmemset): New declaration.
1832         * lib/wmemset.c: New file.
1833         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
1834         * m4/wmemset.m4: New file.
1835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
1836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
1837         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
1838         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
1839         * doc/posix-functions/wmemset.texi: Mention the new module.
1840
1841 2011-02-05  Bruno Haible  <bruno@clisp.org>
1842
1843         New module 'wmemmove'.
1844         * modules/wmemmove: New file.
1845         * lib/wchar.in.h (wmemmove): New declaration.
1846         * lib/wmemmove.c: New file.
1847         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
1848         * m4/wmemmove.m4: New file.
1849         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
1850         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
1851         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
1852         HAVE_WMEMMOVE.
1853         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
1854         * doc/posix-functions/wmemmove.texi: Mention the new module.
1855
1856 2011-02-05  Bruno Haible  <bruno@clisp.org>
1857
1858         New module 'wmemcpy'.
1859         * modules/wmemcpy: New file.
1860         * lib/wchar.in.h (wmemcpy): New declaration.
1861         * lib/wmemcpy.c: New file.
1862         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
1863         * m4/wmemcpy.m4: New file.
1864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
1865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
1866         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
1867         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
1868         * doc/posix-functions/wmemcpy.texi: Mention the new module.
1869
1870 2011-02-05  Bruno Haible  <bruno@clisp.org>
1871
1872         New module 'wmemcmp'.
1873         * modules/wmemcmp: New file.
1874         * lib/wchar.in.h (wmemcmp): New declaration.
1875         * lib/wmemcmp.c: New file.
1876         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
1877         * m4/wmemcmp.m4: New file.
1878         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
1879         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
1880         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
1881         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
1882         * doc/posix-functions/wmemcmp.texi: Mention the new module.
1883
1884 2011-02-07  Jim Meyering  <meyering@redhat.com>
1885
1886         di-set, ino-map: new modules, from coreutils
1887         * lib/di-set.c: New file.
1888         * lib/di-set.h: Likewise.
1889         * lib/ino-map.c: Likewise.
1890         * lib/ino-map.h: Likewise.
1891         * modules/di-set: Likewise.
1892         * modules/di-set-tests: Likewise.
1893         * modules/ino-map: Likewise.
1894         * modules/ino-map-tests: Likewise.
1895         * tests/test-di-set.c: Likewise.
1896         * tests/test-ino-map.c: Likewise.
1897
1898 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1899
1900         getloadavg: merge minor changes from Emacs
1901
1902         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
1903         (getloadavg): Use memset, not bzero.
1904
1905         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
1906         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
1907         clash (bug#86).
1908
1909 2010-11-14  Bruno Haible  <bruno@clisp.org>
1910
1911         Allow multiple gnulib generated replacements to coexist.
1912         * lib/getopt.in.h (struct option): Avoid identical redefinition.
1913         * lib/inttypes.in.h (imaxdiv_t): Likewise.
1914         * lib/langinfo.in.h (nl_item): Likewise.
1915         * lib/math.in.h (_NaN, NAN): Likewise.
1916         * lib/netdb.in.h (struct addrinfo): Likewise.
1917         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
1918         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
1919         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
1920         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
1921         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
1922         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
1923         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
1924         pthread_mutexattr_init, pthread_mutexattr_settype,
1925         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
1926         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
1927         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
1928         pthread_spin_trylock, pthread_spin_unlock): Likewise.
1929         * lib/sched.in.h (struct sched_param): Likewise.
1930         * lib/se-selinux.in.h (security_class_t, security_context_t,
1931         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
1932         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
1933         lsetfilecon, fsetfilecon, security_check_context,
1934         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
1935         Likewise.
1936         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
1937         Likewise.
1938         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
1939         _gl_function_taking_int_returning_void_t, union sigval,
1940         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
1941         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
1942         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1943         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
1944         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
1945         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
1946         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
1947         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
1948         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
1949         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
1950         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
1951         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
1952         socklen_t, rpl_fd_isset): Likewise.
1953         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
1954         * lib/sys_time.in.h (struct timeval): Likewise.
1955         * lib/sys_times.in.h (struct tms): Likewise.
1956         * lib/sys_utsname.in.h (struct utsname):
1957         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
1958         * lib/unistd.in.h (getpagesize): Likewise.
1959         * lib/wchar.in.h (mbstate_t): Likewise.
1960         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1961         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
1962         towlower, towupper): Likewise.
1963         Reported by Sam Steingold <sds@gnu.org>.
1964
1965 2011-02-05  Eric Blake  <eblake@redhat.com>
1966
1967         unsetenv: work around Haiku issues
1968         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
1969         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
1970
1971 2010-12-30  Bruce Korb  <bkorb@gnu.org>
1972
1973         libposix: avoid calling error() within libposix
1974         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
1975         is defined.
1976
1977 2011-02-05  Eric Blake  <eblake@redhat.com>
1978
1979         strerror_r-posix: port to cygwin
1980         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
1981         implementation.
1982         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
1983         * tests/test-strerror_r.c (main): Fix test.
1984         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1985         issue.
1986
1987 2011-02-05  Bruno Haible  <bruno@clisp.org>
1988
1989         New module 'wmemchr'.
1990         * modules/wmemchr: New file.
1991         * lib/wchar.in.h (wmemchr): New declaration.
1992         * lib/wmemchr.c: New file.
1993         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
1994         * m4/wmemchr.m4: New file.
1995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
1996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
1997         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
1998         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
1999         * doc/posix-functions/wmemchr.texi: Mention the new module.
2000
2001 2011-02-04  Eric Blake  <eblake@redhat.com>
2002
2003         fdopendir: detect FreeBSD bug
2004         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
2005         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
2006
2007 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2008
2009         stdbool: do not define HAVE_STDBOOL_H
2010         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
2011         AC_HEADER_STDBOOL.  All uses changed.  Do not define
2012         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
2013         imported from the latest Autoconf git.  It was motivated by Emacs,
2014         which uses gnulib but does not need HAVE_STDBOOL_H.
2015
2016 2011-02-04  Bruno Haible  <bruno@clisp.org>
2017
2018         wcsnrtombs: Prepare for new module wwcsnrtombs.
2019         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
2020         * lib/wcsnrtombs.c: Include it.
2021         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
2022
2023         wcsrtombs: Prepare for new module wwcsrtombs.
2024         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
2025         * lib/wcsrtombs.c: Include it.
2026         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
2027
2028         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
2029         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
2030         * lib/mbsnrtowcs.c: Include it.
2031         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
2032
2033         mbsrtowcs: Prepare for new module mbsrtowwcs.
2034         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
2035         * lib/mbsrtowcs.c: Include it.
2036         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
2037
2038 2011-02-04  Bruno Haible  <bruno@clisp.org>
2039
2040         vasnprintf: Reduce use of malloc for small format strings.
2041         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
2042         (arguments): Add room for the first 7 arguments.
2043         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
2044         (char_directives, u8_directives, u16_directives, u32_directives): Add
2045         room for the first 7 directives.
2046         * lib/printf-parse.c: Include <string.h>.
2047         (PRINTF_PARSE): Change memory handling code so that it uses the first
2048         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
2049         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
2050         Reported by Pádraig Brady <P@draigbrady.com>.
2051
2052 2011-01-31  Eric Blake  <eblake@redhat.com>
2053
2054         dup2: work around Haiku bug
2055         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
2056         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
2057         * doc/posix-functions/dup2.texi (dup2): Document the bug.
2058         * tests/test-dup2.c (main): Enhance test.
2059
2060 2011-01-31  Simon Josefsson  <simon@josefsson.org>
2061
2062         doc: off_t is not available in eglibc 2.11.2 stdio.h.
2063         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
2064         declared by eglibc 2.11.2.
2065         * lib/stdio.in.h: Likewise.
2066
2067 2011-01-31  Eric Blake  <eblake@redhat.com>
2068
2069         ignore-value: add missing test dependency
2070         * tests/test-ignore-value.c: Revert previous change; stdio.h
2071         provides off_t.
2072         * modules/ignore-value-tests (Depends-on): Add missing dependency.
2073
2074 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2075
2076         mktime: clarify long_int width checking
2077         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
2078         the top level, to make it clearer that the assumption about
2079         long_int width is being checked.  See
2080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
2081
2082 2011-01-30  Simon Josefsson  <simon@josefsson.org>
2083
2084         ignore-value: Fix self-test.
2085         * tests/test-ignore-value.c: Include sys/types.h for off_t.
2086
2087 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2088
2089         TYPE_MAXIMUM: avoid theoretically undefined behavior
2090         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
2091         negative number, which the C Standard says has undefined behavior.
2092         In practice this is not a problem, but might as well do it by the book.
2093         Reported by Rich Felker and Eric Blake; see
2094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
2095         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
2096         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2098         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
2099         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2100         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
2101
2102         mktime: #undef mktime before #defining it
2103         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
2104
2105         mktime: systematically normalize tm_isdst comparisons
2106         * lib/mktime.c (isdst_differ): New function.
2107         (__mktime_internal): Use it systematically for all isdst comparisons.
2108         This completes the fix for libc BZ #6723, and removes the need for
2109         normalizing tm_isdst.  See
2110         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
2111         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
2112
2113         mktime: fix some integer overflow issues and sidestep the rest
2114
2115         This was prompted by a bug report by Benjamin Lindner for MinGW
2116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
2117         His bug is due to signed integer overflow (0 - INT_MIN), and I
2118         I scanned through mktime.c looking for other integer overflow
2119         problems, fixing all the bugs I found.
2120
2121         Although the C Standard says the resulting code is still not safe
2122         in the presence of integer overflow, in practice it should be good
2123         enough for all real-world two's-complement implementations, except
2124         for debugging environments that deliberately trap on integer
2125         overflow (e.g., gcc -ftrapv).
2126
2127         * lib/mktime.c (WRAPV): New macro.
2128         (SHR): Also check that long_int and time_t shift right in the
2129         usual way, before using the fast-but-unportable method.
2130         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
2131         used.  The code already assumed two's complement, so there's
2132         no need to test for alternatives.  All uses removed.
2133         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
2134         the C standard.  Problem reported by Rich Felker in
2135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
2136         (twos_complement_arithmetic): Also check long_int and time_t.
2137         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
2138         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
2139         (__mktime_internal): Avoid integer overflow with unary subtraction
2140         in two instances where -1 - X is an adequate replacement for -X,
2141         since the calculations are approximate.
2142
2143 2011-01-29  Eric Blake  <eblake@redhat.com>
2144
2145         mktime: avoid infinite loop
2146         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
2147         type; behavior is still undefined but portable to all known targets.
2148         Reported by Rich Felker.
2149
2150 2011-01-29  Simon Josefsson  <simon@josefsson.org>
2151
2152         rename, unlink, same-inode: Relicense.
2153         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
2154         * modules/unlink (License): Likewise.
2155         * modules/same-inode (License): Likewise.
2156
2157 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2158
2159         mktime: avoid problems on NetBSD 5 / i386
2160         * lib/mktime.c (long_int): New type.  This works around a problem
2161         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
2162         but time_t is 64 bits, and where I expect the existing code is
2163         wrong in some cases.
2164         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
2165         (ydhms_diff): Bring back the compile-time check for wide-enough
2166         year and yday.
2167
2168         mktime: fix misspelling in comment
2169         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
2170         This merges all recent glibc changes of importance.
2171
2172 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2173
2174         move-if-change: cope with concurrent mv of identical file.
2175         * build-aux/move-if-change (CMPPROG): Accept environment
2176         variable as an override for `cmp'.
2177         (usage): Document CMPPROG.
2178         Adjust comparison to drop stdout.  Cope with failure of mv if
2179         the target file exists and is identical to the source, for
2180         parallel builds.
2181         Report from H.J. Lu against binutils in PR binutils/12283.
2182
2183 2011-01-28  Bruce Korb  <bkorb@gnu.org>
2184
2185         * users.txt: Mention sharutils.
2186
2187 2011-01-28  Simon Josefsson  <simon@josefsson.org>
2188
2189         * users.txt: Mention OATH Toolkit.
2190
2191 2011-01-27  Bruno Haible  <bruno@clisp.org>
2192
2193         Prepare for supporting FreeBSD 10.
2194         * build-aux/config.libpath: Remove handling of freebsd1*.
2195
2196 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
2197
2198         Prepare for supporting FreeBSD 10.
2199         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
2200         match FreeBSD 10.0.
2201
2202 2011-01-27  Bruno Haible  <bruno@clisp.org>
2203
2204         vma-iter, get-rusage-as: Add OpenBSD support.
2205         * modules/vma-iter (configure.ac): Test for mquery.
2206         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
2207         * lib/vma-iter.c: Include <sys/mman.h>.
2208         (vma_iterate): Add an implementation based on mquery().
2209         * lib/resource-ext.h (get_rusage_as): Update comments.
2210         * lib/get-rusage-as.c: Likewise.
2211         * lib/get-rusage-data.c: Likewise.
2212
2213 2011-01-26  Karl Berry  <karl@gnu.org>
2214
2215         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
2216         variables to make it easier to override the makeinfo program used.
2217
2218 2011-01-26  Eric Blake  <eblake@redhat.com>
2219
2220         fcntl: work around Haiku F_DUPFD bugs
2221         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
2222         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
2223         cloexec bit on duplication.
2224         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
2225
2226 2011-01-26  Bruno Haible  <bruno@clisp.org>
2227
2228         Enable memory leak tests on AIX.
2229         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
2230         * tests/test-fprintf-posix3.c (main): Likewise.
2231
2232 2011-01-26  Bruno Haible  <bruno@clisp.org>
2233
2234         Tests for module 'get-rusage-data'.
2235         * modules/get-rusage-data-tests: New file.
2236         * tests/test-get-rusage-data.c: New file.
2237
2238         New module 'get-rusage-data'.
2239         * lib/resource-ext.h (get_rusage_data): New declaration.
2240         * lib/get-rusage-data.c: New file.
2241         * modules/get-rusage-data: New file.
2242
2243 2011-01-25  Bruno Haible  <bruno@clisp.org>
2244
2245         get-rusage-as: Allow for easier testing.
2246         * lib/resource-ext.h (get_rusage_as): Add comment.
2247         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
2248         (main): New function for interactive testing.
2249
2250 2011-01-25  Bruno Haible  <bruno@clisp.org>
2251
2252         vma-iter: Treat Haiku like BeOS.
2253         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
2254         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
2255
2256 2011-01-25  Eric Blake  <eblake@redhat.com>
2257
2258         c-stack: fix regression on cygwin when libsigsegv is present
2259         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
2260
2261 2011-01-24  Bruno Haible  <bruno@clisp.org>
2262
2263         vma-iter: Avoid empty intervals.
2264         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
2265         on an empty interval.
2266
2267 2011-01-24  Jim Meyering  <meyering@redhat.com>
2268
2269         u64: remove unnecessary #include
2270         * lib/u64.h: Don't include <stddef.h>.  It was not used.
2271
2272 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2273
2274         Allow the user to avoid the GNULIB_TEST_* macros.
2275         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
2276
2277 2011-01-23  Bruno Haible  <bruno@clisp.org>
2278
2279         New module 'vma-iter'.
2280         * lib/vma-iter.h: New file.
2281         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
2282         * modules/vma-iter: New file.
2283         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
2284         for get_rusage_as_via_iterator.
2285         (vma_iterate_callback): New function.
2286         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
2287         * modules/get-rusage-as (Depends-on): Add vma-iter.
2288
2289 2011-01-23  Bruno Haible  <bruno@clisp.org>
2290
2291         uninorm: Tweak includes.
2292         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
2293         Reported by Jim Meyering.
2294
2295 2011-01-23  Bruno Haible  <bruno@clisp.org>
2296
2297         get-rusage-as: Improve on NetBSD.
2298         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
2299         /proc, like on FreeBSD.
2300
2301 2011-01-23  Jim Meyering  <meyering@redhat.com>
2302
2303         xreadlink.h: remove unnecessary #include
2304         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
2305
2306         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
2307         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
2308
2309 2011-01-23  Bruno Haible  <bruno@clisp.org>
2310
2311         get-rusage-as: Fix bug.
2312         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
2313         original limit when aborting the first loop.
2314
2315 2011-01-23  Bruno Haible  <bruno@clisp.org>
2316
2317         wctype: Ensure valid C syntax.
2318         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
2319         unconditionally, instead of gl_NEXT_HEADERS conditionally.
2320
2321 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2322
2323         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
2324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
2325         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
2326         as they are needed only for configure's test case.
2327         This removes two unnecessary symbols from config.h.
2328
2329         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
2330         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
2331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
2332         AC_CHECK_HEADERS_ONCE on a header that we also invoke
2333         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
2334         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
2335         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
2336         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2337         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2338         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2339         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2340         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2341         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2342         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2343         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2344         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2345         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2346         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2347
2348 2011-01-21  Eric Blake  <eblake@redhat.com>
2349
2350         maintainer-makefile: work with older git for submodule check
2351         * top/maint.mk (public-submodule-commit): Rewrite to avoid
2352         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
2353         Reported by Matthias Bolte.
2354
2355         bootstrap: minor portability fixes
2356         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
2357         (usage): Omit leading capital and trailing . on help phrases, per
2358         GNU Coding Standards.
2359         (check_versions, top level): Prefix messages with script name.
2360
2361 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
2362
2363         bootstrap: support --no-git option
2364         * build-aux/bootstrap: Add --no-git option, to be used when
2365         --gnulib-srcdir points to the exact desired checkout.
2366
2367 2011-01-21  Eric Blake  <eblake@redhat.com>
2368
2369         strerror_r-posix: work with glibc 2.13
2370         * lib/strerror_r.c (strerror_r): Fix return type.
2371
2372 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2373             Bruno Haible  <bruno@clisp.org>
2374
2375         uN_strstr: New unit tests.
2376         * modules/unistr/u8-strstr-tests: New file.
2377         * modules/unistr/u16-strstr-tests: New file.
2378         * modules/unistr/u32-strstr-tests: New file.
2379         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
2380         * tests/unistr/test-u8-strstr.c: New file.
2381         * tests/unistr/test-u16-strstr.c: New file.
2382         * tests/unistr/test-u32-strstr.c: New file.
2383
2384 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2385             Bruno Haible  <bruno@clisp.org>
2386
2387         Make uN_strstr functions O(n) worst-case.
2388         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
2389         16-bit and 32-bit unit cases, use the unibyte algorithm from
2390         lib/mbsstr.c.
2391         * lib/unistr/u8-strstr.c: Include <string.h>.
2392         (UNIT_IS_UINT8_T): New macro.
2393         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
2394         (U_STRLEN, U_STRNLEN): New macros.
2395         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
2396         (U_STRLEN, U_STRNLEN): New macros.
2397         * modules/unistr/u8-strstr (Depends-on): Add strstr.
2398         (configure.ac): Update required libunistring version.
2399         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
2400         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
2401         malloca.
2402         (configure.ac): Update required libunistring version.
2403         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
2404         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
2405         malloca.
2406         (configure.ac): Update required libunistring version.
2407
2408 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2409             Bruno Haible  <bruno@clisp.org>
2410
2411         Prepare for faster uN_strstr functions.
2412         * lib/str-kmp.h: Support definable UNITs.
2413         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
2414         needle_len argument.
2415         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
2416         * lib/mbscasestr.c (mbscasestr): Likewise.
2417
2418 2011-01-21  Pádraig Brady <P@draigBrady.com>
2419
2420         malloca-tests: make faster by unsetting MALLOC_PERTURB_
2421         * tests/test-malloca.c (main): Unset the environment variable
2422         to greatly speed up the test.
2423         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
2424         * modules/malloca-tests: Depend on unsetenv.
2425
2426 2011-01-21  Pádraig Brady <P@draigBrady.com>
2427
2428         ignore-value: remove stdint dependency
2429         * lib/ignore-value.h: Remove <stdint.h>
2430         * modules/ignore-value: Remove stdint dependency.
2431
2432 2011-01-21  Jim Meyering  <meyering@redhat.com>
2433
2434         maint.mk: adjust variable name to be consistent with other gl_ vars
2435         * top/maint.mk (gl_public_submodule_commit): Rename the variable
2436         to be lower case.
2437
2438 2011-01-20  Jim Meyering  <meyering@redhat.com>
2439
2440         maint.mk: make "check" depend on public-submodule-commit by default
2441         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
2442
2443 2011-01-20  Bruno Haible  <bruno@clisp.org>
2444
2445         mbfile, mbiter: Complete change from 2008-12-21.
2446         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
2447         * m4/mbiter.m4 (gl_MBITER): Likewise.
2448
2449 2011-01-20  Jim Meyering  <meyering@redhat.com>
2450
2451         init.sh: insert space between each function name and "()"
2452         * tests/init.sh: Make it a little easier to see that a function's
2453         name is "warn_", and not "warn" when looking at the first part of
2454         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
2455
2456 2011-01-20  Jim Meyering  <meyering@redhat.com>
2457
2458         mountlist: clean up code formatting
2459         * lib/mountlist.c (read_file_system_list): Split a long line,
2460         correct bracing style, use NULL in place of "(struct statfs *)0",
2461         don't parenthesize return value, add spaces around "=" and after
2462         ";-in-for-stmt".
2463
2464 2011-01-14  Markus Duft <mduft@gentoo.org>
2465
2466         mountlist: add support for Interix
2467         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
2468         Apply statvfs to all entries of /dev/fs.
2469         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
2470         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
2471
2472 2011-01-20  Jim Meyering  <meyering@redhat.com>
2473
2474         maint.mk: improve the public-submodule-commit rule
2475         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
2476         to suppress printing of its commands... unless V=1.
2477         Add git submodule's --quiet option to suppress printing of e.g.,
2478         "Entering gnulib" output.
2479         "cd" into $(srcdir) before running git submodule.
2480
2481 2011-01-20  Bruno Haible  <bruno@clisp.org>
2482
2483         include_next: Fix bug introduced on 2011-01-18.
2484         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
2485         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
2486         ac_cv_header_... variable if the second argument is not 'check'.
2487         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
2488         gl_NEXT_HEADERS_INTERNAL.
2489
2490 2011-01-20  Bruno Haible  <bruno@clisp.org>
2491
2492         Allow the user to avoid the GNULIB_TEST_* macros.
2493         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
2494         Suggested by Paul Eggert.
2495
2496 2011-01-14  Jim Meyering  <meyering@redhat.com>
2497
2498         bootstrap: avoid failure when there is no .gitmodules file
2499         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
2500         has been assigned to, even when its value is the empty string.
2501         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
2502         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
2503         Reported by John W. Eaton <jwe@gnu.org>.
2504
2505 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
2506
2507         assume <ctype.h>, ..., <time.h> exist
2508         For years gnulib has been assuming the existence of the headers
2509         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
2510         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
2511         them, since they don't appear to be needed.
2512         * README (Portability guidelines): Document this.
2513         * lib/flock.c: Assume <fcntl.h> exists.
2514         * lib/regex_internal.h: Assume <locale.h> exists.
2515         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
2516         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
2517         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
2518         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
2519         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
2520         * m4/regex.m4 (gl_REGEX): Likewise.
2521         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
2522         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
2523         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
2524         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
2525         * tests/test-argp.c: Likewise.
2526         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
2527
2528         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
2529         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
2530         AA_APPLE_UNIVERSAL_BUILD.  See
2531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
2532         * NEWS: Document this.
2533
2534 2011-01-19  Eric Blake  <eblake@redhat.com>
2535
2536         c-stack: assume stack overflow if SA_SIGINFO unsupported
2537         * lib/c-stack.c (SIGACTION_WORKS): Rename...
2538         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
2539         sigaction will work.
2540         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
2541         behavior match Linux.
2542         * tests/test-c-stack.c (main): Prefer NULL for pointers.
2543
2544         stdbool-tests: accomodate Haiku
2545         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
2546
2547         binary-io: fix O_TEXT on Haiku
2548         * modules/binary-io (Depends-on): Add fcntl-h.
2549         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
2550         than blindly undefining O_TEXT.
2551         Reported by Scott McCreary.
2552
2553 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2554
2555         include_next: do not check for standard headers like stddef.h
2556
2557         I found this problem when modifying Emacs to use gnulib.
2558         I noticed that it added HAVE_STDDEF_H to config.h, even though
2559         gnulib always assumes <stddef.h> exists as per README and this
2560         symbol is unnecessary.
2561         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
2562         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
2563         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
2564         faster for headers like stddef.h that are known to exist.
2565         (gl_CHECK_NEXT_HEADERS): Use it.
2566         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
2567         rather than gl_CHECK_NEXT_HEADERS.
2568         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
2569         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
2570
2571 2011-01-18  Eric Blake  <eblake@redhat.com>
2572
2573         ansi-c++-opt: skip C++ dependency style if C++ is unused
2574         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
2575         tests when we know C++ compilation is not desired.
2576         Reported by Scott McCreary.
2577
2578 2011-01-18  Bruno Haible  <bruno@clisp.org>
2579
2580         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
2581         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
2582         (main): Perform test also when getrlimit and setrlimit don't exist or
2583         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
2584         limiting the address space size using setrlimit, compare the address
2585         space size before and after the the test.
2586         * tests/test-dprintf-posix2.c: Likewise.
2587         * tests/test-fprintf-posix3.sh: Update skip messages.
2588         * tests/test-dprintf-posix2.sh: Likewise.
2589         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
2590         * modules/dprintf-posix-tests (Depends-on): Likewise.
2591         Reported by Bruce Korb <bkorb@gnu.org> and
2592         Gary V. Vaughan <gary@gnu.org>.
2593
2594 2011-01-18  Bruno Haible  <bruno@clisp.org>
2595
2596         get-rusage-as: Improvement for Cygwin.
2597         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
2598         areas that are merely reserved.
2599
2600 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2601
2602         strftime: remove dependencies on multibyte modules
2603
2604         strftime depended on mbrlen, mbsinit, and wchar, but these modules
2605         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
2606         only if __osf__ is defined, and I suspect OSF doesn't need these
2607         other modules.  If my guess is wrong, we'll need to come up with a
2608         variant of strftime that doesn't need the multibyte modules.
2609
2610         I discovered this problem when attempting modify Emacs to use the
2611         strftime module.  With the previous gnulib, this caused Emacs to
2612         need 31 new files, ranging from lib/config.charset to
2613         m4/wint_t.m4.  This was overkill and I expect would be offputting
2614         to the Emacs maintainers.  After this change, only 6 new files are
2615         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
2616         stdbool.m4, and tm_gmtoff.m4.
2617
2618         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
2619         Suggested by Bruno Haible in
2620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
2621         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
2622         and do not check for wchar.h.
2623         * modules/strftime (Files): Remove m4/mbstate_t.m4.
2624         (Depends-on): Remove mbrlen, mbsinit, wchar.
2625
2626 2011-01-18  Bruno Haible  <bruno@clisp.org>
2627
2628         Tests for module 'get-rusage-as'.
2629         * modules/get-rusage-as-tests: New file.
2630         * tests/test-get-rusage-as.c: New file.
2631
2632         New module 'get-rusage-as'.
2633         * modules/get-rusage-as: New file.
2634         * lib/resource-ext.h: New file.
2635         * lib/get-rusage-as.c: New file.
2636
2637 2011-01-17  Eric Blake  <eblake@redhat.com>
2638
2639         sigaction: relax license from LGPLv3+ to LGPLv2+
2640         * modules/sigaction (License): Relax to LGPLv2+.
2641
2642 2011-01-14  Bruno Haible  <bruno@clisp.org>
2643
2644         filemode: Make function declarations usable in C++ mode.
2645         * lib/filemode.h: Enclose function declarations in extern "C" block.
2646         Reported by John W. Eaton <jwe@gnu.org>.
2647
2648 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
2649
2650         save-cwd: no longer include "xgetcwd.h"
2651         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
2652         This avoids a compilation failure in projects that use save-cwd
2653         without also using the xgetcwd module.
2654
2655 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2656
2657         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
2658         This is so that a program like Emacs, which needs only dtoastr,
2659         does not have to bother with distributing and compiling ftoastr
2660         and ldtoastr.
2661         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
2662         * modules/dtoastr, modules/ldtoastr: New files.
2663         * modules/ftoastr: Now works just for 'float'.
2664         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
2665         (Makefile.am): Remove ftoastr.h (not needed and no effect),
2666         dtoastr.c, ldtoastr.c.
2667
2668 2011-01-11  Jim Meyering  <meyering@redhat.com>
2669
2670         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
2671         There is no need to work around the lack of the fchdir function,
2672         since gnulib can now provide a replacement when required.
2673         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
2674         * modules/save-cwd (Depends-on): Add fchdir.
2675
2676 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2677
2678         openat, save-cwd: avoid xmalloc
2679
2680         This removes a direct (but undocumented) dependency of openat on
2681         xalloc, along with an indirect dependency via save-cwd.  It also
2682         removes a dependency of save-cwd on xgetcwd, and thereby
2683         indirectly on xalloc.  This change causes the openat substitute
2684         to fall back on save_cwd when memory is tight, and for save_cwd to
2685         fail instead of dying when memory is tight, but that's good enough.
2686         Problem and initial idea for fix reported by Bastien Roucaries in
2687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
2688
2689         * lib/openat-proc.c: Include stdlib.h (for malloc), not
2690         xalloc.h (for xmalloc).
2691         (openat_proc_name): Use malloc, not xmalloc.
2692         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
2693         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
2694
2695         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
2696         This avoids heap allocation for file names whose lengths are in
2697         the range 512..1023, with the upper bound increasing to at most
2698         4031 depending on the platform's PATH_MAX.  (We do not want
2699         pathmax.h here as it might supply a non-constant PATH_MAX.)
2700         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
2701         Perhaps they should be moved to malloca.h?
2702         (OPENAT_BUFFER_SIZE): Use them.
2703
2704 2011-01-10  Bruno Haible  <bruno@clisp.org>
2705
2706         doc: Update users.txt.
2707         * users.txt: Add recutils.
2708
2709 2011-01-09  Karl Berry  <karl@gnu.org>
2710
2711         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
2712
2713         * doc/configmake.texi: New file.
2714         * doc/gnulib.texi: Include it.
2715         * modules/configmake: Move documentation from here.
2716
2717 2011-01-09  Bruno Haible  <bruno@clisp.org>
2718
2719         Update to Unicode 6.0.0.
2720         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
2721         (get_lbp): Update for Unicode 6.0.0.
2722         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
2723         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
2724         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
2725         U+11001, U+11038..U+11046. Remove U+06DE.
2726         (uc_width): Fix bounds of planes.
2727         * tests/uniwidth/test-uc_width2.sh: Same updates as in
2728         lib/uniwidth/width.c.
2729         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
2730         trailing whitespace removed.
2731         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
2732         without comments, but with the original copyright notice.
2733         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
2734         * lib/unicase/ignorable.h: Likewise.
2735         * lib/unicase/tocasefold.h: Likewise.
2736         * lib/unicase/tolower.h: Likewise.
2737         * lib/unicase/totitle.h: Likewise.
2738         * lib/unicase/toupper.h: Likewise.
2739         * lib/unictype/bidi_of.h: Likewise.
2740         * lib/unictype/blocks.h: Likewise.
2741         * lib/unictype/categ_C.h: Likewise.
2742         * lib/unictype/categ_Cn.h: Likewise.
2743         * lib/unictype/categ_L.h: Likewise.
2744         * lib/unictype/categ_Ll.h: Likewise.
2745         * lib/unictype/categ_Lm.h: Likewise.
2746         * lib/unictype/categ_Lo.h: Likewise.
2747         * lib/unictype/categ_Lu.h: Likewise.
2748         * lib/unictype/categ_M.h: Likewise.
2749         * lib/unictype/categ_Mc.h: Likewise.
2750         * lib/unictype/categ_Me.h: Likewise.
2751         * lib/unictype/categ_Mn.h: Likewise.
2752         * lib/unictype/categ_N.h: Likewise.
2753         * lib/unictype/categ_Nd.h: Likewise.
2754         * lib/unictype/categ_No.h: Likewise.
2755         * lib/unictype/categ_P.h: Likewise.
2756         * lib/unictype/categ_Po.h: Likewise.
2757         * lib/unictype/categ_S.h: Likewise.
2758         * lib/unictype/categ_Sc.h: Likewise.
2759         * lib/unictype/categ_Sk.h: Likewise.
2760         * lib/unictype/categ_Sm.h: Likewise.
2761         * lib/unictype/categ_So.h: Likewise.
2762         * lib/unictype/categ_of.h: Likewise.
2763         * lib/unictype/combining.h: Likewise.
2764         * lib/unictype/ctype_alnum.h: Likewise.
2765         * lib/unictype/ctype_alpha.h: Likewise.
2766         * lib/unictype/ctype_graph.h: Likewise.
2767         * lib/unictype/ctype_lower.h: Likewise.
2768         * lib/unictype/ctype_print.h: Likewise.
2769         * lib/unictype/ctype_punct.h: Likewise.
2770         * lib/unictype/ctype_upper.h: Likewise.
2771         * lib/unictype/decdigit.h: Likewise.
2772         * lib/unictype/digit.h: Likewise.
2773         * lib/unictype/numeric.h: Likewise.
2774         * lib/unictype/pr_alphabetic.h: Likewise.
2775         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2776         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2777         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2778         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2779         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2780         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2781         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2782         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2783         * lib/unictype/pr_case_ignorable.h: Likewise.
2784         * lib/unictype/pr_cased.h: Likewise.
2785         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
2786         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
2787         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
2788         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
2789         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
2790         * lib/unictype/pr_combining.h: Likewise.
2791         * lib/unictype/pr_composite.h: Likewise.
2792         * lib/unictype/pr_currency_symbol.h: Likewise.
2793         * lib/unictype/pr_decimal_digit.h: Likewise.
2794         * lib/unictype/pr_deprecated.h: Likewise.
2795         * lib/unictype/pr_format_control.h: Likewise.
2796         * lib/unictype/pr_grapheme_base.h: Likewise.
2797         * lib/unictype/pr_grapheme_extend.h: Likewise.
2798         * lib/unictype/pr_grapheme_link.h: Likewise.
2799         * lib/unictype/pr_id_continue.h: Likewise.
2800         * lib/unictype/pr_id_start.h: Likewise.
2801         * lib/unictype/pr_ideographic.h: Likewise.
2802         * lib/unictype/pr_lowercase.h: Likewise.
2803         * lib/unictype/pr_math.h: Likewise.
2804         * lib/unictype/pr_numeric.h: Likewise.
2805         * lib/unictype/pr_other_alphabetic.h: Likewise.
2806         * lib/unictype/pr_other_id_continue.h: Likewise.
2807         * lib/unictype/pr_other_math.h: Likewise.
2808         * lib/unictype/pr_punctuation.h: Likewise.
2809         * lib/unictype/pr_sentence_terminal.h: Likewise.
2810         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2811         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2812         * lib/unictype/pr_unified_ideograph.h: Likewise.
2813         * lib/unictype/pr_uppercase.h: Likewise.
2814         * lib/unictype/pr_xid_continue.h: Likewise.
2815         * lib/unictype/pr_xid_start.h: Likewise.
2816         * lib/unictype/scripts.h: Likewise.
2817         * lib/unictype/scripts_byname.gperf: Likewise.
2818         * lib/unictype/sy_java_ident.h: Likewise.
2819         * lib/unigbrk/gbrkprop.h: Likewise.
2820         * lib/unilbrk/lbrkprop1.h: Likewise.
2821         * lib/unilbrk/lbrkprop2.h: Likewise.
2822         * lib/uninorm/decomposition-table2.h: Likewise.
2823         * lib/uniwbrk/wbrkprop.h: Likewise.
2824         * tests/unicase/test-cased.c: Likewise.
2825         * tests/unicase/test-ignorable.c: Likewise.
2826         * tests/unicase/test-uc_tolower.c: Likewise.
2827         * tests/unicase/test-uc_totitle.c: Likewise.
2828         * tests/unicase/test-uc_toupper.c: Likewise.
2829         * tests/unictype/test-categ_C.c: Likewise.
2830         * tests/unictype/test-categ_Cn.c: Likewise.
2831         * tests/unictype/test-categ_L.c: Likewise.
2832         * tests/unictype/test-categ_Ll.c: Likewise.
2833         * tests/unictype/test-categ_Lm.c: Likewise.
2834         * tests/unictype/test-categ_Lo.c: Likewise.
2835         * tests/unictype/test-categ_Lu.c: Likewise.
2836         * tests/unictype/test-categ_M.c: Likewise.
2837         * tests/unictype/test-categ_Mc.c: Likewise.
2838         * tests/unictype/test-categ_Me.c: Likewise.
2839         * tests/unictype/test-categ_Mn.c: Likewise.
2840         * tests/unictype/test-categ_N.c: Likewise.
2841         * tests/unictype/test-categ_Nd.c: Likewise.
2842         * tests/unictype/test-categ_No.c: Likewise.
2843         * tests/unictype/test-categ_P.c: Likewise.
2844         * tests/unictype/test-categ_Po.c: Likewise.
2845         * tests/unictype/test-categ_S.c: Likewise.
2846         * tests/unictype/test-categ_Sc.c: Likewise.
2847         * tests/unictype/test-categ_Sk.c: Likewise.
2848         * tests/unictype/test-categ_Sm.c: Likewise.
2849         * tests/unictype/test-categ_So.c: Likewise.
2850         * tests/unictype/test-ctype_alnum.c: Likewise.
2851         * tests/unictype/test-ctype_alpha.c: Likewise.
2852         * tests/unictype/test-ctype_graph.c: Likewise.
2853         * tests/unictype/test-ctype_lower.c: Likewise.
2854         * tests/unictype/test-ctype_print.c: Likewise.
2855         * tests/unictype/test-ctype_punct.c: Likewise.
2856         * tests/unictype/test-ctype_upper.c: Likewise.
2857         * tests/unictype/test-decdigit.h: Likewise.
2858         * tests/unictype/test-digit.h: Likewise.
2859         * tests/unictype/test-numeric.h: Likewise.
2860         * tests/unictype/test-pr_alphabetic.c: Likewise.
2861         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2862         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
2863         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
2864         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2865         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2866         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2867         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2868         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2869         * tests/unictype/test-pr_case_ignorable.c: Likewise.
2870         * tests/unictype/test-pr_cased.c: Likewise.
2871         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
2872         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
2873         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
2874         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
2875         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
2876         * tests/unictype/test-pr_combining.c: Likewise.
2877         * tests/unictype/test-pr_composite.c: Likewise.
2878         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2879         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2880         * tests/unictype/test-pr_deprecated.c: Likewise.
2881         * tests/unictype/test-pr_format_control.c: Likewise.
2882         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2883         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2884         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2885         * tests/unictype/test-pr_id_continue.c: Likewise.
2886         * tests/unictype/test-pr_id_start.c: Likewise.
2887         * tests/unictype/test-pr_ideographic.c: Likewise.
2888         * tests/unictype/test-pr_lowercase.c: Likewise.
2889         * tests/unictype/test-pr_math.c: Likewise.
2890         * tests/unictype/test-pr_numeric.c: Likewise.
2891         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2892         * tests/unictype/test-pr_other_id_continue.c: Likewise.
2893         * tests/unictype/test-pr_other_math.c: Likewise.
2894         * tests/unictype/test-pr_punctuation.c: Likewise.
2895         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2896         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2897         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2898         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2899         * tests/unictype/test-pr_uppercase.c: Likewise.
2900         * tests/unictype/test-pr_xid_continue.c: Likewise.
2901         * tests/unictype/test-pr_xid_start.c: Likewise.
2902         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
2903         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
2904         changes.
2905         * lib/unictype/categ_Cc.h: Likewise.
2906         * lib/unictype/categ_Cf.h: Likewise.
2907         * lib/unictype/categ_Co.h: Likewise.
2908         * lib/unictype/categ_Cs.h: Likewise.
2909         * lib/unictype/categ_Lt.h: Likewise.
2910         * lib/unictype/categ_Nl.h: Likewise.
2911         * lib/unictype/categ_Pc.h: Likewise.
2912         * lib/unictype/categ_Pd.h: Likewise.
2913         * lib/unictype/categ_Pe.h: Likewise.
2914         * lib/unictype/categ_Pf.h: Likewise.
2915         * lib/unictype/categ_Pi.h: Likewise.
2916         * lib/unictype/categ_Ps.h: Likewise.
2917         * lib/unictype/categ_Z.h: Likewise.
2918         * lib/unictype/categ_Zl.h: Likewise.
2919         * lib/unictype/categ_Zp.h: Likewise.
2920         * lib/unictype/categ_Zs.h: Likewise.
2921         * lib/unictype/ctype_blank.h: Likewise.
2922         * lib/unictype/ctype_cntrl.h: Likewise.
2923         * lib/unictype/ctype_digit.h: Likewise.
2924         * lib/unictype/ctype_space.h: Likewise.
2925         * lib/unictype/ctype_xdigit.h: Likewise.
2926         * lib/unictype/mirror.h: Likewise.
2927         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2928         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2929         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2930         * lib/unictype/pr_bidi_control.h: Likewise.
2931         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2932         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2933         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2934         * lib/unictype/pr_bidi_pdf.h: Likewise.
2935         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2936         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2937         * lib/unictype/pr_dash.h: Likewise.
2938         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2939         * lib/unictype/pr_diacritic.h: Likewise.
2940         * lib/unictype/pr_extender.h: Likewise.
2941         * lib/unictype/pr_hex_digit.h: Likewise.
2942         * lib/unictype/pr_hyphen.h: Likewise.
2943         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2944         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2945         * lib/unictype/pr_ignorable_control.h: Likewise.
2946         * lib/unictype/pr_iso_control.h: Likewise.
2947         * lib/unictype/pr_join_control.h: Likewise.
2948         * lib/unictype/pr_left_of_pair.h: Likewise.
2949         * lib/unictype/pr_line_separator.h: Likewise.
2950         * lib/unictype/pr_logical_order_exception.h: Likewise.
2951         * lib/unictype/pr_non_break.h: Likewise.
2952         * lib/unictype/pr_not_a_character.h: Likewise.
2953         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2954         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2955         * lib/unictype/pr_other_id_start.h: Likewise.
2956         * lib/unictype/pr_other_lowercase.h: Likewise.
2957         * lib/unictype/pr_other_uppercase.h: Likewise.
2958         * lib/unictype/pr_paired_punctuation.h: Likewise.
2959         * lib/unictype/pr_paragraph_separator.h: Likewise.
2960         * lib/unictype/pr_pattern_syntax.h: Likewise.
2961         * lib/unictype/pr_pattern_white_space.h: Likewise.
2962         * lib/unictype/pr_private_use.h: Likewise.
2963         * lib/unictype/pr_quotation_mark.h: Likewise.
2964         * lib/unictype/pr_radical.h: Likewise.
2965         * lib/unictype/pr_soft_dotted.h: Likewise.
2966         * lib/unictype/pr_space.h: Likewise.
2967         * lib/unictype/pr_titlecase.h: Likewise.
2968         * lib/unictype/pr_variation_selector.h: Likewise.
2969         * lib/unictype/pr_white_space.h: Likewise.
2970         * lib/unictype/pr_zero_width.h: Likewise.
2971         * lib/unictype/sy_c_ident.h: Likewise.
2972         * lib/unictype/sy_c_whitespace.h: Likewise.
2973         * lib/unictype/sy_java_whitespace.h: Likewise.
2974         * lib/uninorm/composition-table.gperf: Likewise.
2975         * lib/uninorm/decomposition-table1.h: Likewise.
2976         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
2977         LB8.
2978         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2979         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2980         * modules/unictype/*: Bump version number of expected libunistring
2981         version.
2982
2983 2011-01-09  Bruno Haible  <bruno@clisp.org>
2984
2985         Update to Unicode 5.2.0.
2986         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
2987         trailing whitespace removed.
2988
2989 2011-01-09  Bruno Haible  <bruno@clisp.org>
2990
2991         New Unicode character properties, from Unicode 5.2.0.
2992         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
2993         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
2994         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
2995         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
2996         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
2997         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
2998         uc_is_property_cased, uc_is_property_case_ignorable,
2999         uc_is_property_changes_when_lowercased,
3000         uc_is_property_changes_when_uppercased,
3001         uc_is_property_changes_when_titlecased,
3002         uc_is_property_changes_when_casefolded,
3003         uc_is_property_changes_when_casemapped): New declarations.
3004         * lib/unictype/pr_byname.gperf: Add the new properties.
3005         * modules/unictype/property-byname (Depends-on): Depend on the new
3006         properties modules.
3007         * modules/unictype/property-all (Depends-on): Likewise.
3008         * MODULES.html.sh (Unicode string functions): Add
3009         unictype/property-case-ignorable, unictype/property-cased,
3010         unictype/property-changes-when-casefolded,
3011         unictype/property-changes-when-casemapped,
3012         unictype/property-changes-when-lowercased,
3013         unictype/property-changes-when-titlecased,
3014         unictype/property-changes-when-uppercased.
3015
3016         New module 'unictype/property-changes-when-casemapped'.
3017         * modules/unictype/property-changes-when-casemapped: New file.
3018         * lib/unictype/pr_changes_when_casemapped.c: New file.
3019         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
3020         generated by gen-uni-tables.
3021         * modules/unictype/property-changes-when-casemapped-tests: New file.
3022         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
3023         automatically generated by gen-uni-tables.
3024
3025         New module 'unictype/property-changes-when-casefolded'.
3026         * modules/unictype/property-changes-when-casefolded: New file.
3027         * lib/unictype/pr_changes_when_casefolded.c: New file.
3028         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
3029         generated by gen-uni-tables.
3030         * modules/unictype/property-changes-when-casefolded-tests: New file.
3031         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
3032         automatically generated by gen-uni-tables.
3033
3034         New module 'unictype/property-changes-when-titlecased'.
3035         * modules/unictype/property-changes-when-titlecased: New file.
3036         * lib/unictype/pr_changes_when_titlecased.c: New file.
3037         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
3038         generated by gen-uni-tables.
3039         * modules/unictype/property-changes-when-titlecased-tests: New file.
3040         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
3041         automatically generated by gen-uni-tables.
3042
3043         New module 'unictype/property-changes-when-uppercased'.
3044         * modules/unictype/property-changes-when-uppercased: New file.
3045         * lib/unictype/pr_changes_when_uppercased.c: New file.
3046         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
3047         generated by gen-uni-tables.
3048         * modules/unictype/property-changes-when-uppercased-tests: New file.
3049         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
3050         automatically generated by gen-uni-tables.
3051
3052         New module 'unictype/property-changes-when-lowercased'.
3053         * modules/unictype/property-changes-when-lowercased: New file.
3054         * lib/unictype/pr_changes_when_lowercased.c: New file.
3055         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
3056         generated by gen-uni-tables.
3057         * modules/unictype/property-changes-when-lowercased-tests: New file.
3058         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
3059         automatically generated by gen-uni-tables.
3060
3061         New module 'unictype/property-case-ignorable'.
3062         * modules/unictype/property-case-ignorable: New file.
3063         * lib/unictype/pr_case_ignorable.c: New file.
3064         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
3065         by gen-uni-tables.
3066         * modules/unictype/property-case-ignorable-tests: New file.
3067         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
3068         generated by gen-uni-tables.
3069
3070         New module 'unictype/property-cased'.
3071         * modules/unictype/property-cased: New file.
3072         * lib/unictype/pr_cased.c: New file.
3073         * lib/unictype/pr_cased.h: New file, automatically generated by
3074         gen-uni-tables.
3075         * modules/unictype/property-cased-tests: New file.
3076         * tests/unictype/test-pr_cased.c: New file, automatically generated by
3077         gen-uni-tables.
3078
3079 2011-01-09  Bruno Haible  <bruno@clisp.org>
3080
3081         Update to Unicode 5.2.0.
3082         * lib/gen-uni-tables.c (output_predicate, output_category,
3083         output_combclass, output_bidi_category, output_decimal_digit_test,
3084         output_decimal_digit, output_digit_test, output_digit,
3085         output_numeric_test, output_numeric, output_mirror, output_scripts,
3086         output_scripts_byname, output_blocks, output_ident_category): Fix
3087         comment header.
3088         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
3089         get_wbp.
3090         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
3091         items.
3092         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
3093         Changes_When_Lowercased, Changes_When_Uppercased,
3094         Changes_When_Titlecased, Changes_When_Casefolded,
3095         Changes_When_Casemapped.
3096         (is_property_alphabetic, is_property_default_ignorable_code_point):
3097         Update for Unicode 5.2.0.
3098         (is_property_cased, is_property_case_ignorable,
3099         is_property_changes_when_lowercased,
3100         is_property_changes_when_uppercased,
3101         is_property_changes_when_titlecased,
3102         is_property_changes_when_casefolded,
3103         is_property_changes_when_casemapped): New functions.
3104         (output_properties): Output also the properties cased, case_ignorable,
3105         changes_when_lowercased, changes_when_uppercased,
3106         changes_when_titlecased, changes_when_casefolded,
3107         changes_when_casemapped.
3108         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
3109         Unicode TR#11 revision 17 -> 19.
3110         (LBP_CP): New enumeration value.
3111         (LBP_*): Adjust values accordingly.
3112         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3113         TR#14 revision 22 -> 24.
3114         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
3115         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
3116         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3117         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
3118         is_WBP_MIDLETTER.
3119         (output_composition_tables): Allow for 24 bits instead of 16 bits in
3120         the code1 and code2 of each composition rule.
3121         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
3122         * lib/unicase/ignorable.h: Likewise.
3123         * lib/unicase/tocasefold.h: Likewise.
3124         * lib/unicase/tolower.h: Likewise.
3125         * lib/unicase/totitle.h: Likewise.
3126         * lib/unicase/toupper.h: Likewise.
3127         * lib/unictype/bidi_of.h: Likewise.
3128         * lib/unictype/blocks.h: Likewise.
3129         * lib/unictype/categ_C.h: Likewise.
3130         * lib/unictype/categ_Cf.h: Likewise.
3131         * lib/unictype/categ_Cn.h: Likewise.
3132         * lib/unictype/categ_L.h: Likewise.
3133         * lib/unictype/categ_Ll.h: Likewise.
3134         * lib/unictype/categ_Lm.h: Likewise.
3135         * lib/unictype/categ_Lo.h: Likewise.
3136         * lib/unictype/categ_Lu.h: Likewise.
3137         * lib/unictype/categ_M.h: Likewise.
3138         * lib/unictype/categ_Mc.h: Likewise.
3139         * lib/unictype/categ_Mn.h: Likewise.
3140         * lib/unictype/categ_N.h: Likewise.
3141         * lib/unictype/categ_Nd.h: Likewise.
3142         * lib/unictype/categ_Nl.h: Likewise.
3143         * lib/unictype/categ_No.h: Likewise.
3144         * lib/unictype/categ_P.h: Likewise.
3145         * lib/unictype/categ_Pd.h: Likewise.
3146         * lib/unictype/categ_Po.h: Likewise.
3147         * lib/unictype/categ_S.h: Likewise.
3148         * lib/unictype/categ_Sc.h: Likewise.
3149         * lib/unictype/categ_So.h: Likewise.
3150         * lib/unictype/categ_of.h: Likewise.
3151         * lib/unictype/combining.h: Likewise.
3152         * lib/unictype/ctype_alnum.h: Likewise.
3153         * lib/unictype/ctype_alpha.h: Likewise.
3154         * lib/unictype/ctype_graph.h: Likewise.
3155         * lib/unictype/ctype_lower.h: Likewise.
3156         * lib/unictype/ctype_print.h: Likewise.
3157         * lib/unictype/ctype_punct.h: Likewise.
3158         * lib/unictype/ctype_upper.h: Likewise.
3159         * lib/unictype/decdigit.h: Likewise.
3160         * lib/unictype/digit.h: Likewise.
3161         * lib/unictype/numeric.h: Likewise.
3162         * lib/unictype/pr_alphabetic.h: Likewise.
3163         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3164         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3165         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3166         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3167         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3168         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3169         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3170         * lib/unictype/pr_combining.h: Likewise.
3171         * lib/unictype/pr_composite.h: Likewise.
3172         * lib/unictype/pr_currency_symbol.h: Likewise.
3173         * lib/unictype/pr_dash.h: Likewise.
3174         * lib/unictype/pr_decimal_digit.h: Likewise.
3175         * lib/unictype/pr_deprecated.h: Likewise.
3176         * lib/unictype/pr_diacritic.h: Likewise.
3177         * lib/unictype/pr_extender.h: Likewise.
3178         * lib/unictype/pr_grapheme_base.h: Likewise.
3179         * lib/unictype/pr_grapheme_extend.h: Likewise.
3180         * lib/unictype/pr_grapheme_link.h: Likewise.
3181         * lib/unictype/pr_id_continue.h: Likewise.
3182         * lib/unictype/pr_id_start.h: Likewise.
3183         * lib/unictype/pr_ideographic.h: Likewise.
3184         * lib/unictype/pr_ignorable_control.h: Likewise.
3185         * lib/unictype/pr_logical_order_exception.h: Likewise.
3186         * lib/unictype/pr_lowercase.h: Likewise.
3187         * lib/unictype/pr_numeric.h: Likewise.
3188         * lib/unictype/pr_other_alphabetic.h: Likewise.
3189         * lib/unictype/pr_punctuation.h: Likewise.
3190         * lib/unictype/pr_sentence_terminal.h: Likewise.
3191         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3192         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3193         * lib/unictype/pr_unified_ideograph.h: Likewise.
3194         * lib/unictype/pr_uppercase.h: Likewise.
3195         * lib/unictype/pr_xid_continue.h: Likewise.
3196         * lib/unictype/pr_xid_start.h: Likewise.
3197         * lib/unictype/pr_zero_width.h: Likewise.
3198         * lib/unictype/scripts.h: Likewise.
3199         * lib/unictype/scripts_byname.gperf: Likewise.
3200         * lib/unictype/sy_java_ident.h: Likewise.
3201         * lib/unigbrk/gbrkprop.h: Likewise.
3202         * lib/unilbrk/lbrkprop1.h: Likewise.
3203         * lib/unilbrk/lbrkprop2.h: Likewise.
3204         * lib/unilbrk/lbrktables.h: Likewise.
3205         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
3206         LBP_CP. Implement rule LB30.
3207         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
3208         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
3209         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
3210         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
3211         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
3212         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
3213         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
3214         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
3215         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
3216         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
3217         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
3218         bits instead of 16 bits in the code1 and code2 of each composition
3219         rule.
3220         (uc_composition): Update for Unicode 5.2.0.
3221         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
3222         * lib/uninorm/decomposition-table2.h: Likewise.
3223         * lib/uniwbrk/wbrkprop.h: Likewise.
3224         * tests/unicase/test-cased.c: Likewise.
3225         * tests/unicase/test-ignorable.c: Likewise.
3226         * tests/unicase/test-uc_tolower.c: Likewise.
3227         * tests/unicase/test-uc_totitle.c: Likewise.
3228         * tests/unicase/test-uc_toupper.c: Likewise.
3229         * tests/unictype/test-categ_C.c: Likewise.
3230         * tests/unictype/test-categ_Cf.c: Likewise.
3231         * tests/unictype/test-categ_Cn.c: Likewise.
3232         * tests/unictype/test-categ_L.c: Likewise.
3233         * tests/unictype/test-categ_Ll.c: Likewise.
3234         * tests/unictype/test-categ_Lm.c: Likewise.
3235         * tests/unictype/test-categ_Lo.c: Likewise.
3236         * tests/unictype/test-categ_Lu.c: Likewise.
3237         * tests/unictype/test-categ_M.c: Likewise.
3238         * tests/unictype/test-categ_Mc.c: Likewise.
3239         * tests/unictype/test-categ_Mn.c: Likewise.
3240         * tests/unictype/test-categ_N.c: Likewise.
3241         * tests/unictype/test-categ_Nd.c: Likewise.
3242         * tests/unictype/test-categ_Nl.c: Likewise.
3243         * tests/unictype/test-categ_No.c: Likewise.
3244         * tests/unictype/test-categ_P.c: Likewise.
3245         * tests/unictype/test-categ_Pd.c: Likewise.
3246         * tests/unictype/test-categ_Po.c: Likewise.
3247         * tests/unictype/test-categ_S.c: Likewise.
3248         * tests/unictype/test-categ_Sc.c: Likewise.
3249         * tests/unictype/test-categ_So.c: Likewise.
3250         * tests/unictype/test-ctype_alnum.c: Likewise.
3251         * tests/unictype/test-ctype_alpha.c: Likewise.
3252         * tests/unictype/test-ctype_graph.c: Likewise.
3253         * tests/unictype/test-ctype_lower.c: Likewise.
3254         * tests/unictype/test-ctype_print.c: Likewise.
3255         * tests/unictype/test-ctype_punct.c: Likewise.
3256         * tests/unictype/test-ctype_upper.c: Likewise.
3257         * tests/unictype/test-decdigit.h: Likewise.
3258         * tests/unictype/test-digit.h: Likewise.
3259         * tests/unictype/test-numeric.h: Likewise.
3260         * tests/unictype/test-pr_alphabetic.c: Likewise.
3261         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3262         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3263         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3264         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3265         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3266         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3267         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3268         * tests/unictype/test-pr_combining.c: Likewise.
3269         * tests/unictype/test-pr_composite.c: Likewise.
3270         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3271         * tests/unictype/test-pr_dash.c: Likewise.
3272         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3273         * tests/unictype/test-pr_deprecated.c: Likewise.
3274         * tests/unictype/test-pr_diacritic.c: Likewise.
3275         * tests/unictype/test-pr_extender.c: Likewise.
3276         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3277         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3278         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3279         * tests/unictype/test-pr_id_continue.c: Likewise.
3280         * tests/unictype/test-pr_id_start.c: Likewise.
3281         * tests/unictype/test-pr_ideographic.c: Likewise.
3282         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3283         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3284         * tests/unictype/test-pr_lowercase.c: Likewise.
3285         * tests/unictype/test-pr_numeric.c: Likewise.
3286         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3287         * tests/unictype/test-pr_punctuation.c: Likewise.
3288         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3289         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3290         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3291         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3292         * tests/unictype/test-pr_uppercase.c: Likewise.
3293         * tests/unictype/test-pr_xid_continue.c: Likewise.
3294         * tests/unictype/test-pr_xid_start.c: Likewise.
3295         * tests/unictype/test-pr_zero_width.c: Likewise.
3296         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3297         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
3298         changed behaviour: line breaking is now disallowed between a letter
3299         or '=' and '('.
3300         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3301         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3302         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3303         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
3304         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3305         lib/uniwidth/width.c.
3306         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
3307         without comments, but with the original copyright notice.
3308         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3309         changes.
3310         * lib/unictype/categ_Cc.h: Likewise.
3311         * lib/unictype/categ_Co.h: Likewise.
3312         * lib/unictype/categ_Cs.h: Likewise.
3313         * lib/unictype/categ_Lt.h: Likewise.
3314         * lib/unictype/categ_Me.h: Likewise.
3315         * lib/unictype/categ_Pc.h: Likewise.
3316         * lib/unictype/categ_Pe.h: Likewise.
3317         * lib/unictype/categ_Pf.h: Likewise.
3318         * lib/unictype/categ_Pi.h: Likewise.
3319         * lib/unictype/categ_Ps.h: Likewise.
3320         * lib/unictype/categ_Sk.h: Likewise.
3321         * lib/unictype/categ_Sm.h: Likewise.
3322         * lib/unictype/categ_Z.h: Likewise.
3323         * lib/unictype/categ_Zl.h: Likewise.
3324         * lib/unictype/categ_Zp.h: Likewise.
3325         * lib/unictype/categ_Zs.h: Likewise.
3326         * lib/unictype/ctype_blank.h: Likewise.
3327         * lib/unictype/ctype_cntrl.h: Likewise.
3328         * lib/unictype/ctype_digit.h: Likewise.
3329         * lib/unictype/ctype_space.h: Likewise.
3330         * lib/unictype/ctype_xdigit.h: Likewise.
3331         * lib/unictype/mirror.h: Likewise.
3332         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3333         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3334         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3335         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3336         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3337         * lib/unictype/pr_bidi_control.h: Likewise.
3338         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3339         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3340         * lib/unictype/pr_bidi_pdf.h: Likewise.
3341         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3342         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3343         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3344         * lib/unictype/pr_format_control.h: Likewise.
3345         * lib/unictype/pr_hex_digit.h: Likewise.
3346         * lib/unictype/pr_hyphen.h: Likewise.
3347         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3348         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3349         * lib/unictype/pr_iso_control.h: Likewise.
3350         * lib/unictype/pr_join_control.h: Likewise.
3351         * lib/unictype/pr_left_of_pair.h: Likewise.
3352         * lib/unictype/pr_line_separator.h: Likewise.
3353         * lib/unictype/pr_math.h: Likewise.
3354         * lib/unictype/pr_non_break.h: Likewise.
3355         * lib/unictype/pr_not_a_character.h: Likewise.
3356         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3357         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3358         * lib/unictype/pr_other_id_continue.h: Likewise.
3359         * lib/unictype/pr_other_id_start.h: Likewise.
3360         * lib/unictype/pr_other_lowercase.h: Likewise.
3361         * lib/unictype/pr_other_math.h: Likewise.
3362         * lib/unictype/pr_other_uppercase.h: Likewise.
3363         * lib/unictype/pr_paired_punctuation.h: Likewise.
3364         * lib/unictype/pr_paragraph_separator.h: Likewise.
3365         * lib/unictype/pr_pattern_syntax.h: Likewise.
3366         * lib/unictype/pr_pattern_white_space.h: Likewise.
3367         * lib/unictype/pr_private_use.h: Likewise.
3368         * lib/unictype/pr_quotation_mark.h: Likewise.
3369         * lib/unictype/pr_radical.h: Likewise.
3370         * lib/unictype/pr_soft_dotted.h: Likewise.
3371         * lib/unictype/pr_space.h: Likewise.
3372         * lib/unictype/pr_titlecase.h: Likewise.
3373         * lib/unictype/pr_variation_selector.h: Likewise.
3374         * lib/unictype/pr_white_space.h: Likewise.
3375         * lib/unictype/sy_c_ident.h: Likewise.
3376         * lib/unictype/sy_c_whitespace.h: Likewise.
3377         * lib/unictype/sy_java_whitespace.h: Likewise.
3378         * modules/uni*/*: Bump version number of expected libunistring version.
3379         Reported by Simon Josefsson.
3380
3381 2011-01-09  Karl Heuer  <kwzh@gnu.org>
3382
3383         useless-if-before-free: fix typo in --help and make the internal,
3384         automatic version date update process work once again.
3385         --help output contained a NUL character instead of the
3386         backslash-zero that was intended.  Also, the "must lie within
3387         the first 8 lines" line is on line 9, and hence not getting
3388         automatically updated.
3389         * build-aux/useless-if-before-free: Fix the former by adding a
3390         backslash, and the latter by condensing the three lines of what-it-does
3391         to a single line, leaving one line of slack for the future.
3392
3393 2011-01-09  Bruno Haible  <bruno@clisp.org>
3394
3395         uniwidth/width: Fix width of U+1D173..U+1D17A.
3396         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
3397         symbolic_width, output_width_property_test): New functions.
3398         (main): Invoke output_nonspacing_property, output_width_property_test.
3399         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
3400         U+1D173..U+1D17A.
3401         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
3402         1.
3403         * modules/uniwidth/*: Bump version number of expected libunistring
3404         version.
3405         * modules/unilbrk/*: Likewise.
3406
3407 2011-01-08  Bruno Haible  <bruno@clisp.org>
3408
3409         uninorm tests: Preserve copyright of Unicode data file.
3410         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
3411         Mention modifications.
3412
3413 2011-01-08  Bruno Haible  <bruno@clisp.org>
3414
3415         gen-uni-tables: Prepare for Unicode 5.2.0.
3416         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
3417         (debug_output_lbp, output_lbp): Update.
3418
3419 2011-01-08  Bruno Haible  <bruno@clisp.org>
3420
3421         unilbrk: Clarify gen-uni-tables.c code.
3422         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
3423         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
3424         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
3425
3426 2011-01-07  Bruno Haible  <bruno@clisp.org>
3427
3428         strtod: Restore errno when successfully parsing Infinity or NaN.
3429         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
3430         restore the original errno.
3431
3432 2011-01-07  Bruno Haible  <bruno@clisp.org>
3433
3434         remove test: Avoid failure on HP-UX 11.
3435         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
3436
3437 2011-01-07  Bruno Haible  <bruno@clisp.org>
3438
3439         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
3440         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
3441         error code.
3442
3443 2011-01-07  Pádraig Brady <P@draigBrady.com>
3444
3445         ignore-value: fixup comments, and add Eric Blake
3446         as an author since he rewrote the macros.
3447         * lib/ignore-value.h (ignore_value):  State that
3448         we now support aggregates.  Also specify exactly
3449         when the GCC warn_unused_result feature was added.
3450
3451 2011-01-06  Eric Blake  <eblake@redhat.com>
3452
3453         ignore-value: support aggregate types
3454         * lib/ignore-value.h (ignore_value): Provide separate gcc
3455         definition.
3456         * modules/ignore-value-tests: New test module.
3457         * tests/test-ignore-value.c: New test.
3458
3459         maint.mk: improve sc_prohibit_strcmp regex
3460         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
3461         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
3462         definition of STRNEQ.
3463
3464         signal: work around Haiku issue with SIGBUS
3465         * lib/siglist.h: Add comment.
3466         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
3467         strsignal's favoring of SIGSEGV.
3468         * tests/test-signal.c (main): Avoid test failure.
3469         * doc/posix-headers/signal.texi (signal.h): Document the issue.
3470         Reported by Scott McCreary.
3471
3472         maint.mk: add pre-release check to ensure submodule commits are public
3473         * top/maint.mk (public-submodule-commit): New rule.
3474         (submodule-checks): New variable.
3475         (alpha beta stable): Depend on the variable.
3476
3477 2011-01-05  Pádraig Brady <P@draigBrady.com>
3478         and Jim Meyering  <meyering@redhat.com>
3479
3480         ignore-value: make ignore_value more generic; deprecate ignore_ptr
3481         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
3482         (ATTRIBUTE_DEPRECATED): Define.
3483         (_ignore_case): New function.
3484         (ignore_value): New macro, to replace the old function.
3485         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
3486         * modules/ignore-value (Depends-on): Add stdint.
3487
3488 2011-01-04  Eric Blake  <eblake@redhat.com>
3489
3490         doc: regenerate INSTALL
3491         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
3492         @firstparagraphindent support, now that autoconf dropped it.
3493         (INSTALL_PRELUDE): Reinstate old macro.
3494         * doc/install.texi: Resync from autoconf.
3495         * doc/INSTALL: Reflect recent autoconf update.
3496         * doc/INSTALL.ISO: Likewise.
3497         * doc/INSTALL.UTF-8: Likewise.
3498         Reported by Karl Berry.
3499
3500 2011-01-04  Bruce Korb  <address@hidden>
3501
3502         git-version-gen: avoid a sub-shell
3503         * build-aux/git-version-gen: Redirect stderr in `...` via
3504         "exec 2>...", rather than via an added sub-shell.
3505
3506 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
3507
3508         git-version-gen: use (...) rather than sh -c '...'
3509         * build-aux/git-version-gen: Rather than hard-coding a shell's name
3510         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
3511
3512 2011-01-03  Jim Meyering  <meyering@redhat.com>
3513
3514         git-version-gen: convert leading TABs to spaces
3515         * build-aux/git-version-gen: Expand leading TABs.
3516
3517         git-version-gen: handle failed "git rev-list"
3518         * build-aux/git-version-gen: Rather than leaking a "fatal" error
3519         from git and proceeding as if it had succeeded but printed no SHA1
3520         checksums, suppress the diagnostic and handle the failure.
3521         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
3522
3523         git-version-gen: include command name in one more diagnostic
3524         * build-aux/git-version-gen: When the required .tarball-version file
3525         was missing or unreadable, you might see the diagnostic from "cat",
3526         but no trace of the name of the invoking script.  Now, you still see
3527         the diagnostic from cat, but also get one from "git-version-gen: ".
3528         Inspired by a patch from Bruce Korb.
3529
3530         update-copyright: adjust test to match changed code
3531         * tests/test-update-copyright.sh: Change test's expected output
3532         to match new actual output.
3533
3534 2011-01-02  Bruno Haible  <bruno@clisp.org>
3535
3536         getlogin_r: Avoid test failure on HP-UX 11.
3537         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
3538         ERANGE when the second argument is zero.
3539         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
3540         portability problem.
3541
3542 2011-01-02  Bruce Korb  <bkorb@gnu.org>
3543
3544         * build-aux/update-copyright: doc Simon's changes
3545
3546 2011-01-02  Simon Josefsson  <simon@josefsson.org>
3547
3548         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
3549         environment variable.
3550
3551 2011-01-02  Bruno Haible  <bruno@clisp.org>
3552
3553         unigbrk: Avoid gcc warnings.
3554         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
3555         unused variable.
3556         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
3557         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
3558         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
3559         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
3560         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
3561         Change type of first argument to 'const char *'.
3562         (main): Remove unused variable.
3563         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
3564         type of first argument to 'const char *'.
3565         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
3566         Likewise.
3567         (main): Change type of variable 's'.
3568         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
3569         to 'int'.
3570
3571 2011-01-02  Bruno Haible  <bruno@clisp.org>
3572
3573         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
3574         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
3575         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
3576         bug.
3577         * lib/pwrite.c: Undo 2010-12-31 patch.
3578         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
3579
3580 2011-01-02  Bruno Haible  <bruno@clisp.org>
3581
3582         pread: Fix test whether it works.
3583         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
3584
3585 2011-01-02  Bruno Haible  <bruno@clisp.org>
3586
3587         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
3588         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
3589         ends in "6". Don't require a specific month name. Try also the locale
3590         names found on HP-UX 11 and Solaris 7.
3591
3592 2011-01-02  Bruno Haible  <bruno@clisp.org>
3593
3594         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
3595         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
3596         C linkage.
3597         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
3598
3599 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3600
3601         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
3602         for consistency, since the "cluster" term is not used elsewhere.
3603         * lib/unigbrk.in.h: Update name.
3604         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
3605         * lib/unigbrk/u16-grapheme-next.c: Update name.
3606         * lib/unigbrk/u16-grapheme-prev.c: Update name.
3607         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
3608         * lib/unigbrk/u32-grapheme-next.c: Update name.
3609         * lib/unigbrk/u32-grapheme-prev.c: Update name.
3610         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
3611         * lib/unigbrk/u8-grapheme-next.c: Update name.
3612         * lib/unigbrk/u8-grapheme-prev.c: Update name.
3613         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
3614         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
3615         Suggested by Bruno Haible.
3616
3617 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3618
3619         Remove module 'u8-grapheme-len' as too redundant with
3620         'u8-grapheme-next'.
3621         * modules/unigbrk/u8-grapheme-len: Delete file.
3622         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
3623         * lib/unigbrk.in.h: Remove prototype for deleted function.
3624         * lib/unigbrk/u8-grapheme-len.c: Delete file.
3625         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
3626
3627         Remove module 'u16-grapheme-len' as too redundant with
3628         'u16-grapheme-next'.
3629         * modules/unigbrk/u16-grapheme-len: Delete file.
3630         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
3631         * lib/unigbrk.in.h: Remove prototype for deleted function.
3632         * lib/unigbrk/u16-grapheme-len.c: Delete file.
3633         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
3634
3635         Remove module 'u32-grapheme-len' as too redundant with
3636         'u32-grapheme-next'.
3637         * modules/unigbrk/u32-grapheme-len: Delete file.
3638         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
3639         * lib/unigbrk.in.h: Remove prototype for deleted function.
3640         * lib/unigbrk/u32-grapheme-len.c: Delete file.
3641         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
3642
3643         Suggested by Bruno Haible.
3644
3645 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3646
3647         * unigbrk.in.h: Fix typo: "ben" => "been".
3648         Reported by Bruno Haible.
3649
3650 2011-01-01  Jim Meyering  <meyering@redhat.com>
3651
3652         maint: update almost all copyright ranges to include 2011
3653         Run the new "make update-copyright" rule.
3654
3655 2011-01-01  Jim Meyering  <meyering@redhat.com>
3656
3657         maint: update-copyright: exempt doc/INSTALL*
3658         * Makefile (update-copyright): Also exclude doc/INSTALL*,
3659         since they are generated.  Suggested by Bruno Haible.
3660
3661 2011-01-01  Jim Meyering  <meyering@redhat.com>
3662
3663         maint: refine the update-copyright rule
3664         * Makefile (update-copyright): Also exclude any file that includes
3665         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
3666         code that merely generates the comment.
3667
3668 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
3669
3670         New module 'u8-grapheme-len'.
3671         * modules/unigbrk/u8-grapheme-len: New file.
3672         * modules/unigbrk/u8-grapheme-len-tests: New file.
3673         * lib/unigbrk.in.h: Add prototype for new function.
3674         * lib/unigbrk/u8-grapheme-len.c: New file.
3675         * tests/unigbrk/test-u8-grapheme-len.c: New file.
3676
3677         New module 'u16-grapheme-len'.
3678         * modules/unigbrk/u16-grapheme-len: New file.
3679         * modules/unigbrk/u16-grapheme-len-tests: New file.
3680         * lib/unigbrk.in.h: Add prototype for new function.
3681         * lib/unigbrk/u16-grapheme-len.c: New file.
3682         * tests/unigbrk/test-u16-grapheme-len.c: New file.
3683
3684         New module 'u32-grapheme-len'.
3685         * modules/unigbrk/u32-grapheme-len: New file.
3686         * modules/unigbrk/u32-grapheme-len-tests: New file.
3687         * lib/unigbrk.in.h: Add prototype for new function.
3688         * lib/unigbrk/u32-grapheme-len.c: New file.
3689         * tests/unigbrk/test-u32-grapheme-len.c: New file.
3690
3691         New module 'u8-grapheme-next'.
3692         * modules/unigbrk/u8-grapheme-next: New file.
3693         * modules/unigbrk/u8-grapheme-next-tests: New file.
3694         * lib/unigbrk.in.h: Add prototype for new function.
3695         * lib/unigbrk/u8-grapheme-next.c: New file.
3696         * tests/unigbrk/test-u8-grapheme-next.c: New file.
3697
3698         New module 'u16-grapheme-next'.
3699         * modules/unigbrk/u16-grapheme-next: New file.
3700         * modules/unigbrk/u16-grapheme-next-tests: New file.
3701         * lib/unigbrk.in.h: Add prototype for new function.
3702         * lib/unigbrk/u16-grapheme-next.c: New file.
3703         * tests/unigbrk/test-u16-grapheme-next.c: New file.
3704
3705         New module 'u32-grapheme-next'.
3706         * modules/unigbrk/u32-grapheme-next: New file.
3707         * modules/unigbrk/u32-grapheme-next-tests: New file.
3708         * lib/unigbrk.in.h: Add prototype for new function.
3709         * lib/unigbrk/u32-grapheme-next.c: New file.
3710         * tests/unigbrk/test-u32-grapheme-next.c: New file.
3711
3712         New module 'u8-grapheme-prev'.
3713         * modules/unigbrk/u8-grapheme-prev: New file.
3714         * modules/unigbrk/u8-grapheme-prev-tests: New file.
3715         * lib/unigbrk.in.h: Add prototype for new function.
3716         * lib/unigbrk/u8-grapheme-prev.c: New file.
3717         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
3718
3719         New module 'u16-grapheme-prev'.
3720         * modules/unigbrk/u16-grapheme-prev: New file.
3721         * modules/unigbrk/u16-grapheme-prev-tests: New file.
3722         * lib/unigbrk.in.h: Add prototype for new function.
3723         * lib/unigbrk/u16-grapheme-prev.c: New file.
3724         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
3725
3726         New module 'u32-grapheme-prev'.
3727         * modules/unigbrk/u32-grapheme-prev: New file.
3728         * modules/unigbrk/u32-grapheme-prev-tests: New file.
3729         * lib/unigbrk.in.h: Add prototype for new function.
3730         * lib/unigbrk/u32-grapheme-prev.c: New file.
3731         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
3732
3733         New module 'u8-grapheme-breaks'.
3734         * modules/unigbrk/u8-grapheme-breaks: New file.
3735         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
3736         * lib/unigbrk.in.h: Add prototype for new function.
3737         * lib/unigbrk/u8-grapheme-breaks.c: New file.
3738         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
3739
3740         New module 'u16-grapheme-breaks'.
3741         * modules/unigbrk/u16-grapheme-breaks: New file.
3742         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
3743         * lib/unigbrk.in.h: Add prototype for new function.
3744         * lib/unigbrk/u16-grapheme-breaks.c: New file.
3745         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
3746
3747         New module 'u32-grapheme-breaks'.
3748         * modules/unigbrk/u32-grapheme-breaks: New file.
3749         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
3750         * lib/unigbrk.in.h: Add prototype for new function.
3751         * lib/unigbrk/u32-grapheme-breaks.c: New file.
3752         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
3753
3754         New module 'ulc-grapheme-breaks'.
3755         * modules/unigbrk/ulc-grapheme-breaks: New file.
3756         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
3757         * m4/locale-ar.m4: New file.
3758         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
3759         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
3760         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
3761
3762 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
3763
3764         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
3765         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
3766         modified how this file was generated before I initially submitted
3767         the module, but failed to regenerate it.  This meant that several
3768         of the level2 entries were wrong.
3769         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
3770         Remove the division-by-2 that is folded into the table now that
3771         gbrkprop.h has been regenerated properly.  Now -1 entries are
3772         handled correctly.
3773
3774         New module 'unigbrk/uc-gbrk-prop-tests'.
3775         * modules/unigbrk/uc-gbrk-prop-tests: New file.
3776         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
3777         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
3778         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
3779
3780 2011-01-01  Bruno Haible  <bruno@clisp.org>
3781
3782         Avoid use of hexadecimal escapes.
3783         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
3784         instead of hexadecimal escapes.
3785
3786 2011-01-01  Jim Meyering  <meyering@redhat.com>
3787
3788         maint: new rule to update copyright year ranges
3789         * Makefile (update-copyright): New rule.
3790
3791         maint: indent with TABs in Makefile
3792         * Makefile: Expand leading sequences of spaces to TABs
3793
3794         version-etc: update the copyright year it reports
3795         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
3796
3797 2010-12-31  Bruno Haible  <bruno@clisp.org>
3798
3799         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
3800         * lib/isfinite.c (zerof, zerod, zerol): New variables.
3801         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
3802         zero.
3803
3804 2010-12-31  Bruno Haible  <bruno@clisp.org>
3805
3806         pwrite: Work around HP-UX 11.11 bug.
3807         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
3808         works and set REPLACE_PWRITE if not.
3809         * lib/pwrite.c (pwrite): Add an implementation that uses the system
3810         function.
3811         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
3812
3813 2010-12-31  Bruno Haible  <bruno@clisp.org>
3814
3815         pread: Work around HP-UX 11 bugs.
3816         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
3817         and set REPLACE_PREAD if not.
3818         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
3819
3820 2010-12-31  Eric Blake  <eblake@redhat.com>
3821
3822         nl_langinfo: fix YESEXPR on Irix 6.5
3823         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
3824         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
3825         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
3826         it.
3827
3828 2010-12-31  Bruno Haible  <bruno@clisp.org>
3829
3830         iconv: Document HP-UX 11 bug.
3831         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
3832
3833 2010-12-31  Bruno Haible  <bruno@clisp.org>
3834
3835         ldexpl: Fix link error on HP-UX 11.
3836         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
3837         LDEXPL_LIBM, using $ISNANL_LIBM.
3838
3839 2010-12-31  Eric Blake  <eblake@redhat.com>
3840
3841         ftello: avoid compilation failure with SunStudio c89
3842         * lib/ftello.c (ftello): Use lseek, not llseek.
3843
3844         tests: avoid failing coreutils tests on cygwin
3845         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
3846         (create_exe_shims_): Return 0 when skipping.
3847
3848 2010-12-31  Bruno Haible  <bruno@clisp.org>
3849
3850         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
3851         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
3852
3853 2010-12-31  Bruno Haible  <bruno@clisp.org>
3854
3855         waitpid: Fix link error in C++ mode.
3856         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
3857
3858 2010-12-31  Bruno Haible  <bruno@clisp.org>
3859
3860         isnan: Use GCC built-ins when possible.
3861         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
3862         __builtin_isnan.
3863         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
3864         (isnan): Define using GCC built-ins for GCC >= 4.0.
3865
3866 2010-12-31  Bruno Haible  <bruno@clisp.org>
3867
3868         isnand: Fix mistake.
3869         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
3870         __builtin_isnand.
3871
3872 2010-12-31  Bruno Haible  <bruno@clisp.org>
3873
3874         open: Avoid C++ error on HP-UX 11.
3875         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
3876
3877 2010-12-31  Bruno Haible  <bruno@clisp.org>
3878
3879         time_r: Add missing declarations on HP-UX 11.
3880         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
3881         instead of HAVE_LOCALTIME_R.
3882         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
3883         HAVE_LOCALTIME_R always.
3884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
3885         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
3886         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
3887         HAVE_LOCALTIME_R.
3888         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
3889         * doc/posix-functions/localtime_r.texi: Likewise.
3890
3891 2010-12-29  Eric Blake  <eblake@redhat.com>
3892
3893         mountlist: tweak previous commit
3894         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
3895         Reported by Paul Eggert.
3896
3897         mountlist: fix local drive detection on cygwin
3898         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
3899         that works for cygwin.
3900
3901 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3902
3903         ftoastr, snprintf: ftoastr + snprintf module
3904         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
3905         since the snprintf module now should be good enough here.
3906         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
3907         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
3908         and gl_MODULE_INDICATOR([snprintf]), but the former enables
3909         GNULIB_SNPRINTF only for the test directory, and the latter
3910         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
3911         seems to suffice by itself.
3912
3913 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
3914
3915         alloca: one step towards thread-safety
3916         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
3917         need for a static variable.  All callers changed.  This does not
3918         make the alloca replacement thread-safe, but it's one step.
3919
3920         tests: minor indenting change
3921         * tests/init.sh: Sync from coreutils housekeeping patch
3922         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
3923         to keep lines within 80 columns.
3924
3925 2010-12-28  Jim Meyering  <meyering@redhat.com>
3926
3927         regex: don't infloop on persistent failing calloc
3928         * lib/regexec.c (build_trtable): Return failure indication upon
3929         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
3930         In glibc, this was fixed for version 2.13:
3931         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
3932
3933 2010-12-28  Bruno Haible  <bruno@clisp.org>
3934             Paul Eggert <eggert@cs.ucla.edu>
3935
3936         linkat: Make implementation robust against system behaviour variations.
3937         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
3938         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
3939         way, and to -2 if it needs a generic runtime test.
3940         * lib/linkat.c (solaris_optimized_link_immediate,
3941         solaris_optimized_link_follow): New functions.
3942         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
3943         (check_same_link): Use it.
3944
3945 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
3946
3947         New module 'unigbrk/base'.
3948         * modules/unigbrk/base: New file.
3949         * lib/unigbrk.in.h: New file.
3950
3951         New module 'unigbrk/uc-gbrk-prop'.
3952         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
3953         * modules/unigbrk/uc-gbrk-prop: New file.
3954         * lib/unigbrk/gbrkprop.h: New file.
3955         * lib/unigbrk/uc-gbrk-prop.c: New file.
3956
3957         New module 'unigbrk/uc-is-grapheme-break'.
3958         * modules/unigbrk/uc-is-grapheme-break: New file.
3959         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
3960         * lib/unigbrk/uc-is-grapheme-break.c: New file.
3961         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
3962         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
3963         * tests/unigbrk/GraphemeBreakTest.txt: New file.
3964
3965         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
3966
3967 2010-12-27  Bruno Haible  <bruno@clisp.org>
3968
3969         linkat test: Avoid failure on Solaris 11 2010-11.
3970         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
3971
3972 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3973
3974         utimens: work around glibc rounding bug on more platforms
3975         * lib/utimens.c (fdutimens): Work around rounding bug even if
3976         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
3977         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
3978
3979 2010-12-27  Bruno Haible  <bruno@clisp.org>
3980
3981         select tests: Improve comments.
3982         * tests/test-select.c (do_select): Add comments.
3983
3984 2010-12-27  Bruno Haible  <bruno@clisp.org>
3985
3986         select tests: Safer way of handling timeout.
3987         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
3988         at every invocation.
3989
3990 2010-12-27  Bruno Haible  <bruno@clisp.org>
3991
3992         select tests: Use 'bool' where appropriate.
3993         * tests/test-select.c (connect_to_socket): Change argument type to
3994         'bool'.
3995
3996 2010-12-27  Bruno Haible  <bruno@clisp.org>
3997
3998         select tests: Use existing modules.
3999         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
4000         (configure.ac): Don't test for unistd.h.
4001         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
4002         declared in <unistd.h>.
4003
4004 2010-12-27  Bruno Haible  <bruno@clisp.org>
4005
4006         mbrtowc: Work around a Solaris 7 bug.
4007         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
4008         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
4009         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
4010         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
4011         MBRTOWC_NULL_ARG1_BUG.
4012         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
4013         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
4014         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
4015         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
4016
4017 2010-12-27  Jim Meyering  <meyering@redhat.com>
4018
4019         read-file.c: tweak syntax
4020         * lib/read-file.c (fread_file): Remove space after "*" in function
4021         definitions.
4022
4023 2010-12-27  Bruno Haible  <bruno@clisp.org>
4024
4025         times test: Avoid gcc warnings on OSF/1.
4026         * tests/test-times.c (main): Cast printf arguments from clock_t to
4027         'long int'.
4028
4029 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4030
4031         utimens: work around glibc rounding bug on older Linux kernels
4032         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
4033         on Linux with a glibc whose utimes might not work, then work
4034         around a longstanding glibc bug involving rounding rather than
4035         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
4036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4037
4038 2010-12-26  Bruno Haible  <bruno@clisp.org>
4039
4040         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
4041         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
4042         _GL_CXXALIAS_SYS.
4043         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4044
4045 2010-12-26  Bruno Haible  <bruno@clisp.org>
4046
4047         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
4048         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
4049         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4050         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
4051         looking for the declaration.
4052         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4053         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
4054         problem.
4055         * doc/posix-functions/inet_pton.texi: Likewise.
4056
4057 2010-12-26  Bruno Haible  <bruno@clisp.org>
4058
4059         arpa_inet: Use the common idioms with C++ support.
4060         * lib/arpa_inet.in.h: Include c++defs.h.
4061         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
4062         support.
4063         * modules/arpa_inet (Depends-on): Add c++defs.
4064         (Makefile.am): Substitute the contents of c++defs.h.
4065         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
4066         * modules/arpa_inet-c++-tests: New file.
4067         * tests/test-arpa_inet-c++.cc: New file.
4068
4069 2010-12-25  Bruno Haible  <bruno@clisp.org>
4070
4071         Fix more C++ link errors on Solaris 8.
4072         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
4073         $(LIB_EACCESS).
4074         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
4075         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
4076         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
4077         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
4078         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
4079
4080 2010-12-25  Bruno Haible  <bruno@clisp.org>
4081
4082         printf-posix: Fix link error when a non-GCC compiler is used.
4083         * lib/stdio.in.h (printf): When not using GCC, override printf
4084         correctly.
4085         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4086
4087 2010-12-25  Bruno Haible  <bruno@clisp.org>
4088
4089         strerror_r-posix: Update doc.
4090         * doc/posix-functions/strerror_r.texi: Update doc about the return
4091         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
4092
4093 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4094
4095         utimens: simplify the logic of the previous change
4096         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
4097         This should not affect whether the test succeeds or fails.
4098
4099         utimens: configure better on hosts with NFS clock skew
4100         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
4101         uses the clock of the local host.  It might use the clock of the
4102         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
4103         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4104
4105 2010-12-25  Bruno Haible  <bruno@clisp.org>
4106
4107         ptsname test: Avoid failure on Solaris.
4108         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
4109         open a pseudo-terminal; don't use BSD-style ptys.
4110         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
4111
4112 2010-12-25  Bruno Haible  <bruno@clisp.org>
4113
4114         ptsname: Avoid ERANGE failure on some systems.
4115         * lib/ptsname.c (buffer): Increase size.
4116
4117 2010-12-25  Bruno Haible  <bruno@clisp.org>
4118
4119         rename, renameat: Avoid test failures at NFS mounted locations.
4120         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
4121         so that subsequent mkdir calls succeed.
4122
4123 2010-12-25  Bruno Haible  <bruno@clisp.org>
4124
4125         iswblank: Fix C++ link error on Solaris 8.
4126         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
4127         _GL_FUNCDECL_SYS.
4128
4129 2010-12-25  Bruno Haible  <bruno@clisp.org>
4130
4131         unistd: Fix C++ link error on Solaris 8.
4132         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
4133
4134 2010-12-25  Bruno Haible  <bruno@clisp.org>
4135
4136         readlink doc: Mention an old glibc bug.
4137         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
4138
4139 2010-12-25  Bruno Haible  <bruno@clisp.org>
4140
4141         fcntl-h: Fix for use of C++ on glibc systems.
4142         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4143         also on glibc systems in C++ mode.
4144         Reported by Gary V. Vaughan <gary@gnu.org>.
4145
4146 2010-12-25  Bruno Haible  <bruno@clisp.org>
4147
4148         roundl-ieee: Make it work on OSF/1 5.1 with cc.
4149         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
4150
4151 2010-12-25  Bruno Haible  <bruno@clisp.org>
4152
4153         truncl-ieee: Make it work on OSF/1 5.1 with cc.
4154         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
4155         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
4156         test whether truncl works according to ISO C 99 with IEC 60559.
4157         * m4/truncl-ieee.m4: New file.
4158         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
4159         m4/signbit.m4.
4160         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
4161
4162 2010-12-25  Bruno Haible  <bruno@clisp.org>
4163
4164         ceill-ieee: Make it work on OSF/1 5.1 with cc.
4165         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
4166         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
4167         test whether ceill works according to ISO C 99 with IEC 60559.
4168         * m4/ceill-ieee.m4: New file.
4169         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
4170         m4/signbit.m4.
4171         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
4172
4173 2010-12-25  Bruno Haible  <bruno@clisp.org>
4174
4175         Ensure all prerequisites of <wchar.h> are included.
4176         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
4177         before <wchar.h>.
4178         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4179         gl_MBRLEN_NUL_RETVAL): Likewise.
4180         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4181         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
4182         AC_FUNC_MBRTOWC): Likewise.
4183         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4184         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4185         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4186         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4187         Likewise.
4188         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4189         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
4190         (gl_WCHAR_H): Improve comments.
4191         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4192
4193 2010-12-25  Bruno Haible  <bruno@clisp.org>
4194
4195         strtok_r: Fix C syntax error in autoconf macro.
4196         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
4197         characters in test program.
4198
4199 2010-12-24  Bruno Haible  <bruno@clisp.org>
4200
4201         ceil, trunc, round: Fix gcc warnings.
4202         * lib/ceil.c (MIN): Undefine before redefining.
4203         * lib/trunc.c (MIN): Likewise.
4204         * lib/round.c (MIN): Likewise.
4205         Include <math.h> first.
4206
4207 2010-12-24  Bruno Haible  <bruno@clisp.org>
4208
4209         select tests: Avoid failures on OSF/1 5.1.
4210         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
4211         failure of closing the last socket; it may fail with ECONNRESET.
4212
4213 2010-12-24  Eric Blake  <eblake@redhat.com>
4214
4215         stdint: avoid HP-UX 10.20 preprocessor bug
4216         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
4217         than #if.
4218         * tests/test-floor2.c (main): Likewise.
4219         Reported by Peter O'Gorman.
4220
4221         pipe: make obsoletion transition easier
4222         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
4223         * modules/pipe (Files): Include revived file.
4224         (Include): Drop reference, to mirror getdate's behavior.
4225
4226 2010-12-24  Bruno Haible  <bruno@clisp.org>
4227
4228         sys_socket: Hide mismatch of declarations on NonStop Kernel.
4229         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
4230         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4231         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4232
4233 2010-12-24  Bruno Haible  <bruno@clisp.org>
4234
4235         gethostname: Ensure declaration on NonStop Kernel.
4236         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
4237         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4238
4239 2010-12-24  Bruno Haible  <bruno@clisp.org>
4240
4241         sys_select: Ensure all necessary types on NonStop Kernel.
4242         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
4243         include <sys/time.h>.
4244         * doc/posix-headers/sys_select.texi: Mention that it's missing on
4245         NonStop Kernel.
4246         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4247
4248 2010-12-24  Bruno Haible  <bruno@clisp.org>
4249
4250         sys_select: Remove unneeded include.
4251         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
4252         have <sys/select.h>.
4253
4254 2010-12-24  Bruno Haible  <bruno@clisp.org>
4255
4256         gethostname: Provide a fallback for HOST_NAME_MAX.
4257         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
4258         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
4259         instead.
4260         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4261
4262 2010-12-24  Bruno Haible  <bruno@clisp.org>
4263
4264         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
4265         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
4266         (SA_RESTART): Likewise.
4267         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4268
4269 2010-12-24  Bruno Haible  <bruno@clisp.org>
4270
4271         signal: Define NSIG.
4272         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
4273         * tests/test-signal.c (nsig): New variable.
4274         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4275
4276 2010-12-24  Bruno Haible  <bruno@clisp.org>
4277
4278         rename, renameat: Avoid test failures on OSF/1 5.1.
4279         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
4280         alternative error codes.
4281         * tests/test-renameat.c (main): Likewise.
4282
4283 2010-12-24  Bruno Haible  <bruno@clisp.org>
4284
4285         *printf: Detect large precisions bug on Solaris 10/SPARC.
4286         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
4287         by Paul Eggert.
4288         * tests/test-snprintf-posix.h (test_function): Add this test code here
4289         too.
4290         * tests/test-sprintf-posix.h (test_function): Likewise.
4291         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4292         * tests/test-vasprintf-posix.c (test_function): Likewise.
4293         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
4294         around by gnulib.
4295         * doc/posix-functions/printf.texi: Likewise.
4296         * doc/posix-functions/snprintf.texi: Likewise.
4297         * doc/posix-functions/sprintf.texi: Likewise.
4298         * doc/posix-functions/vfprintf.texi: Likewise.
4299         * doc/posix-functions/vprintf.texi: Likewise.
4300         * doc/posix-functions/vsnprintf.texi: Likewise.
4301         * doc/posix-functions/vsprintf.texi: Likewise.
4302         * doc/posix-functions/dprintf.texi: Undo last commit.
4303         * doc/posix-functions/vdprintf.texi: Likewise.
4304
4305 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
4306
4307         tests: port test-fdutimensat.c to Solaris 8
4308         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
4309         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
4310         On Solaris 8, it fails with errno == ENOSYS, because there is no
4311         futimens (so it can't use the fd), and there is no lutimens (so it
4312         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
4313
4314         vsnprintf: make more consistent with snprintf; doc fixes
4315
4316         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
4317         the byte count return problem was promoted from the snprintf-posix
4318         to the snprintf module.
4319         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4320         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
4321         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
4322         * tests/test-snprintf.c (main): Check the byte count returned.
4323         * tests/test-vsnprintf.c (main): Likewise.
4324
4325 2010-12-23  Eric Blake  <eblake@redhat.com>
4326
4327         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
4328         * modules/sigpipe (License): Relax license.
4329
4330 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4331
4332         doc: document Solaris printf bug with large float precisions
4333         * doc/posix-functions/dprintf.texi (dprintf):
4334         * doc/posix-functions/fprintf.texi (fprintf):
4335         * doc/posix-functions/printf.texi (printf):
4336         * doc/posix-functions/snprintf.texi (snprintf):
4337         * doc/posix-functions/sprintf.texi (sprintf):
4338         * doc/posix-functions/vdprintf.texi (vdprintf):
4339         * doc/posix-functions/vfprintf.texi (vfprintf):
4340         * doc/posix-functions/vprintf.texi (vprintf):
4341         * doc/posix-functions/vsnprintf.texi (vsnprintf):
4342         * doc/posix-functions/vsprintf.texi (vsprintf):
4343         Mention that these functions mishandle large floating point
4344         precisions on Solaris 10.  The same bug is also present in Solaris
4345         8, and I assume earlier.  This causes "cd gnulib-tests; make
4346         check" to fail on Solaris 8 (and I assume, later) when building
4347         the latest coreutils, in test-vasprintf-posix's call to
4348         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
4349         the wide flavors (e.g., wprintf) so this patch just updates the
4350         documentation for the narrow ones.
4351
4352         test-posixtm.c: add two tests
4353         * tests/test-posixtm.c: Add two tests, to highlight the
4354         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
4355         around this bug; this is merely to document it.
4356
4357 2010-12-22  Bruno Haible  <bruno@clisp.org>
4358
4359         getlogin_r: Work around portability problem on OSF/1.
4360         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
4361         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
4362         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
4363         test for a truncated result.
4364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
4365         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
4366         * modules/getlogin_r (Depends-on): Add memchr.
4367         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
4368
4369 2010-12-22  Bruno Haible  <bruno@clisp.org>
4370
4371         ptsname: Avoid test failure on OSF/1 5.1.
4372         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
4373         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
4374         (same_slave): New function.
4375         (main): Use it to compare ptsname's result with the expected file name.
4376
4377 2010-12-22  Bruno Haible  <bruno@clisp.org>
4378
4379         Port extended stdio modules to HP NonStop Kernel.
4380         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
4381         macros.
4382         * lib/fbufmode.c: Update comments.
4383         * lib/fflush.c: Likewise.
4384         * lib/fpurge.c: Likewise.
4385         * lib/freadable.c: Likewise.
4386         * lib/freadahead.c: Likewise.
4387         * lib/freading.c: Likewise.
4388         * lib/freadptr.c: Likewise.
4389         * lib/freadseek.c: Likewise.
4390         * lib/fseeko.c: Likewise.
4391         * lib/fseterr.c: Likewise.
4392         * lib/fwritable.c: Likewise.
4393         * lib/fwriting.c: Likewise.
4394         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4395
4396 2010-12-22  Bruno Haible  <bruno@clisp.org>
4397
4398         ttyname_r: Work around bug on OSF/1 5.1.
4399         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
4400         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
4401         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
4402         present.
4403         * lib/ttyname_r.c (ttyname_r): Update comments.
4404
4405 2010-12-22  Bruno Haible  <bruno@clisp.org>
4406
4407         round: Implement result sign according to IEEE 754.
4408         * lib/round.c (MIN, MINUS_ZERO): New macros.
4409         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
4410         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
4411         * tests/test-round-ieee.c (main): Likewise.
4412         * tests/test-roundl-ieee.c (main): Likewise.
4413
4414         trunc: Implement result sign according to IEEE 754.
4415         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
4416         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
4417         * tests/test-trunc2.c: Include minus-zero.h.
4418         (MINUS_ZERO): New macro.
4419         (trunc_reference): Keep in sync with lib/trunc.c.
4420         * tests/test-truncf2.c: Include minus-zero.h.
4421         (MINUS_ZERO): New macro.
4422         (truncf_reference): Keep in sync with lib/trunc.c.
4423         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
4424         * tests/test-trunc-ieee.c (main): Likewise.
4425         * tests/test-truncl-ieee.c (main): Likewise.
4426
4427         ceil: Implement result sign according to IEEE 754.
4428         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
4429         (FUNC): Return -0.0 for -1 < x < 0.
4430         * tests/test-ceil2.c: Include minus-zero.h.
4431         (MINUS_ZERO): New macro.
4432         (ceil_reference): Keep in sync with lib/ceil.c.
4433         * tests/test-ceilf2.c: Include minus-zero.h.
4434         (MINUS_ZERO): New macro.
4435         (ceilf_reference): Keep in sync with lib/ceil.c.
4436         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
4437         * tests/test-ceil-ieee.c (main): Likewise.
4438         * tests/test-ceill-ieee.c (main): Likewise.
4439
4440         floor: Implement result sign according to IEEE 754.
4441         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
4442         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
4443         * tests/test-floorf2.c (floorf_reference): Likewise.
4444         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
4445         * tests/test-floor-ieee.c (main): Likewise.
4446         * tests/test-floorl-ieee.c (main): Likewise.
4447
4448 2010-12-22  Bruno Haible  <bruno@clisp.org>
4449
4450         getaddrinfo: Update doc.
4451         * doc/posix-functions/gai_strerror.texi: Return type is also different
4452         on AIX and HP-UX.
4453
4454 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4455
4456         getaddrinfo, inet_ntop: Update doc for Solaris.
4457         * doc/posix-functions/gai_strerror.texi: Return type is also an
4458         issue on Solaris 9 and earlier.
4459         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
4460         on Solaris 10 and earlier.
4461
4462 2010-12-21  Bruno Haible  <bruno@clisp.org>
4463
4464         New module 'roundl-ieee'.
4465         * modules/roundl-ieee: New file.
4466         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
4467         test whether roundl works according to ISO C 99 with IEC 60559.
4468         * m4/roundl-ieee.m4: New file.
4469         * modules/roundl-ieee-tests: New file.
4470         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
4471         * tests/test-roundl.c (main): Remove signbit tests.
4472         * modules/roundl-tests (Depends-on): Remove signbit.
4473         * doc/posix-functions/roundl.texi: Mention the new module.
4474
4475 2010-12-21  Bruno Haible  <bruno@clisp.org>
4476
4477         New module 'truncl-ieee'.
4478         * modules/truncl-ieee: New file.
4479         * modules/truncl-ieee-tests: New file.
4480         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
4481         * tests/test-truncl.c (main): Remove signbit tests.
4482         * modules/truncl-tests (Depends-on): Remove signbit.
4483         * doc/posix-functions/truncl.texi: Mention the new module.
4484
4485 2010-12-21  Bruno Haible  <bruno@clisp.org>
4486
4487         New module 'ceill-ieee'.
4488         * modules/ceill-ieee: New file.
4489         * modules/ceill-ieee-tests: New file.
4490         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
4491         * tests/test-ceill.c (main): Remove signbit tests.
4492         * modules/ceill-tests (Depends-on): Remove signbit.
4493         * doc/posix-functions/ceill.texi: Mention the new module.
4494
4495 2010-12-21  Bruno Haible  <bruno@clisp.org>
4496
4497         New module 'floorl-ieee'.
4498         * modules/floorl-ieee: New file.
4499         * modules/floorl-ieee-tests: New file.
4500         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
4501         * tests/test-floorl.c (main): Remove signbit tests.
4502         * modules/floorl-tests (Depends-on): Remove signbit.
4503         * doc/posix-functions/floorl.texi: Mention the new module.
4504
4505 2010-12-21  Bruno Haible  <bruno@clisp.org>
4506
4507         New module 'round-ieee'.
4508         * modules/round-ieee: New file.
4509         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
4510         whether round works according to ISO C 99 with IEC 60559.
4511         * m4/round-ieee.m4: New file.
4512         * modules/round-ieee-tests: New file.
4513         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
4514         * tests/test-round1.c (main): Remove signbit tests.
4515         * modules/round-tests (Depends-on): Remove 'signbit'.
4516         * doc/posix-functions/round.texi: Mention the new module.
4517
4518 2010-12-21  Bruno Haible  <bruno@clisp.org>
4519
4520         New module 'trunc-ieee'.
4521         * modules/trunc-ieee: New file.
4522         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
4523         whether trunc works according to ISO C 99 with IEC 60559.
4524         * m4/trunc-ieee.m4: New file.
4525         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
4526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
4527         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
4528         * modules/trunc-ieee-tests: New file.
4529         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
4530         * tests/test-trunc1.c (main): Remove signbit tests.
4531         * modules/trunc-tests (Depends-on): Remove 'signbit'.
4532         * doc/posix-functions/trunc.texi: Mention the new module.
4533
4534 2010-12-21  Bruno Haible  <bruno@clisp.org>
4535
4536         New module 'ceil-ieee'.
4537         * modules/ceil-ieee: New file.
4538         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
4539         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
4540         ISO C 99 with IEC 60559.
4541         * m4/ceil-ieee.m4: New file.
4542         * modules/ceil (Files): Add lib/ceil.c.
4543         (Depends-on): Add 'float'.
4544         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4545         * lib/math.in.h (ceil): New declaration.
4546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
4547         REPLACE_CEIL.
4548         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
4549         * modules/ceil-ieee-tests: New file.
4550         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
4551         * tests/test-math-c++.cc: Check the signature of 'ceil'.
4552         * doc/posix-functions/ceil.texi: Mention the new module.
4553
4554 2010-12-21  Bruno Haible  <bruno@clisp.org>
4555
4556         New module 'floor-ieee'.
4557         * modules/floor-ieee: New file.
4558         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
4559         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
4560         ISO C 99 with IEC 60559.
4561         * m4/floor-ieee.m4: New file.
4562         * modules/floor (Files): Add lib/floor.c.
4563         (Depends-on): Add 'float'.
4564         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4565         * lib/math.in.h (floor): New declaration.
4566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
4567         REPLACE_FLOOR.
4568         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
4569         * modules/floor-ieee-tests: New file.
4570         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
4571         * tests/test-math-c++.cc: Check the signature of 'floor'.
4572         * doc/posix-functions/floor.texi: Mention the new module.
4573
4574 2010-12-21  Bruno Haible  <bruno@clisp.org>
4575
4576         New module 'roundf-ieee'.
4577         * modules/roundf-ieee: New file.
4578         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
4579         test whether roundf works according to ISO C 99 with IEC 60559.
4580         * m4/roundf-ieee.m4: New file.
4581         * modules/roundf-ieee-tests: New file.
4582         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
4583         * tests/test-roundf1.c (main): Remove signbit tests.
4584         * modules/roundf-tests (Depends-on): Remove 'signbit'.
4585         * doc/posix-functions/roundf.texi: Mention the new module.
4586
4587 2010-12-21  Bruno Haible  <bruno@clisp.org>
4588
4589         New module 'truncf-ieee'.
4590         * modules/truncf-ieee: New file.
4591         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
4592         test whether truncf works according to ISO C 99 with IEC 60559.
4593         * m4/truncf-ieee.m4: New file.
4594         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
4595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
4596         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
4597         * modules/truncf-ieee-tests: New file.
4598         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
4599         * tests/test-truncf1.c (main): Remove signbit tests.
4600         * modules/truncf-tests (Depends-on): Remove 'signbit'.
4601         * doc/posix-functions/truncf.texi: Mention the new module.
4602
4603 2010-12-21  Bruno Haible  <bruno@clisp.org>
4604
4605         New module 'ceilf-ieee'.
4606         * modules/ceilf-ieee: New file.
4607         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
4608         test whether ceilf works according to ISO C 99 with IEC 60559.
4609         * m4/ceilf-ieee.m4: New file.
4610         * modules/ceilf-ieee-tests: New file.
4611         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
4612         * tests/test-ceilf1.c (main): Remove signbit tests.
4613         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
4614         * doc/posix-functions/ceilf.texi: Mention the new module.
4615
4616 2010-12-21  Bruno Haible  <bruno@clisp.org>
4617
4618         New module 'floorf-ieee'.
4619         * modules/floorf-ieee: New file.
4620         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
4621         test whether floorf works according to ISO C 99 with IEC 60559.
4622         * m4/floorf-ieee.m4: New file.
4623         * modules/floorf-ieee-tests: New file.
4624         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
4625         * tests/test-floorf1.c (main): Remove signbit tests.
4626         * modules/floorf-tests (Depends-on): Remove 'signbit'.
4627         * doc/posix-functions/floorf.texi: Mention the new module.
4628
4629 2010-12-21  Bruno Haible  <bruno@clisp.org>
4630
4631         Support for minus zero in autoconf macros.
4632         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
4633         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
4634         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
4635         * tests/minus-zero.h: Update comments.
4636
4637 2010-12-21  Bruno Haible  <bruno@clisp.org>
4638
4639         Tests for module 'ceil'.
4640         * modules/ceil-tests: New file.
4641         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
4642         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
4643
4644 2010-12-21  Bruno Haible  <bruno@clisp.org>
4645
4646         Tests for module 'floor'.
4647         * modules/floor-tests: New file.
4648         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
4649         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
4650
4651 2010-12-21  Bruno Haible  <bruno@clisp.org>
4652
4653         math: Fix indentation.
4654         * lib/math.in.h (floorf): Fix indentation.
4655
4656 2010-12-21  Bruno Haible  <bruno@clisp.org>
4657
4658         Fix cross-compilation guesses on Solaris.
4659         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
4660         not match "solaris2.10".
4661         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4662         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
4663         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
4664
4665 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
4666
4667         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
4668         This fixes a problem observed with the latest coreutils snapshot
4669         that caused a test to fail on Solaris 8.  src/csplit.c's call
4670         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
4671         earlier, instead of returning the number of bytes that would have
4672         been generated; this causes csplit to incorrectly report memory
4673         exhaustion.
4674         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
4675         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
4676         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
4677         comments to match.
4678         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
4679         Fix typo in matching older versions of Solaris: "solaris2.10"
4680         is matched by the shell pattern "solaris2.[0-9]*".  This matters
4681         only for guessing while cross-compiling.
4682         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
4683
4684 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
4685
4686         ftoastr: fix comment again
4687         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
4688         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
4689         Also, simplify example a bit by using flags = 0.
4690
4691 2010-12-20  Bruno Haible  <bruno@clisp.org>
4692
4693         round*, trunc*: Update documentation regarding glibc.
4694         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
4695         * doc/posix-functions/round.texi: Likewise.
4696         * doc/posix-functions/roundl.texi: Likewise.
4697         * doc/posix-functions/truncf.texi: Likewise.
4698         * doc/posix-functions/trunc.texi: Likewise.
4699         * doc/posix-functions/truncl.texi: Likewise.
4700
4701 2010-12-20  Bruno Haible  <bruno@clisp.org>
4702
4703         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
4704         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
4705         * doc/posix-functions/round.texi: Likewise.
4706         * doc/posix-functions/roundl.texi: Likewise.
4707
4708 2010-12-20  Bruno Haible  <bruno@clisp.org>
4709
4710         ttyname_r: Add missing declaration on HP-UX 11.
4711         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
4712         HAVE_TTYNAME_R.
4713         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
4714         declared. Set HAVE_TTYNAME_R always.
4715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4716         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
4717         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
4718         HAVE_TTYNAME_R.
4719         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
4720
4721 2010-12-20  Bruno Haible  <bruno@clisp.org>
4722
4723         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
4724         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
4725         * doc/posix-functions/getlogin_r.texi: Likewise.
4726         * tests/test-getlogin.c: Include <errno.h>.
4727         (main): Avoid test failure on HP-UX 11.11.
4728         * tests/test-getlogin_r.c (main): Likewise.
4729
4730 2010-12-20  Bruno Haible  <bruno@clisp.org>
4731
4732         getlogin_r: Add missing declaration on HP-UX 11.
4733         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
4734         declared also when it exists as a function.
4735         * doc/posix-functions/getlogin_r.texi: Document this workaround.
4736
4737 2010-12-20  Bruno Haible  <bruno@clisp.org>
4738
4739         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
4740         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
4741         through wcrtomb.
4742
4743 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4744
4745         ftoastr: fix comment
4746         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
4747         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
4748
4749 2010-12-19  Bruno Haible  <bruno@clisp.org>
4750
4751         isnan: Ensure it is a macro.
4752         * lib/math.in.h (isnan): Define as a macro if not already a macro.
4753         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
4754         Solaris.
4755
4756 2010-12-19  Bruno Haible  <bruno@clisp.org>
4757
4758         ldexpl test: Fix link error on OSF/1 5.1.
4759         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
4760
4761 2010-12-19  Bruno Haible  <bruno@clisp.org>
4762
4763         wctype: Make it work in C++ mode on OSF/1 5.1.
4764         * lib/wctype.in.h (iswblank): Declare but not define here.
4765         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
4766         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
4767         * modules/wctype (Files): Add lib/iswblank.c.
4768
4769 2010-12-19  Bruno Haible  <bruno@clisp.org>
4770
4771         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
4772         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
4773         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
4774
4775 2010-12-19  Bruno Haible  <bruno@clisp.org>
4776
4777         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
4778         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
4779         _POSIX_PII_SOCKET.
4780         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
4781         * doc/posix-functions/recvfrom.texi: Likewise.
4782         * doc/posix-functions/send.texi: Likewise.
4783         * doc/posix-functions/sendto.texi: Likewise.
4784
4785 2010-12-19  Bruno Haible  <bruno@clisp.org>
4786
4787         tcgetsid: Add missing declaration on OSF/1 5.1.
4788         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
4789         HAVE_TCGETSID.
4790         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
4791         Don't set HAVE_TCGETSID.
4792         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
4793         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
4794         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
4795         HAVE_TCGETSID.
4796         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
4797
4798 2010-12-19  Bruno Haible  <bruno@clisp.org>
4799
4800         stdio: Fix problem with popen() declaration on OSF/1 5.1.
4801         * lib/stdio.in.h: During the include_next statement, let recursive
4802         includes of this file include only the system header file.
4803
4804 2010-12-19  Bruno Haible  <bruno@clisp.org>
4805
4806         iconv_open: Fix regression from 2010-12-04.
4807         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
4808         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
4809
4810 2010-12-19  Bruno Haible  <bruno@clisp.org>
4811
4812         stdbool test: Avoid a gcc warning.
4813         * tests/test-stdbool.c (main): Fail if e1 is false.
4814         Reported by Jim Meyering.
4815
4816 2010-12-19  Jim Meyering  <meyering@redhat.com>
4817
4818         setenv: restore to working order
4819         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
4820         mistakenly removed.
4821         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
4822         HAVE_SETENV.
4823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
4824         HAVE_SETENV.
4825
4826 2010-12-19  Bruno Haible  <bruno@clisp.org>
4827
4828         Document some different function declarations on OSF/1 5.1.
4829         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
4830         * doc/posix-functions/inet_ntop.texi: Likewise.
4831         * doc/posix-functions/gethostname.texi: Likewise.
4832         * lib/unistd.in.h (gethostname): Update comment.
4833
4834 2010-12-19  Bruno Haible  <bruno@clisp.org>
4835
4836         doc: Mention vasprintf-posix module.
4837         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
4838         the 'vasprintf-posix' module.
4839         * doc/glibc-functions/vasprintf.texi: Likewise.
4840
4841 2010-12-19  Bruno Haible  <bruno@clisp.org>
4842
4843         unsetenv: Add missing declaration on OSF/1 5.1.
4844         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
4845         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
4846         Don't set HAVE_UNSETENV. In the test program, set _BSD.
4847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
4848         not HAVE_UNSETENV.
4849         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
4850         HAVE_UNSETENV.
4851         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
4852
4853 2010-12-19  Bruno Haible  <bruno@clisp.org>
4854
4855         setenv: Add missing declaration on OSF/1 5.1.
4856         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
4857         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
4858         declared. Don't set HAVE_SETENV.
4859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
4860         not HAVE_SETENV.
4861         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
4862         HAVE_SETENV.
4863         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
4864
4865 2010-12-19  Bruno Haible  <bruno@clisp.org>
4866
4867         nl_langinfo tests: Avoid gcc warning.
4868         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
4869
4870 2010-12-19  Bruno Haible  <bruno@clisp.org>
4871
4872         mknod: Avoid error in C++ mode on OSF/1 with GCC.
4873         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
4874         _GL_CXXALIAS_SYS.
4875
4876 2010-12-19  Bruno Haible  <bruno@clisp.org>
4877
4878         stdbool: Relax test.
4879         * tests/test-stdbool.c (e): Don't require that casts from a variable's
4880         address to 'bool' work in static initializer, for compilers other than
4881         GCC.
4882
4883 2010-12-19  Bruno Haible  <bruno@clisp.org>
4884
4885         ftello: Add missing declaration on OSF/1 5.1.
4886         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
4887         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
4888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
4889         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
4890         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
4891
4892 2010-12-19  Bruno Haible  <bruno@clisp.org>
4893
4894         fseeko: Add missing declaration on OSF/1 5.1.
4895         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
4896         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
4897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
4898         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
4899         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
4900
4901 2010-12-19  Bruno Haible  <bruno@clisp.org>
4902
4903         fchdir: Add missing declaration on OSF/1 5.1.
4904         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
4905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
4906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
4907         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
4908         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
4909
4910 2010-12-19  Bruno Haible  <bruno@clisp.org>
4911
4912         relocatable-prog-wrapper: Separate from relocatable-prog.
4913         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
4914         uninstall-relocwrapper rule here.
4915         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
4916         Reported by Ian Beckwith <ianb@erislabs.net>.
4917
4918 2010-12-19  Bruno Haible  <bruno@clisp.org>
4919
4920         unistr/u8-mbsnlen: Add missing dependency.
4921         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
4922         Reported by Ian Beckwith <ianb@erislabs.net>.
4923
4924 2010-12-19  Bruno Haible  <bruno@clisp.org>
4925
4926         iconv: Make it possible again to use this module without 'iconv-h'.
4927         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
4928         if it is not defined.
4929         Reported by Ian Beckwith <ianb@erislabs.net>.
4930
4931 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4932
4933         acl: port to Solaris 8 when copying from tmpfs to ufs
4934         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
4935         error number.  Problem observed on Solaris 8 with latest
4936         coreutils, with "mv A B", where A is on a tmpfs file system and B
4937         is on a ufs file system.  This caused coreutils' mv/part-symlink
4938         test to fail.
4939
4940         tests: set fail=0 at start
4941         * tests/init.sh (setup_): Move fail=0 initialization here ...
4942         (mktempd_): ... from here, so that tests can rely on fail being
4943         set to 0 initially.  This fixes a problem in coreutils; see:
4944         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
4945
4946 2010-12-18  Bruno Haible  <bruno@clisp.org>
4947
4948         memmem-simple: Stylistic changes.
4949         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
4950         Fix preprocessor directive indentation.
4951
4952 2010-12-15  Pádraig Brady <P@draigBrady.com>
4953
4954         memmem, memmem-simple: reorganize and expand empty needle check
4955         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
4956         functional checks to memmem-simple so that one has a fully functional
4957         memmem by using just this module.
4958         Restrict the performance only check to the memmem module.
4959         Also expand the empty needle check to ensure the correct
4960         pointer is returned, not just a non NULL pointer.
4961         * doc/glibc-functions/memmem.texi: Rearrange the portability
4962         documentation to correlate with the rearranged checks.
4963         Clarify exactly how the memmem and memmem-simple modules
4964         relate to each other.
4965
4966 2010-12-15  Pádraig Brady <P@draigBrady.com>
4967             Bruno Haible  <bruno@clisp.org>
4968
4969         Improve cross-compilation guesses for uClibc.
4970         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
4971         that uClibc does not have the glibc bug.
4972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
4973         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
4974
4975 2010-12-14  Eric Blake  <eblake@redhat.com>
4976
4977         configmake: provide fallbacks for oldest supported autotools
4978         * m4/configmake.m4: New file.
4979         * modules/configmake (Files): Ship it.
4980         (configure.ac): Use it to guarantee fallbacks.
4981
4982 2010-12-13  Pádraig Brady <P@draigBrady.com>
4983
4984         read-file: Improve handling of large files
4985         * lib/read-file.c (fread_file): Minimize realloc()s
4986         for regular files, and better manage sizes around SIZE_MAX.
4987
4988 2010-12-13  Eric Blake  <eblake@redhat.com>
4989
4990         cloexec, fcntl: relax license
4991         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
4992         consent from all contributors.
4993         * modules/fcntl (License): Likewise.
4994
4995 2010-12-10  Bruno Haible  <bruno@clisp.org>
4996
4997         Tests for module 'pipe-posix'.
4998         * modules/pipe-posix-tests: New file.
4999         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
5000
5001 2010-12-10  Bruno Haible  <bruno@clisp.org>
5002
5003         pipe-posix: Make it work in C++ mode.
5004         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
5005         (pipe): Use common idiom, not a macro definition.
5006         * lib/pipe.c: New file.
5007         * m4/pipe.m4: New file.
5008         * modules/pipe-posix (Description): Enhance.
5009         (Files): Add lib/pipe.c, m4/pipe.m4.
5010         (configure.ac): Invoke gl_FUNC_PIPE.
5011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
5012         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
5013         * tests/test-unistd-c++.cc: Check the signature of pipe.
5014
5015 2010-12-10  Bruno Haible  <bruno@clisp.org>
5016
5017         Rename module 'pipe' to 'spawn-pipe'.
5018         * modules/spawn-pipe: New file, renamed from modules/pipe.
5019         (Files, configure.ac, Makefile.am): Update.
5020         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
5021         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
5022         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
5023         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
5024         "spawn-pipe.h" instead of "pipe.h".
5025         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
5026         to gl_SPAWN_PIPE.
5027         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
5028         (Files, Makefile.am): Update.
5029         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
5030         Update.
5031         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
5032         Include "spawn-pipe.h" instead of "pipe.h".
5033         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
5034         * lib/javacomp.c: Likewise.
5035         * lib/javaversion.c: Likewise.
5036         * lib/pipe-filter-gi.c: Likewise.
5037         * lib/pipe-filter-ii.c: Likewise.
5038         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
5039         * modules/javacomp (Depends-on): Likewise.
5040         * modules/javaversion (Depends-on): Likewise.
5041         * modules/pipe-filter-gi (Depends-on): Likewise.
5042         * modules/pipe-filter-ii (Depends-on): Likewise.
5043         * MODULES.html.sh (Executing programs): Update.
5044         * NEWS: Mention the change.
5045
5046 2010-12-10  Eric Blake  <eblake@redhat.com>
5047
5048         pipe-posix: new module
5049         * modules/pipe-posix: New file.
5050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
5051         (gl_UNISTD_H): Check for declaration.
5052         * modules/unistd (Makefile.am): Substitute it.
5053         * lib/unistd.in.h (pipe): Provide it for mingw.
5054         * doc/posix-functions/pipe.texi (pipe): Update documentation.
5055         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
5056
5057 2010-12-07  Bruno Haible  <bruno@clisp.org>
5058
5059         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
5060         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
5061         u8_strcmp_gnu.
5062         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
5063
5064 2010-12-06  Bruno Haible  <bruno@clisp.org>
5065
5066         Update internal documentation.
5067         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
5068
5069 2010-12-04  Bruno Haible  <bruno@clisp.org>
5070
5071         Put more information about failed tests into the test return codes.
5072         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
5073         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
5074         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5075         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5076         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5077         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5078         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5079         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5080         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
5081         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5082         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
5083         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5084         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5085         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5086         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
5087         returns a bit mask.
5088         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
5089         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
5090         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
5091         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5092         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5093         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5094         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5096         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5097         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5098         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5099         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5100         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5101         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5102         * m4/link.m4 (gl_FUNC_LINK): Likewise.
5103         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5104         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
5105         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
5106         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5107         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
5108         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5109         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5111         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5112         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5113         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5114         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
5115         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5116         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5117         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
5118         gl_PRINTF_PRECISION): Likewise.
5119         * m4/regex.m4 (gl_REGEX): Likewise.
5120         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5121         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5122         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
5123         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5124         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5125         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5126         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5127         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
5128         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5129         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5130         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
5131         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
5132         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5133         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5134         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5136         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5137         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5138         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5139         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
5140         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
5141         enumerated value.
5142         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
5143
5144 2010-12-04  Bruno Haible  <bruno@clisp.org>
5145
5146         Update for Solaris 11 2010-11.
5147         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
5148         Express, released in November 2010.
5149
5150 2010-12-04  Bruno Haible  <bruno@clisp.org>
5151
5152         nproc: Relax license.
5153         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
5154         and Paul Eggert.
5155         Requested by Ludovic Courtès <ludo@gnu.org>.
5156
5157 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
5158
5159         utimecmp: fine-grained src to nearby coarse-grained dest
5160
5161         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
5162         and the source is on a file system with higher-resolution time
5163         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
5164         not work, and the time stamps are close together, the algorithm to
5165         determine the exact resolution from the read-back mtime was buggy:
5166         it had a "!=" where it should have had an "==".  This bug has been
5167         in the code ever since it was introduced to gnulib.
5168         Problem reported by Dan Jacobson in
5169         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
5170
5171 2010-11-30  Bruno Haible  <bruno@clisp.org>
5172
5173         strerror_r-posix: Fix autoconf test.
5174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
5175
5176 2010-11-28  Bruno Haible  <bruno@clisp.org>
5177             Paul Eggert  <eggert@cs.ucla.edu>
5178
5179         Tests for module 'getdomainname'.
5180         * modules/getdomainname-tests: New file.
5181         * tests/test-getdomainname.c: New file, based on
5182         tests/test-gethostname.c.
5183
5184 2010-11-28  Bruno Haible  <bruno@clisp.org>
5185             Paul Eggert  <eggert@cs.ucla.edu>
5186
5187         getdomainname: Use the system function when possible.
5188         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
5189         (getdomainname): Replace if needed. Provide the declaration if it is
5190         missing. Don't use _GL_CXXALIAS_SYS_CAST.
5191         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
5192         (getdomainname): When the system has getdomainname, call the system
5193         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
5194         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5195         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
5196         found in libnsl. Look for the declaration also in <netdb.h>. Replace
5197         the function if its second argument is of type 'int' or if it is found
5198         in libnsl.
5199         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
5200         <sys/systeminfo.h> and sysinfo().
5201         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
5202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5203         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
5204         HAVE_GETDOMAINNAME.
5205         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
5206         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
5207         * doc/glibc-functions/getdomainname.texi: Document the problems with
5208         the getdomainname declaration.
5209
5210 2010-11-28  Bruno Haible  <bruno@clisp.org>
5211
5212         sys_socket: Ensure ss_family field on AIX.
5213         * lib/sys_socket.in.h (ss_family): New macro definition.
5214         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
5215         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
5216         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5217         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5218         * modules/sys_socket (Makefile.am): Substitute
5219         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5220         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
5221
5222 2010-11-27  Bruno Haible  <bruno@clisp.org>
5223
5224         readline: Improve configure output.
5225         * m4/readline.m4 (gl_FUNC_READLINE): Make the
5226         "checking for readline..." result understandable.
5227
5228 2010-11-27  Bruno Haible  <bruno@clisp.org>
5229
5230         *printf-posix: Detect a bug on Solaris 10/x86.
5231         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
5232         for floating-point output.
5233         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
5234         directive.
5235         * tests/test-snprintf-posix.h (test_function): Likewise.
5236         * tests/test-sprintf-posix.h (test_function): Likewise.
5237         * tests/test-vasprintf-posix.c (test_function): Likewise.
5238         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
5239         * doc/posix-functions/printf.texi: Likewise.
5240         * doc/posix-functions/snprintf.texi: Likewise.
5241         * doc/posix-functions/sprintf.texi: Likewise.
5242         * doc/posix-functions/vfprintf.texi: Likewise.
5243         * doc/posix-functions/vprintf.texi: Likewise.
5244         * doc/posix-functions/vsnprintf.texi: Likewise.
5245         * doc/posix-functions/vsprintf.texi: Likewise.
5246         * doc/glibc-functions/obstack_printf.texi: Likewise.
5247         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5248
5249 2010-11-27  Bruno Haible  <bruno@clisp.org>
5250
5251         Fix link error when module libunistring-optional is in use.
5252         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
5253         * modules/striconveha-tests (Makefile.am): Likewise.
5254
5255 2010-11-27  Bruno Haible  <bruno@clisp.org>
5256
5257         regex: Mention link dependencies.
5258         * modules/regex (Link): New section.
5259         * modules/rpmatch (Link): Likewise.
5260         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
5261
5262 2010-11-27  Bruno Haible  <bruno@clisp.org>
5263
5264         ftoastr: Fix compilation error on Solaris.
5265         * lib/ftoastr.c: Include <config.h>.
5266
5267 2010-11-27  Bruno Haible  <bruno@clisp.org>
5268
5269         getloadavg: Update documentation.
5270         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
5271
5272 2010-11-27  Bruno Haible  <bruno@clisp.org>
5273
5274         sys_socket: Fix test whether the functions are declared.
5275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
5276         not <sys/select.h>.
5277
5278 2010-11-27  Bruno Haible  <bruno@clisp.org>
5279
5280         getpass: Make sure to get system declaration on some platforms.
5281         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
5282         gl_USE_SYSTEM_EXTENSIONS.
5283         * modules/getpass (Depends-on): Add extensions.
5284
5285 2010-11-26  Bruno Haible  <bruno@clisp.org>
5286
5287         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
5288         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
5289         'iconv' module is present.
5290         (ICONV_CONST): New macro.
5291         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
5292         ICONV_CONST.
5293         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
5294         set ICONV_CONST.
5295         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
5296         here.
5297         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
5298         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
5299         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
5300         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
5301         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
5302         present.
5303
5304 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
5305
5306         ftoastr: comment fix
5307         * lib/ftoastr.c: "little" -> "little or no" in comment
5308
5309 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5310
5311         stdint: port to GCC 4.3 + OSX + Octave
5312         On this platform, stdint.h is buggy and defines int64_t to long
5313         long int.  The replacement defined it to long int, causing
5314         problems with C++ style name mangling.  Instead, trust the system
5315         definition if INT64_MAX is defined, and likewise for the unsigned
5316         variant.   Problem reported by Jarno Rajahalme in
5317         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
5318         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
5319         and don't mess with int64_t and INT64_MAX in this case.
5320         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
5321
5322 2010-11-24  Bruno Haible  <bruno@clisp.org>
5323
5324         doc: Corrections regarding MacOS X 10.4 and 10.5.
5325         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
5326         MacOS X.
5327         Reported by Simon Josefsson.
5328
5329 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
5330
5331         Uninstall ".bin" files installed by relocwrapper.
5332         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
5333         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
5334         unless it is already there.
5335
5336 2010-11-21  Bruno Haible  <bruno@clisp.org>
5337
5338         Update for NetBSD 5.0.
5339         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5340         NetBSD; the test fails on NetBSD 5.0.
5341         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5342         about NetBSD.
5343
5344 2010-11-21  Bruno Haible  <bruno@clisp.org>
5345
5346         Update for HP-UX 11.23 and HP-UX 11.31.
5347         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
5348         HP-UX.
5349
5350 2010-11-21  Bruno Haible  <bruno@clisp.org>
5351
5352         Update for MacOS X 10.5.
5353         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5354         MacOS X; the test fails on MacOS X 10.5.8.
5355         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5356         about MacOS X.
5357
5358 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
5359
5360         bootstrap: add bootstrap_sync option.
5361         See discussion at
5362         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
5363         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
5364         * build-aux/bootstrap: Accept --bootstrap-sync to update
5365         bootstrap if it is not identical to the local gnulib's
5366         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
5367         enable this by default.  Accept --no-bootstrap-sync to disable
5368         it.
5369
5370 2010-11-20  Bruno Haible  <bruno@clisp.org>
5371
5372         Ensure that <features.h> is included before __GLIBC__ is tested.
5373         * lib/printf-parse.h: Include <features.h>.
5374         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
5375         Reported by Mike Frysinger <vapier@gentoo.org>.
5376
5377         Ensure that <features.h> is included before __GLIBC__ is tested.
5378         * lib/wchar.in.h: Include <features.h>.
5379         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
5380         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
5381         Reported by Mike Frysinger <vapier@gentoo.org>.
5382
5383         Ensure that <features.h> is included before __GLIBC__ is tested.
5384         * lib/arpa_inet.in.h: Include <features.h>.
5385         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
5386         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
5387         Reported by Mike Frysinger <vapier@gentoo.org>.
5388
5389         Ensure that <features.h> is included before __GLIBC__ is tested.
5390         * build-aux/link-warning.h: Include <features.h>.
5391         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
5392         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
5393         Reported by Mike Frysinger <vapier@gentoo.org>.
5394
5395         Ensure that <features.h> is included before __GLIBC__ is tested.
5396         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
5397         Reported by Mike Frysinger <vapier@gentoo.org>.
5398
5399 2010-11-20  Bruno Haible  <bruno@clisp.org>
5400
5401         memmem: Fix autoconf test.
5402         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
5403
5404 2010-11-20  Bruno Haible  <bruno@clisp.org>
5405
5406         Port to uClibc.
5407         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
5408         * lib/fcntl.in.h: Likewise.
5409         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
5410         * lib/mbrtowc.c (mbrtowc): Likewise.
5411         * lib/relocatable.c (find_shared_library_fullname): Likewise.
5412         * lib/strerror_r.c: Likewise.
5413         * lib/unistr/u8-strnlen.c: Likewise.
5414         * lib/vasnprintf.c (decimal_point_char): Likewise.
5415         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5416         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
5418         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5419         * tests/test-sigaction.c (handler, main): Likewise.
5420         * lib/freading.h: Treat uClibc like a non-glibc platform.
5421         * lib/freading.c: Likewise.
5422         * lib/gettext.h: Likewise.
5423         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
5424         Likewise.
5425         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
5426         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5427         * lib/propername.c (proper_name_utf8): Likewise.
5428         * lib/spawn.in.h: Likewise.
5429         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
5430         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
5431         mem_cd_iconveh_internal): Likewise.
5432         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
5433         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5434         strstr, strcasestr): Likewise.
5435         * lib/unicodeio.c (unicode_to_mb): Likewise.
5436         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
5437         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
5438         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
5439         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
5440         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
5441         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
5442         * lib/unistr/u8-stpncpy.c: Likewise.
5443         * lib/vasnprintf.c (VASNPRINTF): Likewise.
5444         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
5445         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5446         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5447         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5448         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
5449         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
5450         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
5451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5452         Likewise.
5453         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5454         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5455         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5456         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5457         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5458         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5459         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5460         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5461         * tests/test-getopt.h (OPTIND_MIN): Likewise.
5462         * tests/test-striconveha.c (main): Likewise.
5463         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5464         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
5465         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
5466         * doc/posix-functions/getline.texi: Likewise.
5467         Reported by Mike Frysinger <vapier@gentoo.org>.
5468
5469 2010-11-20  Bruno Haible  <bruno@clisp.org>
5470
5471         nproc: Fix condition.
5472         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
5473         HAVE_PTHREAD_AFFINITY_NP.
5474
5475 2010-11-20  Bruno Haible  <bruno@clisp.org>
5476
5477         Fix a comment.
5478         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
5479
5480 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
5481
5482         ftoastr: don't assume snprintf
5483         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
5484         Implement a subset of snprintf here, by using sprintf safely.
5485         * modules/ftoastr (Depends-on): Remove snprintf.
5486
5487 2010-11-19  Jim Meyering  <meyering@redhat.com>
5488
5489         test-rename.h: fix compilation failure
5490         * tests/test-rename.h (test_rename): Add omitted "}".
5491
5492 2010-11-17  Jim Meyering  <meyering@redhat.com>
5493
5494         maint.mk: add a URL discussing the no-@acronym policy
5495         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
5496
5497 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5498
5499         ftoastr: depend on snprintf, improve comments
5500         * lib/ftoastr.c: Also mention Loitsch's draft.
5501         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
5502         needed in the current implementation, but it might simplify
5503         speeding up the code later.
5504         * modules/ftoastr: Depend on snprintf; this improves portability.
5505         Suggested by Bruno Haible in the same email.
5506
5507         ftoastr: port to hosts lacking strtof and strtold
5508         Problem reported by Bruno Haible in
5509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
5510         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
5511         environment and strtold (and presumably strtof) are not available.
5512         * modules/ftoastr (Files): Add m4/c-strtod.m4.
5513         (configure.ac): Require gl_C99_STRTOLD.
5514
5515 2010-11-18  Bruno Haible  <bruno@clisp.org>
5516
5517         c-strtold: Avoid link error on AIX 7.
5518         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
5519         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
5520         (gl_C_STRTOLD): Test whether strtold_l exists.
5521         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5522
5523 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5524
5525         intprops: new macro INT_BITS_STRLEN_BOUND
5526         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
5527         ftoastr.h.  This exposes an internal of intprops.h that was formerly
5528         not exposed.  Also, it uses a slightly tighter bound than before;
5529         though this makes no practical difference, we might as well be as
5530         tight as we easily can.
5531
5532         ftoastr: new module, for lossless conversion of floats to short strings
5533         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
5534         * modules/ftoastr: New files.
5535
5536 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5537
5538         bootstrap: port to Solaris sed
5539         * build-aux/bootstrap (get_version): Port to Solaris sed.
5540         See Ralf Wildenhues's note in
5541         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
5542
5543 2010-11-14  Jim Meyering  <meyering@redhat.com>
5544
5545         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
5546         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
5547         and move definition closer to sole use.
5548
5549 2010-11-13  Jim Meyering  <meyering@redhat.com>
5550
5551         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
5552         Now we require at least autoconf-2.59, which means the work-around
5553         is no longer needed.
5554         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
5555         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5556         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5557         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
5558         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5559
5560 2010-11-13  Bruno Haible  <bruno@clisp.org>
5561
5562         rename, renameat: Avoid test failures at NFS mounted locations.
5563         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
5564         functions.
5565         (test_rename): Use assert_nonexistent.
5566         * tests/test-rename.c: Include <dirent.h>.
5567         * tests/test-renameat.c: Likewise.
5568         Reported by Gary V. Vaughan <gary@gnu.org>.
5569
5570         rename, renameat: Document Linux bug with NFS
5571         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
5572         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
5573         * doc/posix-functions/renameat.texi: Likewise.
5574         Suggested by Eric Blake.
5575
5576 2010-11-13  Bruno Haible  <bruno@clisp.org>
5577
5578         rename test: Add comments.
5579         * tests/test-rename.h (test_rename): Add structure and comments.
5580
5581 2010-11-13  Eric Blake  <eblake@redhat.com>
5582
5583         maintainer-makefile: cover a few more files
5584         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
5585         scripts generated within C files, for libvirt.
5586
5587 2010-11-13  Bruno Haible  <bruno@clisp.org>
5588
5589         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
5590         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
5591         character, return the number of bytes that belong together, not always
5592         1.
5593         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
5594         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
5595         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
5596         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
5597         number of bytes of an invalid character.
5598         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
5599         (main): Invoke it.
5600         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
5601         results.
5602         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
5603         malformed byte sequences.
5604         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
5605         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
5606         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
5607         Reported by Ben Pfaff and Paolo Bonzini.
5608
5609 2010-11-13  Bruno Haible  <bruno@clisp.org>
5610
5611         openat: Work around glibc bug with fchownat() and empty file names.
5612         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
5613         (gl_FUNC_FCHOWNAT): Invoke it.
5614         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
5615         * doc/posix-functions/fchownat.texi: Document the glibc bug.
5616         Reported by Gary V. Vaughan <gary@gnu.org>.
5617
5618 2010-11-13  Bruno Haible  <bruno@clisp.org>
5619
5620         openat: Ensure autoconf macro ordering.
5621         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
5622         gl_USE_SYSTEM_EXTENSIONS.
5623         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
5624
5625 2010-11-13  Bruno Haible  <bruno@clisp.org>
5626
5627         Update comments.
5628         * lib/unistr/u8-check.c: Update file name in comments.
5629         * lib/unistr/u8-mblen.c: Likewise.
5630         * lib/unistr/u8-prev.c: Likewise.
5631         * lib/unistr/u8-strmblen.c: Likewise.
5632         * lib/unistr/u8-strmbtouc.c: Likewise.
5633
5634 2010-11-13  Jim Meyering  <meyering@redhat.com>
5635
5636         tests: avoid test failure on Solaris 10 due to lack of PATH export
5637         * tests/test-update-copyright.sh: Don't forget to export PATH.
5638
5639         init.sh: ensure that IFS is defined, just in case...
5640         * tests/init.sh (setup_): Ensure that IFS is defined,
5641         so that saving and restoring it works as expected.  This
5642         appears to be useful at least for an old version of dash
5643         from a long time ago (RH 6).  See here for details:
5644         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
5645
5646         maint.mk: tighten "test a == b" check
5647         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
5648         test to files that contain something like #!/bin/sh.
5649         Without this, coreutils would get two false positives in
5650         the comments of C source files.
5651
5652 2010-11-12  Eric Blake  <eblake@redhat.com>
5653
5654         bootstrap: fix typo in previous attempt
5655         * build-aux/bootstrap (buildreq): Correct the grouping.
5656         Reported by Paul Eggert.
5657
5658         maintainer-makefile: prohibit test x == x
5659         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
5660         Based on a report by Matthias Bolte.
5661
5662         bootstrap: allow FreeBSD gzip
5663         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
5664         which has no '.' and goes to stderr.
5665         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
5666         Reported by Matthias Bolte.
5667
5668         maintainer-makefile: check for i18n setup
5669         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
5670         will likely work.
5671
5672 2010-11-12  Bruno Haible  <bruno@clisp.org>
5673
5674         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
5675         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
5676         * lib/nanosleep.c (nanosleep): Likewise.
5677
5678 2010-11-11  Bruno Haible  <bruno@clisp.org>
5679
5680         fcntl-h: Fix for use of C++ on glibc systems.
5681         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5682         also on glibc systems in C++ mode.
5683         Reported by Gary V. Vaughan <gary@gnu.org>.
5684
5685 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5686
5687         mknod: avoid false failure with dash
5688         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
5689
5690 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5691
5692         unlink: Fix "is it should" typo in diagnostic.
5693         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
5694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
5695
5696 2010-11-11  Bruno Haible  <bruno@clisp.org>
5697
5698         Tests for module 'strerror_r-posix'.
5699         * modules/strerror_r-posix-tests: New file.
5700         * tests/test-strerror_r.c: New file.
5701         * tests/test-string-c++.cc: Check the signature of strerror_r.
5702
5703         New module 'strerror_r-posix'.
5704         * lib/string.in.h (strerror_r): New declaration.
5705         * lib/strerror_r.c: New file.
5706         * m4/strerror_r.m4: New file.
5707         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
5708         of strerror_r.
5709         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
5710         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
5711         * modules/strerror_r-posix: New file.
5712         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
5713         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
5714         * doc/posix-functions/strerror_r.texi: Mention the new module and the
5715         portability problems.
5716
5717 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
5718
5719         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
5720         line is also considered for output. Quoted function name in shell
5721         command, so temporary files for functions like MyClass::operator()
5722         are removed correctly without errors.
5723
5724 2010-11-09  Bruno Haible  <bruno@clisp.org>
5725
5726         * doc/posix-functions/strerror.texi: List more failing platforms.
5727
5728         * doc/posix-functions/strerror.texi: Add a comment.
5729
5730 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
5731
5732         fdopendir: fix bug on MacOS X when low on file descriptors
5733
5734         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
5735         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
5736         All callers changed.
5737         (fdopendir): Invoke save_cwd at the top level, not after using
5738         multiple dup() calls to use up file descriptors.  Then retry
5739         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
5740         less than the maximum number of open file descriptors, because
5741         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
5742         on Mac OS X 10.6.4 for tar 1.24
5743         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
5744         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
5745         and for tar 1.25
5746         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
5747
5748 2010-11-07  Bruno Haible  <bruno@clisp.org>
5749
5750         vasnprintf: Support I flag on glibc systems.
5751         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
5752         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
5753         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
5754         snprintf function.
5755         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
5756         glibc systems.
5757         * tests/test-vasnprintf-posix3.c: New file.
5758         * modules/vasnprintf-posix-tests (Files): Add it.
5759         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
5760
5761 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5762
5763         [html] Fix copy/paste bug: Use unique name for compiler warnings.
5764         * MODULES.html.sh: For compiler warnings, use name
5765         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
5766
5767 2010-11-05  Eric Blake  <eblake@redhat.com>
5768
5769         ceil, floor: avoid spurious failure with icc
5770         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
5771         [denormals-as-zero] when optimizing without -mieee-fp option.
5772         * tests/test-floorf2.c (floorf_reference): Likewise.
5773         * tests/test-ceilf1.c (dummy): New function.
5774         (main): Use it to outsmart icc's optimization.
5775         * tests/test-floorf1.c (dummy, main): Likewise.
5776
5777         tests: require working signbit
5778         * modules/ceilf-tests (Depends-on): Add signbit.
5779         * modules/ceill-tests (Depends-on): Likewise.
5780         * modules/floorf-tests (Depends-on): Likewise.
5781         * modules/floorl-tests (Depends-on): Likewise.
5782         * modules/round-tests (Depends-on): Likewise.
5783         * modules/roundf-tests (Depends-on): Likewise.
5784         * modules/roundl-tests (Depends-on): Likewise.
5785         * modules/trunc-tests (Depends-on): Likewise.
5786         * modules/truncf-tests (Depends-on): Likewise.
5787         * modules/truncl-tests (Depends-on): Likewise.
5788
5789         strtod: work around icc bug
5790         * lib/strtod.c (minus_zero): Define to working value.
5791         (strtod): Use it to avoid icc bug.
5792
5793         copysign: enhance tests
5794         * modules/copysign-tests (Files): Add minus-zero.h.
5795         * tests/test-copysign.c (main): Also test zeros.
5796
5797 2010-11-04  Eric Blake  <eblake@redhat.com>
5798
5799         ceil, floor, round, trunc: enhance tests of -0
5800         * tests/test-ceilf1.c (main): Ensure correct sign of result.
5801         * tests/test-ceill.c (main): Likewise.
5802         * tests/test-floorf1.c (main): Likewise.
5803         * tests/test-floorl.c (main): Likewise.
5804         * tests/test-round1.c (main): Likewise.
5805         * tests/test-roundf1.c (main): Likewise.
5806         * tests/test-roundl.c (main): Likewise.
5807         * tests/test-trunc1.c (main): Likewise.
5808         * tests/test-truncf1.c (main): Likewise.
5809         * tests/test-truncl.c (main): Likewise.
5810
5811 2010-11-04  Eric Blake  <eblake@redhat.com>
5812
5813         frexp, tests: work around ICC bug with -zero
5814         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
5815         works with more compilers.
5816         * tests/minus-zero.h: New file.
5817         * modules/ceilf-tests (Files): Include it.
5818         * modules/ceill-tests (Files): Likewise.
5819         * modules/floorf-tests (Files): Likewise.
5820         * modules/floorl-tests (Files): Likewise.
5821         * modules/frexp-nolibm-tests (Files): Likewise.
5822         * modules/frexp-tests (Files): Likewise.
5823         * modules/frexpl-nolibm-tests (Files): Likewise.
5824         * modules/frexpl-tests (Files): Likewise.
5825         * modules/isnan-tests (Files): Likewise.
5826         * modules/isnand-nolibm-tests (Files): Likewise.
5827         * modules/isnand-tests (Files): Likewise.
5828         * modules/isnanf-nolibm-tests (Files): Likewise.
5829         * modules/isnanf-tests (Files): Likewise.
5830         * modules/isnanl-nolibm-tests (Files): Likewise.
5831         * modules/isnanl-tests (Files): Likewise.
5832         * modules/round-tests (Files): Likewise.
5833         * modules/roundf-tests (Files): Likewise.
5834         * modules/roundl-tests (Files): Likewise.
5835         * modules/ldexpl-tests (Files): Likewise.
5836         * modules/signbit-tests (Files): Likewise.
5837         * modules/snprintf-posix-tests (Files): Likewise.
5838         * modules/sprintf-posix-tests (Files): Likewise.
5839         * modules/strtod-tests (Files): Likewise.
5840         * modules/trunc-tests (Files): Likewise.
5841         * modules/truncf-tests (Files): Likewise.
5842         * modules/truncl-tests (Files): Likewise.
5843         * modules/vsnprintf-posix-tests (Files): Likewise.
5844         * modules/vsprintf-posix-tests (Files): Likewise.
5845         * modules/vasnprintf-posix-tests (Files): Likewise.
5846         * modules/vasprintf-posix-tests (Files): Likewise.
5847         * tests/test-ceilf1.c (main): Use it.
5848         * tests/test-ceill.c (main): Likewise.
5849         * tests/test-floorf1.c (main): Likewise.
5850         * tests/test-floorl.c (main): Likewise.
5851         * tests/test-frexp.c (main): Likewise.
5852         * tests/test-frexpl.c (main): Likewise.
5853         * tests/test-isnan.c (main): Likewise.
5854         * tests/test-isnand.h (main): Likewise.
5855         * tests/test-isnanf.h (main): Likewise.
5856         * tests/test-isnanl.h (main): Likewise.
5857         * tests/test-ldexpl.c (main): Likewise.
5858         * tests/test-round.c (main): Likewise.
5859         * tests/test-roundf.c (main): Likewise.
5860         * tests/test-roundl.c (main): Likewise.
5861         * tests/test-signbit.c (test_signbitf, test_signbitd)
5862         (test_signbitl): Likewise.
5863         * tests/test-snprintf-posix.h (test_function): Likewise.
5864         * tests/test-sprintf-posix.h (test_function): Likewise.
5865         * tests/test-strtod.c (main): Likewise.
5866         * tests/test-trunc1.c (main): Likewise.
5867         * tests/test-truncf1.c (main): Likewise.
5868         * tests/test-truncl.c (main): Likewise.
5869
5870         isnanl: work around icc bug
5871         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
5872
5873 2010-11-03  Eric Blake  <eblake@redhat.com>
5874
5875         tests: fix compiler warnings
5876         * tests/test-getopt.h (test_getopt): Fix condition.
5877         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5878         * tests/test-pipe2.c (main): Likewise.
5879         * tests/test-quotearg-simple.c (main): Avoid icc warning.
5880
5881         utimens: fix broken m4 test
5882         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
5883
5884 2010-10-28  Bruno Haible  <bruno@clisp.org>
5885
5886         posix_spawn*, getdtablesize: Relax license.
5887         * modules/posix_spawn (License): Change to LGPLv2+.
5888         * modules/posix_spawnp (License): Likewise.
5889         * modules/posix_spawn-internal (License): Likewise.
5890         * modules/posix_spawnattr_init (License): Likewise.
5891         * modules/posix_spawnattr_getflags (License): Likewise.
5892         * modules/posix_spawnattr_setflags (License): Likewise.
5893         * modules/posix_spawnattr_getpgroup (License): Likewise.
5894         * modules/posix_spawnattr_setpgroup (License): Likewise.
5895         * modules/posix_spawnattr_getschedparam (License): Likewise.
5896         * modules/posix_spawnattr_setschedparam (License): Likewise.
5897         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
5898         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
5899         * modules/posix_spawnattr_getsigdefault (License): Likewise.
5900         * modules/posix_spawnattr_setsigdefault (License): Likewise.
5901         * modules/posix_spawnattr_getsigmask (License): Likewise.
5902         * modules/posix_spawnattr_setsigmask (License): Likewise.
5903         * modules/posix_spawnattr_destroy (License): Likewise.
5904         * modules/posix_spawn_file_actions_init (License): Likewise.
5905         * modules/posix_spawn_file_actions_addclose (License): Likewise.
5906         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
5907         * modules/posix_spawn_file_actions_addopen (License): Likewise.
5908         * modules/posix_spawn_file_actions_destroy (License): Likewise.
5909         * modules/getdtablesize (License): Likewise.
5910         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
5911
5912 2010-10-26  Bruno Haible  <bruno@clisp.org>
5913
5914         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
5915         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
5916         Cygwin and mingw.
5917         Suggested by Eric Blake.
5918
5919 2010-10-26  Bruno Haible  <bruno@clisp.org>
5920
5921         stdio: Work around compilation error due to renameat() on Solaris 10.
5922         * lib/stdio.in.h: Include <unistd.h> on Solaris.
5923         * lib/renameat.c: Don't include <unistd.h> here.
5924         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
5925         Reported by Paul Eggert and Eric Blake.
5926
5927 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
5928
5929         renameat: port to Solaris 10, which declares renameat in unistd.h
5930
5931         * lib/renameat.c: Include unistd.h before stdio.h, because
5932         Solaris 10 declares renameat in unistd.h.  Problem encountered
5933         when building GNU tar 1.24 on Solaris 10.
5934
5935 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5936
5937         fdopendir: fix C89 compilation
5938         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
5939         compilers.
5940
5941 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
5942
5943         inttostr: simplify by removing unnecessary redundancy
5944         * lib/anytostr.c: Don't include verify.h.
5945         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
5946         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
5947         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
5948         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
5949         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
5950         Likewise.
5951         * modules/inttostr (Depends-on): Remove 'verify'.
5952
5953 2010-10-23  Bruno Haible  <bruno@clisp.org>
5954
5955         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
5956         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
5957         Reported by Eric Blake.
5958
5959 2010-10-23  Bruno Haible  <bruno@clisp.org>
5960
5961         Tests: Fix LOCALE_JA on MirBSD 10.
5962         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
5963         to an UTF-8 locale.
5964         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
5965         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5966         Reported by Eric Blake.
5967
5968 2010-10-21  Bruno Haible  <bruno@clisp.org>
5969
5970         nl_langinfo test: Avoid test failure on NetBSD 5.
5971         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
5972         Reported by Eric Blake.
5973
5974 2010-10-21  Eric Blake  <eblake@redhat.com>
5975
5976         c-stack: work around libsigsegv 2.8 bug
5977         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
5978         overflow on at least PowerPC64.
5979
5980 2010-10-17  Bruno Haible  <bruno@clisp.org>
5981
5982         userspec: Drop redundant file.
5983         * modules/userspec (Files): Remove lib/inttostr.h.
5984
5985 2010-10-17  Bruno Haible  <bruno@clisp.org>
5986
5987         nl_langinfo tests: Silence some warnings.
5988         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
5989         Reported by Jim Meyering.
5990
5991 2010-10-17  Bruno Haible  <bruno@clisp.org>
5992
5993         Make use of GCC's attribute __alloc_size__.
5994         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
5995         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
5996         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
5997         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
5998         __alloc_size__.
5999         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
6000         Suggested by Jim Meyering.
6001
6002 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
6003
6004         bootstrap: anchor .gitignore entries.
6005         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
6006         with...
6007         (insert_vc_ignore): ... this new function, which prepends `/' to
6008         all .gitignore entries before passing them to
6009         insert_sorted_if_absent.
6010
6011 2010-10-16  Bruno Haible  <bruno@clisp.org>
6012
6013         nextafter: Fix configure check.
6014         * modules/nextafter (configure.ac): Correct expected prototype.
6015
6016 2010-10-16  Bruno Haible  <bruno@clisp.org>
6017
6018         termios: Update documentation.
6019         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
6020
6021 2010-10-16  Bruno Haible  <bruno@clisp.org>
6022
6023         tests: Make them compile with TinyCC.
6024         * tests/test-strstr.c (main): Remove parentheses around array
6025         initializer.
6026
6027 2010-10-15  Eric Blake  <eblake@redhat.com>
6028
6029         ignore-value: make header idempotent
6030         * lib/ignore-value.h: Add double-inclusion guards.
6031         Reported by Stefan Berger.
6032
6033 2010-10-15  Jim Meyering  <meyering@redhat.com>
6034
6035         GNUmakefile: handle "stable" target, not "major"
6036         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
6037         lists in maint.mk and announce-gen.  Without this, "make stable"
6038         would fail to ensure that $(VERSION) is up to date.
6039
6040 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
6041
6042         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
6043         & co.
6044
6045 2010-10-14  Bruno Haible  <bruno@clisp.org>
6046
6047         vasnprintf: Don't set errno to 0.
6048         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
6049         block that sets it to 0.
6050         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6051
6052 2010-10-14  Bruno Haible  <bruno@clisp.org>
6053
6054         socketlib: Fix.
6055         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
6056         gl_PREREQ_SYS_H_WINSOCK2.
6057         Reported by Ian Beckwith <ianb@erislabs.net>.
6058
6059 2010-10-13  Jim Meyering  <meyering@redhat.com>
6060
6061         test-select-stdin.c: avoid warn_unused_result warnings
6062         * tests/test-select-stdin.c: Include "macros.h".
6063         ASSERT that read and fflush succeed.
6064
6065 2010-10-13  Jim Meyering  <meyering@redhat.com>
6066
6067         git-version-gen: do require git-VC'd files in cwd
6068         * build-aux/git-version-gen: Reject a git version string
6069         if there are no commits associated with the current directory.
6070         This avoids an unlikely false-positive (unrelated dir whose parent
6071         repository also contains a tag matching v*), as pointed out
6072         by Giuseppe Scrivano in
6073         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
6074
6075 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6076
6077         argv-iter: omit nonconforming declaration
6078         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
6079         enum arg_iter_err declaration, which doesn't conform to C99.
6080         Solaris 10 cc warns about this.
6081
6082 2010-10-13  Eric Blake  <eblake@redhat.com>
6083
6084         termios: fix compilation on mingw
6085         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
6086         (gl_TERMIOS_H): Adjust it on mingw.
6087         * modules/termios (Makefile.am): Substitute new key.
6088         * lib/termios.in.h (includes): Make include_next conditional.
6089         * doc/posix-headers/termios.texi (termios.h): Update
6090         documentation.
6091         Reported by Daniel P. Berrange.
6092
6093 2010-10-13  Jim Meyering  <meyering@redhat.com>
6094
6095         git-version-gen: don't require that .git/ be in the current dir
6096         * build-aux/git-version-gen: Adjust this script so that it works
6097         when run from any working directory beneath the top-level .git/-
6098         containing directory.  Inspired by a patch from Giuseppe Scrivano,
6099         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
6100
6101         test-select: avoid warn_unused_result warnings
6102         * tests/test-select.c: Include "macros.h".
6103         ASSERT that each call to read, write, and pipe succeeds.
6104         While not technically required, also check each "close".
6105         * modules/select-tests (Files): Add tests/macros.h.
6106
6107         test-symlinkat: remove declaration of unused local
6108         * tests/test-symlinkat.c (main): Remove unused local, "buf".
6109
6110         test-inttostr: avoid shadowing warnings
6111         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
6112         and use malloc rather than the stack for the same reason as
6113         mentioned in the comment justifying the other allocation.
6114
6115 2010-10-11  Bruno Haible  <bruno@clisp.org>
6116
6117         stdlib: Allow multiple gnulib generated replacements to coexist.
6118         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
6119         Reported by Sam Steingold <sds@gnu.org>.
6120
6121 2010-10-11  Jim Meyering  <meyering@redhat.com>
6122
6123         fix a documentation typo
6124         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
6125
6126 2010-10-11  Eric Blake  <eblake@redhat.com>
6127
6128         futimens: work around Solaris 11 bug
6129         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
6130         * tests/test-futimens.h (test_futimens): Enhance, rather than
6131         weaken test.
6132         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6133
6134 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6135
6136         Indentation.
6137         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
6138         higher-level operators more to the left.
6139
6140 2010-10-11  Jim Meyering  <meyering@redhat.com>
6141
6142         test-futimens: avoid unwarranted test failure on Solaris 5.11
6143         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
6144         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
6145         because it tries to dereference the NULL name argument.
6146
6147 2010-10-11  Bruno Haible  <bruno@clisp.org>
6148
6149         Indentation.
6150         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
6151         indentation.
6152
6153 2010-10-11  Jim Meyering  <meyering@redhat.com>
6154
6155         spawn.in.h: make indentation consistent with parentheses
6156         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
6157         Make indentation consistent with parentheses.
6158
6159 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
6160
6161         Fix mismatched parens in previous commit
6162         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
6163         parens.
6164
6165 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
6166
6167         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
6168
6169         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
6170         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
6171         * lib/malloca.c: Include "verify.h".
6172         (verify1): Remove, replacing with a verify call.
6173         * lib/relocwrapper.c (verify1): Likewise.
6174         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
6175         Likewise.
6176         * modules/malloca (Depends-on): Add 'verify'.
6177         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
6178         * modules/vasnprintf (Depends-on): Add 'verify'.
6179         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6180         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6181         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6182         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6183         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6184         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6185         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6186
6187         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
6188
6189         Formerly the style was sometimes 2*X - 1, because the C standard
6190         was wrongly thought to disallow ?: in integral constant expressions.
6191         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
6192         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
6193         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6194         * lib/stdint.in.h (_verify_intmax_size): Likewise.
6195         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
6196         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
6197         verify that time_t cannot be floating.
6198
6199 2010-10-08  Eric Blake  <eblake@redhat.com>
6200
6201         time: enforce recent POSIX ruling that time_t is integral
6202         * lib/time.in.h (__time_t_must_be_integral): Detect any
6203         problematic systems, allowing the rest of gnulib to assume POSIX.
6204
6205 2010-10-08  Jim Meyering  <meyering@redhat.com>
6206
6207         fdopendir: fix a bug on systems lacking openat and /proc support
6208         OpenBSD 4.7 is one such system.  The most noticeable effect was
6209         failure of any application making nontrivial use of fts: rm, du,
6210         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
6211           ./rm: traversal failed: `a': Bad file descriptor
6212         Debugging that, you see that even though FD 6 was closed just
6213         prior to the opendir call in fd_clone_opendir, its resulting
6214         dir->dd_fd was 8, rather than the expected value of 6:
6215
6216         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
6217         93                close (fd);
6218         (gdb) n
6219         94                dir = fd_clone_opendir (dupfd);
6220         (gdb) n
6221         95                saved_errno = errno;
6222         (gdb) p dir->dd_fd
6223         $11 = 8
6224
6225         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
6226         The problem is that on OpenBSD, fd_clone_opendir has to resort
6227         to using the old-style save/restore CWD mechanism, due to its
6228         lack of openat/proc support, and *that* would steal the FD (6)
6229         that opendir was supposed to use.
6230
6231         The fix is to squirrel away the desired FD so that save_cwd uses a
6232         different one, and then free the dest FD right before calling opendir.
6233         That guarantees opendir will use the required file descriptor.
6234
6235         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
6236
6237 2010-10-08  Bruno Haible  <bruno@clisp.org>
6238
6239         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
6240         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
6241
6242 2010-10-08  Bruno Haible  <bruno@clisp.org>
6243
6244         nanosleep: Make replacement POSIX compliant.
6245         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
6246         is out of range.
6247         Reported by Jim Meyering.
6248
6249 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6250
6251         bootstrap: add hook for altering gnulib.mk, for Bison
6252         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
6253         the Bison bootstrapping process can rewrite file names and variables
6254         in this file before later parts of 'bootstrap' use the file.
6255         Bison wants to include lib/gnulib.mk from the top-level makefile,
6256         so it needs the file names in this file to be relative to the top
6257         level, not relative to lib; plus it needs variable names to be
6258         rewritten.
6259         (slurp): Use the new function.
6260
6261         bootstrap: reformat for readability
6262         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
6263
6264 2010-10-08  Eric Blake  <eblake@redhat.com>
6265
6266         docs: update cygwin progress
6267         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
6268         1.7.7.
6269         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
6270         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
6271         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
6272         * doc/posix-functions/carg.texi (carg): Likewise.
6273         * doc/posix-functions/cargf.texi (cargf): Likewise.
6274         * doc/posix-functions/casin.texi (casin): Likewise.
6275         * doc/posix-functions/casinf.texi (casinf): Likewise.
6276         * doc/posix-functions/casinh.texi (casinh): Likewise.
6277         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
6278         * doc/posix-functions/catan.texi (catan): Likewise.
6279         * doc/posix-functions/catanf.texi (catanf): Likewise.
6280         * doc/posix-functions/catanh.texi (catanh): Likewise.
6281         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
6282         * doc/posix-functions/ccos.texi (ccos): Likewise.
6283         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
6284         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
6285         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
6286         * doc/posix-functions/cexp.texi (cexp): Likewise.
6287         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
6288         * doc/posix-functions/cimag.texi (cimag): Likewise.
6289         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
6290         * doc/posix-functions/clog.texi (clog): Likewise.
6291         * doc/posix-functions/clogf.texi (clogf): Likewise.
6292         * doc/posix-functions/conj.texi (conj): Likewise.
6293         * doc/posix-functions/conjf.texi (conjf): Likewise.
6294         * doc/posix-functions/cpow.texi (cpow): Likewise.
6295         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
6296         * doc/posix-functions/cproj.texi (cproj): Likewise.
6297         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
6298         * doc/posix-functions/creal.texi (creal): Likewise.
6299         * doc/posix-functions/crealf.texi (crealf): Likewise.
6300         * doc/posix-functions/csin.texi (csin): Likewise.
6301         * doc/posix-functions/csinf.texi (csinf): Likewise.
6302         * doc/posix-functions/csinh.texi (csinh): Likewise.
6303         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
6304         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
6305         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
6306         * doc/posix-functions/ctan.texi (ctan): Likewise.
6307         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
6308         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
6309         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
6310         * doc/posix-headers/complex.texi (complex.h): Likewise.
6311
6312 2010-10-07  Jim Meyering  <meyering@redhat.com>
6313
6314         parse-datetime: avoid compilation failure on OpenBSD 4.7
6315         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
6316         This works around a compilation failure on OpenBSD 4.7:
6317         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
6318
6319 2010-10-07  Eric Blake  <eblake@redhat.com>
6320
6321         docs: update cygwin progress
6322         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
6323         1.7.6.
6324         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6325         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
6326         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
6327         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
6328         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
6329         Likewise.
6330         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
6331         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
6332         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
6333         Likewise.
6334         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
6335         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
6336         Likewise.
6337         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
6338         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
6339         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
6340         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
6341         Likewise.
6342         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
6343         Likewise.
6344         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
6345
6346         docs: update parse-datetime history
6347         * doc/parse-datetime.texi (Authors of parse_datetime): Better
6348         documentation of this function's history and alternatives.
6349
6350         cygwin: use more robust version check
6351         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
6352         exclude an eventual cygwin 1.9.1.
6353         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6355         (gl_FUNC_STRCASESTR): Likewise.
6356         Reported by Bruno Haible.
6357
6358 2010-10-06  Bruno Haible  <bruno@clisp.org>
6359
6360         string, sys_select: Avoid #including large headers unless necessary.
6361         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
6362         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
6363         OSF/1, BeOS, Haiku.
6364         Reported by Jim Meyering.
6365
6366 2010-10-05  Eric Blake  <eblake@redhat.com>
6367
6368         memmem, strstr, strcasestr: fix bug with long periodic needle
6369         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
6370         periodic needle having false positive.
6371         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
6372         and cygwin 1.7.7.
6373         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
6374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6375         (gl_FUNC_STRCASESTR): Likewise.
6376         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6377         * tests/test-memmem.c (main): Expose the bug.
6378         * tests/test-strcasestr.c (main): Likewise.
6379         * tests/test-strstr.c (main): Likewise.
6380         * tests/test-c-strcasestr.c (main): Likewise.
6381         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
6382         * doc/posix-functions/strstr.texi (strstr): Likewise.
6383         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6384         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
6385
6386 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6387
6388         parse-datetime: do some more renaming
6389         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
6390         parse_datetime, not get_date.  Mention the renaming.
6391         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
6392         in comments.
6393         * m4/bison.m4: Likewise.
6394
6395 2010-10-05  Eric Blake  <eblake@redhat.com>
6396
6397         parse-datetime: better name than get_date
6398         * NEWS: Reword the deprecation notice.
6399         * modules/get_date: Rename to modules/parse-datetime.
6400         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
6401         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
6402         * lib/get_date.y: Rename to lib/parse-datetime.y.
6403         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
6404         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
6405         * doc/getdate.texi: Provide fallback wrapper.
6406         * lib/getdate.h: Move guts, and wrap...
6407         * lib/parse-datetime.h: ...new file.
6408         * lib/parse-datetime.y (get_date): Rename...
6409         (parse_datetime): ...to this.
6410         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
6411         (gl_PARSE_DATETIME): ...to this.
6412         * doc/posix-functions/getdate.texi (get_date): Provide fallback
6413         documentation.
6414         * modules/getdate (Files): Provide fallback docs and header.
6415         (Notice, Depends-on): Update references.
6416         * tests/test-parse-datetime.c: Likewise.
6417         * DEPENDENCIES: Likewise.
6418         * MODULES.html.sh (Date and time <time.h>): Likewise.
6419         * doc/parse-datetime.texi (Date input formats)
6420         (Authors of parse_datetime): Likewise.
6421         * modules/parse-datetime (Files, configure.ac, Makefile.am)
6422         (Include): Likewise.
6423         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
6424         * gnulib-tool: Likewise.
6425         * m4/bison.m4 (gl_BISON): Likewise.
6426         Suggested by Bruno Haible.
6427
6428 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6429
6430         more ports to Solaris tr, which needs [] around ranges
6431         * gnulib-tool: Solaris tr needs [] around ranges.
6432         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6433         * tests/test-pipe-filter-gi1.c (main): Likewise.
6434         * tests/test-pipe-filter-ii1.c (main): Likewise.
6435
6436 2010-10-05  Eric Blake  <eblake@redhat.com>
6437
6438         bootstrap: fix Solaris regression
6439         * build-aux/bootstrap (check_versions): Solaris tr still needs []
6440         around ranges.
6441         Reported by Pádraig Brady.
6442
6443         bootstrap: work with pkg-config
6444         * build-aux/bootstrap (check_versions): Also transliterate - in
6445         prerequisite name.
6446         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
6447         prerequisites that were already found, to avoid confusion.
6448         Reported by Justin Clift.
6449
6450         faccessat: remove unused wrappers
6451         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
6452         presence of these wrappers dragged in -lgen on Solaris.
6453         Reported by Clemens Brogi; fix suggested by Paul Eggert.
6454
6455 2010-10-05  Jim Meyering  <meyering@redhat.com>
6456
6457         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
6458         * Makefile (sc_pragma_columns): New syntax-check rule.
6459
6460 2010-10-04  Bruno Haible  <bruno@clisp.org>
6461
6462         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
6463         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
6464         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
6465         Reported by Bruce Korb and Eric Blake.
6466
6467 2010-10-04  Bruno Haible  <bruno@clisp.org>
6468
6469         threadlib: Make option --with-libpth-prefix work.
6470         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
6471         use $LIBPTH, not just -lpth.
6472
6473 2010-10-04  Bruno Haible  <bruno@clisp.org>
6474
6475         Avoid line length limitation from HP NonStop system header files.
6476         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
6477         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
6478         * lib/ctype.in.h: Likewise.
6479         * lib/dirent.in.h: Likewise.
6480         * lib/errno.in.h: Likewise.
6481         * lib/fcntl.in.h: Likewise.
6482         * lib/float.in.h: Likewise.
6483         * lib/getopt.in.h: Likewise.
6484         * lib/iconv.in.h: Likewise.
6485         * lib/inttypes.in.h: Likewise.
6486         * lib/langinfo.in.h: Likewise.
6487         * lib/locale.in.h: Likewise.
6488         * lib/math.in.h: Likewise.
6489         * lib/netdb.in.h: Likewise.
6490         * lib/netinet_in.in.h: Likewise.
6491         * lib/poll.in.h: Likewise.
6492         * lib/pthread.in.h: Likewise.
6493         * lib/pty.in.h: Likewise.
6494         * lib/sched.in.h: Likewise.
6495         * lib/se-selinux.in.h: Likewise.
6496         * lib/search.in.h: Likewise.
6497         * lib/signal.in.h: Likewise.
6498         * lib/spawn.in.h: Likewise.
6499         * lib/stdarg.in.h: Likewise.
6500         * lib/stddef.in.h: Likewise.
6501         * lib/stdint.in.h: Likewise.
6502         * lib/stdio.in.h: Likewise.
6503         * lib/stdlib.in.h: Likewise.
6504         * lib/string.in.h: Likewise.
6505         * lib/strings.in.h: Likewise.
6506         * lib/sys_file.in.h: Likewise.
6507         * lib/sys_ioctl.in.h: Likewise.
6508         * lib/sys_select.in.h: Likewise.
6509         * lib/sys_socket.in.h: Likewise.
6510         * lib/sys_stat.in.h: Likewise.
6511         * lib/sys_time.in.h: Likewise.
6512         * lib/sys_times.in.h: Likewise.
6513         * lib/sys_utsname.in.h: Likewise.
6514         * lib/sys_wait.in.h: Likewise.
6515         * lib/sysexits.in.h: Likewise.
6516         * lib/termios.in.h: Likewise.
6517         * lib/time.in.h: Likewise.
6518         * lib/unistd.in.h: Likewise.
6519         * lib/wchar.in.h: Likewise.
6520         * lib/wctype.in.h: Likewise.
6521         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
6522         * modules/ctype (Makefile.am): Likewise.
6523         * modules/dirent (Makefile.am): Likewise.
6524         * modules/errno (Makefile.am): Likewise.
6525         * modules/fcntl-h (Makefile.am): Likewise.
6526         * modules/float (Makefile.am): Likewise.
6527         * modules/getopt-posix (Makefile.am): Likewise.
6528         * modules/iconv-h (Makefile.am): Likewise.
6529         * modules/inttypes (Makefile.am): Likewise.
6530         * modules/langinfo (Makefile.am): Likewise.
6531         * modules/locale (Makefile.am): Likewise.
6532         * modules/math (Makefile.am): Likewise.
6533         * modules/netdb (Makefile.am): Likewise.
6534         * modules/netinet_in (Makefile.am): Likewise.
6535         * modules/poll-h (Makefile.am): Likewise.
6536         * modules/pthread (Makefile.am): Likewise.
6537         * modules/pty (Makefile.am): Likewise.
6538         * modules/sched (Makefile.am): Likewise.
6539         * modules/search (Makefile.am): Likewise.
6540         * modules/selinux-h (Makefile.am): Likewise.
6541         * modules/signal (Makefile.am): Likewise.
6542         * modules/spawn (Makefile.am): Likewise.
6543         * modules/stdarg (Makefile.am): Likewise.
6544         * modules/stddef (Makefile.am): Likewise.
6545         * modules/stdint (Makefile.am): Likewise.
6546         * modules/stdio (Makefile.am): Likewise.
6547         * modules/stdlib (Makefile.am): Likewise.
6548         * modules/string (Makefile.am): Likewise.
6549         * modules/strings (Makefile.am): Likewise.
6550         * modules/sys_file (Makefile.am): Likewise.
6551         * modules/sys_ioctl (Makefile.am): Likewise.
6552         * modules/sys_select (Makefile.am): Likewise.
6553         * modules/sys_socket (Makefile.am): Likewise.
6554         * modules/sys_stat (Makefile.am): Likewise.
6555         * modules/sys_time (Makefile.am): Likewise.
6556         * modules/sys_times (Makefile.am): Likewise.
6557         * modules/sys_utsname (Makefile.am): Likewise.
6558         * modules/sys_wait (Makefile.am): Likewise.
6559         * modules/sysexits (Makefile.am): Likewise.
6560         * modules/termios (Makefile.am): Likewise.
6561         * modules/time (Makefile.am): Likewise.
6562         * modules/unistd (Makefile.am): Likewise.
6563         * modules/wchar (Makefile.am): Likewise.
6564         * modules/wctype (Makefile.am): Likewise.
6565
6566 2010-10-04  Bruno Haible  <bruno@clisp.org>
6567
6568         read-file tests: Avoid a test failure on NonStop Kernel.
6569         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
6570         a regular file.
6571         Reported by Joachim Schmitz <schmitz@hp.com>.
6572
6573 2010-10-03  Bruno Haible  <bruno@clisp.org>
6574
6575         gnulib-tool: Fixes for --create-testdir with --libtool.
6576         * gnulib-tool (func_get_automake_snippet): Don't augment
6577         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
6578         an executable.
6579         (func_create_testdir): Handle module 'alloca' like func_import.
6580         Reported by Bruce Korb <bruce.korb@gmail.com>.
6581
6582 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
6583
6584         Avoid some lines longer than 80 characters.
6585         * lib/stdint.in.h: Break long comment lines.
6586         * lib/math.in.h: Likewise.
6587         (_GL_NUM_UINT_WORDS): New macro, for readability.
6588         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
6589         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
6590         * lib/stdlib.in.h: Likewise.
6591         * lib/spawn.in.h: Likewise.
6592         * lib/sys_socket.in.h: Update an URL.
6593         * lib/sys_stat.in.h: Break long line.
6594
6595 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
6596
6597         Improve pmccabe2html.
6598         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
6599         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
6600         when the sources change. Remove the line in the HTML about "Used
6601         ranges" (which implied that there might be other unused ranges),
6602         rename "Resume" to "Summary" (easier to understand for more users).
6603         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
6604         styles, and some unnecessary blank lines.
6605
6606 2010-10-03  Bruno Haible  <bruno@clisp.org>
6607             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6608
6609         acl: Add support for ACLs on NonStop Kernel.
6610         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
6611         Check whether the function aclsort() exists.
6612         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
6613         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
6614         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6615         (acl_nontrivial [HAVE_ACLSORT]: New function.
6616         (file_has_acl): Implement for NonStop Kernel.
6617         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6618         (qset_acl): Implement for NonStop Kernel.
6619         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
6620         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6621         (main): Implement for NonStop Kernel.
6622         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
6623         Kernel. Handle this flavor.
6624         * tests/test-set-mode-acl.sh: Likewise.
6625         * tests/test-copy-acl.sh: Likewise.
6626         * tests/test-copy-file.sh: Likewise.
6627
6628 2010-10-03  Bruno Haible  <bruno@clisp.org>
6629
6630         Info about ACLs on NonStop Kernel.
6631         * doc/acl-resources.txt: Add info about NonStop Kernel.
6632         References by Joachim Schmitz <schmitz@hp.com>.
6633
6634 2010-10-02  Bruno Haible  <bruno@clisp.org>
6635
6636         Define missing EDQUOT on NonStop Kernel.
6637         * lib/errno.in.h (EDQUOT): Assign a value if missing.
6638         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
6639         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
6640         missing.
6641         * doc/posix-headers/errno.texi: Mention the NSK bug.
6642         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
6643         Reported by Joachim Schmitz <schmitz@hp.com>.
6644
6645 2010-10-02  Bruno Haible  <bruno@clisp.org>
6646
6647         Update doc for POSIX:2008.
6648         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
6649         Update URL of POSIX specification.
6650
6651 2010-10-02  Bruno Haible  <bruno@clisp.org>
6652
6653         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
6654         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
6655         from gnulib, not from Automake.
6656
6657 2010-10-02  Bruno Haible  <bruno@clisp.org>
6658
6659         New module 'system-posix'.
6660         * modules/system-posix: New file.
6661         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
6662         module is present.
6663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6664         GNULIB_SYSTEM_POSIX.
6665         * modules/stdlib (Depends-on): Remove sys_wait.
6666         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
6667         * doc/posix-functions/system.texi: Mention the new module.
6668         * doc/posix-headers/stdlib.texi: Likewise.
6669         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
6670         define test_sys_wait_macros to a no-op.
6671         Reported by Sam Steingold <sds@gnu.org>.
6672
6673 2010-09-30  Bruno Haible  <bruno@clisp.org>
6674
6675         More renaming from 'getdate' to 'get_date'.
6676         * doc/get_date.texi: Renamed from doc/getdate.texi.
6677         * modules/get_date (Files): Update.
6678         * MODULES.html.sh (Date and time <time.h>): Update.
6679         * DEPENDENCIES: Update.
6680         * gnulib-tool: Update comment.
6681         * m4/bison.m4 (gl_BISON): Likewise.
6682         * m4/get_date.m4 (gl_GET_DATE): Likewise.
6683
6684 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
6685
6686         bootstrap: support ACLOCAL_FLAGS during aclocal
6687         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
6688         can add additional -I dir for third-party .m4 files.
6689
6690 2010-09-30  Eric Blake  <eblake@redhat.com>
6691
6692         bootstrap: use glibtoolize on MacOS
6693         * build-aux/bootstrap (check_versions): Convert libtool into
6694         libtoolize.
6695         (tool search): Move libtool check earlier, and look for
6696         glibtoolize for MacOS.
6697         (gnulib_tool_options): Auto-add --libtool when appropriate.
6698         Reported by Justin Clift.
6699
6700         poll: fix typo that broke test on MacOS
6701         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
6702         Reported by Justin Clift.
6703
6704         getdate: rename to get_date
6705         Note: getdate.h is not renamed, to minimize client impact.
6706         * modules/getdate: Mark obsolete.  Move old contents...
6707         * modules/get_date: ...to new module name.
6708         * modules/getdate-tests: Move...
6709         * modules/get_date-tests: ...here.
6710         * m4/getdate.m4: Move...
6711         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
6712         * lib/getdate.y: Move...
6713         * lib/get_date.y: ...here.
6714         * tests/test-getdate.c: Move...
6715         * tests/test-get_date.c: ...here.
6716         * doc/posix-functions/getdate.texi (getdate): Update name.
6717         * NEWS: Mention the change.
6718
6719 2010-09-29  Bruno Haible  <bruno@clisp.org>
6720
6721         Separate the module 'waitpid' from the module 'sys_wait'.
6722         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
6723         present.
6724         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
6725         gl_MODULE_INDICATOR_FOR_TESTS.
6726         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
6727         * modules/sys_wait (Depends-on): Remove waitpid.
6728         (Makefile.am): Substitute GNULIB_WAITPID.
6729         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
6730         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
6731         signature only if the 'waitpid' module is present.
6732         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
6733         * NEWS: Mention the change.
6734         * modules/grantpt (Depends-on): Add waitpid.
6735         * modules/wait-process (Depends-on): Likewise.
6736
6737 2010-09-29  Bruno Haible  <bruno@clisp.org>
6738
6739         More tests for module 'sys_wait'.
6740         * modules/sys_wait-c++-tests: New file.
6741         * tests/test-sys_wait-c++.cc: New file.
6742         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
6743         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6744
6745 2010-09-29  Bruno Haible  <bruno@clisp.org>
6746
6747         New module 'waitpid'.
6748         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
6749         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
6750         Don't include <process.h>.
6751         (waitpid): Declare only, using modern idiom.
6752         * m4/waitpid.m4: New file.
6753         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
6754         * modules/waitpid: New file.
6755         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
6756         (Makefile.am): Update.
6757         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6758
6759 2010-09-28  Bruno Haible  <bruno@clisp.org>
6760
6761         poll: Assume ANSI C.
6762         * lib/poll.c (poll): Use an ANSI C declaration.
6763
6764 2010-09-28  Bruno Haible  <bruno@clisp.org>
6765
6766         poll-h: Create poll.h on all platforms.
6767         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
6768         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
6769         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
6770         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
6771         (gl_REPLACE_POLL_H): Don't set POLL_H.
6772         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
6773         * modules/poll-h (Depends-on): Add include_next.
6774         (Makefile.am): Create poll.h unconditionally. Substitute also
6775         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
6776
6777 2010-09-28  Bruno Haible  <bruno@clisp.org>
6778
6779         Tests for module 'poll-h'.
6780         * modules/poll-h-c++-tests: New file.
6781         * tests/test-poll-h-c++.cc: New file.
6782
6783         Tests for module 'poll-h'.
6784         * modules/poll-h-tests: New file.
6785         * tests/test-poll-h.c: New file.
6786
6787 2010-09-28  Bruno Haible  <bruno@clisp.org>
6788
6789         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
6790         * modules/poll-h (Depends-on): Add 'extensions'.
6791
6792 2010-09-28  Bruno Haible  <bruno@clisp.org>
6793
6794         New module 'poll-h'.
6795         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
6796         (poll): Use modern idiom.
6797         * modules/poll-h: New file.
6798         * modules/poll (Files): Remove lib/poll.in.h.
6799         (Depends-on): Add poll-h.
6800         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
6801         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
6802         * m4/poll_h.m4: New file.
6803         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
6804         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
6805         and invoke gl_REPLACE_POLL_H.
6806         * lib/poll.c: Use common idiom.
6807         * tests/test-poll.c: Likewise.
6808         * doc/posix-headers/poll.texi: Mention the poll-h module.
6809         Suggested by Eric Blake.
6810
6811 2010-09-26  Bruno Haible  <bruno@clisp.org>
6812
6813         sys_wait: Implement WSTOPSIG.
6814         * lib/sys_wait.in.h (WSTOPSIG): New macro.
6815         Reported by Simon Josefsson.
6816
6817 2010-09-26  Simon Josefsson  <simon@josefsson.org>
6818
6819         stdlib, sys_wait: Avoid compilation error on mingw.
6820         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
6821
6822 2010-09-26  Bruno Haible  <bruno@clisp.org>
6823
6824         stdlib tests: Avoid code duplication.
6825         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
6826         * modules/sys_wait-tests (Files): Likewise.
6827         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
6828         * tests/test-stdlib.c: Include test-sys_wait.h.
6829         (main): Invoke test_sys_wait_macros.
6830         * tests/test-sys_wait.c: Include test-sys_wait.h.
6831         (main): Invoke test_sys_wait_macros.
6832
6833 2010-09-25  Simon Josefsson  <simon@josefsson.org>
6834
6835         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
6836         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
6837         sure Windows sockets are working before calling getaddrinfo.
6838         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
6839         * doc/gnulib.texi (Windows sockets): Fix typo.
6840
6841 2010-09-25  Bruno Haible  <bruno@clisp.org>
6842
6843         Tests for module 'regex-quote'.
6844         * modules/regex-quote-tests: New file.
6845         * tests/test-regex-quote.c: New file.
6846
6847         New module 'regex-quote'.
6848         * lib/regex-quote.h: New file.
6849         * lib/regex-quote.c: New file.
6850         * modules/regex-quote: New file.
6851         Suggested by Reuben Thomas <rrt@sc3d.org>.
6852
6853 2010-09-24  Bruno Haible  <bruno@clisp.org>
6854
6855         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
6856         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
6857
6858 2010-09-23  Bruno Haible  <bruno@clisp.org>
6859
6860         setenv: Relax license.
6861         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
6862         Blake.
6863         Requested by Eric Blake.
6864
6865 2010-09-22  Bruno Haible  <bruno@clisp.org>
6866
6867         termios: Relax license.
6868         * modules/termios (License): Change to LGPLv2+.
6869         Requested by Eric Blake.
6870
6871 2010-09-22  Bruno Haible  <bruno@clisp.org>
6872
6873         threadlib: Allow the package to change the default to 'no'.
6874         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
6875         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
6876         Reported by Paul Eggert.
6877
6878 2010-09-22  Pádraig Brady  <P@draigbrady.com>
6879             Bruno Haible  <bruno@clisp.org>
6880
6881         Fix endless loop in mbmemcasecoll.
6882         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
6883         byte.
6884         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
6885
6886 2010-09-22  Bruno Haible  <bruno@clisp.org>
6887
6888         Tests for module 'memcoll'.
6889         * modules/memcoll-tests: New file.
6890         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
6891
6892         memcoll, xmemcoll: Clarify size vs. length.
6893         * modules/memcoll.c (memcoll0): Clarify specification.
6894         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
6895         passed to collate_error.
6896
6897 2010-09-22  Bruno Haible  <bruno@clisp.org>
6898
6899         Tests for module 'memcasecmp'.
6900         * modules/memcasecmp-tests: New file.
6901         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
6902
6903 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
6904
6905         * lib/pthread.in.h: Add split double-inclusion guard, and include
6906         system <pthread.h> if there is one.  Use @@-style as in other
6907         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
6908         pthread.h doesn't.
6909         (pthread_mutexattr_destroy, pthread_mutexattr_init):
6910         (pthread_mutexattr_settype, pthread_mutex_trylock):
6911         New static inline functions, if there's no system <pthread.h>.
6912         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
6913         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
6914         Approximate with mutexes if the system lacks spinlocks, as in
6915         MacOS.
6916         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
6917         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
6918         @@-style.  Check for spinlocks separately.
6919         (gl_PTHREAD_DEFAULTS): New macro.
6920         * modules/pthread: Redo to use a more typical style for in.h files.
6921
6922 2010-09-21  Eric Blake  <eblake@redhat.com>
6923
6924         net_if: enhance tests
6925         * tests/test-net_if.c (main): Move signature checks earlier.
6926         Print failures to stderr.
6927         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
6928         Document the bug that we do not yet fix.
6929
6930 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
6931
6932         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
6933         about gnulib, not GSS.
6934
6935 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
6936
6937         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
6938         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
6939         for Emacs.
6940         * build-aux/pmccabe2html: Make Makefile.am example code more
6941         cut-and-paste friendly.
6942
6943 2010-09-21  Simon Josefsson  <simon@josefsson.org>
6944
6945         * tests/test-net_if.c: New file.
6946         * modules/net_if-tests: New file.
6947
6948 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
6949
6950         pthread: add pthread_spin_destroy
6951         * lib/pthread.in.h (pthread_spin_destroy): New function.
6952
6953 2010-09-19  Bruno Haible  <bruno@clisp.org>
6954
6955         gnulib-tool: Fix --help output.
6956         * gnulib-tool (func_usage): Fix help message.
6957         Reported by Reuben Thomas <rrt@sc3d.org>.
6958
6959 2010-09-18  Jim Meyering  <meyering@redhat.com>
6960
6961         maint.mk: avoid unexpanded \n in two diagnostics
6962         * top/maint.mk (sc_prohibit_always_true_header_tests):
6963         Don't use a literal \n in a halt=... assignment.  It would not be
6964         expanded, and the two \n bytes would appear in the diagnostic output
6965         rather than the desired newline.  Use halt=$$(printf ... instead.
6966         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6967
6968 2010-09-18  Bruno Haible  <bruno@clisp.org>
6969
6970         netinet_in: Doc tweak.
6971         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
6972         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6973
6974 2010-09-18  Jim Meyering  <meyering@redhat.com>
6975
6976         init.sh: correct an outdated comment
6977         * tests/init.sh (create_exe_shims_):  s/function/alias/
6978
6979         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
6980         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
6981         a file named "*.exe" is removed between the glob expansion and the
6982         processing of that oddly named file.
6983
6984 2010-09-17  Eric Blake  <eblake@redhat.com>
6985
6986         mirbsd: add some more support
6987         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
6988         in BSD family.
6989         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
6990         devices as OpenBSD.
6991         * m4/host-os.m4 (mirbsd): Add MirBSD.
6992
6993         tests: fix unportable assumption on sys/wait.h
6994         * tests/test-sys_wait.c (main): Relax test.
6995         * tests/test-stdlib.c (main): Likewise.
6996
6997         init.sh: accomodate directory with no .exes
6998         * tests/init.sh: Accomodate directory containing only scripts.
6999
7000         tests: avoid compiler warning
7001         * tests/test-stdlib.c (main): Use the variable.
7002
7003         fdutimens, fdutimensat: update signature, again
7004         * lib/utimens.h (gl_futimens): Delete, and move signature...
7005         (fdutimens): ...here.
7006         (fdutimensat): Rearrange signature.
7007         (lutimensat): Rename variable for clarity.
7008         * lib/fdutimensat.c (fdutimensat): Update signature.
7009         * lib/utimens.c (fdutimens): Likewise.
7010         (gl_futimens): Delete.
7011         (utimens, lutimens): Update callers.
7012         * lib/futimens.c (futimens): Likewise.
7013         * tests/test-fdutimensat.c: Likewise.
7014         * tests/test-utimens.c: Likewise.
7015         * tests/test-futimens.h: Update comment.
7016         * NEWS: Mention this.
7017         Suggested by Paul Eggert.
7018
7019 2010-09-17  Bruno Haible  <bruno@clisp.org>
7020
7021         Take over the maintenance of some older macros from Autoconf.
7022         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
7023         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
7024         GNU Autoconf.
7025         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
7026         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
7027
7028 2010-09-17  Eric Blake  <eblake@redhat.com>
7029
7030         fdutimensat: drop atflag validation
7031         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
7032         with valid fd, to close a race scenario where futimens is
7033         unsupported and FILE was replaced by a symlink.
7034         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
7035         accordingly.
7036         Suggested by Paul Eggert.
7037
7038 2010-09-16  Bruno Haible  <bruno@clisp.org>
7039
7040         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
7041         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
7042
7043 2010-09-16  Bruno Haible  <bruno@clisp.org>
7044
7045         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
7046         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
7047         login_tty exists.
7048         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7049
7050 2010-09-16  Bruno Haible  <bruno@clisp.org>
7051
7052         login_tty: Make the replacement code work on BSD systems.
7053         * lib/login_tty.c: Include <sys/ioctl.h>.
7054         (login_tty): Use ioctl TIOCSCTTY when available.
7055         * modules/login_tty (Depends-on): Add sys_ioctl.
7056         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7057
7058 2010-09-16  Bruno Haible  <bruno@clisp.org>
7059
7060         login_tty: Stricter unit test.
7061         * modules/login_tty-tests (Depends-on): Add tcgetsid.
7062         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
7063         and tcgetsid() after login_tty.
7064         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7065
7066 2010-09-16  Bruno Haible  <bruno@clisp.org>
7067
7068         New module 'tcgetsid'.
7069         * lib/tcgetsid.c: New file.
7070         * m4/tcgetsid.m4: New file.
7071         * modules/tcgetsid: New file.
7072         * modules/termios (Depends-on): Add c++defs, warn-on-use.
7073         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
7074         GNULIB_TCGETSID, HAVE_TCGETSID.
7075         * lib/termios.in.h: Include <sys/types.h>.
7076         (tcgetsid): New declaration.
7077         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
7078         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
7079         * doc/posix-functions/tcgetsid.texi: Mention the new module.
7080         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
7081
7082 2010-09-16  Bruno Haible  <bruno@clisp.org>
7083
7084         Tests for module 'termios'.
7085         * modules/termios-c++-tests: New file.
7086         * modules/termios-tests: New file.
7087         * tests/test-termios-c++.cc: New file.
7088         * tests/test-termios.c: New file.
7089
7090         New module 'termios'.
7091         * modules/termios: New file.
7092         * lib/termios.in.h: New file.
7093         * m4/termios_h.m4: New file.
7094         * doc/posix-headers/termios.texi: Mention the new module.
7095
7096 2010-09-16  Eric Blake  <eblake@redhat.com>
7097
7098         fdutimensat: add an atflag parameter
7099         * lib/fdutimensat.c (fdutimensat): Add new parameter.
7100         * lib/utimens.h (fdutimensat): Update prototype.
7101         * tests/test-fdutimensat.c: Adjust test to match.
7102         * NEWS: Document the change.
7103         Suggested by Paul Eggert.
7104
7105 2010-09-16  Bruno Haible  <bruno@clisp.org>
7106
7107         Fix typos in comments.
7108         * lib/striconveh.h: Fix typo in comment.
7109         * lib/login_tty.c (login_tty): Likewise.
7110
7111 2010-09-15  Bruno Haible  <bruno@clisp.org>
7112
7113         stdlib: clarify MirBSD WEXITSTATUS bug
7114         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
7115         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7116
7117 2010-09-15  Eric Blake  <eblake@redhat.com>
7118
7119         stdlib: work around MirBSD WEXITSTATUS bug
7120         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
7121         * modules/stdlib (Depends-on): Add sys_wait.
7122         * tests/test-sys_wait.c (main): Enhance test.
7123         * tests/test-stdlib.c (main): Likewise.
7124         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
7125
7126         docs: mention MacOS issue with WEXITSTATUS(constant)
7127         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
7128         issue.
7129         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7130
7131         strnlen: add tests
7132         * modules/strnlen-tests: New file.
7133         * tests/test-strnlen.c: Likewise.
7134
7135 2010-09-14  Bruno Haible  <bruno@clisp.org>
7136
7137         unistr/base: Avoid link errors when module 'libunistring' is also used.
7138         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
7139         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
7140         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
7141         Declare also when HAVE_LIBUNISTRING is set.
7142         Reported by Pádraig Brady <P@draigbrady.com>.
7143
7144 2010-09-14  Eric Blake  <eblake@redhat.com>
7145
7146         test-rawmemchr: make more robust
7147         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
7148         (Depends-on, configure.ac): Add needed prerequisites to use it.
7149         * modules/memchr-tests (Files, Depends-on, configure.ac):
7150         Likewise, to avoid implicit reliance on memchr module prereqs.
7151         * tests/test-memchr.c (main): Ensure proper masking.
7152         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
7153         reads.
7154
7155         memchr: detect glibc Alpha bug
7156         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
7157         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
7158         Alpha.
7159         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
7160         * tests/test-memchr.c (main): Enhance test.
7161         Reported by Nelson H. F. Beebe.
7162
7163 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7164
7165         fts, getcwd, glob: audit for dirfd returning -1
7166         * lib/fts.c (opendir): Remove #define; no longer used.
7167         (opendirat): New arg PDIR_FD.  All callers changed.
7168         (fts_build, _opendir2): Use new opendirat to avoid the need for
7169         dirfd, or for checking whether dirfd returns a negative value.
7170         Don't use opendir; always use openat followed by fdopendir.
7171         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
7172         it.
7173         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
7174         returns -1 here.
7175         * modules/fts (Depends-on): Remove dirfd.
7176         * modules/getcwd (Depends-on): Likewise.
7177
7178 2010-09-13  Eric Blake  <eblake@redhat.com>
7179
7180         float: fix broken MirBSD header
7181         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
7182         * doc/posix-headers/float.texi (float.h): Document it.
7183
7184 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7185
7186         fts: use O_NOFOLLOW to avoid race condition when opening a directory
7187         * lib/fts.c (opendirat): New arg extra_flags.
7188         (__opendir2): Use it to avoid following symlinks when opening
7189         a directory, if symlinks are not supposed to be followed.  See
7190         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
7191
7192         fdopendir: preserve argument fd before returning
7193         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
7194         (fdopendir_with_dup, fd_clone_opendir): New static functions.
7195         (fdopendir): Use them, arranging for FD to be open to the same
7196         directory that it was when it started.  (It might be temporarily
7197         closed while fdopendir is running, so this not thread- or
7198         signal-safe.)  Be careful to do the right thing even when file
7199         descriptors are scarce and dup fails with errno == EMFILE.  See
7200         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
7201
7202 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
7203
7204         regex: Pass the system regex if its only problem is 32-bit regoff_t.
7205         * NEWS: Document change.
7206         * m4/regex.m4: Disable test for regoff_t size.
7207
7208 2010-09-13  Jim Meyering  <meyering@redhat.com>
7209
7210         fts: don't operate on an invalid file descriptor after failed dup
7211         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
7212         negative file descriptor.
7213
7214 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
7215
7216         savedir: add streamsavedir, deprecate fdsavedir
7217         * NEWS: Mention deprecation of fdsavedir.
7218         * lib/savedir.c (streamsavedir): New extern function, whose name
7219         ends in "savedir" to be consistent with the others.  This differs
7220         from savedirstream in that it doesn't close its argument.  The
7221         next version of GNU tar will use this instead of fdsavedir, to
7222         avoid some race conditions and conserve file descriptors.
7223         (savedirstream): Reimplement as a wrapper around streamsavedir.
7224         (fdsavedir): Add a comment deprecating this function.  As far as
7225         I know, only GNU tar used it, and GNU tar doesn't need it any more.
7226         * lib/savedir.h (streamsavedir): New decl.
7227         (fdsavedir): Add a comment deprecating this.
7228
7229 2010-09-10  Bruno Haible  <bruno@clisp.org>
7230
7231         langinfo: Fix last commit.
7232         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
7233         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
7234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7235
7236 2010-09-10  Bruno Haible  <bruno@clisp.org>
7237
7238         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
7239         * lib/progreloc.c (O_EXEC): Define fallback.
7240
7241 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
7242
7243         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
7244         * NEWS: Document recent changes to fcntl-h.
7245         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
7246         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
7247         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
7248         Similarly for O_SEARCH; this last was already true, but not documented.
7249         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
7250         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
7251         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
7252         Likewise.
7253         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
7254         is zero, not whether it is defined.
7255         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
7256         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
7257         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
7258
7259 2010-09-10  Bruno Haible  <bruno@clisp.org>
7260
7261         langinfo, nl_langinfo: Fix for IRIX 5.3.
7262         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
7263         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
7264         HAVE_LANGINFO_YESEXPR.
7265         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
7266         HAVE_LANGINFO_YESEXPR.
7267         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
7268         HAVE_LANGINFO_T_FMT_AMPM is 0.
7269         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
7270         HAVE_LANGINFO_YESEXPR is 0.
7271         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
7272         NOEXPR.
7273         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
7274         * doc/posix-functions/nl_langinfo.texi: Likewise.
7275         Reported by Eric Blake.
7276
7277 2010-09-10  Bruno Haible  <bruno@clisp.org>
7278
7279         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
7280         * doc/glibc-functions/login_tty.texi: Mention the include file problem
7281         on FreeBSD 8.0 and OpenBSD 4.6.
7282         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
7283         * m4/pty_h.m4 (gl_PTY_H): Likewise.
7284         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
7285         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
7286         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
7287         ac_includes_default.
7288         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7289
7290 2010-09-09  Eric Blake  <eblake@redhat.com>
7291
7292         strsignal: work around NetBSD bug
7293         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
7294         * lib/string.in.h (includes): Likewise.
7295         * doc/posix-functions/strsignal.texi (strsignal): Document the
7296         bug.
7297         Reported by Nelson H. F. Beebe.
7298
7299         gnulib-tool: work with NetBSD /bin/sh
7300         * gnulib-tool (func_cache_var, func_cache_lookup_module)
7301         (func_get_description, func_get_comment, func_get_status)
7302         (func_get_notice, func_get_applicability, func_get_filelist)
7303         (func_get_dependencies, func_get_autoconf_early_snippet)
7304         (func_get_autoconf_snippet, func_get_automake_snippet)
7305         (func_get_include_directive, func_get_link_directive)
7306         (func_get_license, func_get_maintainer, func_import): Avoid
7307         shell syntax errors from parsing syntax extensions.
7308
7309 2010-09-09  Bruno Haible  <bruno@clisp.org>
7310
7311         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7312         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
7313         a reliable way to determine whether the 'alias' command works.
7314
7315 2010-09-08  Jim Meyering  <meyering@redhat.com>
7316
7317         init.sh: penalize a set-x-impaired shell; don't disqualify it
7318         * tests/init.sh: Too many shells corrupt application stderr when
7319         you set -x, so we can't afford to disqualify them, since at least
7320         on Irix-6.5, that would disqualify all bourne shells.
7321         Instead, use a two-pass approach.
7322         On the first pass, try to find a shell that meets the stricter
7323         condition that set -x does not corrupt stderr.
7324         If no shell meets the stricter condition, retest each candidate
7325         shell, but without that extra condition.  Finally, when
7326         VERBOSE=yes is requested and set -x might cause trouble, simply
7327         issue a warning and refrain from enabling debug output.
7328
7329 2010-09-08  Eric Blake  <eblake@redhat.com>
7330
7331         unsetenv: fix OpenBSD bug
7332         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
7333         * doc/posix-functions/unsetenv.texi (unsetenv): Update
7334         documentation.
7335         Reported by Jim Meyering.
7336
7337         strtod: work around IRIX 6.5 bug
7338         * lib/strtod.c (strtod): Reparse number on shorter string if
7339         exponent parse was invalid.
7340         * tests/test-strtod.c (main): Add check for "0x1p 2".
7341         Reported by Tom G. Christensen.
7342
7343         getopt: optimize previous patch
7344         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
7345         empty variable.  Speed up awk script.
7346         Reported by Paolo Bonzini.
7347
7348 2010-09-08  Jim Meyering  <meyering@redhat.com>
7349
7350         test.sh: disqualify shells for which set -x corrupts stderr
7351         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
7352         and OpenBSD 4.7.  They make it so with "set -x", environment settings
7353         appear in stderr output.  For example, this command:
7354             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
7355         prints "P=1" on those two systems:
7356
7357 2010-09-08  Bruno Haible  <bruno@clisp.org>
7358
7359         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7360         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
7361         commands, because some shells ignore redirections when there is an
7362         error in the command lookup.
7363         Reported by Eric Blake.
7364
7365 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
7366
7367         * lib/regex.h: Fix a mention of `regex_compile' (should be
7368         `re_compile_pattern').
7369         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
7370         (re_set_registers): Correct name of parameter in comment.
7371
7372         * doc/regex.texi: Add documentation for missing syntax flags.
7373         Remove commented-out documentation of defunct syntax option
7374         RE_NO_EMPTY_ALTS.
7375         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
7376         Add documentation of re_set_registers.
7377         Document trick to re-use a pattern buffer by setting fastmap manually.
7378         Update documentation of struct re_pattern_buffer per public members.
7379         Uncomment documentation of equivalence class operators and
7380         collating symbol operators, since they are now implemented,
7381         Explain leftmost-longest matching in relation to alternatives.
7382         Tidy documentation of substring matching.
7383         Remove POSIX documentation, which is done better in
7384         glibc, and refer the reader there. Keep BSD API documentation, as
7385         that is not readily available elsewhere.
7386
7387 2010-09-07  Eric Blake  <eblake@redhat.com>
7388
7389         getopt: handle POSIXLY_CORRECT set but not exported
7390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
7391         export state of POSIXLY_CORRECT, due to bash set -o posix.
7392         Reported by Dustin J. Mitchell.
7393
7394 2010-09-05  Bruno Haible  <bruno@clisp.org>
7395
7396         gnulib-tool: Highlight the changed options.
7397         * gnulib-tool (func_usage): Display the --import, --add-import,
7398         --remove-import explanations in bold font.
7399
7400 2010-09-06  Karl Berry  <karl@gnu.org>
7401
7402         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
7403
7404 2010-09-05  Bruno Haible  <bruno@clisp.org>
7405
7406         uniwidth/width: Update comment.
7407         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
7408         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
7409
7410 2010-09-05  Bruno Haible  <bruno@clisp.org>
7411
7412         isinf, isnan: Relax license.
7413         * modules/isinf (License): Change from GPL to LGPL, with consent from
7414         Ben Pfaff.
7415         * modules/isnan (License): Likewise.
7416         Requested by Ludovic Courtès.
7417
7418 2010-09-04  Bruno Haible  <bruno@clisp.org>
7419
7420         gnulib-tool: Help migration from --import to --add-import or --update.
7421         * gnulib-tool: Emit a verbose error message when --import is used
7422         without any module name.
7423
7424 2010-09-04  Bruno Haible  <bruno@clisp.org>
7425
7426         Update doc about gnulib-tool.
7427         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
7428         'gnulib-tool --update' in more detail.
7429         Reported by Eric Blake.
7430
7431 2010-09-04  Bruno Haible  <bruno@clisp.org>
7432
7433         gnulib-tool: Change --import. New options --add/remove-import.
7434         * gnulib-tool: New options --add-import, --remove-import.
7435         (func_usage): Document them.
7436         (have_associative): Define always.
7437         (func_import): In import mode, don't merge the specified settings with
7438         the cached settings. Implement remove-import mode.
7439         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
7440         Explain when to use them versus --import.
7441         (Simple update): Use --add-import instead of --import.
7442         * NEWS: Mention the change.
7443
7444 2010-09-04  Bruno Haible  <bruno@clisp.org>
7445
7446         * doc/gnulib-tool.texi (Initial import): Update paragraph about
7447         separate gnulib.mk.
7448
7449 2010-09-04  Bruno Haible  <bruno@clisp.org>
7450
7451         gnulib-tool: Don't talk about CVS any more.
7452         * gnulib-tool (func_usage, func_import): Write "version control"
7453         instead of CVS.
7454
7455 2010-09-04  Jim Meyering  <meyering@redhat.com>
7456
7457         maint.mk: avoid obscure sc_copyright_check failure in coreutils
7458         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
7459         false positives (whose names may be ill-chosen) when searching
7460         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
7461         would cause a false-positive.
7462
7463         avoid coreutils "make distcheck" failure
7464         Coreutils tests with an absolute build directory name that contains
7465         a space.  Not quoting this directory name caused a failure.
7466         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
7467         * tests/test-vc-list-files-cvs.sh: Likewise.
7468
7469 2010-09-04  Bruno Haible  <bruno@clisp.org>
7470
7471         gnulib-tool: Avoid error when run in a package without Makefile.am.
7472         * gnulib-tool: When collecting the m4dirs in a package that does not
7473         have a Makefile.am, eliminate those directories that contain no
7474         gnulib-cache.m4. Fix expression that counts these directories.
7475
7476 2010-09-04  Bruno Haible  <bruno@clisp.org>
7477
7478         update-copyright test: Improve output when perl is missing or too old.
7479         * tests/test-update-copyright.sh: Move test of Perl version down after
7480         the test whether Perl exists. Provide an explanation relating Perl's
7481         error message to Automake's SKIP: message.
7482
7483 2010-09-04  Bruno Haible  <bruno@clisp.org>
7484
7485         Don't augment PATH in TESTS_ENVIRONMENT.
7486         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
7487         set abs_aux_dir instead of augmenting PATH.
7488         * modules/vc-list-files-tests (Makefile.am): Likewise.
7489         * tests/test-update-copyright.sh: Augment PATH here.
7490         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
7491         path_prepend_.
7492         * tests/test-vc-list-files-git.sh: Likewise.
7493
7494 2010-09-04  Jim Meyering  <meyering@redhat.com>
7495
7496         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
7497         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
7498
7499 2010-09-04  Bruno Haible  <bruno@clisp.org>
7500
7501         strdup: Fix compilation error in C++ mode.
7502         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
7503         the macro.
7504
7505 2010-09-04  Bruno Haible  <bruno@clisp.org>
7506
7507         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
7508         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
7509         macro into a function.
7510         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7511
7512 2010-09-04  Bruno Haible  <bruno@clisp.org>
7513
7514         Set PATH_SEPARATOR the same way autoconf does.
7515         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
7516         the value of PATH_SEPARATOR the same way autoconf-generated configure
7517         scripts do.
7518         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
7519         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7520
7521 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7522
7523         Set PATH_SEPARATOR the same way autoconf does.
7524         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
7525         the same way autoconf-generated configure scripts do.
7526         * posix-modules: Likewise.
7527
7528 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7529
7530         hash: fix safe_hasher const typo
7531         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
7532         const; otherwise, there is a type error later.
7533
7534 2010-09-02  Jim Meyering  <meyering@redhat.com>
7535
7536         test-update-copyright.sh: require perl 5.8.0
7537         * tests/test-update-copyright.sh: Require 5.8.0,
7538         which Tom G. Christensen has confirmed is adequate,
7539         while 5.6.1 is not.
7540
7541 2010-09-02  Eric Blake  <eblake@redhat.com>
7542
7543         tests: init.sh improvements for re-exec'ing with zsh
7544         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
7545         -vx through shell re-exec.
7546         Reported by Tom G. Christensen.
7547
7548         wctype: fix typo in previous commit
7549         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
7550         Reported by Ludovic Courtès.
7551
7552 2010-09-02  Jim Meyering  <meyering@redhat.com>
7553
7554         test-update-copyright.sh: skip test if Perl is too old
7555         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
7556         Reported by Tom G. Christensen.
7557
7558 2010-09-02  Bruno Haible  <bruno@clisp.org>
7559
7560         wctype: Avoid compilation error on IRIX 6.5.30.
7561         * lib/wctype.in.h (iswblank): Declare with a replacement if
7562         REPLACE_ISWBLANK is set.
7563         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
7564         declared. Set REPLACE_ISWBLANK.
7565         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
7566         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
7567         * doc/posix-headers/wctype.texi: Likewise.
7568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7569
7570 2010-09-01  Bruno Haible  <bruno@clisp.org>
7571
7572         New module 'socketlib'.
7573         * modules/socketlib: New file.
7574         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
7575         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
7576         * modules/sockets (Depends-on): Add socketlib.
7577         Suggested by Sam Steingold <sds@gnu.org>.
7578
7579 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7580
7581         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
7582
7583         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
7584         when one needs search access to a directory but not read access.
7585         On systems where it is available, it works in some cases where
7586         O_RDONLY does not, namely on directories that are searchable but
7587         not readable, and which need only to be searchable.  If O_SEARCH
7588         is not available, fall back to the traditional method of using
7589         O_RDONLY.
7590
7591         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
7592         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
7593         when opening a directory that needs only to be searchable.
7594         * lib/chdir-safer.c (chdir_no_follow): Likewise.
7595         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
7596         * lib/openat-proc.c (openat_proc_name): Likewise.
7597         * lib/openat.c (openat_needs_fchdir): Likewise.
7598         * lib/save-cwd.c (save_cwd): Likewise.
7599         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
7600
7601 2010-08-28  Bruno Haible  <bruno@clisp.org>
7602
7603         New module 'host-cpu-c-abi'.
7604         * modules/host-cpu-c-abi: New file.
7605         * m4/host-cpu-c-abi.m4: New file, based on part of
7606         clisp/src/m4/general.m4.
7607         Requested by Sam Steingold <sds@gnu.org>.
7608
7609 2010-08-31  Eric Blake  <eblake@redhat.com>
7610         and Jim Meyering  <meyering@redhat.com>
7611
7612         hash: factor, and guard against misbehaving hasher function
7613         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
7614         of table->hasher's return value.  Also protect against a hash value
7615         so large that adding it to table->bucket results in a NULL pointer.
7616         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
7617         Use it in place of open-coded check-and-abort.
7618
7619 2010-08-30  Bruno Haible  <bruno@clisp.org>
7620
7621         hash: silence spurious clang warning
7622         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
7623         Reported by Eric Blake.
7624
7625 2010-08-30  Eric Blake  <eblake@redhat.com>
7626
7627         strstr, memmem, strcasestr: avoid leaked shell message
7628         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
7629         FreeBSD.
7630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7631         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7632
7633         tests: silence clang warning
7634         * tests/test-malloca.c (do_allocation): Avoid dead store.
7635
7636 2010-08-29  Bruno Haible  <bruno@clisp.org>
7637
7638         gettext: Fix recent mistake.
7639         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
7640
7641 2010-08-29  Bruno Haible  <bruno@clisp.org>
7642
7643         selinux-h: Offer a --without-selinux option.
7644         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
7645         --without-selinux was specified, skip all tests and define
7646         HAVE_SELINUX_SELINUX_H to 0.
7647         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
7648         set LIB_SELINUX to empty.
7649         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
7650         gl_LIBSELINUX. If --without-selinux was specified, replace
7651         selinux/context.h.
7652         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
7653
7654 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7655             Bruno Haible  <bruno@clisp.org>
7656
7657         Make the module 'realloc-gnu' work again on AIX and OSF/1.
7658         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
7659         of HAVE_REALLOC.
7660         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
7661         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
7662         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
7663         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7664
7665 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7666             Bruno Haible  <bruno@clisp.org>
7667
7668         Make the module 'calloc-gnu' work again on AIX and OSF/1.
7669         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
7670         HAVE_CALLOC.
7671         * lib/xmalloc.c: Update accordingly.
7672         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
7673         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
7674         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
7675
7676 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7677             Bruno Haible  <bruno@clisp.org>
7678
7679         Make the module 'malloc-gnu' work again on AIX and OSF/1.
7680         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
7681         HAVE_MALLOC.
7682         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
7683         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
7684         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7685
7686 2010-08-29  Bruno Haible  <bruno@clisp.org>
7687
7688         Update modules list.
7689         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
7690         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
7691         (String handling <string.h>): Add astrxfrm.
7692         (File system functions): Add readlinkat.
7693
7694 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7695
7696         Tests for module 'realloc-gnu'.
7697         * modules/realloc-gnu-tests: New file.
7698         * tests/test-realloc-gnu.c: New file.
7699
7700         Tests for module 'calloc-gnu'.
7701         * modules/calloc-gnu-tests: New file.
7702         * tests/test-calloc-gnu.c: New file.
7703
7704         Tests for module 'malloc-gnu'.
7705         * modules/malloc-gnu-tests: New file.
7706         * tests/test-malloc-gnu.c: New file.
7707
7708 2010-08-28  Bruno Haible  <bruno@clisp.org>
7709
7710         Rename module 'realloc' -> 'realloc-gnu'.
7711         * modules/realloc-gnu: New file, copied from modules/realloc.
7712         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
7713         obsolete.
7714         * modules/mgetgroups (Depends-on): Update.
7715         * doc/posix-functions/realloc.texi: Update.
7716         * NEWS: Mention the change.
7717
7718         Rename module 'calloc' -> 'calloc-gnu'.
7719         * modules/calloc-gnu: New file, copied from modules/calloc.
7720         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
7721         obsolete.
7722         * doc/posix-functions/calloc.texi: Update.
7723         * NEWS: Mention the change.
7724
7725         Rename module 'malloc' -> 'malloc-gnu'.
7726         * modules/malloc-gnu: New file, copied from modules/malloc.
7727         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
7728         obsolete.
7729         * modules/argp (Depends-on): Update.
7730         * modules/regex (Depends-on): Update.
7731         * doc/posix-functions/malloc.texi: Update.
7732         * NEWS: Mention the change.
7733
7734 2010-08-28  Eric Blake  <eblake@redhat.com>
7735
7736         pread, pwrite: add missing dependency
7737         * modules/pread (Depends-on): Add extensions.
7738         * modules/pwrite (Depends-on): Likewise.
7739
7740 2010-08-28  Bruno Haible  <bruno@clisp.org>
7741
7742         unistr/u*-strchr: Fix tests dependencies.
7743         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
7744         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
7745         Reported by Ian Beckwith <ianb@erislabs.net>.
7746
7747 2010-08-28  Bruno Haible  <bruno@clisp.org>
7748
7749         read-file: Don't occupy too much unused memory.
7750         * lib/read-file.c (fread_file): Shrink the buffer at the end.
7751
7752 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
7753             Eric Blake  <eblake@redhat.com>
7754             Bruno Haible  <bruno@clisp.org>
7755
7756         read-file: Avoid memory reallocations with regular files.
7757         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
7758         (fread_file): With regular files, use the remaining length as the
7759         initial buffer size.  Check against overflow.
7760         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
7761         sys_stat.
7762
7763 2010-08-28  Bruno Haible  <bruno@clisp.org>
7764
7765         ftello: Relax license.
7766         * modules/ftello (License): Relax to LGPLv2+.
7767         Reported by Eric Blake.
7768
7769 2010-08-28  Bruno Haible  <bruno@clisp.org>
7770
7771         Avoid relocwrapper link errors due to gnulib replacement functions.
7772         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
7773         function.
7774         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7775
7776 2010-08-28  Bruno Haible  <bruno@clisp.org>
7777
7778         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
7779         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
7780         defined.
7781         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
7782         Suggested by Eric Blake.
7783
7784 2010-08-28  Bruno Haible  <bruno@clisp.org>
7785
7786         sys_socket, netdb: Ensure socklen_t gets defined.
7787         * modules/sys_socket (Depends-on): Add socklen.
7788         * modules/netdb (Depends-on): Likewise.
7789         * modules/getaddrinfo (Depends-on): Remove socklen.
7790         * modules/getsockopt (Depends-on): Likewise.
7791         * modules/setsockopt (Depends-on): Likewise.
7792         * tests/test-sys_socket.c: Check that socklen_t is defined.
7793         * tests/test-netdb.c: Likewise.
7794         * m4/socklen.m4: Update comments.
7795         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7796
7797 2010-08-27  Eric Blake  <eblake@redhat.com>
7798
7799         login_tty: add missing dependency
7800         * modules/login_tty (Depends-on): Add pty.
7801
7802 2010-08-26  Eric Blake  <eblake@redhat.com>
7803
7804         lib-symbol-versions: fix m4 quoting
7805         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
7806         format for AC_LINK_IFELSE.
7807
7808         glob: fix compile test
7809         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
7810
7811         btowc: fix missing file
7812         * modules/btowc (Files): Also ship locale-fr.m4.
7813
7814         lseek: fix link test
7815         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
7816         AC_LINK_IFELSE.
7817
7818         include_next: silence autoconf 2.68 warning
7819         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
7820         AC_COMPILE_IFELSE as special.
7821         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
7822         autoconf < 2.68.
7823
7824         acl: fix compilation test
7825         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
7826         AC_COMPILE_IFELSE.
7827
7828 2010-08-26  Bruno Haible  <bruno@clisp.org>
7829
7830         Modernize AC_TRY_RUN invocations.
7831         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
7832         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7833         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
7834         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
7835         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
7836         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
7837         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7838         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7839         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7840         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7841         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7842         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7843         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7844         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7846         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7847         gl_MBRLEN_NUL_RETVAL): Likewise.
7848         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7849         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
7850         Likewise.
7851         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7852         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7853         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7854         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7855         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
7856         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
7857         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
7858         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7859         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
7860         Likewise.
7861         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
7862         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
7863         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7864         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7865         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7866         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7867         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7868         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
7869         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7871
7872 2010-08-26  Bruno Haible  <bruno@clisp.org>
7873
7874         Modernize AC_TRY_LINK invocations.
7875         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
7876         AC_TRY_LINK.
7877         * m4/argp.m4 (gl_ARGP): Likewise.
7878         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
7879         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7880         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7881         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7882         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7883         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
7884         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
7885         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
7886         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7887         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
7888         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7889         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
7890         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
7891         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7892         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
7893         * m4/hostent.m4 (gl_HOSTENT): Likewise.
7894         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7895         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
7896         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
7897         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
7898         Likewise.
7899         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
7900         Likewise.
7901         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
7902         Likewise.
7903         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
7904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
7905         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
7906         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7907         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
7908         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7909         * m4/servent.m4 (gl_SERVENT): Likewise.
7910         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
7911         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
7912         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
7913         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
7914         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7915         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7916         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7917         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7918         * modules/tsearch-tests (configure.ac): Likewise.
7919
7920 2010-08-26  Bruno Haible  <bruno@clisp.org>
7921
7922         Modernize AC_TRY_COMPILE invocations.
7923         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
7924         AC_TRY_COMPILE.
7925         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
7926         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
7927         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
7928         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
7929         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
7930         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7931         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7932         * m4/lock.m4 (gl_LOCK): Likewise.
7933         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
7934         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7935         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
7936         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
7937         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
7938         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
7939         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
7940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
7941         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
7942         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
7943         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
7944         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7945         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
7946         extraneous semicolon.
7947
7948 2010-08-26  Jim Meyering  <meyering@redhat.com>
7949
7950         stat-time: relax license LGPL
7951         * modules/stat-time (License): Change from GPL to LGPL,
7952         with consent from all contributors, for use in libguile.
7953         Requested by Ludovic Courtès.
7954
7955 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
7956
7957         poll: return immediately on POLLHUP.
7958         * lib/poll.c (poll): Always set timeout before wait_timeout is
7959         computed.
7960
7961 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7962
7963         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
7964         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
7965         rmdir ("dir/.//"), unlinkat.
7966
7967 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7968
7969         stdbool: avoid spurious failure with modern xlc
7970         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
7971
7972 2010-08-24  Bruno Haible  <bruno@clisp.org>
7973
7974         getloadavg: simplify code
7975         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
7976         gl_have_func. Update comments.
7977
7978 2010-08-24  Eric Blake  <eblake@redhat.com>
7979
7980         getloadavg: don't define SVR4 on cygwin
7981         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
7982         only define SVR4 when -lkvm is required.
7983         Reported by Yaakov Selkowitz.
7984
7985 2010-08-24  Bruno Haible  <bruno@clisp.org>
7986
7987         priv-set: fix comment
7988         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
7989
7990 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
7991
7992         priv-set: fix comments
7993         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
7994         to match code, as suggested by David Bartley in:
7995         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
7996
7997 2010-08-23  Eric Blake  <eblake@redhat.com>
7998
7999         stdbool: avoid rejecting clang
8000         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8001         * tests/test-stdbool.c: Enable more tests if using the system
8002         <stdbool.h> instead of the gnulib replacement.
8003         (main): Move xlc bug test to a runtime test for all compilers.
8004         Reported by Anders Kaseorg.
8005
8006         argz: fix shell quoting issue
8007         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
8008         Reported by Charles Wilson.
8009
8010 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
8011             Erik Faye-Lund <kusmabite@gmail.com>
8012
8013         poll, select: handle ERROR_BROKEN_PIPE.
8014         * lib/poll.c (win32_compute_revents): Return POLLHUP when
8015         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8016         * lib/select.c (win32_compute_revents): Do not mark a pipe
8017         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8018
8019 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
8020
8021         fts: allow compilation with C++
8022         * lib/fts_.h: Specify extern "C" linkage with C++.
8023
8024 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8025
8026         Fix gnulib-tool sed script de-commentation for AIX sed.
8027         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
8028         sed.
8029
8030 2010-08-17  Eric Blake  <eblake@redhat.com>
8031
8032         test-stddef: test for (some) offsetof bugs
8033         * tests/test-stddef.c: Enhance test to ensure correct type of
8034         offsetof.
8035         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
8036         that we are not fixing at this time.
8037
8038 2010-08-15  Bruno Haible  <bruno@clisp.org>
8039
8040         stpncpy: Allow stpncpy to be defined as a macro.
8041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
8042         if it's already correctly declared.
8043         * lib/string.in.h (stpncpy): Undefine before redefining.
8044         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
8045
8046 2010-08-14  Bruno Haible  <bruno@clisp.org>
8047
8048         Rename module 'memxfrm' to 'amemxfrm'.
8049         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
8050         (amemxfrm): Renamed from memxfrm.
8051         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
8052         (amemxfrm): Renamed from memxfrm.
8053         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
8054         * NEWS: Mention the change.
8055         * MODULES.html.sh (String handling <string.h>): Update.
8056         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
8057         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
8058         * lib/unicase/u16-casexfrm.c: Likewise.
8059         * lib/unicase/u32-casexfrm.c: Likewise.
8060         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
8061         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
8062         * lib/uninorm/u16-normxfrm.c: Likewise.
8063         * lib/uninorm/u32-normxfrm.c: Likewise.
8064         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
8065         memxfrm.
8066         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
8067         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
8068         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
8069         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
8070         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
8071         Suggested by Paul Eggert.
8072
8073 2010-08-14  Bruno Haible  <bruno@clisp.org>
8074
8075         Tests for module 'astrxfrm'.
8076         * modules/astrxfrm-tests: New file.
8077         * tests/test-astrxfrm.c: New file.
8078
8079         New module 'astrxfrm'.
8080         * lib/astrxfrm.h: New file.
8081         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
8082         * modules/astrxfrm: New file.
8083
8084 2010-08-14  Reuben Thomas <rrt@sc3d.org>
8085
8086         regex: Tweak doc.
8087         * doc/regex.texi (Overview): Don't mention regex.c.
8088         (GNU Regular Expression Compiling): Likewise.
8089         (Match-end-of-line Operator): Mention 'not_eol'.
8090
8091 2010-08-14  Brian Gough  <bjg@gnu.org>
8092             Bruno Haible  <bruno@clisp.org>
8093
8094         git-merge-changelog: add doc relating to use with bzr and hg.
8095         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
8096
8097 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
8098
8099         pthread: fix pthread.h creation for srcdir != builddir
8100         * modules/pthread (Makefile.am): Fix the rule to work also in a
8101         non-srcdir build.
8102
8103 2010-08-13  Karl Berry  <karl@gnu.org>
8104
8105         * doc/regex.texi (Predefined Syntaxes): @smallexample.
8106         * doc/posix-*/*: force line break before @url of POSIX
8107         specifications.
8108         Suggested by Werner Lemberg.
8109
8110 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8111
8112         strtod: fix const diagnostic
8113         * lib/strtod.c (strtod): Don't assign const char * to char *,
8114         as this elicits a warning from GCC when warnings are enabled.
8115
8116 2010-08-10  Pádraig Brady <P@draigbrady.com>
8117         and Eric Blake  <eblake@redhat.com>
8118
8119         copy-acl: ignore ENOTSUP on HP-UX
8120         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
8121         so that it is available for HP-UX.
8122         * lib/copy-acl.c (qcopy_acl): Use it.
8123         Reported by Patrick M. Callahan.
8124
8125 2010-08-10  Eric Blake  <eblake@redhat.com>
8126
8127         open, chown: relax license
8128         * modules/open (License): Change to LGPLv2+, with consent by all
8129         authors, for use in augeas.
8130         * modules/chown (License): Likewise.
8131         * modules/lchown (Likewise): Likewise.
8132         Requested by Adam Stokes.
8133
8134 2010-08-09  Karl Berry  <karl@gnu.org>
8135
8136         * build-aux/ar-lib: new file, import from Automake.
8137         * config/srclist.txt: autocheck for updates.
8138
8139 2010-08-09  Eric Blake  <eblake@redhat.com>
8140
8141         readlinkat: adjust client modules
8142         * modules/areadlinkat (Depends-on): Use readlinkat, not
8143         symlinkat.
8144         * modules/areadlinkat-with-size (Depends-on): Likewise.
8145
8146         mknod: be more vocal about danger of running tests as root
8147         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
8148         root, since that is just asking for problems.
8149         Suggested by Bruno Haible, based on a report by Rainer Tammer.
8150
8151         readlinkat: split into its own module
8152         * modules/symlinkat: Split readlinkat...
8153         * modules/readlinkat: ...into separate module.
8154         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
8155         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
8156         * lib/symlinkat.c (readlinkat): Move...
8157         * lib/readlinkat.c: ...into new file.
8158         * modules/symlinkat-tests: Split readlinkat test...
8159         * modules/readlinkat-tests: ...into separate module.
8160         * tests/test-symlinkat.c: Split...
8161         * tests/test-readlinkat.c: ...into new file.
8162         * NEWS: Document the split.
8163         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8164         * lib/unistd.in.h (readlinkat): Likewise.
8165         Suggested by Bruno Haible.
8166
8167 2010-08-08  Bruno Haible  <bruno@clisp.org>
8168
8169         memxfrm: Speed up.
8170         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
8171         that usually only one call to strxfrm is necessary for each string
8172         part.
8173         Reported by Paul Eggert <eggert@cs.ucla.edu>.
8174
8175 2010-08-07  Karl Berry  <karl@gnu.org>
8176
8177         * doc/posix-headers/limits.texi,
8178         * doc/posix-functions/malloc.texi,
8179         * doc/posix-functions/strsignal.texi: missing @item.
8180         * doc/ld-version-script.texi: spurious leading i.
8181         * doc/regex.texi (Interval Operators): no commas inside @var.
8182
8183 2010-08-01  Bruno Haible  <bruno@clisp.org>
8184
8185         Integrate the regex documentation.
8186         * doc/gnulib.texi: Define 'cn' index.
8187         (Regular expressions): New a chapter that includes regex.texi and
8188         regexprops-generic.texi.
8189         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
8190         syntax.
8191
8192         Whitespace cleanup.
8193         * doc/regex.texi: Remove trailing spaces.
8194
8195         Add regex documentation.
8196         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
8197         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
8198         Written by Kathy A. Hargreaves and Karl Berry.
8199
8200 2010-08-01  Bruno Haible  <bruno@clisp.org>
8201
8202         link: Update documentation.
8203         * doc/posix-functions/link.texi: Update regarding Solaris.
8204
8205 2010-07-31  Bruno Haible  <bruno@clisp.org>
8206
8207         Update modules list.
8208         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
8209         (String handling <string.h>): Add memcmp2, memxfrm.
8210         (Container data structures): Add xlist, xsublist, xoset.
8211         (Core language properties): Add alignof, unused-parameter.
8212         (Process control, Numeric conversion functions <stdlib.h>): Renamed
8213         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
8214         (Unibyte characters <ctype.h>): New section.
8215         (String handling <string.h>): New section.
8216         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
8217         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
8218         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
8219         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
8220         tan, tanh, tanl, y0, y1, yn.
8221         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
8222         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
8223         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
8224         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
8225         unlockpt, vdprintf, vdprintf-posix.
8226         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
8227         (File system functions): Add concat-filename, sys_file, sys_ioctl,
8228         xconcat-filename.
8229         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
8230         getdtablesize, pipe2, pipe2-safer.
8231         (Security): New section.
8232         (Networking functions): Add accept4.
8233         (Signal handling): Add sigpipe.
8234         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
8235         mbmemcasecoll.
8236         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
8237         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
8238         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
8239         pipe-filter-ii.
8240         (Misc): Add argp-version-etc, login_tty, parse-duration.
8241
8242 2010-07-31  Bruno Haible  <bruno@clisp.org>
8243
8244         Improve doc in MODULES.html.
8245         * modules/linkat (Description): Add the word "function".
8246         * modules/mkfifo (Description): Likewise.
8247         * modules/mknod (Description): Likewise.
8248         * modules/remove (Description): Likewise.
8249         * modules/renameat (Description): Likewise.
8250         * modules/stat (Description): Likewise.
8251         * modules/symlink (Description): Likewise.
8252         * modules/unlink (Description): Likewise.
8253
8254 2010-07-31  Bruno Haible  <bruno@clisp.org>
8255
8256         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
8257         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
8258         option --enable/disable-c++ instead of --enable/disable-cxx.
8259         * NEWS: Mention the change.
8260
8261 2010-07-31  Bruno Haible  <bruno@clisp.org>
8262
8263         readlink, areadlink: Relax test a bit.
8264         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
8265         alternative to ENOTDIR.
8266         * tests/test-areadlink.h (test_areadlink): Likewise.
8267         Reported by Rainer Tammer.
8268
8269 2010-07-31  Bruno Haible  <bruno@clisp.org>
8270
8271         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
8272         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
8273         character, perform the search using U_STRCHR.
8274         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
8275         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
8276         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
8277         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
8278         Suggested by Paolo Bonzini.
8279
8280 2010-07-31  Bruno Haible  <bruno@clisp.org>
8281
8282         unistr/u*-strstr: Fix dependencies.
8283         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
8284         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
8285         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
8286
8287 2010-07-31  Bruno Haible  <bruno@clisp.org>
8288
8289         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
8290         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
8291         the beginning of the loop.
8292         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
8293         cases in 'switch' statement.
8294
8295         unistr/u8-strchr: Fix several bugs.
8296         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
8297         the string. When not found, return NULL, not a pointer near the end.
8298
8299         More tests for unistr/u8-strchr.
8300         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
8301         that the function does not read past the first occurrence of the byte
8302         being searched.
8303         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
8304         * tests/unistr/test-u16-strchr.c (main): New function.
8305         * tests/unistr/test-u32-strchr.c (main): New function.
8306
8307 2010-07-31  Bruno Haible  <bruno@clisp.org>
8308
8309         posix-modules: Ignore backup files of documentation files.
8310         * posix-modules: grep only through files named *.texi.
8311
8312 2010-07-31  Bruno Haible  <bruno@clisp.org>
8313
8314         symlinkat: Fix documentation.
8315         * doc/posix-functions/readlinkat.texi: Fix module name.
8316
8317 2010-07-31  Bruno Haible  <bruno@clisp.org>
8318
8319         fchownat: Replace also when chown has the trailing slash bug.
8320         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
8321         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
8322         introduced on 2010-04-10.
8323         Reported by Rainer Tammer.
8324
8325 2010-07-31  Bruno Haible  <bruno@clisp.org>
8326
8327         linkat: Work around AIX 7.1 bug.
8328         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
8329         whether linkat handles trailing slash correctly. If not, replace linkat
8330         and define LINKAT_TRAILING_SLASH_BUG.
8331         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
8332         check whether (fd1,file1) points to a directory if file1 or file2 ends
8333         in a slash. Code taken from lib/link.c.
8334         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
8335         Reported by Rainer Tammer.
8336
8337 2010-07-31  Bruno Haible  <bruno@clisp.org>
8338
8339         Correctly determine whether pow is available in libc on AIX 7 with xlc.
8340         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
8341         This disables an xlc optimization that was causing wrong test results.
8342         Reported by Rainer Tammer.
8343
8344 2010-07-31  Bruno Haible  <bruno@clisp.org>
8345
8346         iconv: Work around AIX 6.1..7.1 bug.
8347         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
8348         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
8349         cross-compiling, guess no on all versions of AIX.
8350         Reported by Rainer Tammer.
8351
8352 2010-07-31  Bruno Haible  <bruno@clisp.org>
8353
8354         readlink: Relax test a bit.
8355         * tests/test-readlink.h (test_readlink): Allow different errno value
8356         when readlink is called with a file name that ends in / and refers to
8357         a file.
8358         Suggested by Eric Blake.
8359         Reported by Rainer Tammer.
8360
8361 2010-07-31  Bruno Haible  <bruno@clisp.org>
8362
8363         copysign: Does not require -lm on glibc systems.
8364         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
8365         gl_COMMON_DOUBLE_MATHFUNC.
8366         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
8367
8368 2010-07-31  Bruno Haible  <bruno@clisp.org>
8369
8370         duplocale: Work around AIX 7.1 bug.
8371         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
8372         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
8373         * lib/duplocale.c (rpl_duplocale): Update comment.
8374         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
8375         Reported by Rainer Tammer.
8376
8377 2010-07-30  Bruno Haible  <bruno@clisp.org>
8378
8379         dirfd: Avoid link error on AIX 7.1.
8380         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
8381         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
8382         exist, set REPLACE_DIRFD.
8383         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
8384         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
8385         * doc/posix-functions/dirfd.texi: Update.
8386         Reported by Rainer Tammer.
8387
8388 2010-07-30  Eric Blake  <eblake@redhat.com>
8389
8390         strtod: next round of AIX fixes
8391         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
8392         exponent.
8393         * tests/test-strtod.c (main): Enhance tests.
8394         * doc/posix-functions/strtod.texi (strtod): Document next bug.
8395         Reported by Rainer Tammer.
8396
8397         futimens: fix configure check
8398         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
8399         Reported by Bruno Haible.
8400
8401 2010-07-30  Bruno Haible  <bruno@clisp.org>
8402
8403         getline: Update regarding AIX.
8404         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
8405         Reported by Rainer Tammer.
8406
8407 2010-07-30  Bruno Haible  <bruno@clisp.org>
8408
8409         wcwidth: Drop replacement on AIX 7.
8410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
8411         AIX 7.
8412         Reported by Rainer Tammer.
8413
8414 2010-07-30  Bruno Haible  <bruno@clisp.org>
8415
8416         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
8417         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
8418         a 'char *'.
8419         Reported by Rainer Tammer.
8420
8421 2010-07-30  Bruno Haible  <bruno@clisp.org>
8422
8423         unlink: Update regarding AIX.
8424         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
8425         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
8426         Reported by Rainer Tammer.
8427
8428 2010-07-30  Bruno Haible  <bruno@clisp.org>
8429
8430         symlink: Update regarding AIX.
8431         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
8432         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
8433         Reported by Rainer Tammer.
8434
8435 2010-07-30  Bruno Haible  <bruno@clisp.org>
8436
8437         strndup: Update regarding AIX.
8438         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
8439         AIX 7.
8440         Reported by Rainer Tammer.
8441
8442 2010-07-30  Bruno Haible  <bruno@clisp.org>
8443
8444         stat: Update regarding AIX.
8445         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
8446         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
8447         Reported by Rainer Tammer.
8448
8449 2010-07-30  Bruno Haible  <bruno@clisp.org>
8450
8451         truncl: Fix autoconf test.
8452         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
8453         whether truncl works.
8454         Reported by Rainer Tammer.
8455
8456 2010-07-30  Bruno Haible  <bruno@clisp.org>
8457
8458         round: Update regarding AIX.
8459         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
8460         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
8461         Reported by Rainer Tammer.
8462
8463 2010-07-30  Bruno Haible  <bruno@clisp.org>
8464
8465         rename: Update regarding AIX.
8466         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
8467         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
8468         Reported by Rainer Tammer.
8469
8470 2010-07-30  Bruno Haible  <bruno@clisp.org>
8471
8472         printf.m4: Update regarding AIX.
8473         * m4/printf.m4: Update comments regarding AIX.
8474         Reported by Rainer Tammer.
8475
8476 2010-07-30  Bruno Haible  <bruno@clisp.org>
8477
8478         iconv: Update regarding AIX.
8479         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
8480         AIX 7.
8481         Reported by Rainer Tammer.
8482
8483 2010-07-30  Bruno Haible  <bruno@clisp.org>
8484
8485         getopt: Update regarding AIX.
8486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
8487         no on AIX.
8488         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
8489         Reported by Rainer Tammer.
8490
8491 2010-07-30  Bruno Haible  <bruno@clisp.org>
8492
8493         ldexpl; Update regarding AIX.
8494         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
8495         on AIX 7.
8496         Reported by Rainer Tammer.
8497
8498 2010-07-30  Bruno Haible  <bruno@clisp.org>
8499
8500         frexpl: Update regarding AIX.
8501         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
8502         on AIX 7.
8503         Reported by Rainer Tammer.
8504
8505 2010-07-30  Bruno Haible  <bruno@clisp.org>
8506
8507         open, fopen: Update regarding AIX.
8508         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
8509         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8510         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
8511         * doc/posix-functions/fopen.texi: Likewise.
8512         Reported by Rainer Tammer.
8513
8514 2010-07-30  Bruno Haible  <bruno@clisp.org>
8515
8516         chown: Update doc regarding AIX.
8517         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
8518         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
8519         Reported by Rainer Tammer.
8520
8521 2010-07-30  Eric Blake  <eblake@redhat.com>
8522
8523         strtod: fix bug in replacement function on AIX
8524         * lib/strtod.c (strtod): Special case broken "0x" parse in
8525         underlying strtod.
8526         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
8527         * doc/posix-functions/strtod.texi (strtod): Likewise.
8528         Reported by Rainer Tammer.
8529
8530 2010-07-30  Bruno Haible  <bruno@clisp.org>
8531
8532         mbrlen: Fix cross-compilation guess for AIX.
8533         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
8534         guess. Leftover from 2008-12-22.
8535
8536 2010-07-30  Bruno Haible  <bruno@clisp.org>
8537
8538         mbrtowc: Fix cross-compilation guess for AIX.
8539         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
8540         guess. Leftover from 2008-12-21.
8541
8542 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
8543
8544         init.sh: work around trap limitation of some shells
8545         * tests/init.sh (setup_): Move exit trap outside of shell function.
8546
8547 2010-07-29  Eric Blake  <eblake@redhat.com>
8548
8549         strtod: aid debugging
8550         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
8551         understanding why strtod is rejected.
8552
8553 2010-07-28  Bruno Haible  <bruno@clisp.org>
8554
8555         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
8556         * lib/unistr/u8-chr.c: Include <string.h>.
8557         * tests/unistr/test-u8-chr.c: Likewise.
8558         * tests/unistr/test-u16-chr.c: Likewise.
8559         * tests/unistr/test-u32-chr.c: Likewise.
8560         * tests/unistr/test-u8-strchr.c: Likewise.
8561         * tests/unistr/test-u16-strchr.c: Likewise.
8562         * tests/unistr/test-u32-strchr.c: Likewise.
8563         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
8564         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
8565         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
8566         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
8567
8568 2010-07-28  Bruno Haible  <bruno@clisp.org>
8569
8570         Use spaces for indentation, not tabs.
8571         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8572
8573 2010-07-27  Bruno Haible  <bruno@clisp.org>
8574
8575         mbspcasecmp: Fix function specification.
8576         * lib/string.in.h (mbspcasecmp): Fix specification comment.
8577         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
8578         Reported by Eric Blake <eblake@redhat.com>.
8579
8580 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
8581
8582         timespec: use cast and not conditional, as truncation isn't possible
8583         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
8584         instead of a conditional.  Comment about the situation in more detail.
8585         This undoes most of the 2009-10-29 patch.
8586
8587 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
8588
8589         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
8590         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
8591         * lib/unistr/u8-strchr.c: Likewise.
8592         * modules/unistr/u8-chr: Depend on memchr.
8593
8594         unistr/u*-strchr: add tests
8595         * modules/unistr/u8-strchr-tests: New file.
8596         * modules/unistr/u16-strchr-tests: New file.
8597         * modules/unistr/u32-strchr-tests: New file.
8598         * tests/unistr/test-strchr.h: New file.
8599         * tests/unistr/test-u8-strchr.c: New file.
8600         * tests/unistr/test-u16-strchr.c: New file.
8601         * tests/unistr/test-u32-strchr.c: New file.
8602
8603         unistr/u*-chr: test multibyte sequences more
8604         * tests/unistr/test-chr.h: Do complete testing of the characters in the
8605         test vector.
8606         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
8607         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
8608         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
8609
8610         unistr/u*-chr: test multibyte sequences
8611         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
8612
8613         unistr/u*-chr: prepare for multibyte tests
8614         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
8615         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
8616         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
8617         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
8618         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
8619         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
8620
8621 2010-07-18  Bruno Haible  <bruno@clisp.org>
8622
8623         unistr/u8-strchr: Optimize non-ASCII argument case.
8624         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
8625         because the first byte often matches anyway.
8626         Reported by Pádraig Brady <P@draigbrady.com>.
8627
8628 2010-07-15  Karl Berry  <karl@gnu.org>
8629
8630         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
8631
8632 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
8633
8634         getcwd: on Solaris, work better if ancestors are inaccessible
8635         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
8636         buffer and size, try again with a large buffer.  This works better
8637         on Solaris, since its getcwd succeeds even if the path to the root
8638         is inaccessible, and this is helpful in common cases such as .zfs
8639         hidden directories.  Problem reported by J Chapman Flack in
8640         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
8641         Use system getcwd if it's declared, not merely if it's partly
8642         working; use the partly-working test only to avoid needless effort
8643         if the system getcwd fails.
8644         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
8645         comment that was already obsolete and is now even more obsolete.
8646         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
8647         now might call strdup.
8648
8649 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
8650
8651         pthread: Add enough so that coreutils/src/sort.c compiles.
8652         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
8653         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
8654         gnulib. Include <sched.h> and <time.h>, as per POSIX.
8655         Include <sys/types.h>, in case it defines pthread_t.
8656         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
8657         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
8658         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
8659         (pthread_rwlockattr_t, pthread_spinlock_t):
8660         New typedefs, if HAVE_PTHREAD_T is not defined.
8661         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
8662         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
8663         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
8664         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
8665         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
8666         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
8667         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
8668         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
8669         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
8670         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
8671         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
8672         New macros.
8673         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
8674         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
8675         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
8676         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
8677         (pthread_spin_unlock): New dummy functions.
8678         (pthread_create): Return EAGAIN; don't set errno.
8679         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
8680         require AC_C_INLINE.
8681         * modules/pthread (Depends-on): Add sched, time.
8682         (pthread.h): Use AM_V_GEN.
8683
8684 2010-07-13  Bruno Haible  <bruno@clisp.org>
8685
8686         striconveh: Don't malloc memory if the result buffer is sufficient.
8687         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
8688         buffer if its size is sufficient.
8689         Reported by Ludovic Courtès <ludo@gnu.org>.
8690
8691 2010-07-13  Bruno Haible  <bruno@clisp.org>
8692
8693         strtod: Add safety check.
8694         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
8695
8696 2010-07-12  Bruno Haible  <bruno@clisp.org>
8697
8698         Unify tests that set gl_cv_func_ldexpl_no_libm.
8699         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
8700         gl_FUNC_LDEXPL.
8701         (gl_FUNC_LDEXPL): Invoke it.
8702         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8703
8704 2010-07-12  Bruno Haible  <bruno@clisp.org>
8705
8706         Unify tests that set gl_cv_func_ldexp_no_libm.
8707         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
8708         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
8709         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
8710         (configure.ac): Simply invoke gl_FUNC_LDEXP.
8711         * modules/strtod (Files): Add m4/ldexp.m4.
8712
8713 2010-07-12  Bruno Haible  <bruno@clisp.org>
8714
8715         Unify tests that set gl_cv_func_frexpl_no_libm.
8716         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
8717         gl_FUNC_FREXPL_NO_LIBM.
8718         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
8719         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8720
8721 2010-07-12  Bruno Haible  <bruno@clisp.org>
8722
8723         Unify tests that set gl_cv_func_frexp_no_libm.
8724         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
8725         gl_FUNC_FREXP_NO_LIBM.
8726         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
8727         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8728
8729 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
8730
8731         memcoll: clarify sizes versus lengths, document better, and tweak perf
8732         * lib/memcoll.c (strcoll_loop, memcoll0):
8733         Improve quality of descriptive comments.  Name variables
8734         consistently as to whether they are lengths (which do not include
8735         terminating null) versus sizes (which do).
8736         * lib/xmemcoll.c (xmemcoll0): Likewise.
8737         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
8738         returned when s1size == 0; this is easier to compile and saves
8739         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
8740
8741 2010-07-12  Bruno Haible  <bruno@clisp.org>
8742
8743         Tests for module '_Exit'.
8744         * modules/_Exit-tests: New file.
8745         * tests/test-_Exit.sh: New file.
8746         * tests/test-_Exit.c: New file.
8747
8748         New module '_Exit'.
8749         * lib/stdlib.in.h (__attribute__): New macro.
8750         (_Exit): New declaration.
8751         * lib/_Exit.c: New file.
8752         * m4/_Exit.m4: New file.
8753         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
8754         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
8755         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
8756         * modules/_Exit: New file.
8757         * tests/test-stdlib-c++.cc (_Exit): Check signature.
8758         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
8759
8760 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
8761
8762         strtod: make it more-accurate typically, and don't require libm
8763         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
8764         Include limits.h.  Don't include string.h.
8765         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
8766         (locale_isspace): New function, so that no casts are needed to
8767         check whether *s is a space.
8768         (ldexp): Provide an unused dummy if not available.
8769         (scale_radix_exp, parse_number, underlying_strtod): New functions.
8770         (strtod): Use them.  This implementation prefers to use the
8771         underlying strtod if available, falling back on our own code
8772         only to fix known bugs.  This is more likely to produce an
8773         accurate result.  Also, it avoids the use of libm functions.
8774         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
8775         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
8776         was absent, but it caused a test failure with coreutils.
8777         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
8778         with libm.
8779         * modules/strtod (Makefile.am, Link): libm is no longer needed.
8780         * modules/strtod-tests (Makefile.am): Likewise.
8781
8782 2010-07-11  Pádraig Brady  <P@draigBrady.com>
8783             Bruno Haible  <bruno@clisp.org>
8784
8785         unistr/u8-strchr: Optimize ASCII argument case.
8786         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
8787
8788 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8789
8790         (x)memcoll: minor tweaks
8791         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
8792         is after the type that it qualifies.
8793         (memcoll0): Likewise.
8794         * lib/memcoll.h (memcoll0): Likewise.
8795         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
8796         * lib/xmemcoll.h (xmemcoll0): Likewise.
8797         * lib/memcoll.c (memcoll0): Correct the comment.  This function
8798         differs from memcoll in that the NUL byte is part of the argument.
8799         Omit the abort-checks, as performance is a real issue here.  Plus,
8800         the checks were wrong anyway (an off-by-one error).  Omit local
8801         variable 'diff', as it's a bit clearer that way.
8802         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
8803         no longer needed.
8804
8805 2010-07-08  Chen Guo <chenguo4@yahoo.com>
8806
8807         (x)memcoll: speedup when input is known to be NUL delimited
8808         * lib/memcoll.c: Include stdlib.
8809         (memcoll0) New function.
8810         (strcoll_loop) New function, refactored for use in both memcoll
8811         and memcoll0.
8812         * lib/memcoll.h: Add prototype for memcoll0.
8813         * lib/xmemcoll.c: (xmemcoll0) New function.
8814         (collate_error) New function, refactored for use in both xmemcoll
8815         and xmemcoll0.
8816         * lib/xmemcoll.h: Add prototype for xmemcoll0.
8817         * m4/memcoll.m4: add inline invocation.
8818
8819 2010-07-06  Pádraig Brady  <P@draigBrady.com>
8820
8821         * build-aux/bootstrap: Remove any local translations
8822         from the translation project synchronization directory,
8823         so that local only translations are not distributed.
8824
8825 2010-07-04  Bruno Haible  <bruno@clisp.org>
8826
8827         fsusage: Clarify which code applies to which platforms.
8828         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
8829         platform.
8830         * lib/fsusage.c (get_fs_usage): Likewise.
8831
8832 2010-07-04  Bruno Haible  <bruno@clisp.org>
8833
8834         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
8835         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
8836         Reported by Martin Lambers <marlam@marlam.de>.
8837
8838 2010-07-04  Jim Meyering  <meyering@redhat.com>
8839
8840         hash: once again explicitly disallow insertion of NULL
8841         * lib/hash.c (hash_insert0): Reinstate just-removed test:
8842         inserting a NULL pointer cannot work with these functions.
8843         Add a comment with details.
8844         This reverts part of the 2010-07-01 commit, 5bef1a35
8845         "hash: extend module to deal with non-pointer keys".
8846
8847 2010-07-01  Bruno Haible  <bruno@clisp.org>
8848
8849         stdbool: Update doc.
8850         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
8851         Info from Christian Weisgerber <naddy@mips.inka.de>.
8852
8853 2010-07-01  Jim Meyering  <meyering@redhat.com>
8854
8855         hash: extend module to deal with non-pointer keys
8856         * lib/hash.c (hash_insert0): New interface, much like hash_insert
8857         but that allows insertion of non-pointer entries.
8858         Do not disallow an ENTRY value of NULL.
8859         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
8860         * lib/hash.h (hash_insert0): Declare.
8861
8862 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8863
8864         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
8865         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
8866         not present (i.e. with autoconf 2.59 and when using gettextize, not
8867         gnulib), require AC_GNU_SOURCE instead.
8868
8869 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
8870
8871         idpriv-drop: Fix tests.
8872         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
8873         not to the test-idpriv-droptemp program.
8874
8875 2010-06-29  Bruno Haible  <bruno@clisp.org>
8876
8877         string: Fix syntax error with g++ 2.96.
8878         * lib/string.in.h (__pure__): Remove definition.
8879         (_GL_ATTRIBUTE_PURE): New macro.
8880         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
8881         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
8882         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8883
8884 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
8885
8886         unitypes: Fix bug introduced on 2010-05-18.
8887         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
8888
8889 2010-06-22  Eric Blake  <eblake@redhat.com>
8890
8891         memmem: slight optimization
8892         * lib/str-two-way.h (critical_factorization): Update comments.
8893         Reduce work during factorization phase.
8894         Reported by Carlos Bueno <carlos@bueno.org>.
8895
8896 2010-06-21  Bruno Haible  <bruno@clisp.org>
8897
8898         Fix HAVE_CALLOC_POSIX misnomer.
8899         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
8900         !HAVE_CALLOC_POSIX.
8901         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
8902         HAVE_CALLOC_POSIX.
8903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
8904         instead of HAVE_CALLOC_POSIX.
8905         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
8906         HAVE_CALLOC_POSIX.
8907
8908         Use modern idiom for calloc() replacement.
8909         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
8910         AC_FUNC_CALLOC.
8911         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
8912         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
8913         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8914         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
8915         (gl_REPLACE_CALLOC): New macro.
8916
8917 2010-06-21  Bruno Haible  <bruno@clisp.org>
8918
8919         Fix HAVE_REALLOC_POSIX misnomer.
8920         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
8921         !HAVE_REALLOC_POSIX.
8922         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
8923         HAVE_REALLOC_POSIX.
8924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
8925         instead of HAVE_REALLOC_POSIX.
8926         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
8927         HAVE_REALLOC_POSIX.
8928
8929         Use modern idiom for realloc() replacement.
8930         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
8931         AC_FUNC_REALLOC.
8932         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
8933         Autoconf's AC_FUNC_REALLOC.
8934         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8935         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
8936         (gl_REPLACE_REALLOC): New macro.
8937         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
8938
8939 2010-06-21  Bruno Haible  <bruno@clisp.org>
8940
8941         Fix HAVE_MALLOC_POSIX misnomer.
8942         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
8943         !HAVE_MALLOC_POSIX.
8944         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
8945         HAVE_MALLOC_POSIX.
8946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
8947         instead of HAVE_MALLOC_POSIX.
8948         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
8949         HAVE_MALLOC_POSIX.
8950
8951         Use modern idiom for malloc() replacement.
8952         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
8953         AC_FUNC_MALLOC.
8954         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
8955         Autoconf's AC_FUNC_MALLOC.
8956         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8957         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
8958         (gl_REPLACE_MALLOC): New macro.
8959         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
8960
8961 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
8962
8963         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
8964         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
8965         This macro takes 3 arguments, not 4.
8966
8967 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
8968
8969         ipv6: fix detection under mingw
8970         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
8971         in6_addr.
8972
8973 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
8974
8975         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
8976         that strtod() works when cross-compiling to a glibc version known
8977         to work.
8978
8979 2010-06-15  Bruno Haible  <bruno@clisp.org>
8980
8981         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
8982
8983 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
8984
8985         select: Correct timeout.
8986         * lib/select.c (rpl_select): Compute wait_timeout correctly.
8987
8988 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8989
8990         git-version-gen: init shell var to avoid env var influence
8991         * build-aux/git-version-gen (v): Init shell var to empty.
8992
8993 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
8994
8995         priv-set: Don't assume that priv.h exists merely because getppriv does.
8996         See Jan Andersen's bug report about AIX 5L in
8997         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
8998         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
8999         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
9000         * lib/priv-set.h: Likewise.
9001         * tests/test-priv-set.c: Likewise.
9002
9003 2010-06-13  Bruno Haible  <bruno@clisp.org>
9004
9005         relocatable: Make it easier to test whether to install wrappers.
9006         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
9007         RELOCATABLE_VIA_WRAPPER.
9008
9009 2010-06-13  Bruno Haible  <bruno@clisp.org>
9010
9011         gnulib-tool: Display specified modules and dependencies differently.
9012         * gnulib-tool (func_show_module_list): New function.
9013         (func_import, func_create_testdir): Invoke it.
9014         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9015
9016 2010-06-13  Bruno Haible  <bruno@clisp.org>
9017
9018         gnulib-tool: Align code of func_import and func_create_testdir.
9019         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
9020         specified_modules.
9021
9022 2010-06-12  Jim Meyering  <meyering@redhat.com>
9023
9024         test-inttostr: avoid spurious failure on Solaris 9
9025         * tests/test-inttostr.c (main): Skip the test when snprintf fails
9026         to accept "%ju".  Reported by Bruno Haible.
9027
9028 2010-06-11  Jim Meyering  <meyering@redhat.com>
9029
9030         test-sys_socket: mark variables as used more readably
9031         * tests/test-sys_socket.c (main): Mark otherwise unused variables
9032         as "used" explicitly via (void) statement casts.  This is more
9033         readable than using them in an artificial return expression.
9034         Suggestion from Bruno Haible.
9035
9036 2010-06-11  Bruno Haible  <bruno@clisp.org>
9037
9038         Avoid some more warnings from "gcc -Wwrite-strings".
9039         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
9040         to 'const char *'.
9041         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
9042         * tests/test-c-strcasestr.c (main): Likewise.
9043         * tests/test-mbscasestr1.c (main): Likewise.
9044         * tests/test-mbscasestr2.c (main): Likewise.
9045         * tests/test-memmem.c (main): Likewise.
9046         * tests/test-strstr.c (main): Likewise.
9047         * tests/test-strcasestr.c (main): Likewise.
9048
9049 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9050
9051         init.sh: change framework_failure_ to fail with status 99, not 1
9052         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
9053         automake's parallel-tests rule that this is an unexpected failure,
9054         even if the test is listed in XFAIL_TESTS.
9055
9056 2010-06-11  Jim Meyering  <meyering@redhat.com>
9057
9058         test-inttostr: avoid warnings about 4-6KB literal strings
9059         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
9060         Include "macros.h", for its definition of ASSERT.
9061         (CK): s/assert/ASSERT/
9062         * modules/inttostr-tests (Files): Add macros.h.
9063
9064         init.sh: don't use $ME_ or skip_ before they are defined
9065         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
9066         their first uses.  Also hoist their companions: warn_, fail_,
9067         framework_failure_, $stderr_fileno.  Prompted by a patch from
9068         Stefano Lattarini.
9069
9070         test-sys_socket: avoid set-but-not-used warnings from gcc
9071         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
9072         avoid warning about set-but-not-used variables.
9073
9074         test-xvasprintf: avoid 'const' discard warnings
9075         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
9076         "const" when assigning from literal strings.
9077         (test_xasprintf): Add "void" in function argument list to placate
9078         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
9079
9080         tests: avoid compilation warnings in argmatch and exclude tests...
9081         in packages that define ARGMATCH_DIE_DECL, like coreutils.
9082         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
9083         Since it always exits, declare with the "noreturn" attribute.
9084         * tests/test-argmatch.c: Likewise.
9085
9086         tests: avoid 'const' discard warnings in mbsstr tests
9087         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
9088         * tests/test-mbsstr2.c (main): Likewise.
9089
9090         test-verify: avoid warning from gcc's -Wmissing-declarations
9091         * tests/test-verify.c (function): Declare to be static.
9092
9093         test-inttostr.c: include <string.h> for use of strcmp
9094         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
9095
9096         test-linkat: avoid failed assertion on "other" architectures
9097         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
9098         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
9099         sparc: https://bugs.launchpad.net/bugs/591968
9100
9101 2010-06-11  Jim Meyering  <meyering@redhat.com>
9102
9103         printf.m4: avoid autoconf's "Expanded Before Required" warning
9104         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
9105         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
9106         autoconf warning.
9107
9108 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
9109
9110         Replacement header templates are now named with ".in", not "_".
9111         * doc/gnulib-intro.texi: Correct.
9112
9113 2010-06-10  Jim Meyering  <meyering@redhat.com>
9114
9115         inttostr-tests: depend on snprintf, not snprintf-posix
9116         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
9117         snprintf-posix, to avoid this aclocal failure:
9118           missing file gnulib-tests/vasnprintf.c
9119           configure.ac:45: error: expected source file, required through \
9120           AC_LIBSOURCES, not found
9121
9122 2010-06-10  Jim Meyering  <meyering@redhat.com>
9123
9124         inttostr: add a new function, inttostr, and tests
9125         The namesake function was not available.  The existence of the
9126         template file, inttostr.c makes its addition nontrivial.
9127         * lib/anytostr.c: Rename from inttostr.c.
9128         (anytostr): Rename from inttostr.
9129         * lib/inttostr.c: New file.
9130         * modules/inttostr (Files): Add anytostr.c.
9131         (Makefile.am): Set lib_SOURCES instead of ...
9132         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
9133         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
9134         * lib/offtostr.c: Likewise.
9135         * lib/uinttostr.c: Likewise.
9136         * lib/umaxtostr.c: Likewise.
9137         * modules/inttostr-tests: New file.
9138         * tests/test-inttostr.c: New file.  Test these functions.
9139
9140 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
9141             Bruno Haible  <bruno@clisp.org>
9142
9143         Add "Extending Gnulib" chapter to manual.
9144         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
9145         chapter.
9146         (Extending Gnulib): New chapter.
9147         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
9148         chapter.
9149
9150 2010-06-09  Bruno Haible  <bruno@clisp.org>
9151
9152         Avoid relocwrapper link errors due to gnulib replacement functions.
9153         * lib/areadlink.c: Use the system's malloc, realloc functions.
9154         (areadlink): Set errno to ENOMEM explicitly.
9155         * modules/areadlink (Depends-on): Remove malloc-posix.
9156         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9157
9158 2010-06-09  Bruno Haible  <bruno@clisp.org>
9159
9160         Avoid relocwrapper link errors due to gnulib replacement functions.
9161         * lib/canonicalize-lgpl.c: Use the system's malloc function.
9162         * lib/malloca.c: Likewise.
9163         * lib/relocatable.c: Likewise.
9164         * lib/progreloc.c: Use the system's malloc, sprintf functions.
9165         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
9166         * lib/setenv.c: Use the system's malloc, realloc functions.
9167         * lib/strerror.c: Use the system's sprintf function.
9168         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9169
9170 2010-06-04  Bruno Haible  <bruno@clisp.org>
9171
9172         Prefer documented low-level autoconf macro names.
9173         * m4/lib-link.m4: Use m4_translit instead of translit.
9174         * m4/environ.m4: Likewise.
9175         * m4/mathfunc.m4: Likewise.
9176         * m4/onceonly.m4: Likewise.
9177         * m4/stdint.m4: Likewise.
9178         Suggested by Eric Blake.
9179
9180 2010-06-04  Martin Lambers  <marlam@marlam.de>
9181             Bruno Haible  <bruno@clisp.org>
9182
9183         havelib: Allow library names with '+' characters.
9184         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9185         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
9186
9187 2010-06-09  Bruno Haible  <bruno@clisp.org>
9188
9189         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
9190         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
9191         realloc failed.
9192
9193 2010-06-08  Peter Simons  <simons@cryp.to>
9194
9195         maint.mk: make the news-check rule more configurable
9196         * top/maint.mk (news-check-lines-spec) New variable.
9197         (news-check): Use "sed -n 1,10p" in place of "head".
9198
9199 2010-06-07  Jim Meyering  <meyering@redhat.com>
9200
9201         do-release-commit-and-tag: fix typo in --help
9202         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
9203
9204         regex: avoid new dead-code warning with gcc-4.6.0
9205         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
9206         if-block containing a while-loop.  It's been unused for at least
9207         5 years.
9208
9209 2010-06-05  Bruno Haible  <bruno@clisp.org>
9210
9211         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
9212         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
9213
9214 2010-06-04  Bruno Haible  <bruno@clisp.org>
9215
9216         Update to GNU gettext 0.18.1.
9217         * modules/gettext (configure.ac): Require gettext infrastructure from
9218         version 0.18.1.
9219
9220 2010-06-03  Bruno Haible  <bruno@clisp.org>
9221
9222         Don't use AC_LIBOBJ with file names in subdirectories.
9223         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
9224         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
9225         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
9226         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
9227         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
9228         gl_LIBUNISTRING_LIBSOURCE.
9229         (Makefile.am): Augment lib_SOURCES here, conditionally.
9230         * NEWS: Drop requirement for Automake option 'subdir-objects'.
9231
9232 2010-06-03  Bruno Haible  <bruno@clisp.org>
9233
9234         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
9235         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
9236         expansion does not end with a newline.
9237         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
9238         unnecessary newline.
9239
9240 2010-06-03  Bruno Haible  <bruno@clisp.org>
9241
9242         Reduce dependencies.
9243         * tests/test-quotearg.h: New file, extracted from
9244         tests/test-quotearg.c.
9245         * tests/test-quotearg-simple.c: New file, extracted from
9246         tests/test-quotearg.c.
9247         * tests/test-quotearg.c: Don't include <ctype.h>.
9248         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
9249         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
9250         use_quote_double_quotes, use_quotearg_colon): Moved to
9251         tests/test-quotearg.h.
9252         (results_g, flag_results, custom_quotes, custom_results): Moved
9253         to tests/test-quotearg-simple.c.
9254         (main): Moved the part that does not depend on gettext to
9255         tests/test-quotearg-simple.c. Return 77 if the test cannot be
9256         performed.
9257         * modules/quotearg-simple: New file.
9258         * modules/quotearg-simple-tests: New file.
9259         * modules/quotearg (Depends-on): Add quotearg-simple.
9260         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
9261         (Files): Add tests/test-quotearg.h.
9262         Reported by Paolo Bonzini.
9263
9264 2010-06-03  Bruno Haible  <bruno@clisp.org>
9265
9266         Reduce dependencies.
9267         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
9268
9269 2010-06-03  Bruno Haible  <bruno@clisp.org>
9270
9271         time: Undefine more broken macros.
9272         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
9273         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
9274         Reported by Eric Blake.
9275
9276 2010-06-03  Bruno Haible  <bruno@clisp.org>
9277
9278         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
9279         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
9280         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
9281         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
9282         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
9283         Reported by Ludovic Courtès <ludo@gnu.org>.
9284
9285 2010-06-02  Eric Blake  <eblake@redhat.com>
9286
9287         time: work with mingw + pthreads-win32 library
9288         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
9289         if timespec is defined only in pthread.h.
9290         * modules/time (Makefile.am): Substitute it.
9291         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
9292         <pthread.h>, when needed.
9293         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
9294         from the library.
9295
9296 2010-05-31  Bruno Haible  <bruno@clisp.org>
9297
9298         Avoid expanding two macros in the wrong order.
9299         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
9300         gl_LIBUNISTRING if it is defined.
9301         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
9302         autoconf >= 2.64.
9303         Reported by Ludovic Courtès <ludo@gnu.org>.
9304
9305 2010-05-27  Jim Meyering  <meyering@redhat.com>
9306
9307         maint.mk: also prohibit "#undef" of always-defined symbols
9308         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
9309         Allow more than one space before the symbol name.
9310         (sc_prohibit_always-defined_macros): Use grep's -E, now that
9311         the regexp uses alternation.
9312
9313 2010-05-26  Eric Blake  <eblake@redhat.com>
9314
9315         maint.mk: avoid echo -e
9316         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
9317         Convert all uses of echo -* to printf.
9318         Reported by Matthias Bolte.
9319
9320 2010-05-25  Bruno Haible  <bruno@clisp.org>
9321
9322         Update to GNU gettext 0.18, part 2.
9323         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
9324         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
9325
9326 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9327
9328         Add missing include in test-pwrite.c.
9329         * tests/test-pwrite.c: Include string.h, for strcmp.
9330
9331 2010-05-24  Bruno Haible  <bruno@clisp.org>
9332
9333         * NEWS: Mention requirement for Automake option 'subdir-objects'.
9334
9335 2010-05-24  Bruno Haible  <bruno@clisp.org>
9336
9337         Don't use conversion with transliteration in u{8,16,32}_strcoll.
9338         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
9339         iconveh_error argument.
9340         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
9341         U_STRCONV_TO_LOCALE.
9342         * lib/unistr/u16-strcoll.c: Likewise.
9343         * lib/unistr/u32-strcoll.c: Likewise.
9344         * modules/unistr/u8-strcoll (Depends-on): Add
9345         uniconv/u8-strconv-to-enc, localcharset. Remove
9346         uniconv/u8-strconv-to-locale.
9347         (configure.ac): Bump version number.
9348         * modules/unistr/u16-strcoll (Depends-on): Add
9349         uniconv/u16-strconv-to-enc, localcharset. Remove
9350         uniconv/u16-strconv-to-locale.
9351         (configure.ac): Bump version number.
9352         * modules/unistr/u32-strcoll (Depends-on): Add
9353         uniconv/u32-strconv-to-enc, localcharset. Remove
9354         uniconv/u32-strconv-to-locale.
9355         (configure.ac): Bump version number.
9356
9357 2010-05-24  Bruno Haible  <bruno@clisp.org>
9358
9359         Avoid a test failure on NetBSD 5.0.
9360         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
9361         an iconv() bug.
9362
9363 2010-05-24  Bruno Haible  <bruno@clisp.org>
9364
9365         Adjust #include directive style.
9366         * modules/regex (Includes): Recommend to write <regex.h>.
9367
9368 2010-05-24  Bruno Haible  <bruno@clisp.org>
9369
9370         regex: Don't require alloca.
9371         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
9372         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
9373         only inside if (0).
9374
9375 2010-05-23  Jim Meyering  <meyering@redhat.com>
9376
9377         test-renameat.c: include <sys/stat.h>
9378         * tests/test-renameat.c: Include <sys/stat.h>; required for
9379         definition of S_IS* macros.
9380
9381 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
9382
9383         Update maintainer documentation for 'relocatable-prog' module.
9384         * doc/relocatable-maint.texi: Update.
9385         Comments by Bruno Haible.
9386
9387 2010-05-23  Bruno Haible  <bruno@clisp.org>
9388
9389         git-merge-changelog: Enable --split-merged-entry by default.
9390         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
9391         (usage): Don't mention this option any more.
9392         Reported by Ralf Wildenhues.
9393
9394 2010-05-23  Jim Meyering  <meyering@redhat.com>
9395
9396         test-pwrite: do not leave behind a test file named "out"
9397         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
9398         The trivial-looking use of init.sh is really necessary.
9399         It ensures that the temporary file, "out", is created in
9400         a temporary directory, and removed upon termination.
9401         * tests/test-pwrite.sh: Re-add file.
9402         * modules/pwrite-tests: Reference it.
9403
9404 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9405
9406         Fix output redirection buglet in init.sh.
9407         * tests/init.sh: Fix redirection of stderr.
9408
9409 2010-05-20  Simon Josefsson  <simon@josefsson.org>
9410
9411         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
9412
9413 2010-05-17  Simon Josefsson  <simon@josefsson.org>
9414
9415         * modules/valgrind-tests: New file.
9416         * m4/valgrind-tests.m4: New file.
9417         * doc/valgrind-tests.texi: New file.
9418         * doc/gnulib.texi (Running self-tests under valgrind): New
9419         section.
9420
9421 2010-05-19  Bruno Haible  <bruno@clisp.org>
9422
9423         Clean up dead code in recent commit.
9424         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
9425         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
9426         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
9427         Suggested by Paolo Bonzini.
9428
9429 2010-05-19  Bruno Haible  <bruno@clisp.org>
9430
9431         Avoid valgrind error reports from libunistring.
9432         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
9433         * modules/libunistring (Files): Add it.
9434         * modules/libunistring-optional (Files): Likewise.
9435
9436 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
9437             Bruno Haible  <bruno@clisp.org>
9438
9439         New module 'libunistring-optional'.
9440         * modules/libunistring-optional: New file.
9441         * m4/libunistring-base.m4: New file.
9442         * m4/libunistring-optional.m4: New file.
9443         * lib/unicase.in.h: Renamed from lib/unicase.h.
9444         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
9445         * lib/unictype.in.h: Renamed from lib/unictype.h.
9446         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
9447         * lib/uniname.in.h: Renamed from lib/uniname.h.
9448         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
9449         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
9450         * lib/unistr.in.h: Renamed from lib/unistr.h.
9451         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
9452         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
9453         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
9454         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
9455         gl_LIBUNISTRING. If the library was found, determine the installed
9456         version and set LIBUNISTRING_VERSION.
9457         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
9458         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
9459         handle a configuration option --with-included-libunistring.
9460         * modules/libunistring (Files): Add m4/absolute-header.m4.
9461         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
9462         Add m4/libunistring-base.m4.
9463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9464         (Makefile.am): Build unicase.h from unicase.in.h.
9465         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
9466         Add m4/libunistring-base.m4.
9467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9468         (Makefile.am): Build uniconv.h from uniconv.in.h.
9469         * modules/unictype/base (Files): Use unictype.in.h instead of
9470         unictype.h. Add m4/libunistring-base.m4.
9471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9472         (Makefile.am): Build unictype.h from unictype.in.h.
9473         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
9474         Add m4/libunistring-base.m4.
9475         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9476         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
9477         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
9478         Add m4/libunistring-base.m4.
9479         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9480         (Makefile.am): Build uniname.h from uniname.in.h.
9481         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
9482         Add m4/libunistring-base.m4.
9483         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9484         (Makefile.am): Build uninorm.h from uninorm.in.h.
9485         * modules/unistdio/base (Files): Use unistdio.in.h instead of
9486         unistdio.h. Add m4/libunistring-base.m4.
9487         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9488         (Makefile.am): Build unistdio.h from unistdio.in.h.
9489         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
9490         Add m4/libunistring-base.m4.
9491         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9492         (Makefile.am): Build unistr.h from unistr.in.h.
9493         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
9494         Add m4/libunistring-base.m4.
9495         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9496         (Makefile.am): Build unitypes.h from unitypes.in.h.
9497         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
9498         Add m4/libunistring-base.m4.
9499         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9500         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
9501         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
9502         uniwidth.h. Add m4/libunistring-base.m4.
9503         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9504         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
9505         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
9506         instead of augmenting lib_SOURCES.
9507         * modules/unicase/empty-suffix-context: Likewise.
9508         * modules/unicase/locale-language: Likewise.
9509         * modules/unicase/tolower: Likewise.
9510         * modules/unicase/totitle: Likewise.
9511         * modules/unicase/toupper: Likewise.
9512         * modules/unicase/u8-casecmp: Likewise.
9513         * modules/unicase/u8-casecoll: Likewise.
9514         * modules/unicase/u8-casefold: Likewise.
9515         * modules/unicase/u8-casexfrm: Likewise.
9516         * modules/unicase/u8-ct-casefold: Likewise.
9517         * modules/unicase/u8-ct-tolower: Likewise.
9518         * modules/unicase/u8-ct-totitle: Likewise.
9519         * modules/unicase/u8-ct-toupper: Likewise.
9520         * modules/unicase/u8-is-cased: Likewise.
9521         * modules/unicase/u8-is-casefolded: Likewise.
9522         * modules/unicase/u8-is-lowercase: Likewise.
9523         * modules/unicase/u8-is-titlecase: Likewise.
9524         * modules/unicase/u8-is-uppercase: Likewise.
9525         * modules/unicase/u8-prefix-context: Likewise.
9526         * modules/unicase/u8-suffix-context: Likewise.
9527         * modules/unicase/u8-tolower: Likewise.
9528         * modules/unicase/u8-totitle: Likewise.
9529         * modules/unicase/u8-toupper: Likewise.
9530         * modules/unicase/u16-casecmp: Likewise.
9531         * modules/unicase/u16-casecoll: Likewise.
9532         * modules/unicase/u16-casefold: Likewise.
9533         * modules/unicase/u16-casexfrm: Likewise.
9534         * modules/unicase/u16-ct-casefold: Likewise.
9535         * modules/unicase/u16-ct-tolower: Likewise.
9536         * modules/unicase/u16-ct-totitle: Likewise.
9537         * modules/unicase/u16-ct-toupper: Likewise.
9538         * modules/unicase/u16-is-cased: Likewise.
9539         * modules/unicase/u16-is-casefolded: Likewise.
9540         * modules/unicase/u16-is-lowercase: Likewise.
9541         * modules/unicase/u16-is-titlecase: Likewise.
9542         * modules/unicase/u16-is-uppercase: Likewise.
9543         * modules/unicase/u16-prefix-context: Likewise.
9544         * modules/unicase/u16-suffix-context: Likewise.
9545         * modules/unicase/u16-tolower: Likewise.
9546         * modules/unicase/u16-totitle: Likewise.
9547         * modules/unicase/u16-toupper: Likewise.
9548         * modules/unicase/u32-casecmp: Likewise.
9549         * modules/unicase/u32-casecoll: Likewise.
9550         * modules/unicase/u32-casefold: Likewise.
9551         * modules/unicase/u32-casexfrm: Likewise.
9552         * modules/unicase/u32-ct-casefold: Likewise.
9553         * modules/unicase/u32-ct-tolower: Likewise.
9554         * modules/unicase/u32-ct-totitle: Likewise.
9555         * modules/unicase/u32-ct-toupper: Likewise.
9556         * modules/unicase/u32-is-cased: Likewise.
9557         * modules/unicase/u32-is-casefolded: Likewise.
9558         * modules/unicase/u32-is-lowercase: Likewise.
9559         * modules/unicase/u32-is-titlecase: Likewise.
9560         * modules/unicase/u32-is-uppercase: Likewise.
9561         * modules/unicase/u32-prefix-context: Likewise.
9562         * modules/unicase/u32-suffix-context: Likewise.
9563         * modules/unicase/u32-tolower: Likewise.
9564         * modules/unicase/u32-totitle: Likewise.
9565         * modules/unicase/u32-toupper: Likewise.
9566         * modules/unicase/ulc-casecmp: Likewise.
9567         * modules/unicase/ulc-casecoll: Likewise.
9568         * modules/unicase/ulc-casexfrm: Likewise.
9569         * modules/uniconv/u8-conv-from-enc: Likewise.
9570         * modules/uniconv/u8-conv-to-enc: Likewise.
9571         * modules/uniconv/u8-strconv-from-enc: Likewise.
9572         * modules/uniconv/u8-strconv-from-locale: Likewise.
9573         * modules/uniconv/u8-strconv-to-enc: Likewise.
9574         * modules/uniconv/u8-strconv-to-locale: Likewise.
9575         * modules/uniconv/u16-conv-from-enc: Likewise.
9576         * modules/uniconv/u16-conv-to-enc: Likewise.
9577         * modules/uniconv/u16-strconv-from-enc: Likewise.
9578         * modules/uniconv/u16-strconv-from-locale: Likewise.
9579         * modules/uniconv/u16-strconv-to-enc: Likewise.
9580         * modules/uniconv/u16-strconv-to-locale: Likewise.
9581         * modules/uniconv/u32-conv-from-enc: Likewise.
9582         * modules/uniconv/u32-conv-to-enc: Likewise.
9583         * modules/uniconv/u32-strconv-from-enc: Likewise.
9584         * modules/uniconv/u32-strconv-from-locale: Likewise.
9585         * modules/uniconv/u32-strconv-to-enc: Likewise.
9586         * modules/uniconv/u32-strconv-to-locale: Likewise.
9587         * modules/unictype/bidicategory-byname: Likewise.
9588         * modules/unictype/bidicategory-name: Likewise.
9589         * modules/unictype/bidicategory-of: Likewise.
9590         * modules/unictype/bidicategory-test: Likewise.
9591         * modules/unictype/block-list: Likewise.
9592         * modules/unictype/block-test: Likewise.
9593         * modules/unictype/category-C: Likewise.
9594         * modules/unictype/category-Cc: Likewise.
9595         * modules/unictype/category-Cf: Likewise.
9596         * modules/unictype/category-Cn: Likewise.
9597         * modules/unictype/category-Co: Likewise.
9598         * modules/unictype/category-Cs: Likewise.
9599         * modules/unictype/category-L: Likewise.
9600         * modules/unictype/category-Ll: Likewise.
9601         * modules/unictype/category-Lm: Likewise.
9602         * modules/unictype/category-Lo: Likewise.
9603         * modules/unictype/category-Lt: Likewise.
9604         * modules/unictype/category-Lu: Likewise.
9605         * modules/unictype/category-M: Likewise.
9606         * modules/unictype/category-Mc: Likewise.
9607         * modules/unictype/category-Me: Likewise.
9608         * modules/unictype/category-Mn: Likewise.
9609         * modules/unictype/category-N: Likewise.
9610         * modules/unictype/category-Nd: Likewise.
9611         * modules/unictype/category-Nl: Likewise.
9612         * modules/unictype/category-No: Likewise.
9613         * modules/unictype/category-P: Likewise.
9614         * modules/unictype/category-Pc: Likewise.
9615         * modules/unictype/category-Pd: Likewise.
9616         * modules/unictype/category-Pe: Likewise.
9617         * modules/unictype/category-Pf: Likewise.
9618         * modules/unictype/category-Pi: Likewise.
9619         * modules/unictype/category-Po: Likewise.
9620         * modules/unictype/category-Ps: Likewise.
9621         * modules/unictype/category-S: Likewise.
9622         * modules/unictype/category-Sc: Likewise.
9623         * modules/unictype/category-Sk: Likewise.
9624         * modules/unictype/category-Sm: Likewise.
9625         * modules/unictype/category-So: Likewise.
9626         * modules/unictype/category-Z: Likewise.
9627         * modules/unictype/category-Zl: Likewise.
9628         * modules/unictype/category-Zp: Likewise.
9629         * modules/unictype/category-Zs: Likewise.
9630         * modules/unictype/category-and: Likewise.
9631         * modules/unictype/category-and-not: Likewise.
9632         * modules/unictype/category-byname: Likewise.
9633         * modules/unictype/category-name: Likewise.
9634         * modules/unictype/category-none: Likewise.
9635         * modules/unictype/category-of: Likewise.
9636         * modules/unictype/category-or: Likewise.
9637         * modules/unictype/category-test: Likewise.
9638         * modules/unictype/combining-class: Likewise.
9639         * modules/unictype/ctype-alnum: Likewise.
9640         * modules/unictype/ctype-alpha: Likewise.
9641         * modules/unictype/ctype-blank: Likewise.
9642         * modules/unictype/ctype-cntrl: Likewise.
9643         * modules/unictype/ctype-digit: Likewise.
9644         * modules/unictype/ctype-graph: Likewise.
9645         * modules/unictype/ctype-lower: Likewise.
9646         * modules/unictype/ctype-print: Likewise.
9647         * modules/unictype/ctype-punct: Likewise.
9648         * modules/unictype/ctype-space: Likewise.
9649         * modules/unictype/ctype-upper: Likewise.
9650         * modules/unictype/ctype-xdigit: Likewise.
9651         * modules/unictype/decimal-digit: Likewise.
9652         * modules/unictype/digit: Likewise.
9653         * modules/unictype/mirror: Likewise.
9654         * modules/unictype/numeric: Likewise.
9655         * modules/unictype/property-alphabetic: Likewise.
9656         * modules/unictype/property-ascii-hex-digit: Likewise.
9657         * modules/unictype/property-bidi-arabic-digit: Likewise.
9658         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
9659         * modules/unictype/property-bidi-block-separator: Likewise.
9660         * modules/unictype/property-bidi-boundary-neutral: Likewise.
9661         * modules/unictype/property-bidi-common-separator: Likewise.
9662         * modules/unictype/property-bidi-control: Likewise.
9663         * modules/unictype/property-bidi-embedding-or-override: Likewise.
9664         * modules/unictype/property-bidi-eur-num-separator: Likewise.
9665         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
9666         * modules/unictype/property-bidi-european-digit: Likewise.
9667         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
9668         * modules/unictype/property-bidi-left-to-right: Likewise.
9669         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
9670         * modules/unictype/property-bidi-other-neutral: Likewise.
9671         * modules/unictype/property-bidi-pdf: Likewise.
9672         * modules/unictype/property-bidi-segment-separator: Likewise.
9673         * modules/unictype/property-bidi-whitespace: Likewise.
9674         * modules/unictype/property-byname: Likewise.
9675         * modules/unictype/property-combining: Likewise.
9676         * modules/unictype/property-composite: Likewise.
9677         * modules/unictype/property-currency-symbol: Likewise.
9678         * modules/unictype/property-dash: Likewise.
9679         * modules/unictype/property-decimal-digit: Likewise.
9680         * modules/unictype/property-default-ignorable-code-point: Likewise.
9681         * modules/unictype/property-deprecated: Likewise.
9682         * modules/unictype/property-diacritic: Likewise.
9683         * modules/unictype/property-extender: Likewise.
9684         * modules/unictype/property-format-control: Likewise.
9685         * modules/unictype/property-grapheme-base: Likewise.
9686         * modules/unictype/property-grapheme-extend: Likewise.
9687         * modules/unictype/property-grapheme-link: Likewise.
9688         * modules/unictype/property-hex-digit: Likewise.
9689         * modules/unictype/property-hyphen: Likewise.
9690         * modules/unictype/property-id-continue: Likewise.
9691         * modules/unictype/property-id-start: Likewise.
9692         * modules/unictype/property-ideographic: Likewise.
9693         * modules/unictype/property-ids-binary-operator: Likewise.
9694         * modules/unictype/property-ids-trinary-operator: Likewise.
9695         * modules/unictype/property-ignorable-control: Likewise.
9696         * modules/unictype/property-iso-control: Likewise.
9697         * modules/unictype/property-join-control: Likewise.
9698         * modules/unictype/property-left-of-pair: Likewise.
9699         * modules/unictype/property-line-separator: Likewise.
9700         * modules/unictype/property-logical-order-exception: Likewise.
9701         * modules/unictype/property-lowercase: Likewise.
9702         * modules/unictype/property-math: Likewise.
9703         * modules/unictype/property-non-break: Likewise.
9704         * modules/unictype/property-not-a-character: Likewise.
9705         * modules/unictype/property-numeric: Likewise.
9706         * modules/unictype/property-other-alphabetic: Likewise.
9707         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
9708         * modules/unictype/property-other-grapheme-extend: Likewise.
9709         * modules/unictype/property-other-id-continue: Likewise.
9710         * modules/unictype/property-other-id-start: Likewise.
9711         * modules/unictype/property-other-lowercase: Likewise.
9712         * modules/unictype/property-other-math: Likewise.
9713         * modules/unictype/property-other-uppercase: Likewise.
9714         * modules/unictype/property-paired-punctuation: Likewise.
9715         * modules/unictype/property-paragraph-separator: Likewise.
9716         * modules/unictype/property-pattern-syntax: Likewise.
9717         * modules/unictype/property-pattern-white-space: Likewise.
9718         * modules/unictype/property-private-use: Likewise.
9719         * modules/unictype/property-punctuation: Likewise.
9720         * modules/unictype/property-quotation-mark: Likewise.
9721         * modules/unictype/property-radical: Likewise.
9722         * modules/unictype/property-sentence-terminal: Likewise.
9723         * modules/unictype/property-soft-dotted: Likewise.
9724         * modules/unictype/property-space: Likewise.
9725         * modules/unictype/property-terminal-punctuation: Likewise.
9726         * modules/unictype/property-test: Likewise.
9727         * modules/unictype/property-titlecase: Likewise.
9728         * modules/unictype/property-unassigned-code-value: Likewise.
9729         * modules/unictype/property-unified-ideograph: Likewise.
9730         * modules/unictype/property-uppercase: Likewise.
9731         * modules/unictype/property-variation-selector: Likewise.
9732         * modules/unictype/property-white-space: Likewise.
9733         * modules/unictype/property-xid-continue: Likewise.
9734         * modules/unictype/property-xid-start: Likewise.
9735         * modules/unictype/property-zero-width: Likewise.
9736         * modules/unictype/scripts: Likewise.
9737         * modules/unictype/syntax-c-ident: Likewise.
9738         * modules/unictype/syntax-c-whitespace: Likewise.
9739         * modules/unictype/syntax-java-ident: Likewise.
9740         * modules/unictype/syntax-java-whitespace: Likewise.
9741         * modules/unilbrk/u8-possible-linebreaks: Likewise.
9742         * modules/unilbrk/u8-width-linebreaks: Likewise.
9743         * modules/unilbrk/u16-possible-linebreaks: Likewise.
9744         * modules/unilbrk/u16-width-linebreaks: Likewise.
9745         * modules/unilbrk/u32-possible-linebreaks: Likewise.
9746         * modules/unilbrk/u32-width-linebreaks: Likewise.
9747         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
9748         * modules/unilbrk/ulc-width-linebreaks: Likewise.
9749         * modules/uniname/uniname: Likewise.
9750         * modules/uninorm/canonical-decomposition: Likewise.
9751         * modules/uninorm/composition: Likewise.
9752         * modules/uninorm/decomposing-form: Likewise.
9753         * modules/uninorm/decomposition: Likewise.
9754         * modules/uninorm/filter: Likewise.
9755         * modules/uninorm/nfc: Likewise.
9756         * modules/uninorm/nfd: Likewise.
9757         * modules/uninorm/nfkc: Likewise.
9758         * modules/uninorm/nfkd: Likewise.
9759         * modules/uninorm/u8-normalize: Likewise.
9760         * modules/uninorm/u8-normcmp: Likewise.
9761         * modules/uninorm/u8-normcoll: Likewise.
9762         * modules/uninorm/u8-normxfrm: Likewise.
9763         * modules/uninorm/u16-normalize: Likewise.
9764         * modules/uninorm/u16-normcmp: Likewise.
9765         * modules/uninorm/u16-normcoll: Likewise.
9766         * modules/uninorm/u16-normxfrm: Likewise.
9767         * modules/uninorm/u32-normalize: Likewise.
9768         * modules/uninorm/u32-normcmp: Likewise.
9769         * modules/uninorm/u32-normcoll: Likewise.
9770         * modules/uninorm/u32-normxfrm: Likewise.
9771         * modules/unistdio/u8-asnprintf: Likewise.
9772         * modules/unistdio/u8-asprintf: Likewise.
9773         * modules/unistdio/u8-snprintf: Likewise.
9774         * modules/unistdio/u8-sprintf: Likewise.
9775         * modules/unistdio/u8-u8-asnprintf: Likewise.
9776         * modules/unistdio/u8-u8-asprintf: Likewise.
9777         * modules/unistdio/u8-u8-snprintf: Likewise.
9778         * modules/unistdio/u8-u8-sprintf: Likewise.
9779         * modules/unistdio/u8-u8-vasnprintf: Likewise.
9780         * modules/unistdio/u8-u8-vasprintf: Likewise.
9781         * modules/unistdio/u8-u8-vsnprintf: Likewise.
9782         * modules/unistdio/u8-u8-vsprintf: Likewise.
9783         * modules/unistdio/u8-vasnprintf: Likewise.
9784         * modules/unistdio/u8-vasprintf: Likewise.
9785         * modules/unistdio/u8-vsnprintf: Likewise.
9786         * modules/unistdio/u8-vsprintf: Likewise.
9787         * modules/unistdio/u16-asnprintf: Likewise.
9788         * modules/unistdio/u16-asprintf: Likewise.
9789         * modules/unistdio/u16-snprintf: Likewise.
9790         * modules/unistdio/u16-sprintf: Likewise.
9791         * modules/unistdio/u16-u16-asnprintf: Likewise.
9792         * modules/unistdio/u16-u16-asprintf: Likewise.
9793         * modules/unistdio/u16-u16-snprintf: Likewise.
9794         * modules/unistdio/u16-u16-sprintf: Likewise.
9795         * modules/unistdio/u16-u16-vasnprintf: Likewise.
9796         * modules/unistdio/u16-u16-vasprintf: Likewise.
9797         * modules/unistdio/u16-u16-vsnprintf: Likewise.
9798         * modules/unistdio/u16-u16-vsprintf: Likewise.
9799         * modules/unistdio/u16-vasnprintf: Likewise.
9800         * modules/unistdio/u16-vasprintf: Likewise.
9801         * modules/unistdio/u16-vsnprintf: Likewise.
9802         * modules/unistdio/u16-vsprintf: Likewise.
9803         * modules/unistdio/u32-asnprintf: Likewise.
9804         * modules/unistdio/u32-asprintf: Likewise.
9805         * modules/unistdio/u32-snprintf: Likewise.
9806         * modules/unistdio/u32-sprintf: Likewise.
9807         * modules/unistdio/u32-u32-asnprintf: Likewise.
9808         * modules/unistdio/u32-u32-asprintf: Likewise.
9809         * modules/unistdio/u32-u32-snprintf: Likewise.
9810         * modules/unistdio/u32-u32-sprintf: Likewise.
9811         * modules/unistdio/u32-u32-vasnprintf: Likewise.
9812         * modules/unistdio/u32-u32-vasprintf: Likewise.
9813         * modules/unistdio/u32-u32-vsnprintf: Likewise.
9814         * modules/unistdio/u32-u32-vsprintf: Likewise.
9815         * modules/unistdio/u32-vasnprintf: Likewise.
9816         * modules/unistdio/u32-vasprintf: Likewise.
9817         * modules/unistdio/u32-vsnprintf: Likewise.
9818         * modules/unistdio/u32-vsprintf: Likewise.
9819         * modules/unistdio/ulc-asnprintf: Likewise.
9820         * modules/unistdio/ulc-asprintf: Likewise.
9821         * modules/unistdio/ulc-fprintf: Likewise.
9822         * modules/unistdio/ulc-snprintf: Likewise.
9823         * modules/unistdio/ulc-sprintf: Likewise.
9824         * modules/unistdio/ulc-vasnprintf: Likewise.
9825         * modules/unistdio/ulc-vasprintf: Likewise.
9826         * modules/unistdio/ulc-vfprintf: Likewise.
9827         * modules/unistdio/ulc-vsnprintf: Likewise.
9828         * modules/unistdio/ulc-vsprintf: Likewise.
9829         * modules/unistr/u8-check: Likewise.
9830         * modules/unistr/u8-chr: Likewise.
9831         * modules/unistr/u8-cmp: Likewise.
9832         * modules/unistr/u8-cmp2: Likewise.
9833         * modules/unistr/u8-cpy: Likewise.
9834         * modules/unistr/u8-cpy-alloc: Likewise.
9835         * modules/unistr/u8-endswith: Likewise.
9836         * modules/unistr/u8-mblen: Likewise.
9837         * modules/unistr/u8-mbsnlen: Likewise.
9838         * modules/unistr/u8-mbtouc: Likewise.
9839         * modules/unistr/u8-mbtouc-unsafe: Likewise.
9840         * modules/unistr/u8-mbtoucr: Likewise.
9841         * modules/unistr/u8-move: Likewise.
9842         * modules/unistr/u8-next: Likewise.
9843         * modules/unistr/u8-prev: Likewise.
9844         * modules/unistr/u8-set: Likewise.
9845         * modules/unistr/u8-startswith: Likewise.
9846         * modules/unistr/u8-stpcpy: Likewise.
9847         * modules/unistr/u8-stpncpy: Likewise.
9848         * modules/unistr/u8-strcat: Likewise.
9849         * modules/unistr/u8-strchr: Likewise.
9850         * modules/unistr/u8-strcmp: Likewise.
9851         * modules/unistr/u8-strcoll: Likewise.
9852         * modules/unistr/u8-strcpy: Likewise.
9853         * modules/unistr/u8-strcspn: Likewise.
9854         * modules/unistr/u8-strdup: Likewise.
9855         * modules/unistr/u8-strlen: Likewise.
9856         * modules/unistr/u8-strmblen: Likewise.
9857         * modules/unistr/u8-strmbtouc: Likewise.
9858         * modules/unistr/u8-strncat: Likewise.
9859         * modules/unistr/u8-strncmp: Likewise.
9860         * modules/unistr/u8-strncpy: Likewise.
9861         * modules/unistr/u8-strnlen: Likewise.
9862         * modules/unistr/u8-strpbrk: Likewise.
9863         * modules/unistr/u8-strrchr: Likewise.
9864         * modules/unistr/u8-strspn: Likewise.
9865         * modules/unistr/u8-strstr: Likewise.
9866         * modules/unistr/u8-strtok: Likewise.
9867         * modules/unistr/u8-to-u16: Likewise.
9868         * modules/unistr/u8-to-u32: Likewise.
9869         * modules/unistr/u8-uctomb: Likewise.
9870         * modules/unistr/u16-check: Likewise.
9871         * modules/unistr/u16-chr: Likewise.
9872         * modules/unistr/u16-cmp: Likewise.
9873         * modules/unistr/u16-cmp2: Likewise.
9874         * modules/unistr/u16-cpy: Likewise.
9875         * modules/unistr/u16-cpy-alloc: Likewise.
9876         * modules/unistr/u16-endswith: Likewise.
9877         * modules/unistr/u16-mblen: Likewise.
9878         * modules/unistr/u16-mbsnlen: Likewise.
9879         * modules/unistr/u16-mbtouc: Likewise.
9880         * modules/unistr/u16-mbtouc-unsafe: Likewise.
9881         * modules/unistr/u16-mbtoucr: Likewise.
9882         * modules/unistr/u16-move: Likewise.
9883         * modules/unistr/u16-next: Likewise.
9884         * modules/unistr/u16-prev: Likewise.
9885         * modules/unistr/u16-set: Likewise.
9886         * modules/unistr/u16-startswith: Likewise.
9887         * modules/unistr/u16-stpcpy: Likewise.
9888         * modules/unistr/u16-stpncpy: Likewise.
9889         * modules/unistr/u16-strcat: Likewise.
9890         * modules/unistr/u16-strchr: Likewise.
9891         * modules/unistr/u16-strcmp: Likewise.
9892         * modules/unistr/u16-strcoll: Likewise.
9893         * modules/unistr/u16-strcpy: Likewise.
9894         * modules/unistr/u16-strcspn: Likewise.
9895         * modules/unistr/u16-strdup: Likewise.
9896         * modules/unistr/u16-strlen: Likewise.
9897         * modules/unistr/u16-strmblen: Likewise.
9898         * modules/unistr/u16-strmbtouc: Likewise.
9899         * modules/unistr/u16-strncat: Likewise.
9900         * modules/unistr/u16-strncmp: Likewise.
9901         * modules/unistr/u16-strncpy: Likewise.
9902         * modules/unistr/u16-strnlen: Likewise.
9903         * modules/unistr/u16-strpbrk: Likewise.
9904         * modules/unistr/u16-strrchr: Likewise.
9905         * modules/unistr/u16-strspn: Likewise.
9906         * modules/unistr/u16-strstr: Likewise.
9907         * modules/unistr/u16-strtok: Likewise.
9908         * modules/unistr/u16-to-u32: Likewise.
9909         * modules/unistr/u16-to-u8: Likewise.
9910         * modules/unistr/u16-uctomb: Likewise.
9911         * modules/unistr/u32-check: Likewise.
9912         * modules/unistr/u32-chr: Likewise.
9913         * modules/unistr/u32-cmp: Likewise.
9914         * modules/unistr/u32-cmp2: Likewise.
9915         * modules/unistr/u32-cpy: Likewise.
9916         * modules/unistr/u32-cpy-alloc: Likewise.
9917         * modules/unistr/u32-endswith: Likewise.
9918         * modules/unistr/u32-mblen: Likewise.
9919         * modules/unistr/u32-mbsnlen: Likewise.
9920         * modules/unistr/u32-mbtouc: Likewise.
9921         * modules/unistr/u32-mbtouc-unsafe: Likewise.
9922         * modules/unistr/u32-mbtoucr: Likewise.
9923         * modules/unistr/u32-move: Likewise.
9924         * modules/unistr/u32-next: Likewise.
9925         * modules/unistr/u32-prev: Likewise.
9926         * modules/unistr/u32-set: Likewise.
9927         * modules/unistr/u32-startswith: Likewise.
9928         * modules/unistr/u32-stpcpy: Likewise.
9929         * modules/unistr/u32-stpncpy: Likewise.
9930         * modules/unistr/u32-strcat: Likewise.
9931         * modules/unistr/u32-strchr: Likewise.
9932         * modules/unistr/u32-strcmp: Likewise.
9933         * modules/unistr/u32-strcoll: Likewise.
9934         * modules/unistr/u32-strcpy: Likewise.
9935         * modules/unistr/u32-strcspn: Likewise.
9936         * modules/unistr/u32-strdup: Likewise.
9937         * modules/unistr/u32-strlen: Likewise.
9938         * modules/unistr/u32-strmblen: Likewise.
9939         * modules/unistr/u32-strmbtouc: Likewise.
9940         * modules/unistr/u32-strncat: Likewise.
9941         * modules/unistr/u32-strncmp: Likewise.
9942         * modules/unistr/u32-strncpy: Likewise.
9943         * modules/unistr/u32-strnlen: Likewise.
9944         * modules/unistr/u32-strpbrk: Likewise.
9945         * modules/unistr/u32-strrchr: Likewise.
9946         * modules/unistr/u32-strspn: Likewise.
9947         * modules/unistr/u32-strstr: Likewise.
9948         * modules/unistr/u32-strtok: Likewise.
9949         * modules/unistr/u32-to-u16: Likewise.
9950         * modules/unistr/u32-to-u8: Likewise.
9951         * modules/unistr/u32-uctomb: Likewise.
9952         * modules/uniwbrk/u8-wordbreaks: Likewise.
9953         * modules/uniwbrk/u16-wordbreaks: Likewise.
9954         * modules/uniwbrk/u32-wordbreaks: Likewise.
9955         * modules/uniwbrk/ulc-wordbreaks: Likewise.
9956         * modules/uniwbrk/wordbreak-property: Likewise.
9957         * modules/uniwidth/u8-strwidth: Likewise.
9958         * modules/uniwidth/u8-width: Likewise.
9959         * modules/uniwidth/u16-strwidth: Likewise.
9960         * modules/uniwidth/u16-width: Likewise.
9961         * modules/uniwidth/u32-strwidth: Likewise.
9962         * modules/uniwidth/u32-width: Likewise.
9963         * modules/uniwidth/width: Likewise.
9964         * modules/unicase/cased-tests (Makefile.am): Link all test programs
9965         with $(LIBUNISTRING).
9966         * modules/unicase/ignorable-tests: Likewise.
9967         * modules/unicase/locale-language-tests: Likewise.
9968         * modules/unicase/tolower-tests: Likewise.
9969         * modules/unicase/totitle-tests: Likewise.
9970         * modules/unicase/toupper-tests: Likewise.
9971         * modules/unicase/u8-casecmp-tests: Likewise.
9972         * modules/unicase/u8-casecoll-tests: Likewise.
9973         * modules/unicase/u8-casefold-tests: Likewise.
9974         * modules/unicase/u8-is-cased-tests: Likewise.
9975         * modules/unicase/u8-is-casefolded-tests: Likewise.
9976         * modules/unicase/u8-is-lowercase-tests: Likewise.
9977         * modules/unicase/u8-is-titlecase-tests: Likewise.
9978         * modules/unicase/u8-is-uppercase-tests: Likewise.
9979         * modules/unicase/u8-tolower-tests: Likewise.
9980         * modules/unicase/u8-totitle-tests: Likewise.
9981         * modules/unicase/u8-toupper-tests: Likewise.
9982         * modules/unicase/u16-casecmp-tests: Likewise.
9983         * modules/unicase/u16-casecoll-tests: Likewise.
9984         * modules/unicase/u16-casefold-tests: Likewise.
9985         * modules/unicase/u16-is-cased-tests: Likewise.
9986         * modules/unicase/u16-is-casefolded-tests: Likewise.
9987         * modules/unicase/u16-is-lowercase-tests: Likewise.
9988         * modules/unicase/u16-is-titlecase-tests: Likewise.
9989         * modules/unicase/u16-is-uppercase-tests: Likewise.
9990         * modules/unicase/u16-tolower-tests: Likewise.
9991         * modules/unicase/u16-totitle-tests: Likewise.
9992         * modules/unicase/u16-toupper-tests: Likewise.
9993         * modules/unicase/u32-casecmp-tests: Likewise.
9994         * modules/unicase/u32-casecoll-tests: Likewise.
9995         * modules/unicase/u32-casefold-tests: Likewise.
9996         * modules/unicase/u32-is-cased-tests: Likewise.
9997         * modules/unicase/u32-is-casefolded-tests: Likewise.
9998         * modules/unicase/u32-is-lowercase-tests: Likewise.
9999         * modules/unicase/u32-is-titlecase-tests: Likewise.
10000         * modules/unicase/u32-is-uppercase-tests: Likewise.
10001         * modules/unicase/u32-tolower-tests: Likewise.
10002         * modules/unicase/u32-totitle-tests: Likewise.
10003         * modules/unicase/u32-toupper-tests: Likewise.
10004         * modules/unicase/ulc-casecmp-tests: Likewise.
10005         * modules/unicase/ulc-casecoll-tests: Likewise.
10006         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
10007         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
10008         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
10009         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
10010         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
10011         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
10012         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
10013         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
10014         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
10015         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
10016         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
10017         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
10018         * modules/unictype/bidicategory-byname-tests: Likewise.
10019         * modules/unictype/bidicategory-name-tests: Likewise.
10020         * modules/unictype/bidicategory-of-tests: Likewise.
10021         * modules/unictype/bidicategory-test-tests: Likewise.
10022         * modules/unictype/block-list-tests: Likewise.
10023         * modules/unictype/block-of-tests: Likewise.
10024         * modules/unictype/block-test-tests: Likewise.
10025         * modules/unictype/category-C-tests: Likewise.
10026         * modules/unictype/category-Cc-tests: Likewise.
10027         * modules/unictype/category-Cf-tests: Likewise.
10028         * modules/unictype/category-Cn-tests: Likewise.
10029         * modules/unictype/category-Co-tests: Likewise.
10030         * modules/unictype/category-Cs-tests: Likewise.
10031         * modules/unictype/category-L-tests: Likewise.
10032         * modules/unictype/category-Ll-tests: Likewise.
10033         * modules/unictype/category-Lm-tests: Likewise.
10034         * modules/unictype/category-Lo-tests: Likewise.
10035         * modules/unictype/category-Lt-tests: Likewise.
10036         * modules/unictype/category-Lu-tests: Likewise.
10037         * modules/unictype/category-M-tests: Likewise.
10038         * modules/unictype/category-Mc-tests: Likewise.
10039         * modules/unictype/category-Me-tests: Likewise.
10040         * modules/unictype/category-Mn-tests: Likewise.
10041         * modules/unictype/category-N-tests: Likewise.
10042         * modules/unictype/category-Nd-tests: Likewise.
10043         * modules/unictype/category-Nl-tests: Likewise.
10044         * modules/unictype/category-No-tests: Likewise.
10045         * modules/unictype/category-P-tests: Likewise.
10046         * modules/unictype/category-Pc-tests: Likewise.
10047         * modules/unictype/category-Pd-tests: Likewise.
10048         * modules/unictype/category-Pe-tests: Likewise.
10049         * modules/unictype/category-Pf-tests: Likewise.
10050         * modules/unictype/category-Pi-tests: Likewise.
10051         * modules/unictype/category-Po-tests: Likewise.
10052         * modules/unictype/category-Ps-tests: Likewise.
10053         * modules/unictype/category-S-tests: Likewise.
10054         * modules/unictype/category-Sc-tests: Likewise.
10055         * modules/unictype/category-Sk-tests: Likewise.
10056         * modules/unictype/category-Sm-tests: Likewise.
10057         * modules/unictype/category-So-tests: Likewise.
10058         * modules/unictype/category-Z-tests: Likewise.
10059         * modules/unictype/category-Zl-tests: Likewise.
10060         * modules/unictype/category-Zp-tests: Likewise.
10061         * modules/unictype/category-Zs-tests: Likewise.
10062         * modules/unictype/category-and-not-tests: Likewise.
10063         * modules/unictype/category-and-tests: Likewise.
10064         * modules/unictype/category-byname-tests: Likewise.
10065         * modules/unictype/category-name-tests: Likewise.
10066         * modules/unictype/category-none-tests: Likewise.
10067         * modules/unictype/category-of-tests: Likewise.
10068         * modules/unictype/category-or-tests: Likewise.
10069         * modules/unictype/category-test-withtable-tests: Likewise.
10070         * modules/unictype/combining-class-tests: Likewise.
10071         * modules/unictype/ctype-alnum-tests: Likewise.
10072         * modules/unictype/ctype-alpha-tests: Likewise.
10073         * modules/unictype/ctype-blank-tests: Likewise.
10074         * modules/unictype/ctype-cntrl-tests: Likewise.
10075         * modules/unictype/ctype-digit-tests: Likewise.
10076         * modules/unictype/ctype-graph-tests: Likewise.
10077         * modules/unictype/ctype-lower-tests: Likewise.
10078         * modules/unictype/ctype-print-tests: Likewise.
10079         * modules/unictype/ctype-punct-tests: Likewise.
10080         * modules/unictype/ctype-space-tests: Likewise.
10081         * modules/unictype/ctype-upper-tests: Likewise.
10082         * modules/unictype/ctype-xdigit-tests: Likewise.
10083         * modules/unictype/decimal-digit-tests: Likewise.
10084         * modules/unictype/digit-tests: Likewise.
10085         * modules/unictype/mirror-tests: Likewise.
10086         * modules/unictype/numeric-tests: Likewise.
10087         * modules/unictype/property-alphabetic-tests: Likewise.
10088         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
10089         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
10090         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
10091         * modules/unictype/property-bidi-block-separator-tests: Likewise.
10092         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
10093         * modules/unictype/property-bidi-common-separator-tests: Likewise.
10094         * modules/unictype/property-bidi-control-tests: Likewise.
10095         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
10096         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
10097         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
10098         * modules/unictype/property-bidi-european-digit-tests: Likewise.
10099         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
10100         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
10101         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
10102         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
10103         * modules/unictype/property-bidi-pdf-tests: Likewise.
10104         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
10105         * modules/unictype/property-bidi-whitespace-tests: Likewise.
10106         * modules/unictype/property-byname-tests: Likewise.
10107         * modules/unictype/property-combining-tests: Likewise.
10108         * modules/unictype/property-composite-tests: Likewise.
10109         * modules/unictype/property-currency-symbol-tests: Likewise.
10110         * modules/unictype/property-dash-tests: Likewise.
10111         * modules/unictype/property-decimal-digit-tests: Likewise.
10112         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
10113         * modules/unictype/property-deprecated-tests: Likewise.
10114         * modules/unictype/property-diacritic-tests: Likewise.
10115         * modules/unictype/property-extender-tests: Likewise.
10116         * modules/unictype/property-format-control-tests: Likewise.
10117         * modules/unictype/property-grapheme-base-tests: Likewise.
10118         * modules/unictype/property-grapheme-extend-tests: Likewise.
10119         * modules/unictype/property-grapheme-link-tests: Likewise.
10120         * modules/unictype/property-hex-digit-tests: Likewise.
10121         * modules/unictype/property-hyphen-tests: Likewise.
10122         * modules/unictype/property-id-continue-tests: Likewise.
10123         * modules/unictype/property-id-start-tests: Likewise.
10124         * modules/unictype/property-ideographic-tests: Likewise.
10125         * modules/unictype/property-ids-binary-operator-tests: Likewise.
10126         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
10127         * modules/unictype/property-ignorable-control-tests: Likewise.
10128         * modules/unictype/property-iso-control-tests: Likewise.
10129         * modules/unictype/property-join-control-tests: Likewise.
10130         * modules/unictype/property-left-of-pair-tests: Likewise.
10131         * modules/unictype/property-line-separator-tests: Likewise.
10132         * modules/unictype/property-logical-order-exception-tests: Likewise.
10133         * modules/unictype/property-lowercase-tests: Likewise.
10134         * modules/unictype/property-math-tests: Likewise.
10135         * modules/unictype/property-non-break-tests: Likewise.
10136         * modules/unictype/property-not-a-character-tests: Likewise.
10137         * modules/unictype/property-numeric-tests: Likewise.
10138         * modules/unictype/property-other-alphabetic-tests: Likewise.
10139         * modules/unictype/property-other-default-ignorable-code-point-tests:
10140         Likewise.
10141         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
10142         * modules/unictype/property-other-id-continue-tests: Likewise.
10143         * modules/unictype/property-other-id-start-tests: Likewise.
10144         * modules/unictype/property-other-lowercase-tests: Likewise.
10145         * modules/unictype/property-other-math-tests: Likewise.
10146         * modules/unictype/property-other-uppercase-tests: Likewise.
10147         * modules/unictype/property-paired-punctuation-tests: Likewise.
10148         * modules/unictype/property-paragraph-separator-tests: Likewise.
10149         * modules/unictype/property-pattern-syntax-tests: Likewise.
10150         * modules/unictype/property-pattern-white-space-tests: Likewise.
10151         * modules/unictype/property-private-use-tests: Likewise.
10152         * modules/unictype/property-punctuation-tests: Likewise.
10153         * modules/unictype/property-quotation-mark-tests: Likewise.
10154         * modules/unictype/property-radical-tests: Likewise.
10155         * modules/unictype/property-sentence-terminal-tests: Likewise.
10156         * modules/unictype/property-soft-dotted-tests: Likewise.
10157         * modules/unictype/property-space-tests: Likewise.
10158         * modules/unictype/property-terminal-punctuation-tests: Likewise.
10159         * modules/unictype/property-test-tests: Likewise.
10160         * modules/unictype/property-titlecase-tests: Likewise.
10161         * modules/unictype/property-unassigned-code-value-tests: Likewise.
10162         * modules/unictype/property-unified-ideograph-tests: Likewise.
10163         * modules/unictype/property-uppercase-tests: Likewise.
10164         * modules/unictype/property-variation-selector-tests: Likewise.
10165         * modules/unictype/property-white-space-tests: Likewise.
10166         * modules/unictype/property-xid-continue-tests: Likewise.
10167         * modules/unictype/property-xid-start-tests: Likewise.
10168         * modules/unictype/property-zero-width-tests: Likewise.
10169         * modules/unictype/scripts-tests: Likewise.
10170         * modules/unictype/syntax-c-ident-tests: Likewise.
10171         * modules/unictype/syntax-c-whitespace-tests: Likewise.
10172         * modules/unictype/syntax-java-ident-tests: Likewise.
10173         * modules/unictype/syntax-java-whitespace-tests: Likewise.
10174         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
10175         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
10176         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
10177         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
10178         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
10179         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
10180         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
10181         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
10182         * modules/uniname/uniname-tests: Likewise.
10183         * modules/uninorm/canonical-decomposition-tests: Likewise.
10184         * modules/uninorm/compat-decomposition-tests: Likewise.
10185         * modules/uninorm/composition-tests: Likewise.
10186         * modules/uninorm/decomposing-form-tests: Likewise.
10187         * modules/uninorm/decomposition-tests: Likewise.
10188         * modules/uninorm/filter-tests: Likewise.
10189         * modules/uninorm/nfc-tests: Likewise.
10190         * modules/uninorm/nfd-tests: Likewise.
10191         * modules/uninorm/nfkc-tests: Likewise.
10192         * modules/uninorm/nfkd-tests: Likewise.
10193         * modules/uninorm/u8-normcmp-tests: Likewise.
10194         * modules/uninorm/u8-normcoll-tests: Likewise.
10195         * modules/uninorm/u16-normcmp-tests: Likewise.
10196         * modules/uninorm/u16-normcoll-tests: Likewise.
10197         * modules/uninorm/u32-normcmp-tests: Likewise.
10198         * modules/uninorm/u32-normcoll-tests: Likewise.
10199         * modules/unistdio/u8-asnprintf-tests: Likewise.
10200         * modules/unistdio/u8-vasnprintf-tests: Likewise.
10201         * modules/unistdio/u8-vasprintf-tests: Likewise.
10202         * modules/unistdio/u8-vsnprintf-tests: Likewise.
10203         * modules/unistdio/u8-vsprintf-tests: Likewise.
10204         * modules/unistdio/u16-asnprintf-tests: Likewise.
10205         * modules/unistdio/u16-vasnprintf-tests: Likewise.
10206         * modules/unistdio/u16-vasprintf-tests: Likewise.
10207         * modules/unistdio/u16-vsnprintf-tests: Likewise.
10208         * modules/unistdio/u16-vsprintf-tests: Likewise.
10209         * modules/unistdio/u32-asnprintf-tests: Likewise.
10210         * modules/unistdio/u32-vasnprintf-tests: Likewise.
10211         * modules/unistdio/u32-vasprintf-tests: Likewise.
10212         * modules/unistdio/u32-vsnprintf-tests: Likewise.
10213         * modules/unistdio/u32-vsprintf-tests: Likewise.
10214         * modules/unistdio/ulc-asnprintf-tests: Likewise.
10215         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
10216         * modules/unistdio/ulc-vasprintf-tests: Likewise.
10217         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
10218         * modules/unistdio/ulc-vsprintf-tests: Likewise.
10219         * modules/unistr/u8-check-tests: Likewise.
10220         * modules/unistr/u8-chr-tests: Likewise.
10221         * modules/unistr/u8-cmp-tests: Likewise.
10222         * modules/unistr/u8-cmp2-tests: Likewise.
10223         * modules/unistr/u8-cpy-alloc-tests: Likewise.
10224         * modules/unistr/u8-cpy-tests: Likewise.
10225         * modules/unistr/u8-mblen-tests: Likewise.
10226         * modules/unistr/u8-mbsnlen-tests: Likewise.
10227         * modules/unistr/u8-mbtouc-tests: Likewise.
10228         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
10229         * modules/unistr/u8-mbtoucr-tests: Likewise.
10230         * modules/unistr/u8-move-tests: Likewise.
10231         * modules/unistr/u8-next-tests: Likewise.
10232         * modules/unistr/u8-prev-tests: Likewise.
10233         * modules/unistr/u8-set-tests: Likewise.
10234         * modules/unistr/u8-stpcpy-tests: Likewise.
10235         * modules/unistr/u8-stpncpy-tests: Likewise.
10236         * modules/unistr/u8-strcat-tests: Likewise.
10237         * modules/unistr/u8-strcmp-tests: Likewise.
10238         * modules/unistr/u8-strcoll-tests: Likewise.
10239         * modules/unistr/u8-strcpy-tests: Likewise.
10240         * modules/unistr/u8-strdup-tests: Likewise.
10241         * modules/unistr/u8-strlen-tests: Likewise.
10242         * modules/unistr/u8-strmblen-tests: Likewise.
10243         * modules/unistr/u8-strmbtouc-tests: Likewise.
10244         * modules/unistr/u8-strncat-tests: Likewise.
10245         * modules/unistr/u8-strncmp-tests: Likewise.
10246         * modules/unistr/u8-strncpy-tests: Likewise.
10247         * modules/unistr/u8-strnlen-tests: Likewise.
10248         * modules/unistr/u8-to-u16-tests: Likewise.
10249         * modules/unistr/u8-to-u32-tests: Likewise.
10250         * modules/unistr/u8-uctomb-tests: Likewise.
10251         * modules/unistr/u16-check-tests: Likewise.
10252         * modules/unistr/u16-chr-tests: Likewise.
10253         * modules/unistr/u16-cmp-tests: Likewise.
10254         * modules/unistr/u16-cmp2-tests: Likewise.
10255         * modules/unistr/u16-cpy-alloc-tests: Likewise.
10256         * modules/unistr/u16-cpy-tests: Likewise.
10257         * modules/unistr/u16-mblen-tests: Likewise.
10258         * modules/unistr/u16-mbsnlen-tests: Likewise.
10259         * modules/unistr/u16-mbtouc-tests: Likewise.
10260         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
10261         * modules/unistr/u16-mbtoucr-tests: Likewise.
10262         * modules/unistr/u16-move-tests: Likewise.
10263         * modules/unistr/u16-next-tests: Likewise.
10264         * modules/unistr/u16-prev-tests: Likewise.
10265         * modules/unistr/u16-set-tests: Likewise.
10266         * modules/unistr/u16-stpcpy-tests: Likewise.
10267         * modules/unistr/u16-stpncpy-tests: Likewise.
10268         * modules/unistr/u16-strcat-tests: Likewise.
10269         * modules/unistr/u16-strcmp-tests: Likewise.
10270         * modules/unistr/u16-strcoll-tests: Likewise.
10271         * modules/unistr/u16-strcpy-tests: Likewise.
10272         * modules/unistr/u16-strdup-tests: Likewise.
10273         * modules/unistr/u16-strlen-tests: Likewise.
10274         * modules/unistr/u16-strmblen-tests: Likewise.
10275         * modules/unistr/u16-strmbtouc-tests: Likewise.
10276         * modules/unistr/u16-strncat-tests: Likewise.
10277         * modules/unistr/u16-strncmp-tests: Likewise.
10278         * modules/unistr/u16-strncpy-tests: Likewise.
10279         * modules/unistr/u16-strnlen-tests: Likewise.
10280         * modules/unistr/u16-to-u32-tests: Likewise.
10281         * modules/unistr/u16-to-u8-tests: Likewise.
10282         * modules/unistr/u16-uctomb-tests: Likewise.
10283         * modules/unistr/u32-check-tests: Likewise.
10284         * modules/unistr/u32-chr-tests: Likewise.
10285         * modules/unistr/u32-cmp-tests: Likewise.
10286         * modules/unistr/u32-cmp2-tests: Likewise.
10287         * modules/unistr/u32-cpy-alloc-tests: Likewise.
10288         * modules/unistr/u32-cpy-tests: Likewise.
10289         * modules/unistr/u32-mblen-tests: Likewise.
10290         * modules/unistr/u32-mbsnlen-tests: Likewise.
10291         * modules/unistr/u32-mbtouc-tests: Likewise.
10292         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
10293         * modules/unistr/u32-mbtoucr-tests: Likewise.
10294         * modules/unistr/u32-move-tests: Likewise.
10295         * modules/unistr/u32-next-tests: Likewise.
10296         * modules/unistr/u32-prev-tests: Likewise.
10297         * modules/unistr/u32-set-tests: Likewise.
10298         * modules/unistr/u32-stpcpy-tests: Likewise.
10299         * modules/unistr/u32-stpncpy-tests: Likewise.
10300         * modules/unistr/u32-strcat-tests: Likewise.
10301         * modules/unistr/u32-strcmp-tests: Likewise.
10302         * modules/unistr/u32-strcoll-tests: Likewise.
10303         * modules/unistr/u32-strcpy-tests: Likewise.
10304         * modules/unistr/u32-strdup-tests: Likewise.
10305         * modules/unistr/u32-strlen-tests: Likewise.
10306         * modules/unistr/u32-strmblen-tests: Likewise.
10307         * modules/unistr/u32-strmbtouc-tests: Likewise.
10308         * modules/unistr/u32-strncat-tests: Likewise.
10309         * modules/unistr/u32-strncmp-tests: Likewise.
10310         * modules/unistr/u32-strncpy-tests: Likewise.
10311         * modules/unistr/u32-strnlen-tests: Likewise.
10312         * modules/unistr/u32-to-u16-tests: Likewise.
10313         * modules/unistr/u32-to-u8-tests: Likewise.
10314         * modules/unistr/u32-uctomb-tests: Likewise.
10315         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
10316         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
10317         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
10318         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
10319         * modules/uniwidth/u8-strwidth-tests: Likewise.
10320         * modules/uniwidth/u8-width-tests: Likewise.
10321         * modules/uniwidth/u16-strwidth-tests: Likewise.
10322         * modules/uniwidth/u16-width-tests: Likewise.
10323         * modules/uniwidth/u32-strwidth-tests: Likewise.
10324         * modules/uniwidth/u32-width-tests: Likewise.
10325         * modules/uniwidth/width-tests: Likewise.
10326
10327 2010-05-18  Richard Jones  <rjones@redhat.com>
10328
10329         doc: users.txt: list hivex
10330         * users.txt: Add hivex.
10331
10332 2010-05-18  Richard Jones  <rjones@redhat.com>
10333
10334         doc: users.txt: list febootstrap
10335         * users.txt: Add febootstrap.
10336
10337 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
10338
10339         bootstrap: fix an error when gnulib is not used as a git submodule
10340         * build-aux/bootstrap (gnulib_path): If its length is zero then
10341         assign "gnulib" to it.
10342         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
10343
10344 2010-05-16  Bruno Haible  <bruno@clisp.org>
10345
10346         Avoid autoconf warnings about AM_ICONV.
10347         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
10348         2.64.
10349
10350 2010-05-16  Bruno Haible  <bruno@clisp.org>
10351
10352         absolute-header: Make the macro usable in more situations.
10353         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
10354         from gl_ABSOLUTE_HEADER.
10355         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
10356
10357 2010-05-16  James Youngman  <jay@gnu.org>
10358
10359         doc: update users.txt
10360         * users.txt: Add CSSC.
10361
10362 2010-05-16  Jim Meyering  <meyering@redhat.com>
10363
10364         init.sh: fix an error in the previous change; add more comments
10365         * tests/init.sh: Compare exit code in loop against 9, not 2.
10366         Patch by Bruno Haible.
10367         Make the two tests more similar by adding an empty "then" clause.
10368         Add comments.
10369
10370         init.sh: avoid unnecessary shell re-exec
10371         * tests/init.sh: Improve the re-exec-required check to first test the
10372         current shell.  If it passes the test, do not search for a shell that
10373         does pass, and do not re-exec.  This test is particularly contorted to
10374         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
10375         of $(...) evokes a syntax error and causes immediate shell exit with
10376         status 2.  Bruno Haible reported that the re-exec made it impossible
10377         to single-step through any init.sh-using script.
10378
10379 2010-05-16  Bruno Haible  <bruno@clisp.org>
10380
10381         Fix collision between gnulib's and libintl's printf replacements.
10382         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
10383         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
10384         (printf): When using GNU C, map the __printf__ function to rpl_printf
10385         via __asm__. When not using GNU C, define rpl_printf instead of
10386         __printf__.
10387         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
10388         commit.
10389         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
10390         commit.
10391         * m4/asm-underscore.m4: New file.
10392         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
10393         * modules/stdio (Files): Add m4/asm-underscore.m4.
10394         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
10395         Reported by Ben Pfaff.
10396
10397 2010-05-16  Bruno Haible  <bruno@clisp.org>
10398
10399         verify: Avoid skipping the test on openSUSE 11.0.
10400         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
10401
10402 2010-05-13  Bruno Haible  <bruno@clisp.org>
10403
10404         Avoid useless warnings from G++.
10405         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
10406         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
10407         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10408
10409 2010-05-11  Jim Meyering  <meyering@redhat.com>
10410
10411         maint.mk: tweak preceding change
10412         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
10413         regexps tighter by anchoring at EOL, and make the new group "shy"
10414         for slightly decreased overhead.
10415
10416 2010-05-11  Eric Blake  <eblake@redhat.com>
10417
10418         maint.mk: gnulib doesn't guarantee NSIG
10419         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
10420
10421 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10422
10423         test-pwrite.c: Remove unused variable declaration.
10424         * tests/test-pwrite.c (main): Remove read_buf declaration.
10425
10426         Remove useless test-pwrite.sh file.
10427         * tests/test-pwrite.sh: Delete file.
10428         * modules/pwrite-tests: Remove references.
10429         Reported by Bruno Haible.
10430
10431 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10432
10433         init.sh: fix a typo
10434         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
10435
10436 2010-05-10  Jim Meyering  <meyering@redhat.com>
10437
10438         maint.mk: avoid using a temporary file in the always-defined-macros check
10439         * top/maint.mk (.re-defmac): Remove rule.
10440         (gl_trap_): Remove definition.
10441         (sc_prohibit_always-defined_macros): Rewrite not to create and
10442         depend on a temporary file.  Instead, depend on GNU grep's ability
10443         to read a list of regular expressions from stdin when given "-f -".
10444
10445 2010-05-09  Bruno Haible  <bruno@clisp.org>
10446
10447         Update to GNU gettext 0.18, part 1.
10448         * m4/gettext.m4: Update to GNU gettext 0.18.
10449         * m4/intl.m4: Likewise.
10450         * m4/po.m4: Likewise.
10451         * modules/gettext (Files): Add m4/fcntl-o.m4.
10452         (configure.ac): Require gettext infrastructure from version 0.18.
10453
10454 2010-05-09  Jim Meyering  <meyering@redhat.com>
10455
10456         init.sh: enable MALLOC_PERTURB_
10457         * tests/init.sh: Enable glibc's malloc-perturbing option.
10458
10459         maint.mk: improve sc_cross_check_PATH_usage_in_tests
10460         With my recent change in init.sh from the two-line form:
10461             -#   : ${srcdir=.}
10462             -#   . "$srcdir/init.sh"; path_prepend_ .
10463             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
10464         I noticed that using the one-line form would cause this test
10465         to fail with a false-positive, or to stop working altogether,
10466         depending on whether help-version changed or all the tests did.
10467         * top/maint.mk (_hv_regex): Remove this definition.
10468         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
10469         (_hv_regex_strong): Use a stronger regex to check for conformance.
10470         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
10471         Give a separate diagnostic for lack of conforming use.
10472
10473         maint.mk: prohibit definition of symbols defined by gnulib
10474         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
10475         definition of symbols defined by gnulib.
10476
10477 2010-05-09  Bruno Haible  <bruno@clisp.org>
10478
10479         acl: Avoid test failure on Cygwin-hosted mingw.
10480         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
10481
10482 2010-05-09  Bruno Haible  <bruno@clisp.org>
10483
10484         error: Use system's fcntl function.
10485         * lib/error.c (fcntl): Undefine.
10486
10487 2010-05-09  Jim Meyering  <meyering@redhat.com>
10488
10489         verify: adjust formatting to be more consistent
10490         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
10491         argument-list '('s, and after one comma.
10492
10493 2010-05-09  Bruno Haible  <bruno@clisp.org>
10494
10495         error: More reliable output on mingw.
10496         * lib/error.c: Include <windows.h>.
10497         (is_open): New function.
10498         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
10499         defined.
10500
10501 2010-05-09  Bruno Haible  <bruno@clisp.org>
10502
10503         vasnprintf: Fix syntax errors in libintl build on mingw.
10504         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
10505         pad_ourselves and prec_ourselves after use.
10506
10507 2010-05-08  Bruno Haible  <bruno@clisp.org>
10508
10509         * lib/config.charset: Update comments for Cygwin 1.7.
10510         * lib/localcharset.c: Likewise.
10511
10512 2010-05-07  Jim Meyering  <meyering@redhat.com>
10513
10514         init.sh: improve comments
10515         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
10516         . "${srcdir=.}/init.sh"; path_prepend_ .
10517         Add a note about path_prepend_ and the alternative of using
10518         TESTS_ENVIRONMENT.
10519
10520 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10521
10522         exclude: Unescape hashed patterns in wildcard mode.
10523         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
10524         to the hash list.
10525         * tests/test-exclude8.sh: New test case.
10526         * modules/exclude-tests: Add new test.
10527
10528 2010-05-05  Eric Blake  <eblake@redhat.com>
10529
10530         verify: automate tests
10531         * modules/verify-tests: New module.
10532         * tests/test-verify.sh: New file.
10533         * tests/test-verify.c: Guard each negative test with a unique id.
10534         Also avoid warning about unused left hand of comma expressions.
10535
10536 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10537
10538         Further improvements to verify.h, suggested by Eric Blake.
10539         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
10540         the GL_* versions, to avoid collision with OpenGL.
10541         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
10542         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
10543         than testing merely whether it's defined.
10544
10545         Modify verify.h to pacify gcc -Wredundant_decls.
10546         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
10547         These use the prefix "GL_" since they're likely to be useful elsewhere.
10548         We may need to break them out into a different .h file.
10549         (__COUNTER__): Define to 0 if the compiler doesn't support it.
10550         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
10551         of verify_function__.
10552
10553 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10554
10555         Tests for module pwrite.
10556         * modules/pwrite-tests: New file.
10557         * tests/test-pwrite.sh: New file.
10558         * tests/test-pwrite.c: New file.
10559
10560         New module pwrite.
10561         * lib/unistd.in.h (pwrite): New declaration.
10562         * lib/pwrite.c: New file, from glibc with modifications.
10563         * m4/pwrite.m4: New file.
10564         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
10565         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
10566         REPLACE_PWRITE.
10567         * modules/pwrite: New file.
10568         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
10569         REPLACE_PWRITE.
10570         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
10571         * doc/posix-functions/pwrite.texi: Mention the new module.
10572
10573 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10574
10575         pread: Update documentation.
10576         * doc/posix-functions/pread.texi: Mention the 'pread' module.
10577
10578 2010-05-04  Eric Blake  <eblake@redhat.com>
10579
10580         docs: update cygwin progress
10581         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
10582         this bug.
10583         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
10584         Added in cygwin 1.7.2.
10585         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
10586         Likewise.
10587         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
10588         Likewise.
10589         * doc/glibc-functions/dup3.texi (dup3): Likewise.
10590         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10591         * doc/glibc-functions/accept4.texi (accept4): Likewise.
10592         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
10593         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
10594         Mention nproc module.
10595         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
10596         bug in cygwin 1.7.5 addition.
10597         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
10598         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
10599         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
10600         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
10601         1.7.5.
10602         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
10603         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
10604         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
10605         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
10606         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
10607         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
10608         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
10609         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
10610         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
10611         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
10612         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
10613         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
10614         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
10615         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
10616         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
10617         Likewise.
10618         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
10619         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
10620         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
10621         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
10622         Likewise.
10623         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
10624         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
10625         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
10626         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
10627         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
10628         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
10629         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
10630         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
10631         Likewise.
10632         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
10633         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
10634         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
10635         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
10636         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
10637         Likewise.
10638         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
10639         Likewise.
10640         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
10641         Likewise.
10642         * doc/glibc-functions/xdrrec_endofrecord.texi
10643         (xdrrec_endofrecord): Likewise.
10644         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
10645         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
10646         Likewise.
10647         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
10648         Likewise.
10649
10650 2010-05-04  Jim Meyering  <meyering@redhat.com>
10651
10652         gendocs.sh: make its "-s FILE" option more useful
10653         * build-aux/gendocs.sh: When honoring the -s FILE option, update
10654         $PACKAGE to reflect the probably-different basename of "FILE".
10655
10656 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10657
10658         bootstrap: don't ignore download_po_files failure
10659         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
10660         failure.
10661
10662 2010-05-03  Jim Meyering  <meyering@redhat.com>
10663
10664         maint.mk: allow to pass options to gendocs.sh
10665         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
10666         (gendocs_options_): New overridable variable.
10667
10668         gnu-web-doc-update: don't ignore configure or build failure
10669         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
10670
10671         announce-gen: backslash-escape '@'s in --help output
10672         * build-aux/announce-gen: Fix syntax errors.
10673
10674         maint.mk, announce-gen: allow project-specific announcement mail headers
10675         * top/maint.mk (translation_project_): Define default.
10676         (announcement_Cc_, announcement_mail_headers_): Likewise.
10677         (announcement): Invoke announce-gen with new --mail-headers option.
10678         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
10679
10680         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
10681         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
10682         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
10683         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
10684         line in the "err2" output file when running "make check" in verbose
10685         mode (i.e., with set -x enabled).
10686
10687 2010-05-03  Bruno Haible  <bruno@clisp.org>
10688
10689         wctob: Fix for weird platforms.
10690         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
10691         argument value.
10692
10693 2010-05-03  Jim Meyering  <meyering@redhat.com>
10694
10695         maint.mk: prohibit unwarranted use of <strings.h>
10696         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
10697         strings.h in a file that does not also use strcasecmp, strncasecmp,
10698         ffs or ffsll.
10699
10700         maint.mk: remove obsolete comments
10701         * top/maint.mk: Remove stale, commented-out rules.
10702
10703 2010-05-02  Bruno Haible  <bruno@clisp.org>
10704
10705         wcwidth: Declare also when it's aliased.
10706         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
10707         macro.
10708
10709 2010-05-02  Bruno Haible  <bruno@clisp.org>
10710
10711         Fix regression from 2010-04-25.
10712         * gnulib-tool (func_modules_transitive_closure): Check the status of
10713         all modules, not only of the tests that are of the form foo-tests where
10714         foo is a module.
10715
10716 2010-05-02  Bruno Haible  <bruno@clisp.org>
10717
10718         wctob: Work around nasty Cygwin 1.7.2 bug.
10719         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
10720         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
10721
10722 2010-05-01  Bruno Haible  <bruno@clisp.org>
10723
10724         fpurge: Sharper test.
10725         * tests/test-fpurge.c (main): Add one more ftell check.
10726         * modules/fpurge-tests (Depends-on): Add ftell.
10727         Suggested by Eric Blake.
10728
10729 2010-05-01  Bruno Haible  <bruno@clisp.org>
10730
10731         ftello: Another test.
10732         * tests/test-ftello3.c: New file.
10733         * modules/ftello-tests (Files): Add it.
10734         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
10735         MOSTLYCLEANFILES.
10736
10737         ftell: Another test.
10738         * tests/test-ftell3.c: New file.
10739         * modules/ftell-tests (Files): Add it.
10740         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
10741         MOSTLYCLEANFILES.
10742
10743 2010-05-01  Bruno Haible  <bruno@clisp.org>
10744
10745         ftell, ftello: Work around Solaris bug.
10746         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
10747         * lib/ftello.c: Include stdio-impl.h.
10748         (ftello): On Solaris, when _IOWRT is set, compute the result without
10749         looking at _IOREAD.
10750         * modules/ftello (Files): Add lib/stdio-impl.h.
10751         * doc/posix-functions/ftell.texi: Mention Solaris bug.
10752         * doc/posix-functions/ftello.texi: Likewise.
10753         Reported by Eric Blake.
10754
10755 2010-05-01  Bruno Haible  <bruno@clisp.org>
10756
10757         freading: Adapt to special meaning of _IOREAD flag on Solaris.
10758         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
10759         the _IOWRT flag is also set.
10760
10761 2010-05-01  Bruno Haible  <bruno@clisp.org>
10762
10763         Fix doc about a HP-UX stdio bug.
10764         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
10765         * doc/posix-functions/ftello.texi: Likewise.
10766
10767 2010-05-01  Bruno Haible  <bruno@clisp.org>
10768
10769         lseek test: Fix failure on Solaris.
10770         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
10771         output.
10772
10773 2010-04-30  Jim Meyering  <meyering@redhat.com>
10774
10775         bootstrap: don't ignore failure to generate po*/Makevars
10776         * build-aux/bootstrap (with_gettext): Don't ignore failure
10777         to create po/Makevars or runtime-po/Makevars.
10778
10779 2010-04-29  Eric Blake  <eblake@redhat.com>
10780
10781         headers: relax license to LGPLv2+
10782         * modules/fcntl-h (License): Relax license.
10783         * modules/getopt-posix (License): Likewise.
10784         * modules/locale (License): Likewise.
10785         * modules/math (License): Likewise.
10786         * modules/pty (License): Likewise.
10787         * modules/sched (License): Likewise.
10788         * modules/search (License): Likewise.
10789         * modules/spawn (License): Likewise.
10790         * modules/stdarg (License): Likewise.
10791         * modules/sysexits (License): Likewise.
10792
10793 2010-04-29  Jim Meyering  <meyering@redhat.com>
10794
10795         inttypes: relax license to LGPLv2+
10796         * modules/inttypes (License): Relax license.
10797
10798 2010-04-29  Simon Josefsson  <simon@josefsson.org>
10799
10800         * top/maint.mk (indent): Run twice to produce idempotent results.
10801
10802 2010-04-28  Bruno Haible  <bruno@clisp.org>
10803
10804         getdate: Generate getdate.c in the source directory.
10805         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
10806         MOSTLYCLEANFILES.
10807         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
10808
10809 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
10810
10811         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
10812         is not declared as a const *; avoid warnings in that case.
10813
10814 2010-04-28  Eric Blake  <eblake@redhat.com>
10815
10816         canonicalize-lgpl: avoid compiler warning
10817         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
10818         declaration' / 'extraneous semicolon' warning with some compilers.
10819         Reported by Andreas Gruenbacher.
10820
10821 2010-04-28  Jim Meyering  <meyering@redhat.com>
10822
10823         init.sh: ensure a more reliable exit status when exiting via trap
10824         * tests/init.sh (setup_): Don't rely on $? in signal handler.
10825         Inspired by patches from Dmitry V. Levin.
10826         Also trap on signal 3 (SIGQUIT).
10827
10828 2010-04-27  Bruno Haible  <bruno@clisp.org>
10829
10830         Update doc about utimes().
10831         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
10832         'utimens' module.
10833         Reported by Andreas Gruenbacher <agruen@suse.de>.
10834
10835 2010-04-27  Eric Blake  <eblake@redhat.com>
10836
10837         full-read, full-write: relax license
10838         * modules/full-read (License): Drop to LGPLv2+.
10839         * modules/full-write (License): Likewise.
10840         * modules/safe-read (License): Likewise.
10841         * modules/safe-write (License): Likewise.
10842
10843         pthread: mention library for linking
10844         * modules/pthread (Link): Mention $(LIB_PTHREAD).
10845
10846 2010-04-27  Jim Meyering  <meyering@redhat.com>
10847
10848         maint.mk: fix a bug introduced in last change
10849         * top/maint.mk (gl_assured_headers_): Now that all names are on
10850         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
10851         is not anchored to end of word, it should be adequate.
10852
10853         maint.mk: avoid side-effect in latest syntax-check
10854         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
10855         to run commands via $(shell...), and hence to incur cost only when
10856         the new rule is actually run.
10857
10858         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
10859         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
10860         and use that to create a regexp used to detect all #if HAVE_..._H uses.
10861         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
10862         (gl_assured_headers_, az_, AZ_): Define.
10863         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
10864
10865 2010-04-26  Jim Meyering  <jim@meyering.net>
10866             Bruno Haible  <bruno@clisp.org>
10867
10868         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
10869         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
10870         Prompted by an exchange with Gilles Espinasse.
10871
10872 2010-04-26  Jim Meyering  <meyering@redhat.com>
10873
10874         git-version-gen: aesthetic tweak
10875         * build-aux/git-version-gen: Use "$nl" rather than a literal,
10876         so that the command remains on a single line.
10877
10878 2010-04-26  Eric Blake  <eblake@redhat.com>
10879
10880         git-version-gen: allow use on EBCDIC hosts
10881         * build-aux/git-version-gen (dirty): Use literal rather than tying
10882         ourselves to ascii.
10883         Reported by Steve Goetze.
10884
10885 2010-04-25  Bruno Haible  <bruno@clisp.org>
10886
10887         netdb: Add support for GNULIB_POSIXCHECK.
10888         * lib/netdb.in.h: Include warn-on-use.h.
10889         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
10890         functions are used when GNULIB_POSIXCHECK is defined and the
10891         getaddrinfo module is not in use.
10892         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
10893         freeaddrinfo, gai_strerror, getnameinfo are declared.
10894         * modules/netdb (Depends-on): Add warn-on-use.
10895         (Makefile.am): Include warn-on-use.h in netdb.h.
10896
10897 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
10898
10899         build: avoid "make check" failure without .git/ directory
10900         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
10901         there is no .git/ directory.
10902
10903 2010-04-25  Bruno Haible  <bruno@clisp.org>
10904
10905         ptsname: Fix misuse of ttyname_r.
10906         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
10907         of errno.
10908
10909 2010-04-25  Bruno Haible  <bruno@clisp.org>
10910
10911         ttyname_r: Make it work on Solaris 10.
10912         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
10913         if the system function has the POSIX declaration. Test whether the
10914         function fails if the buffer is less than 128 bytes large.
10915         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
10916         system's ttyname_r function. Provide a reasonably large buffer.
10917         * modules/ttyname_r (Depends-on): Add extensions.
10918         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
10919
10920 2010-04-25  Bruno Haible  <bruno@clisp.org>
10921
10922         Use the 'extensions' module for some more functions on Solaris.
10923         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
10924         module.
10925         * doc/posix-functions/ctime_r.texi: Likewise.
10926         * doc/posix-functions/getgrgid_r.texi: Likewise.
10927         * doc/posix-functions/getgrnam_r.texi: Likewise.
10928         * doc/posix-functions/getpwnam_r.texi: Likewise.
10929         * doc/posix-functions/getpwuid_r.texi: Likewise.
10930         * doc/posix-functions/readdir_r.texi: Likewise.
10931         * doc/posix-functions/sigwait.texi: Likewise.
10932         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
10933         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
10934
10935 2010-04-25  Bruno Haible  <bruno@clisp.org>
10936
10937         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
10938         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
10939         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
10940         * lib/ttyname_r.c: Include <limits.h>.
10941         (ttyname_r): Define using the system's ttyname_r function, if it exists
10942         and not on Solaris.
10943         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
10944         set.
10945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
10946         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
10947         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
10948         Reported by Simon Josefsson.
10949
10950 2010-04-25  Bruno Haible  <bruno@clisp.org>
10951
10952         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
10953         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
10954         * doc/posix-functions/ctime_r.texi: Likewise.
10955         * doc/posix-functions/getgrgid_r.texi: Likewise.
10956         * doc/posix-functions/getgrnam_r.texi: Likewise.
10957         * doc/posix-functions/getlogin_r.texi: Likewise.
10958         * doc/posix-functions/getpwnam_r.texi: Likewise.
10959         * doc/posix-functions/getpwuid_r.texi: Likewise.
10960         * doc/posix-functions/readdir_r.texi: Likewise.
10961         * doc/posix-functions/sigwait.texi: Likewise.
10962         * doc/posix-functions/ttyname_r.texi: Likewise.
10963         Reported by Simon Josefsson.
10964
10965 2010-04-25  Bruno Haible  <bruno@clisp.org>
10966
10967         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
10968         * gnulib-tool (func_usage): Document that --with-*-tests options apply
10969         also to --create-testdir.
10970         (func_acceptable): Don't consider the status of *-tests modules here.
10971         (func_modules_transitive_closure): Consider it here, before including a
10972         test module.
10973         (func_import, func_create_testdir): Set inc_all_direct_tests,
10974         inc_all_indirect_tests.
10975         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
10976         --create-testdir and --create-megatestdir.
10977
10978 2010-04-25  Bruno Haible  <bruno@clisp.org>
10979
10980         gnulib-tool: Add --without-*-tests options.
10981         * gnulib-tool (func_usage): Document the --without-*-tests options.
10982         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
10983         excl_unportable_tests): New variables.
10984         Fail if they are specified with --import or --update.
10985         (func_acceptable): Respect the excl_*_tests variables.
10986         (func_import): Set the excl_*_tests variables to empty.
10987
10988 2010-04-25  Simon Josefsson  <simon@josefsson.org>
10989             Bruno Haible  <bruno@clisp.org>
10990
10991         Work around a MacOS X 10.4 bug with openpty.
10992         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
10993         * tests/test-openpty.c (main): Close the master side explicitly.
10994
10995 2010-04-25  Bruno Haible  <bruno@clisp.org>
10996
10997         strnlen: Fix a C++ test error on MacOS X and Solaris.
10998         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
10999         the function is not declared.
11000         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
11001         Simon Josefsson.
11002
11003 2010-04-24  Bruno Haible  <bruno@clisp.org>
11004
11005         Avoid a gcc warning.
11006         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
11007         of correct type for %08lx directive.
11008         Reported by Eric Blake.
11009
11010 2010-04-24  Bruno Haible  <bruno@clisp.org>
11011
11012         vasnprintf: Correct errno value in case of out-of-memory.
11013         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
11014         or sprintf. Use the errno value from SNPRINTF or sprintf.
11015         Reported by Ian Beckwith <ianb@erislabs.net>.
11016
11017 2010-04-24  Bruno Haible  <bruno@clisp.org>
11018
11019         ansi-c++-opt: Find correct compiler when cross-compiling.
11020         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
11021         AC_CHECK_PROGS.
11022         Reported by Simon Josefsson.
11023
11024 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
11025
11026         vc-list-files: Add support for subversion
11027         * build-aux/vc-list-files: Use "svn list" to generate the list of
11028         files controlled by subversion.
11029
11030 2010-04-23  Jim Meyering  <meyering@redhat.com>
11031
11032         vc-list-files tests: convert to use init.sh
11033         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
11034         path_prepend_.
11035         Use Exit, not exit.
11036         Use skip_ rather than open coding it.
11037         Remove trap set-up and compare definitions.
11038         * tests/test-vc-list-files-git.sh: Likewise.
11039         * modules/vc-list-files-tests (Files): Add tests/init.sh.
11040
11041 2010-04-22  Simon Josefsson  <simon@josefsson.org>
11042
11043         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
11044         backup files.
11045
11046 2010-04-21  Simon Josefsson  <simon@josefsson.org>
11047
11048         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
11049
11050 2010-04-20  Eric Blake  <eblake@redhat.com>
11051
11052         tests: be robust to ignored SIGPIPE
11053         * tests/test-select-in.sh: Consume all output.
11054         * tests/test-lseek.sh: Check correct exit status, while avoiding
11055         EPIPE.
11056
11057 2010-04-20  Simon Josefsson  <simon@josefsson.org>
11058             Bruno Haible  <bruno@clisp.org>
11059
11060         visibility: Don't use -fvisibility if it leads to a warning.
11061         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
11062         yes, don't pretend that visibility works if it leads to a warning.
11063         Reported by Mike Gran <spk121@yahoo.com>.
11064
11065 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
11066
11067         * build-aux/bootstrap: Use "git -h" for testing for supported options
11068         instead of "git --help".  The short-form option only shows a summary,
11069         and doesn't layout the full man page.  Grep for the full option name
11070         in the summary, too.
11071
11072 2010-04-19  Bruno Haible  <bruno@clisp.org>
11073
11074         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
11075         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
11076         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
11077         mention of RELOCATABLE_STRIP.
11078         Reported by Sylvain Beucler <beuc@beuc.net>.
11079
11080 2010-04-19  Bruno Haible  <bruno@clisp.org>
11081
11082         * lib/diffseq.h: Fix typo in comment.
11083         Reported by Eric Blake.
11084
11085 2010-04-19  Bruno Haible  <bruno@clisp.org>
11086
11087         ioctl: Move autoconf macro to a .m4 file.
11088         * m4/ioctl.m4: New file, extracted from modules/ioctl.
11089         * modules/ioctl (Files): Add it.
11090         (configure.ac): Simply invoke gl_FUNC_IOCTL.
11091         Reported by Ian Beckwith <ianb@erislabs.net>.
11092
11093 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
11094             Bruno Haible  <bruno@clisp.org>
11095
11096         diffseq: Accommodate use-case with abstract arrays.
11097         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
11098         is not defined.
11099         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
11100         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
11101
11102 2010-04-18  Bruno Haible  <bruno@clisp.org>
11103
11104         * doc/posix-headers/stdbool.texi: More precise wording.
11105
11106 2010-04-17  Jim Meyering  <meyering@redhat.com>
11107
11108         maint.mk: use gnu-style indentation in an embedded perl script
11109         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
11110         Rename variable: s/two/last_two_bytes/
11111
11112 2010-04-16  Eric Blake  <eblake@redhat.com>
11113
11114         test-stdbool: skip test that fails with Solaris CC
11115         * tests/test-stdbool.c (f): Skip test that causes compilation
11116         error under buggy C++ compiler.
11117         * lib/stdbool.in.h: Document the limitation.
11118         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
11119
11120         setenv: allow compilation with C++
11121         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
11122         register keyword.
11123
11124         stdint: allow test to pass with C++
11125         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
11126
11127         getopt: allow compilation with C++
11128         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
11129         struct.
11130         * lib/getopt.c (_getopt_internal_r): Use correct type.
11131         Reported by Dagobert Michelson, via Joel E. Denny.
11132
11133 2010-04-16  Bruno Haible  <bruno@clisp.org>
11134
11135         Override netdb.h always.
11136         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
11137         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
11138         Reported by Ludovic Courtès <ludo@gnu.org>.
11139
11140 2010-04-15  Bruno Haible  <bruno@clisp.org>
11141
11142         openpty: Fix mistake from 2010-03-21.
11143         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
11144         Reported by Simon Josefsson.
11145
11146 2010-04-15  Eric Blake  <eblake@redhat.com>
11147
11148         test-forkpty: fix expected signature
11149         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
11150         Reported by Simon Josefsson.
11151
11152 2010-04-15  Jim Meyering  <meyering@redhat.com>
11153
11154         maint.mk: texinfo_suffix_re_: correct the default regexp
11155         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
11156
11157         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
11158         make it configurable via texinfo_suffix_re_.
11159
11160 2010-04-14  Eric Blake  <eblake@redhat.com>
11161
11162         strtok_r: relax license to LGPLv2+
11163         * modules/strtok_r (License): Relax license.
11164         Reported by Matthias Bolte.
11165
11166 2010-04-14  Simon Josefsson  <simon@josefsson.org>
11167
11168         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
11169         version 1.4.4 by default instead of requiring the libgcrypt
11170         version used during build.  This makes it possible to use the
11171         application with older but still binary compatible libgcrypt
11172         versions.
11173
11174 2010-04-13  Eric Blake  <eblake@redhat.com>
11175
11176         getopt-gnu: match recent glibc fixes and posix ruling
11177         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
11178         '+' handling, when requesting extensions.
11179         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
11180         'W;' handling.
11181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
11182         * doc/posix-functions/getopt.texi (getopt): Document this.
11183         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11184         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11185         Likewise.
11186
11187         getopt: merge bug fixes from glibc
11188         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
11189         diagnostics.  Honor '+:' correctly.  Reject ';'.
11190
11191         getopt-posix: detect MacOS bug
11192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
11193         optind when missing a required argument.
11194         * doc/posix-functions/getopt.texi (getopt): Document the bug.
11195         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11196         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11197         Likewise.
11198
11199         getopt-posix: avoid spurious failure on Solaris
11200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
11201         an indicator that setting optind=1 is sufficient for reset.
11202
11203         getopt-posix: avoid spurious failure on FreeBSD
11204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
11205         in POSIX mode, since the m4 test uses it.
11206
11207         gnulib-tool: silence warning on BSD sh
11208         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
11209
11210 2010-04-13  Jim Meyering  <meyering@redhat.com>
11211
11212         doc: users.txt: GNU patch now uses gnulib
11213         * users.txt: Add patch.
11214
11215 2010-04-12  Jim Meyering  <meyering@redhat.com>
11216
11217         maint.mk: generate more concise timing data for syntax-check rules
11218         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
11219         " done" from each line that reports a syntax-check test duration.
11220
11221 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
11222
11223         git-version-gen: use "git update-index..." rather than "git status"
11224         * build-aux/git-version-gen: Use git update-index --refresh, not
11225         "git status".  With some versions of git, "git status" would fail
11226         to update the index and result in an unwarranted "-dirty" suffix.
11227
11228 2010-04-11  Jim Meyering  <meyering@redhat.com>
11229
11230         openat: correct formatting (no semantic change)
11231         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
11232         Suggested by Bruno Haible.
11233
11234 2010-04-11  Bruno Haible  <bruno@clisp.org>
11235
11236         Stricter declaration checking in testdirs.
11237         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11238         If for_tests is true, augment AM_CPPFLAGS to define
11239         GNULIB_STRICT_CHECKING.
11240         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
11241         GNULIB_STRICT_CHECKING is defined, verify that the function is
11242         declared.
11243
11244 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
11245             Bruno Haible  <bruno@clisp.org>
11246
11247         libunistring: Improve configure output.
11248         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
11249         Don't say "consider installing GNU libunistring" when checking again
11250         with libiconv.
11251
11252 2010-04-11  Bruno Haible  <bruno@clisp.org>
11253
11254         libunistring: Correct value of $LTLIBUNISTRING.
11255         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
11256         correct the value of $LTLIBUNISTRING.
11257
11258 2010-04-11  Bruno Haible  <bruno@clisp.org>
11259
11260         havelib: Add static libraries to LIBS in the right order.
11261         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
11262         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
11263
11264 2010-04-11  Bruno Haible  <bruno@clisp.org>
11265
11266         libunistring: Detect libunistring also when it depends on libiconv.
11267         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
11268         the second AC_LIB_HAVE_LINKFLAGS invocation.
11269
11270 2010-04-11  James Youngman  <jay@gnu.org>
11271
11272         close-stream: declare local scalars to be "const"
11273         * lib/close-stream.c (close_stream): Make boolean variables const
11274         to document the fact that we set but do not change them.
11275
11276 2010-04-11  Bruno Haible  <bruno@clisp.org>
11277
11278         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
11279
11280 2010-04-11  Jim Meyering  <meyering@redhat.com>
11281
11282         maint.mk: don't include dist-check.mk
11283         * top/maint.mk: Remove bogus include directive.
11284
11285         maint.mk: improve empty-line-at-EOF check
11286         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
11287         solution, rather than tail+Perl-based one.  The latter would read
11288         a few kilobytes from the end of each file, and did not handle empty
11289         files properly.
11290
11291         maint.mk: print the elapsed time for each syntax-check rule
11292         * top/maint.mk (sc_m_rules_): Save start time in a file.
11293         (sc_z_rules_): New rules: remove temp file and print elapsed time.
11294         (local-check): Interpose the .z rules
11295
11296 2010-04-11  Jim Meyering  <meyering@redhat.com>
11297
11298         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
11299         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
11300         empty file with one that ends in an empty line.
11301
11302 2010-04-10  Bruno Haible  <bruno@clisp.org>
11303
11304         mkdir: Make it work on mingw64.
11305         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
11306         * lib/mkdir.c: Update comment.
11307         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
11308
11309 2010-04-10  Bruno Haible  <bruno@clisp.org>
11310
11311         Don't override improved macro from newer autoconf.
11312         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
11313         autoconf >= 2.62.
11314         Reported by Joel E. Denny <jdenny@clemson.edu>.
11315
11316 2010-04-10  Jim Meyering  <meyering@redhat.com>
11317
11318         maint.mk: new syntax-check rule: prohibit empty lines at end of file
11319         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
11320
11321         maint.mk: correct a diagnostic
11322         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
11323         in diagnostic; now use $prohibit.
11324
11325 2010-04-10  Bruno Haible  <address@hidden>
11326
11327         fchownat: Fix a C++ test error on Solaris 8.
11328         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
11329         the function does not exist.
11330
11331 2010-04-10  Bruno Haible  <bruno@clisp.org>
11332
11333         vasnprintf: Add more tests.
11334         * tests/test-vasnprintf-posix.c: Include <errno.h>.
11335         (test_function): Test converting an invalid wide string.
11336
11337         vasnprintf: Correct handling of unconvertible wide string arguments.
11338         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
11339         VASNPRINTF.
11340         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
11341         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
11342         smaller than the expected maximum need for the directive. Set errno to
11343         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
11344         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
11345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
11346         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
11347         * modules/vasnprintf (Files): Add m4/printf.m4.
11348         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11349
11350 2010-04-10  Bruno Haible  <bruno@clisp.org>
11351
11352         vasnprintf: Fix crash in %ls directive.
11353         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
11354         string is passed as argument to %ls, with no precision and no width.
11355         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11356
11357 2010-04-10  Bruno Haible  <bruno@clisp.org>
11358
11359         vasnprintf: Fix multiple test failures on mingw.
11360         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
11361         _snprintf, or snwprintf, not _snwprintf.
11362
11363 2010-04-10  Bruno Haible  <bruno@clisp.org>
11364
11365         write: Fix a C++ test error on mingw.
11366         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
11367
11368 2010-04-10  Bruno Haible  <bruno@clisp.org>
11369
11370         vasnprintf test: Reduce code duplication.
11371         * tests/test-vasnprintf.c (test_function): New function, extracted from
11372         test_vasnprintf.
11373         (test_vasnprintf, test_asnprintf): Invoke it.
11374
11375 2010-04-10  Bruno Haible  <bruno@clisp.org>
11376
11377         strnlen: Fix warning in C++ mode on MacOS X.
11378         * lib/string.in.h (strnlen): Use the modern idiom.
11379         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
11380         defining strnlen as a macro already in <config.h>.
11381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11382         REPLACE_STRNLEN.
11383         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
11384         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11385
11386 2010-04-08  James Youngman  <jay@gnu.org>
11387
11388         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
11389         the example.
11390
11391 2010-04-09  Jim Meyering  <meyering@redhat.com>
11392
11393         maint.mk: print better diagnostic when there is no $(_hv_file)
11394         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
11395         announce that when $(_hv_file) (aka help-version) does not exist.
11396
11397         init.sh: run tr in the "C" locale to avoid multibyte interpretation
11398         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
11399         not try to interpret its random input bytes.  Jarno Rajahalme reported
11400         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
11401         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
11402         (mktempd_): Likewise, just in case.
11403
11404         ftruncate: add two years to projected module removal date: 2012
11405         * m4/ftruncate.m4: Adjust comments.
11406
11407         ftruncate: mark module as obsolete; even MinGW provides it, now
11408         * modules/ftruncate (Status): Obsolete.
11409         (Notice): Say that.
11410         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
11411         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
11412
11413 2010-04-08  Bruno Haible  <bruno@clisp.org>
11414
11415         Fix side effects from tests-related modules.
11416         * modules/dprintf-posix (Comment): New section.
11417         * modules/fprintf-posix (Comment): Likewise.
11418         * modules/obstack-printf-posix (Comment): Likewise.
11419         * modules/printf-posix (Comment): Likewise.
11420         * modules/snprintf-posix (Comment): Likewise.
11421         * modules/sprintf-posix (Comment): Likewise.
11422         * modules/vasnprintf-posix (Comment): Likewise.
11423         * modules/vasprintf-posix (Comment): Likewise.
11424         * modules/vdprintf-posix (Comment): Likewise.
11425         * modules/vfprintf-posix (Comment): Likewise.
11426         * modules/vprintf-posix (Comment): Likewise.
11427         * modules/vsnprintf-posix (Comment): Likewise.
11428         * modules/vsprintf-posix (Comment): Likewise.
11429         * modules/xprintf-posix (Comment): Likewise.
11430         * modules/xvasprintf-posix (Comment): Likewise.
11431         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
11432         * modules/floorf-tests (Depends-on): Likewise.
11433         * modules/round-tests (Depends-on): Likewise.
11434         * modules/roundf-tests (Depends-on): Likewise.
11435         * modules/trunc-tests (Depends-on): Likewise.
11436         * modules/truncf-tests (Depends-on): Likewise.
11437         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
11438         'fprintf-posix' module is not present.
11439         * tests/test-floorf2.c (check): Likewise.
11440         * tests/test-trunc2.c (check): Likewise.
11441         * tests/test-truncf2.c (check): Likewise.
11442         * tests/test-round2.c (equal): Likewise.
11443         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11444
11445 2010-04-07  Karl Berry  <karl@gnu.org>
11446
11447         * config/srclist.txt,
11448         * config/srclistvars.sh,
11449         * config/srclist-update: doc fixes.
11450
11451 2010-04-07  Jim Meyering  <meyering@redhat.com>
11452
11453         maint.mk: add a PATH crosschecking syntax-check rule
11454         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
11455         Useful if you use a test like the one in help-version (coreutils,
11456         diffutils, grep, gzip) that ensures $(VERSION) matches what is
11457         printed by prog --version.
11458
11459 2010-04-06  Bruno Haible  <bruno@clisp.org>
11460
11461         Fix link error on mingw.
11462         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
11463         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
11464
11465 2010-04-06  Bruno Haible  <bruno@clisp.org>
11466
11467         Assume rmdir exists.
11468         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
11469
11470 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
11471
11472         doc: update users.txt
11473         * users.txt: Add gcal.
11474
11475 2010-04-06  Jim Meyering  <meyering@redhat.com>
11476
11477         init.sh: simply unset TMPDIR rather than risking env -i
11478         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
11479         although it probably works fine on all Unix-based systems, some
11480         systems (Cygwin?) cannot tolerate a totally cleared environment.
11481         Suggestion from Eric Blake.
11482
11483 2010-04-06  Jim Meyering  <meyering@redhat.com>
11484
11485         init.sh: portability fix: use env's POSIX-specified -i option not -u
11486         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
11487         than unportable env -u.  Solaris 5.11's env lacks support for -u.
11488
11489 2010-04-05  Bruno Haible  <bruno@clisp.org>
11490
11491         btowc: Work around Cygwin 1.7.2 bug.
11492         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
11493         does not map NUL to 0.
11494         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
11495
11496 2010-04-05  Bruno Haible  <bruno@clisp.org>
11497
11498         Make the multithread modules work on Cygwin 1.7.2.
11499         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
11500         imported symbols can be declared weak, so that it returns "no" on
11501         Cygwin 1.7.2.
11502
11503 2010-04-05  Bruno Haible  <bruno@clisp.org>
11504
11505         Use the module 'strncat'.
11506         * modules/unistr/u8-strncat (Depends-on): Add strncat.
11507
11508         Tests for module 'strncat'.
11509         * modules/strncat-tests: New file.
11510         * tests/test-strncat.c: New file.
11511
11512         New module 'strncat'.
11513         * lib/string.in.h (strncat): New declaration.
11514         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
11515         * m4/strncat.m4: New file, based on m4/memchr.m4.
11516         * modules/strncat: New file.
11517         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
11518         is declared.
11519         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
11520         REPLACE_STRNCAT.
11521         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
11522         REPLACE_STRNCAT.
11523         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
11524         module.
11525         * tests/test-string-c++.cc: Check signature of strncat.
11526
11527 2010-04-05  Jim Meyering  <meyering@redhat.com>
11528
11529         xstrtoumax-tests: convert to use init.sh
11530         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
11531         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11532         Use Exit, not exit.
11533         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11534
11535         xstrtoimax-tests: convert to use init.sh
11536         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
11537         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11538         Use Exit, not exit.
11539         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11540
11541 2010-04-05  Bruno Haible  <bruno@clisp.org>
11542
11543         sys_socket: Avoid #define replacements in C++ mode.
11544         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
11545         warning to the function if possible, rather than #defining the symbol
11546         to a dysfunctional alias.
11547
11548 2010-04-05  Bruno Haible  <bruno@clisp.org>
11549
11550         fseeko: Fix C++ test error on mingw.
11551         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
11552         gl_FUNC_FSEEKO.
11553         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
11554         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
11555         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
11556         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
11557
11558 2010-04-05  Bruno Haible  <bruno@clisp.org>
11559
11560         duplocale: Improve test output.
11561         * tests/test-duplocale.c (main): Print reason for skipped test.
11562
11563 2010-04-05  Bruno Haible  <bruno@clisp.org>
11564
11565         Assume rmdir exists.
11566         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
11567         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
11568
11569 2010-04-05  Bruno Haible  <bruno@clisp.org>
11570
11571         Fix link error on Solaris 8 with cc.
11572         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
11573
11574 2010-04-05  Bruno Haible  <bruno@clisp.org>
11575
11576         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11577         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
11578
11579 2010-04-05  Bruno Haible  <bruno@clisp.org>
11580
11581         vasprintf: Update documentation.
11582         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
11583
11584 2010-04-05  Bruno Haible  <bruno@clisp.org>
11585
11586         ptsname: Improve test.
11587         * tests/test-ptsname.c (main): Also try the various master names of BSD
11588         systems.
11589
11590 2010-04-05  Bruno Haible  <bruno@clisp.org>
11591
11592         memchr: Avoid a possible C++ test error.
11593         * lib/string.in.h (memchr): Provide declaration if function is missing.
11594         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
11595         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
11596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
11597         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
11598
11599 2010-04-05  Bruno Haible  <bruno@clisp.org>
11600
11601         strtok_r: Improve idiom.
11602         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
11603         AC_LIBOBJ is used.
11604
11605 2010-04-05  Bruno Haible  <bruno@clisp.org>
11606
11607         strdup: Improve idiom.
11608         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
11609         AC_LIBOBJ is used.
11610         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
11611         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
11612         when AC_LIBOBJ is used.
11613
11614 2010-04-05  Bruno Haible  <bruno@clisp.org>
11615
11616         mbsinit, mbrtowc, wcrtomb: Improve idioms.
11617         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
11618         don't set REPLACE_MBSINIT to 1.
11619         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
11620         don't set REPLACE_MBRTOWC to 1.
11621         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
11622         exist, don't set REPLACE_MBSRTOWCS to 1.
11623         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
11624         exist, don't set REPLACE_MBSNRTOWCS to 1.
11625         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
11626         don't set REPLACE_WCRTOMB to 1.
11627         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
11628         exist, don't set REPLACE_WCSRTOMBS to 1.
11629         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
11630         exist, don't set REPLACE_WCSNRTOMBS to 1.
11631
11632 2010-04-05  Bruno Haible  <bruno@clisp.org>
11633
11634         ldexpl: Improve idiom.
11635         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
11636         make sure to set HAVE_DECL_LDEXPL to 0.
11637
11638 2010-04-05  Jim Meyering  <meyering@redhat.com>
11639
11640         xstrtol-tests: convert to use init.sh
11641         * modules/xstrtol-tests (Files): Add tests/init.sh.
11642         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11643         Use Exit, not exit.
11644         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11645
11646         atexit-tests: convert to use init.sh
11647         * modules/atexit-tests (Files): Add tests/init.sh.
11648         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11649         Use Exit, not exit.
11650         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11651
11652         init.sh: fix typo
11653         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
11654
11655         init.sh: make it easier for a test script to write to the tty, ...
11656         when using automake's parallel-tests mode.
11657         * tests/init.sh (stderr_fileno_): Define overridable variable.
11658         (warn_): New function, to use it.
11659         (fail_, skip_, framework_failure_): Use warn_.
11660
11661 2010-04-04  Bruno Haible  <bruno@clisp.org>
11662
11663         btowc: Avoid warning.
11664         * lib/btowc.c: Include <stdlib.h>.
11665         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
11666
11667 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11668             Bruno Haible  <bruno@clisp.org>
11669
11670         wchar: Port to NetBSD 1.5.
11671         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
11672         * lib/wctype.in.h (WEOF): Likewise.
11673
11674 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11675             Bruno Haible  <bruno@clisp.org>
11676
11677         Port extended stdio to NetBSD 1.5.
11678         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
11679         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
11680         older.
11681
11682 2010-04-04  Bruno Haible  <bruno@clisp.org>
11683
11684         string: Remove unused substitution.
11685         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
11686         HAVE_DECL_STRERROR.
11687         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
11688
11689 2010-04-04  Bruno Haible  <bruno@clisp.org>
11690
11691         strtod: Avoid a possible C++ test error.
11692         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
11693         set REPLACE_STRTOD.
11694
11695 2010-04-04  Bruno Haible  <bruno@clisp.org>
11696
11697         strerror: Update documentation.
11698         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
11699
11700 2010-04-04  Bruno Haible  <bruno@clisp.org>
11701
11702         stdio: Fix some C++ test errors on Solaris 8 with GCC.
11703         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
11704         _GL_CXXALIAS_SYS_CAST.
11705
11706 2010-04-04  Bruno Haible  <bruno@clisp.org>
11707
11708         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11709         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
11710         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
11711         REPLACE_FREXPL to 1.
11712         * doc/posix-functions/frexpl.texi: Update documentation.
11713
11714 2010-04-04  Bruno Haible  <bruno@clisp.org>
11715
11716         math: Fix some C++ test errors on Solaris 8 and Cygwin.
11717         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
11718
11719 2010-04-04  Bruno Haible  <bruno@clisp.org>
11720
11721         Implement nanosleep for native Windows.
11722         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
11723
11724 2010-04-04  Bruno Haible  <bruno@clisp.org>
11725
11726         math: Fix some C++ test errors on Solaris 8.
11727         * lib/math.in.h (truncf, trunc): Use simpler idiom.
11728
11729 2010-04-04  Bruno Haible  <bruno@clisp.org>
11730
11731         math: Fix some C++ test errors on Cygwin.
11732         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
11733         truncl): Provide declaration if the system does not have it.
11734         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
11735         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
11736         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
11737         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
11738         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
11739         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
11740         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
11741         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
11742         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
11743         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
11744         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
11745         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
11746         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
11747         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
11748         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
11749         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
11750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
11751         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
11752         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
11753         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
11754         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
11755         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
11756
11757 2010-04-04  Bruno Haible  <bruno@clisp.org>
11758
11759         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
11760         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11761         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11762         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11763         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11764         * m4/isinf.m4 (gl_ISINF): Likewise.
11765         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11766
11767 2010-04-04  Bruno Haible  <bruno@clisp.org>
11768
11769         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
11770         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11771
11772 2010-04-04  Bruno Haible  <bruno@clisp.org>
11773
11774         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
11775         * modules/tmpfile (configure.ac): Update.
11776
11777         tmpfile: Fix C++ test error on mingw.
11778         * lib/stdio.in.h (tmpfile): New declaration.
11779         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
11780         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
11781         * modules/tmpfile (Depends-on): Add stdio.
11782         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11783         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
11784         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
11785         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
11786         REPLACE_TMPFILE.
11787         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
11788
11789 2010-04-04  Bruno Haible  <bruno@clisp.org>
11790
11791         ioctl: Fix C++ test error on mingw.
11792         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
11793         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
11794         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
11795
11796 2010-04-03  Bruno Haible  <bruno@clisp.org>
11797
11798         wcwidth: Fix C++ test error on mingw.
11799         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
11800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
11801         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
11802
11803 2010-04-03  Bruno Haible  <bruno@clisp.org>
11804
11805         nanosleep: Fix C++ test error on mingw.
11806         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
11807         * lib/time.in.h (nanosleep): Use modern idiom.
11808         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
11809         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
11810         REPLACE_NANOSLEEP to 1.
11811         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
11812         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
11813
11814 2010-04-03  Bruno Haible  <bruno@clisp.org>
11815
11816         strptime: Fix C++ test error on mingw.
11817         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
11818         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
11819         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
11820         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
11821         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
11822         not REPLACE_STRPTIME.
11823         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
11824         REPLACE_STRPTIME.
11825
11826 2010-04-03  Bruno Haible  <bruno@clisp.org>
11827
11828         timegm: Fix C++ test error on mingw.
11829         * lib/time.in.h (timegm): Use modern idiom.
11830         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
11831         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
11832         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
11833         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
11834
11835 2010-04-03  Bruno Haible  <bruno@clisp.org>
11836
11837         timegm: Assume declaration if function exists.
11838         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
11839         if it exists. Don't clobber ac_cv_func_timegm.
11840
11841 2010-04-03  Bruno Haible  <bruno@clisp.org>
11842
11843         time_r: Fix C++ test error on mingw.
11844         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
11845         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
11846         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
11847         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
11848         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
11849
11850 2010-04-03  Bruno Haible  <bruno@clisp.org>
11851
11852         time_r: Minor updates.
11853         * modules/time_r (Description): Mention the provided functions.
11854         * lib/time_r.c: Don't include <string.h>.
11855         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
11856         * doc/posix-functions/localtime_r.texi: Likewise.
11857
11858 2010-04-03  Bruno Haible  <bruno@clisp.org>
11859
11860         time: Fix regression introduced on 2010-03-08.
11861         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
11862         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
11863
11864 2010-04-03  Jim Meyering  <meyering@redhat.com>
11865
11866         maint.mk: don't silently disable project-specific syntax-check rules
11867         * top/maint.mk (_prohibit_regexp): Define, to help people realize
11868         that they need to convert their project-specific syntax-check rules
11869         to use the new _sc_search_regexp.
11870
11871 2010-04-03  Bruno Haible  <bruno@clisp.org>
11872
11873         fchdir: Fix regression introduced on 2010-03-08.
11874         * lib/unistd.in.h (fchdir): Fix declaration.
11875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
11876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
11877         REPLACE_FCHDIR.
11878         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
11879         REPLACE_FCHDIR.
11880
11881 2010-04-03  Bruno Haible  <bruno@clisp.org>
11882
11883         getpagesize: Fix C++ test error on mingw.
11884         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
11885         system does not declare the function.
11886         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
11887         declared.
11888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11889         HAVE_DECL_GETPAGESIZE.
11890         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
11891
11892 2010-04-03  Bruno Haible  <bruno@clisp.org>
11893
11894         stdio: Make C++ tests work on mingw.
11895         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
11896         does not declare the function.
11897
11898 2010-04-03  Bruno Haible  <bruno@clisp.org>
11899
11900         ftello: Fix C++ test error on mingw.
11901         * lib/stdio.in.h (ftello): Use modern idiom.
11902         * lib/ftello.c (ftello): Renamed from rpl_ftello.
11903         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
11904         is missing and that it needs to be replaced.
11905         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
11906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
11907         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
11908
11909 2010-04-03  Bruno Haible  <bruno@clisp.org>
11910
11911         fseeko: Fix C++ test error on mingw.
11912         * lib/stdio.in.h (fseeko): Use modern idiom.
11913         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
11914         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
11915         is missing and that it needs to be replaced.
11916         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
11917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
11918         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
11919
11920 2010-04-03  Bruno Haible  <bruno@clisp.org>
11921
11922         mkstemp: Fix C++ test error on mingw.
11923         * lib/stdlib.in.h (mkstemp): Use modern idiom.
11924         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
11925         function is missing and that it needs to be replaced.
11926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
11927         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
11928
11929 2010-04-03  Bruno Haible  <bruno@clisp.org>
11930
11931         stpncpy: Fix C++ test error on mingw.
11932         * lib/string.in.h (stpncpy): Use modern idiom.
11933         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
11934         function is missing and that it needs to be replaced.
11935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11936         REPLACE_STPNCPY.
11937         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
11938
11939 2010-04-03  Bruno Haible  <bruno@clisp.org>
11940
11941         sys_stat: Fix C++ test error on mingw.
11942         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
11943         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
11944
11945 2010-04-03  Bruno Haible  <bruno@clisp.org>
11946
11947         pty: Update doc.
11948         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
11949
11950 2010-04-03  Bruno Haible  <bruno@clisp.org>
11951
11952         unistd: Fix C++ test error on mingw.
11953         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
11954
11955 2010-04-03  Bruno Haible  <bruno@clisp.org>
11956
11957         Update doc regarding mingw.
11958         * doc/glibc-functions/openpty.texi: Update regarding mingw.
11959         * doc/glibc-functions/login_tty.texi: Likewise.
11960         * doc/glibc-functions/forkpty.texi: Likewise.
11961
11962 2010-04-03  Bruno Haible  <bruno@clisp.org>
11963
11964         stdlib: Avoid compilation failure of c-strtold on mingw.
11965         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
11966
11967 2010-04-03  Bruno Haible  <bruno@clisp.org>
11968
11969         locale: Make C++ tests work on Cygwin and mingw.
11970         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
11971         cannot provide the function.
11972         Reported by Simon Josefsson.
11973
11974 2010-04-03  Bruno Haible  <bruno@clisp.org>
11975
11976         localename: Port to MacOS X 10.6.
11977         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
11978         memory layout of the locales in MacOS X 10.6 as well.
11979         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
11980
11981 2010-04-02  Bruno Haible  <bruno@clisp.org>
11982
11983         gnulib-tool: Ensure that long-running tests are executed last.
11984         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
11985         running tests after the one for the other tests.
11986
11987 2010-04-02  Bruno Haible  <bruno@clisp.org>
11988
11989         gnulib-tool: Ensure the tests in the main directory are executed first.
11990         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
11991         start with the current directory.
11992
11993 2010-04-02  Bruno Haible  <bruno@clisp.org>
11994
11995         Tests for module 'havelib', moved here from GNU gettext.
11996         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
11997         modifications.
11998         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
11999         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
12000         with modifications.
12001         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
12002         modifications.
12003         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
12004         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
12005         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
12006         with modifications.
12007         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
12008         with modifications.
12009         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
12010         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
12011         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
12012         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
12013         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
12014         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
12015         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
12016         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
12017         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
12018         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
12019         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
12020         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
12021         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
12022         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
12023         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
12024         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
12025         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
12026         with modifications.
12027         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
12028         with modifications.
12029         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
12030         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
12031         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
12032         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
12033         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
12034         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
12035         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
12036         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
12037         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
12038         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
12039         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
12040         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
12041         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
12042         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
12043         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
12044         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
12045         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
12046         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
12047         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
12048         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
12049         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
12050         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
12051         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
12052         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
12053         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
12054         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
12055         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
12056         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
12057         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
12058         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
12059         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
12060         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
12061         * tests/havelib/rpathx/rpathx.c: New file, from
12062         gettext/autoconf-lib-link.
12063         * tests/havelib/rpathx/Makefile.am: New file, from
12064         gettext/autoconf-lib-link.
12065         * tests/havelib/rpathx/configure.ac: New file, from
12066         gettext/autoconf-lib-link with modifications.
12067         * tests/havelib/rpathy/rpathy.c: New file, from
12068         gettext/autoconf-lib-link.
12069         * tests/havelib/rpathy/Makefile.am: New file, from
12070         gettext/autoconf-lib-link.
12071         * tests/havelib/rpathy/configure.ac: New file, from
12072         gettext/autoconf-lib-link with modifications.
12073         * tests/havelib/rpathz/rpathz.c: New file, from
12074         gettext/autoconf-lib-link.
12075         * tests/havelib/rpathz/Makefile.am: New file, from
12076         gettext/autoconf-lib-link.
12077         * tests/havelib/rpathz/configure.ac: New file, from
12078         gettext/autoconf-lib-link with modifications.
12079         * tests/havelib/rpathlx/usex.c: New file, from
12080         gettext/autoconf-lib-link.
12081         * tests/havelib/rpathlx/Makefile.am: New file, from
12082         gettext/autoconf-lib-link.
12083         * tests/havelib/rpathlx/configure.ac: New file, from
12084         gettext/autoconf-lib-link with modifications.
12085         * tests/havelib/rpathly/usey.c: New file, from
12086         gettext/autoconf-lib-link.
12087         * tests/havelib/rpathly/Makefile.am: New file, from
12088         gettext/autoconf-lib-link.
12089         * tests/havelib/rpathly/configure.ac: New file, from
12090         gettext/autoconf-lib-link with modifications.
12091         * tests/havelib/rpathlz/usez.c: New file, from
12092         gettext/autoconf-lib-link.
12093         * tests/havelib/rpathlz/Makefile.am: New file, from
12094         gettext/autoconf-lib-link.
12095         * tests/havelib/rpathlz/configure.ac: New file, from
12096         gettext/autoconf-lib-link with modifications.
12097         * tests/havelib/rpathlyx/usey.c: New file, from
12098         gettext/autoconf-lib-link.
12099         * tests/havelib/rpathlyx/Makefile.am: New file, from
12100         gettext/autoconf-lib-link.
12101         * tests/havelib/rpathlyx/configure.ac: New file, from
12102         gettext/autoconf-lib-link with modifications.
12103         * tests/havelib/rpathlzyx/usez.c: New file, from
12104         gettext/autoconf-lib-link.
12105         * tests/havelib/rpathlzyx/Makefile.am: New file, from
12106         gettext/autoconf-lib-link.
12107         * tests/havelib/rpathlzyx/configure.ac: New file, from
12108         gettext/autoconf-lib-link with modifications.
12109         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
12110         with modifications.
12111
12112 2010-04-02  Bruno Haible  <bruno@clisp.org>
12113
12114         gnulib-tool: Create distributed built sources also for the tests.
12115         * gnulib-tool (func_create_testdir): Also generate distributed built
12116         sources in the tests directory.
12117
12118 2010-04-02  Bruno Haible  <bruno@clisp.org>
12119
12120         gnulib-tool: Obey user's environment variables.
12121         * gnulib-tool (func_create_testdir): When creating built sources,
12122         respect the environment variables for autoconf, automake, etc. given by
12123         the user.
12124
12125 2010-04-02  Bruno Haible  <bruno@clisp.org>
12126
12127         gnulib-tool: Provide the value of --m4-base to modules.
12128         * gnulib-tool (func_import, func_create_testdir): Emit a definition
12129         of gl_m4_base.
12130
12131 2010-04-02  Eric Blake  <eblake@redhat.com>
12132
12133         maint.mk: fix some fallout
12134         * NEWS: Document the incompatible change, and its effect on cfg.mk.
12135         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
12136
12137 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12138
12139         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
12140         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
12141         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
12142         (sc_cast_of_x_alloc_return_value): Likewise.
12143         (sc_cast_of_alloca_return_value): Likewise.
12144         (sc_space_tab): Likewise.
12145         (sc_prohibit_atoi_atof): Likewise.
12146         (sc_prohibit_magic_number_exit): Likewise.
12147         (sc_error_exit_success): Likewise.
12148         (sc_file_system): Likewise.
12149         (sc_prohibit_have_config_h): Likewise.
12150         (sc_require_config_h): Likewise.
12151         (sc_prohibit_HAVE_MBRTOWC): Likewise.
12152         (sc_obsolete_symbols): Likewise.
12153         (sc_changelog): Likewise.
12154         (sc_program_name): Likewise.
12155         (sc_the_the): Likewise.
12156         (sc_trailing_blank): Likewise.
12157         (sc_two_space_separator_in_usage): Likewise.
12158         (sc_useless_cpp_parens): Likewise.
12159         (sc_GPL_version): Likewise.
12160         (sc_GFDL_version): Likewise.
12161         (sc_texinfo_acronym): Likewise.
12162         (sc_prohibit_cvs_keyword): Likewise.
12163         (sc_prohibit_stat_st_blocks): Likewise.
12164         (sc_prohibit_S_IS_definition): Likewise.
12165         (sc_redundant_const): Likewise.
12166         (sc_makefile_TAB_only_indentation): Likewise.
12167         (sc_m4_quote_check): Likewise.
12168         (sc_makefile_path_separator_check): Likewise.
12169         (sc_copyright_check): Likewise.
12170         (sc_Wundef_boolean): Likewise.
12171         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12172
12173         maint.mk: match 0 or more whitespace-before-function-call '('
12174         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
12175         that have zero or two-and-more spaces between the function name
12176         and the open parenthesis.
12177         (sc_error_message_warn_fatal): Likewise.
12178         (sc_error_message_uppercase): Likewise.
12179         (sc_error_message_period): Likewise.
12180
12181 2010-03-31  Eric Blake  <eblake@redhat.com>
12182
12183         maint.mk: check for [ as well as test
12184         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
12185         Based on a libvirt report by Matthias Bolte.
12186
12187         gnumakefile: don't squelch _version output
12188         * top/GNUmakefile (_version): Create one-shot dependency rather
12189         than using $(shell) when version must be regenerated.
12190         (_autoreconf): Run verbosely, by default.
12191
12192         sys_time: avoid compiler warnings
12193         * lib/sys_time.in.h (includes): Ensure gcc pragma is
12194         unconditional, fixing regression from 2010-03-29.
12195         Reported by Simon Josefsson.
12196
12197 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12198
12199         maint.mk: s/_header_without_use/_sc_header_without_use/
12200         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
12201         (sc_prohibit_assert_without_use): Use the new name.
12202         (sc_prohibit_close_stream_without_use): Likewise.
12203         (sc_prohibit_getopt_without_use): Likewise.
12204         (sc_prohibit_quotearg_without_use): Likewise.
12205         (sc_prohibit_quote_without_use): Likewise.
12206         (sc_prohibit_long_options_without_use): Likewise.
12207         (sc_prohibit_inttostr_without_use): Likewise.
12208         (sc_prohibit_ignore_value_without_use): Likewise.
12209         (sc_prohibit_error_without_use): Likewise.
12210         (sc_prohibit_xalloc_without_use): Likewise.
12211         (sc_prohibit_hash_without_use): Likewise.
12212         (sc_prohibit_hash_pjw_without_use): Likewise.
12213         (sc_prohibit_safe_read_without_use): Likewise.
12214         (sc_prohibit_argmatch_without_use): Likewise.
12215         (sc_prohibit_canonicalize_without_use): Likewise.
12216         (sc_prohibit_root_dev_ino_without_use): Likewise.
12217         (sc_prohibit_openat_without_use): Likewise.
12218         (sc_prohibit_c_ctype_without_use): Likewise.
12219         (sc_prohibit_signal_without_use): Likewise.
12220         (sc_prohibit_intprops_without_use): Likewise.
12221
12222 2010-03-30  Eric Blake  <eblake@redhat.com>
12223
12224         maint: improve module indicators
12225         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
12226         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
12227         columns, and avoid extra macro expansion.
12228
12229         fdopendir: work around FreeBSD bug
12230         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12231         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
12232         * modules/dirent (Makefile.am): Substitute it.
12233         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
12234         declaration.
12235         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
12236         fix.
12237         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12238
12239 2010-03-29  Bruno Haible  <bruno@clisp.org>
12240
12241         Emit #pragma system_header after the inclusion guard, not before.
12242         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
12243         guard that spans the entire file, not before. This enables an
12244         optimization in GCC's preprocessor.
12245         * lib/ctype.in.h: Likewise.
12246         * lib/dirent.in.h: Likewise.
12247         * lib/errno.in.h: Likewise.
12248         * lib/float.in.h: Likewise.
12249         * lib/getopt.in.h: Likewise.
12250         * lib/iconv.in.h: Likewise.
12251         * lib/langinfo.in.h: Likewise.
12252         * lib/locale.in.h: Likewise.
12253         * lib/math.in.h: Likewise.
12254         * lib/netdb.in.h: Likewise.
12255         * lib/netinet_in.in.h: Likewise.
12256         * lib/pty.in.h: Likewise.
12257         * lib/sched.in.h: Likewise.
12258         * lib/se-selinux.in.h: Likewise.
12259         * lib/search.in.h: Likewise.
12260         * lib/spawn.in.h: Likewise.
12261         * lib/stdarg.in.h: Likewise.
12262         * lib/stdint.in.h: Likewise.
12263         * lib/string.in.h: Likewise.
12264         * lib/strings.in.h: Likewise.
12265         * lib/sys_file.in.h: Likewise.
12266         * lib/sys_ioctl.in.h: Likewise.
12267         * lib/sys_time.in.h: Likewise.
12268         * lib/sys_times.in.h: Likewise.
12269         * lib/sys_utsname.in.h: Likewise.
12270         * lib/sys_wait.in.h: Likewise.
12271         * lib/sysexits.in.h: Likewise.
12272         * lib/wctype.in.h: Likewise.
12273
12274 2010-03-28  James Youngman  <jay@gnu.org>
12275
12276         save-cwd: don't leak a file descriptor when the caller execs.
12277         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
12278         saved file descriptor.
12279         * modules/save-cwd (Depends-on): Depend on cloexec.
12280
12281 2010-03-29  Bruno Haible  <bruno@clisp.org>
12282
12283         Remove vestiges of fts-lgpl module.
12284         * lib/fts_.h: Assume GNULIB_FTS is 1.
12285         * lib/fts.c: Likewise.
12286         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12287
12288 2010-03-28  Bruno Haible  <bruno@clisp.org>
12289
12290         Fix definition of tests witness macro.
12291         * gnulib-tool (func_import): Fix definition of witness macro.
12292
12293 2010-03-28  Bruno Haible  <bruno@clisp.org>
12294
12295         Fix ioctl's protoype on glibc systems.
12296         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
12297         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
12298         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
12299         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
12300         signature. If not, arrange to replace the ioctl function.
12301         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12302         REPLACE_IOCTL.
12303         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
12304         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
12305         Reported by Ludovic Courtès <ludo@gnu.org>.
12306
12307 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
12308
12309         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
12310         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
12311         made it so grep -r --include=GLOB* ... did not work.
12312
12313 2010-03-26  Jim Meyering  <meyering@redhat.com>
12314             Eric Blake  <eblake@redhat.com>
12315
12316         maint.mk: prohibit use of test's -o and -a operators
12317         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
12318
12319 2010-03-28  Bruno Haible  <bruno@clisp.org>
12320
12321         Remove unused GNULIB_XYZ macro definitions.
12322         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
12323         invocation.
12324
12325 2010-03-28  Bruno Haible  <bruno@clisp.org>
12326
12327         Mark privileged tests modules.
12328         * modules/idpriv-drop-tests (Status): New section.
12329         * modules/idpriv-droptemp-tests (Status): New section.
12330
12331 2010-03-28  Bruno Haible  <bruno@clisp.org>
12332
12333         Split C++ tests into separate tests modules.
12334         * modules/dirent-c++-tests: New file, extracted from
12335         modules/dirent-tests.
12336         * modules/dirent-tests: Depend on it.
12337         * modules/fcntl-h-c++-tests: New file, extracted from
12338         modules/fcntl-h-tests.
12339         * modules/fcntl-h-tests: Depend on it.
12340         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
12341         * modules/glob-tests: Depend on it.
12342         * modules/iconv-h-c++-tests: New file, extracted from
12343         modules/iconv-h-tests.
12344         * modules/iconv-h-tests: Depend on it.
12345         * modules/langinfo-c++-tests: New file, extracted from
12346         modules/langinfo-tests.
12347         * modules/langinfo-tests: Depend on it.
12348         * modules/locale-c++-tests: New file, extracted from
12349         modules/locale-tests.
12350         * modules/locale-tests: Depend on it.
12351         * modules/math-c++-tests: New file, extracted from modules/math-tests.
12352         * modules/math-tests: Depend on it.
12353         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
12354         * modules/pty-tests: Depend on it.
12355         * modules/search-c++-tests: New file, extracted from
12356         modules/search-tests.
12357         * modules/search-tests: Depend on it.
12358         * modules/signal-c++-tests: New file, extracted from
12359         modules/signal-tests.
12360         * modules/signal-tests: Depend on it.
12361         * modules/spawn-c++-tests: New file, extracted from
12362         modules/spawn-tests.
12363         * modules/spawn-tests: Depend on it.
12364         * modules/stdio-c++-tests: New file, extracted from
12365         modules/stdio-tests.
12366         * modules/stdio-tests: Depend on it.
12367         * modules/stdlib-c++-tests: New file, extracted from
12368         modules/stdlib-tests.
12369         * modules/stdlib-tests: Depend on it.
12370         * modules/string-c++-tests: New file, extracted from
12371         modules/string-tests.
12372         * modules/string-tests: Depend on it.
12373         * modules/sys_ioctl-c++-tests: New file, extracted from
12374         modules/sys_ioctl-tests.
12375         * modules/sys_ioctl-tests: Depend on it.
12376         * modules/sys_select-c++-tests: New file, extracted from
12377         modules/sys_select-tests.
12378         * modules/sys_select-tests: Depend on it.
12379         * modules/sys_socket-c++-tests: New file, extracted from
12380         modules/sys_socket-tests.
12381         * modules/sys_socket-tests: Depend on it.
12382         * modules/sys_stat-c++-tests: New file, extracted from
12383         modules/sys_stat-tests.
12384         * modules/sys_stat-tests: Depend on it.
12385         * modules/sys_time-c++-tests: New file, extracted from
12386         modules/sys_time-tests.
12387         * modules/sys_time-tests: Depend on it.
12388         * modules/time-c++-tests: New file, extracted from modules/time-tests.
12389         * modules/time-tests: Depend on it.
12390         * modules/unistd-c++-tests: New file, extracted from
12391         modules/unistd-tests.
12392         * modules/unistd-tests: Depend on it.
12393         * modules/wchar-c++-tests: New file, extracted from
12394         modules/wchar-tests.
12395         * modules/wchar-tests: Depend on it.
12396         * modules/wctype-c++-tests: New file, extracted from
12397         modules/wctype-tests.
12398         * modules/wctype-tests: Depend on it.
12399         Reported by Simon Josefsson.
12400
12401 2010-03-28  Bruno Haible  <bruno@clisp.org>
12402
12403         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
12404         * gnulib-tool (func_exists_module): New function, extracted from
12405         func_verify_module.
12406         (func_verify_module): Use it.
12407         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
12408         'foo' only if 'foo' exists.
12409         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
12410         module.
12411
12412 2010-03-28  Bruno Haible  <bruno@clisp.org>
12413
12414         gnulib-tool: Add support for special categories of tests.
12415         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
12416         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
12417         (func_usage): Document them.
12418         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
12419         inc_unportable_tests, inc_all_tests): New variables.
12420         (func_acceptable): Consider these variables.
12421         (func_modules_transitive_closure): Make it work when the 'Status' field
12422         consists of multiple words.
12423         (func_import): Store and restore the values of inc_cxx_tests,
12424         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
12425         inc_all_tests in gnulib-comp.m4.
12426         (func_create_testdir): Set inc_all_tests to true.
12427         * doc/gnulib.texi (Extra tests modules): New section.
12428         Suggested by Jim Meyering.
12429
12430 2010-03-28  Bruno Haible  <bruno@clisp.org>
12431
12432         ansi-c++-opt: Allow turning off the C++ build by default.
12433         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
12434         gl_CXX_CHOICE_DEFAULT_NO is defined.
12435         Requested by Eric Blake.
12436
12437 2010-03-28  Bruno Haible  <bruno@clisp.org>
12438
12439         unistd: Avoid #define replacements in C++ mode.
12440         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12441         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12442         setsockopt, shutdown, select): In C++, attach a warning to the function
12443         if possible, rather than #defining the symbol to a dysfunctional alias.
12444         Reported by John W. Eaton <jwe@gnu.org>.
12445
12446 2010-03-28  Bruno Haible  <bruno@clisp.org>
12447
12448         Fix link errors on mingw.
12449         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
12450         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
12451         $(LIBSOCKET).
12452         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
12453         $(LIBSOCKET).
12454
12455 2010-03-28  Bruno Haible  <bruno@clisp.org>
12456             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12457
12458         lib-ignore: Determine different options for different compilers.
12459         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
12460         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
12461         Add comments.
12462         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
12463         * NEWS: Mention the change.
12464
12465 2010-03-27  Bruno Haible  <bruno@clisp.org>
12466
12467         Remove unused GNULIB_XYZ macro definitions.
12468         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12469         * modules/fseek (configure.ac): Likewise.
12470         * modules/ioctl (configure.ac): Likewise.
12471         * modules/open (configure.ac): Likewise.
12472         * modules/stdlib-safer (configure.ac): Likewise.
12473
12474 2010-03-27  Bruno Haible  <bruno@clisp.org>
12475
12476         Add a remark about certain modules.
12477         * modules/malloc (Comment): New section.
12478         * modules/realloc (Comment): Likewise.
12479         * modules/sigpipe (Comment): Likewise.
12480
12481 2010-03-27  Bruno Haible  <bruno@clisp.org>
12482
12483         Resolve conflict between the two kinds of module indicators.
12484         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
12485         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
12486         * modules/canonicalize (configure.ac): Invoke
12487         gl_MODULE_INDICATOR_FOR_TESTS.
12488         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
12489         GNULIB_XYZ.
12490         * tests/test-dirent-c++.cc: Likewise.
12491         * tests/test-dirent-safer.c: Likewise.
12492         * tests/test-dup2.c: Likewise.
12493         * tests/test-fchdir.c: Likewise.
12494         * tests/test-fcntl-h-c++.cc: Likewise.
12495         * tests/test-getopt.c: Likewise.
12496         * tests/test-getopt.h: Likewise.
12497         * tests/test-langinfo-c++.cc: Likewise.
12498         * tests/test-locale-c++.cc: Likewise.
12499         * tests/test-math-c++.cc: Likewise.
12500         * tests/test-pty-c++.cc: Likewise.
12501         * tests/test-search-c++.cc: Likewise.
12502         * tests/test-signal-c++.cc: Likewise.
12503         * tests/test-spawn-c++.cc: Likewise.
12504         * tests/test-stdio-c++.cc: Likewise.
12505         * tests/test-stdlib-c++.cc: Likewise.
12506         * tests/test-string-c++.cc: Likewise.
12507         * tests/test-sys_ioctl-c++.cc: Likewise.
12508         * tests/test-sys_select-c++.cc: Likewise.
12509         * tests/test-sys_socket-c++.cc: Likewise.
12510         * tests/test-sys_stat-c++.cc: Likewise.
12511         * tests/test-sys_time-c++.cc: Likewise.
12512         * tests/test-time-c++.cc: Likewise.
12513         * tests/test-unistd-c++.cc: Likewise.
12514         * tests/test-wchar-c++.cc: Likewise.
12515         * tests/uninorm/test-u8-nfc.c: Likewise.
12516         * tests/uninorm/test-u8-nfd.c: Likewise.
12517         * tests/uninorm/test-u8-nfkc.c: Likewise.
12518         * tests/uninorm/test-u8-nfkd.c: Likewise.
12519         * tests/uninorm/test-u16-nfc.c: Likewise.
12520         * tests/uninorm/test-u16-nfd.c: Likewise.
12521         * tests/uninorm/test-u16-nfkc.c: Likewise.
12522         * tests/uninorm/test-u16-nfkd.c: Likewise.
12523         * tests/uninorm/test-u32-nfc.c: Likewise.
12524         * tests/uninorm/test-u32-nfc-big.c: Likewise.
12525         * tests/uninorm/test-u32-nfd.c: Likewise.
12526         * tests/uninorm/test-u32-nfd-big.c: Likewise.
12527         * tests/uninorm/test-u32-nfkc.c: Likewise.
12528         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
12529         * tests/uninorm/test-u32-nfkd.c: Likewise.
12530         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
12531         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12532
12533 2010-03-27  Bruno Haible  <bruno@clisp.org>
12534
12535         Distinguish two kinds of module indicators.
12536         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
12537         gl_MODULE_INDICATOR.
12538         (gl_MODULE_INDICATOR): New macro.
12539         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12540         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
12541         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12542         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12543         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12544         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12545         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12546         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12547         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12548         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12549         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12550         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12552         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12553         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12554         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12555         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12556         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12557         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12558         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12559         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12560         * modules/cloexec (configure.ac): Likewise.
12561         * modules/getopt-gnu (configure.ac): Likewise.
12562         * modules/uninorm/u8-normalize (configure.ac): Likewise.
12563         * modules/uninorm/u16-normalize (configure.ac): Likewise.
12564         * modules/uninorm/u32-normalize (configure.ac): Likewise.
12565         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
12566
12567 2010-03-27  Bruno Haible  <bruno@clisp.org>
12568
12569         New module description field 'Comment'.
12570         * gnulib-tool: New option --extract-comment.
12571         (func_usage): Document it.
12572         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
12573         (func_get_comment): New function.
12574         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
12575
12576 2010-03-27  Bruno Haible  <bruno@clisp.org>
12577
12578         Addendum to 2010-02-07 commit.
12579         * gnulib-tool (func_usage): Document --extract-applicability option.
12580
12581 2010-03-27  Bruno Haible  <bruno@clisp.org>
12582
12583         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
12584         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
12585         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
12586         rather than link errors.
12587
12588 2010-03-27  Bruno Haible  <bruno@clisp.org>
12589
12590         Avoid side effects from tests-related modules on the compilation of lib.
12591         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
12592         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
12593         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
12594         parameter. Emit into AM_CPPFLAGS a definition of the designated C
12595         macro.
12596         (func_import): Define a witness macro. Assign it a value that depends
12597         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
12598         tests-related modules.
12599         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
12600         Reported by Jim Meyering.
12601
12602 2010-03-27  Bruno Haible  <bruno@clisp.org>
12603
12604         Factorize common .m4 code.
12605         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
12606         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
12607         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
12608         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
12609         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12610         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
12611         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
12612         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12613         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12614         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12615         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
12616         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12617         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12618         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12619         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12620         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
12621         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12622         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12623         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12624         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
12625         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
12626         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12627         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12628         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12629         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12630         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12631         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
12632         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
12633         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
12634         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12635         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12636         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12637
12638 2010-03-27  Bruno Haible  <bruno@clisp.org>
12639
12640         Fix a compilation error on Cygwin with g++ >= 4.3.
12641         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
12642         if it is undefined or if we alias it to chmod.
12643         (lstat): Don't warn about the use of this function if it is undefined
12644         or if we alias it to stat.
12645         Reported by Simon Josefsson.
12646
12647 2010-03-27  Bruno Haible  <bruno@clisp.org>
12648
12649         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
12650         * modules/getlogin (configure.ac): Update.
12651
12652         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
12653         * modules/getlogin_r (configure.ac): Update.
12654
12655         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
12656         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
12657         * modules/inet_ntop (configure.ac): Update.
12658
12659         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
12660         * modules/inet_pton (configure.ac): Update.
12661
12662         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
12663         * modules/mbslen (configure.ac): Update.
12664
12665         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
12666         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
12667         * modules/forkpty (configure.ac): Update.
12668         * modules/openpty (configure.ac): Update.
12669
12670 2010-03-26  Simon Josefsson  <simon@josefsson.org>
12671
12672         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
12673         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
12674
12675 2010-03-25  Eric Blake  <eblake@redhat.com>
12676
12677         maint: use pragma consistently across replacement headers
12678         * lib/ctype.in.h (system_header): Hoist for consistent placement.
12679         * lib/dirent.in.h (system_header): Likewise.
12680         * lib/errno.in.h (system_header): Likewise.
12681         * lib/float.in.h (system_header): Likewise.
12682         * lib/getopt.in.h (system_header): Likewise.
12683         * lib/iconv.in.h (system_header): Likewise.
12684         * lib/inttypes.in.h (system_header): Likewise.
12685         * lib/langinfo.in.h (system_header): Likewise.
12686         * lib/locale.in.h (system_header): Likewise.
12687         * lib/math.in.h (system_header): Likewise.
12688         * lib/netdb.in.h (system_header): Likewise.
12689         * lib/netinet_in.in.h (system_header): Likewise.
12690         * lib/pty.in.h (system_header): Likewise.
12691         * lib/sched.in.h (system_header): Likewise.
12692         * lib/se-selinux.in.h (system_header): Likewise.
12693         * lib/search.in.h (system_header): Likewise.
12694         * lib/spawn.in.h (system_header): Likewise.
12695         * lib/stdarg.in.h (system_header): Likewise.
12696         * lib/stdint.in.h (system_header): Likewise.
12697         * lib/string.in.h (system_header): Likewise.
12698         * lib/strings.in.h (system_header): Likewise.
12699         * lib/sys_file.in.h (system_header): Likewise.
12700         * lib/sys_ioctl.in.h (system_header): Likewise.
12701         * lib/sys_socket.in.h (system_header): Likewise.
12702         * lib/sys_times.in.h (system_header): Likewise.
12703         * lib/sys_utsname.in.h (system_header): Likewise.
12704         * lib/sys_wait.in.h (system_header): Likewise.
12705         * lib/sysexits.in.h (system_header): Likewise.
12706         * lib/unistd.in.h (system_header): Likewise.
12707         * lib/wctype.in.h (system_header): Likewise.
12708
12709         arpa/inet: fix mingw compilation warning
12710         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
12711         Reported by Matthew Bolte.
12712
12713 2010-03-25  Bruno Haible  <bruno@clisp.org>
12714
12715         Avoid collision between gnulib wrapper and libintl wrapper.
12716         * lib/printf.c (printf): Don't define if a printf wrapper is already
12717         defined in intl/printf.c.
12718         Reported by Michel Boaventura <michel@michelboaventura.com>.
12719
12720 2010-03-25  Bruno Haible  <bruno@clisp.org>
12721
12722         Use ANSI C.
12723         * lib/readutmp.h (getutent): Provide ANSI C prototype.
12724
12725 2010-03-25  Bruno Haible  <bruno@clisp.org>
12726
12727         Minor formatting changes.
12728         * lib/acosl.c: Insert space before function argument list.
12729         * lib/argz.c: Likewise.
12730         * lib/asinl.c: Likewise.
12731         * lib/expl.c: Likewise.
12732         * lib/gen-uni-tables.c: Likewise.
12733         * lib/gettext.h: Likewise.
12734         * lib/glthread/lock.h: Likewise.
12735         * lib/tanl.c: Likewise.
12736         * lib/uniname/uniname.c: Likewise.
12737         * tests/test-idpriv-drop.c: Likewise.
12738         * tests/test-idpriv-droptemp.c: Likewise.
12739         * tests/test-lock.c: Likewise.
12740         * tests/test-tls.c: Likewise.
12741         * lib/argp-help.c: Insert space before function-like macro argument
12742         list.
12743         * lib/memcmp.c: Likewise.
12744         * tests/test-base64.c: Likewise.
12745         * lib/localename.c: Insert space before sizeof's argument list.
12746         * lib/safe-alloc.h: Likewise.
12747         * lib/file-set.h: Insert space before macro argument list.
12748         * tests/test-argp.c: Likewise.
12749         * lib/argp-namefrob.h: Insert space before function parameter list.
12750         * lib/getaddrinfo.c: Likewise.
12751         * lib/netdb.in.h: Likewise.
12752         * lib/parse-duration.h: Likewise.
12753         * lib/parse-duration.c: Likewise.
12754         * lib/poll.c: Likewise.
12755         * lib/select.c: Likewise.
12756         * lib/trim.h: Likewise.
12757         * tests/test-usleep.c: Likewise.
12758         * lib/ldexpl.c: Insert space before function parameter list and before
12759         function argument list.
12760         * lib/logl.c: Likewise.
12761         * lib/sqrtl.c: Likewise.
12762         * lib/trim.c: Likewise.
12763         * lib/cosl.c: Use GNU style indentation. Insert space before function
12764         argument list.
12765         * lib/sinl.c: Likewise.
12766         * lib/tsearch.c: Insert space after 'for'.
12767         Reported by Jim Meyering.
12768
12769 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
12770
12771         * maint.mk (sc_Wundef_boolean): Check for the presence of the
12772         config header before grepping, as it's not present before
12773         autoreconf/configure are run.  Reported by Simon Josefsson.
12774
12775 2010-03-23  Bruno Haible  <bruno@clisp.org>
12776
12777         pt_chown: Make it work with automake < 1.11.
12778         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
12779         Reported by Simon Josefsson.
12780
12781 2010-03-23  Bruno Haible  <bruno@clisp.org>
12782
12783         pt_chown: Don't depend on GPLed modules.
12784         * lib/pt_chown.c: Don't include idpriv.h.
12785         (main): Don't drop privileges.
12786         * modules/pt_chown (Depends-on): Remove idpriv-drop.
12787         Reported by Simon Josefsson.
12788
12789 2010-03-24  Simon Josefsson  <simon@josefsson.org>
12790
12791         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
12792         suggestions from karl@freefriends.org (Karl Berry).
12793
12794 2010-03-22  Eric Blake  <eblake@redhat.com>
12795
12796         gethostname: further tweaks
12797         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
12798         are overriding gethostname.
12799         Suggested by Bruno Haible.
12800
12801 2010-03-21  Bruno Haible  <bruno@clisp.org>
12802
12803         Fix comments.
12804         * lib/forkpty.c (rpl_forkpty): Fix comment.
12805         * lib/openpty.c (rpl_openpty): Likewise.
12806         Reported by Eric Blake.
12807
12808 2010-03-22  Eric Blake  <eblake@redhat.com>
12809
12810         gethostname: fix build on mingw
12811         * lib/unistd.in.h (includes): Work around fact that mingw
12812         <winsock2.h> re-includes <unistd.h>, by avoiding any
12813         redeclarations if we are being included by <winsock2.h>.
12814         Reported by Matthias Bolte.
12815
12816 2010-03-21  Bruno Haible  <bruno@clisp.org>
12817
12818         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
12819         * lib/forkpty.c (forkpty): New replacement function, from glibc with
12820         modifications.
12821         * lib/pty.in.h (forkpty): Update declaration. Add comments.
12822         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
12823         provide the replacement.
12824         * modules/forkpty (Depends-on): Add openpty, login_tty.
12825         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
12826         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
12827         * doc/glibc-functions/forkpty.texi: More supported platforms.
12828         * config/srclist.txt: Add forkpty.c (commented).
12829
12830 2010-03-21  Bruno Haible  <bruno@clisp.org>
12831
12832         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
12833         (Makefile.am): Verify that PTY_LIB is defined.
12834
12835         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
12836
12837 2010-03-21  Bruno Haible  <bruno@clisp.org>
12838
12839         Tests for module 'login_tty'.
12840         * modules/login_tty-tests: New file.
12841         * tests/test-login_tty.c: New file.
12842
12843         New module 'login_tty'.
12844         * lib/login_tty.c: New file.
12845         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
12846         * modules/login_tty: New file.
12847         * doc/glibc-functions/login_tty.texi: Mention the new module.
12848
12849 2010-03-21  Bruno Haible  <bruno@clisp.org>
12850
12851         login_tty: Documentation.
12852         * doc/glibc-functions/login_tty.texi: New file.
12853         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
12854
12855 2010-03-21  Bruno Haible  <bruno@clisp.org>
12856
12857         pty: Consistent macro naming.
12858         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
12859         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
12860         * modules/pty (configure.ac): Update.
12861
12862 2010-03-21  Bruno Haible  <bruno@clisp.org>
12863
12864         Tests for openpty: Make stricter.
12865         * tests/test-openpty.c (main): Add test of canonical processing and
12866         erase.
12867         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
12868
12869         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
12870         * lib/openpty.c (openpty): New replacement function.
12871         * lib/pty.in.h: Include <termios.h>.
12872         (openpty): Update declaration. Add comments.
12873         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
12874         is not declared, arrange to provide the replacement. Check for _getpty
12875         and posix_openpt.
12876         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
12877         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
12878         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
12879         * modules/pty-tests (test_pty_c___LDADD): New variable.
12880         * doc/glibc-functions/openpty.texi: More supported platforms.
12881
12882 2010-03-21  Bruno Haible  <bruno@clisp.org>
12883
12884         setenv: Tweaks.
12885         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
12886         the test program.
12887         * doc/posix-functions/setenv.texi: Update platforms list.
12888
12889 2010-03-21  Bruno Haible  <bruno@clisp.org>
12890
12891         New module 'unlockpt'.
12892         * lib/unlockpt.c: New file, from glibc with modifications.
12893         * m4/unlockpt.m4: New file.
12894         * modules/unlockpt: New file.
12895         * lib/stdlib.in.h (unlockpt): New declaration.
12896         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
12897         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
12898         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
12899         HAVE_UNLOCKPT.
12900         * doc/posix-functions/unlockpt.texi: Mention the new module.
12901         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
12902         * config/srclist.txt: Add unlockpt.c (commented).
12903
12904 2010-03-21  Jim Meyering  <meyering@redhat.com>
12905
12906         maint.mk: prohibit inclusion of "intprops.h" without use
12907         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
12908
12909 2010-03-21  Bruno Haible  <bruno@clisp.org>
12910
12911         New module 'grantpt'.
12912         * lib/grantpt.c: New file, from glibc with modifications.
12913         * m4/grantpt.m4: New file.
12914         * modules/grantpt: New file.
12915         * lib/stdlib.in.h (grantpt): New declaration.
12916         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
12917         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
12918         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
12919         HAVE_GRANTPT.
12920         * doc/posix-functions/grantpt.texi: Mention the new module.
12921         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
12922         * config/srclist.txt: Add grantpt.c (commented).
12923
12924 2010-03-21  Bruno Haible  <bruno@clisp.org>
12925
12926         New module 'pt_chown'.
12927         * lib/pt_chown.c: New file, from glibc with modifications.
12928         * lib/pty-private.h: New file, from glibc with modifications.
12929         * modules/pt_chown: New file.
12930         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
12931
12932 2010-03-21  Bruno Haible  <bruno@clisp.org>
12933
12934         Tests for module 'ptsname'.
12935         * modules/ptsname-tests: New file.
12936         * tests/test-ptsname.c: New file.
12937
12938         New module 'ptsname'.
12939         * lib/ptsname.c: New file, from glibc with modifications.
12940         * m4/ptsname.m4: New file.
12941         * modules/ptsname: New file.
12942         * lib/stdlib.in.h (ptsname): New declaration.
12943         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
12944         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
12945         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
12946         HAVE_PTSNAME.
12947         * doc/posix-functions/ptsname.texi: Mention the new module.
12948         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
12949         * config/srclist.txt: Add ptsname.c (commented).
12950
12951 2010-03-21  Bruno Haible  <bruno@clisp.org>
12952
12953         Tests for module 'ttyname_r'.
12954         * modules/ttyname_r-tests: New file.
12955         * tests/test-ttyname_r.c: New file.
12956
12957         New module 'ttyname_r'.
12958         * lib/ttyname_r.c: New file.
12959         * m4/ttyname_r.m4: New file.
12960         * modules/ttyname_r: New file.
12961         * lib/unistd.in.h (ttyname_r): New declaration.
12962         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
12963         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
12964         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
12965         HAVE_TTYNAME_R.
12966         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
12967         * doc/posix-functions/ttyname_r.texi: Mention the new module.
12968
12969 2010-03-20  Bruno Haible  <bruno@clisp.org>
12970
12971         signal: Undefine macro definitions in C++ mode.
12972         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
12973         sigfillset): Undefine macro definitions from the system header in C++
12974         mode.
12975         Reported by John W. Eaton <jwe@gnu.org>.
12976
12977 2010-03-20  Bruno Haible  <bruno@clisp.org>
12978
12979         Ensure no #include statements inside extern "C" { ... }.
12980         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
12981         contain #include statements.
12982         * lib/time.in.h: Likewise.
12983
12984 2010-03-20  Bruno Haible  <bruno@clisp.org>
12985
12986         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
12987         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
12988         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
12989         Reported by John W. Eaton <jwe@gnu.org>.
12990
12991 2010-03-20  Bruno Haible  <bruno@clisp.org>
12992
12993         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
12994         Reported by Jim Meyering.
12995
12996 2010-03-20  Bruno Haible  <bruno@clisp.org>
12997
12998         pipe: Set errno upon failure.
12999         * lib/pipe.h: Specify that when -1 is returned, errno is set.
13000         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
13001         errno value in error message.
13002
13003 2010-03-20  Bruno Haible  <bruno@clisp.org>
13004             Jim Meyering  <meyering@redhat.com>
13005
13006         lchown: Avoid "unused variable" warning.
13007         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
13008
13009 2010-03-20  Bruno Haible  <bruno@clisp.org>
13010
13011         Work around unlink() bug on MacOS X 10.5.6.
13012         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
13013         attempting to unlink a parent directory.
13014         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
13015         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
13016         activate for the replacement function.
13017         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
13018
13019 2010-03-20  Bruno Haible  <bruno@clisp.org>
13020
13021         Fix link errors on Solaris 8.
13022         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
13023         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
13024
13025 2010-03-19  Jim Meyering  <meyering@redhat.com>
13026
13027         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
13028         The _LIBC implementation of build_range_exp correctly honors the
13029         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
13030         However, the non-_LIBC implementation would ignore that syntax-bit
13031         flag and return REG_ERANGE unconditionally.
13032         This change makes it honor that flag.
13033         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
13034         Make two pointer parameters "const".
13035         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
13036         (parse_bracket_exp): Update caller.
13037
13038         regex.m4: correct the reversed range endpoint ([b-a]) test
13039         * m4/regex.m4: When requiring that [b-a] evoke failure,
13040         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
13041         test pass once again for x86-based systems.
13042
13043 2010-03-19  Bruno Haible  <bruno@clisp.org>
13044
13045         scandir: Fix link error on Solaris 8.
13046         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
13047         macros.
13048
13049 2010-03-19  Bruno Haible  <bruno@clisp.org>
13050
13051         getusershell: Fix documentation.
13052         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
13053         module.
13054         * doc/glibc-functions/setusershell.texi: Likewise.
13055
13056         getusershell: Provide declaration, missing on Solaris 9.
13057         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
13058         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
13059         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
13060         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
13061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13062         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
13063         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
13064         HAVE_GETUSERSHELL.
13065         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
13066
13067 2010-03-19  Bruno Haible  <bruno@clisp.org>
13068
13069         wctype: Provide iswblank function.
13070         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
13071         exists and is fine.
13072         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
13073         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
13074         * tests/test-wctype.c (main): Re-enable the iswblank tests.
13075         * doc/posix-functions/iswblank.texi: Update.
13076
13077 2010-03-19  Bruno Haible  <bruno@clisp.org>
13078
13079         Tests of module 'pty' in C++ mode.
13080         * modules/pty-tests: New file.
13081         * tests/test-pty-c++.cc: New file.
13082         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13083
13084 2010-03-19  Eric Blake  <eblake@redhat.com>
13085
13086         logb: fix documentation
13087         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
13088         1.5 declaration bug.
13089
13090         forkpty, openpty: prefer glibc's const-safe prototype
13091         * lib/forkpty.c (rpl_forkpty): New file.
13092         * lib/openpty.c (rpl_openpty): Likewise.
13093         * modules/forkpty (Files): Distribute it.
13094         * modules/openpty (Files): Likewise.
13095         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
13096         check...
13097         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
13098         replacement for for non-const BSD signature.
13099         * modules/pty (Makefile.am): Substitute witnesses.
13100         * lib/pty.in.h (forkpty, openpty): Declare replacements.
13101         * tests/test-forkpty.c: Update signature check.
13102         * tests/test-openpty.c: Likewise.
13103         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
13104         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13105
13106         forkpty, openpty: split functions into new modules
13107         * modules/pty (Makefile.am): Substitute new witnesses.
13108         (Libraries): Move library detection...
13109         * modules/forkpty: ...into new module.
13110         * modules/openpty: Another new module.
13111         * modules/pty-tests: Rename and split...
13112         * modules/forkpty-tests: ...to this...
13113         * modules/openpty-tests: ...and this.
13114         * tests/test-pty.c: Rename and split...
13115         * tests/test-forkpty.c: ...to this...
13116         * tests/test-openpty.c: ...and this.
13117         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
13118         (gl_PTY): Split library searching...
13119         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
13120         (gl_FORKPTY, gl_OPENPTY): New macros.
13121         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
13122         * NEWS: Mention the split.
13123         * MODULES.html.sh (Misc): Document the modules.
13124         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
13125         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13126
13127         pty: improve replacement header
13128         * lib/pty.in.h: New file.
13129         * modules/pty (Files): Ship it.
13130         (Makefile.am): Always build replacement.
13131         * m4/pty.m4: Rename...
13132         * m4/pty_h.m4: ...to this.
13133         (gl_PTY): Modernize setting of witness macros; update check of
13134         forkpty to take proper advantage of cache.
13135         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
13136
13137         getopt: avoid compiler warning
13138         * lib/getopt.c (attribute_hidden): Remove unused macro.
13139
13140 2010-03-18  Bruno Haible  <bruno@clisp.org>
13141
13142         Fix link errors on Solaris 8.
13143         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
13144         * modules/search-tests (test_search_c___LDADD): Likewise.
13145         * modules/signal-tests (test_signal_c___LDADD): Likewise.
13146         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
13147         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
13148         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
13149         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
13150         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
13151         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
13152
13153 2010-03-18  Bruno Haible  <bruno@clisp.org>
13154
13155         Fix bug introduced on 2010-03-14.
13156         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
13157         (gl_SPAWN_H): Require it.
13158         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
13159         Reported by Simon Josefsson.
13160
13161 2010-03-18  Bruno Haible  <bruno@clisp.org>
13162
13163         Fix typo introduced on 2009-12-31.
13164         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
13165         posix_spawn_file_actions_adddup2.
13166
13167 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
13168         and Eric Blake  <eblake@redhat.com>
13169
13170         test-vc-list-files-git: make more robust
13171         * tests/test-vc-list-files-git.sh: Unset problematic environment
13172         variables.  Chain commands together.
13173
13174 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
13175
13176         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
13177         `AC_CHECK_DECL' invocation.
13178
13179 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
13180
13181         * lib/inttostr.c (inttostr): Make sure the invocation of verify
13182         appears before executable statements. Suggested by Petr Sumbera
13183         <Petr.Sumbera@Sun.COM>.
13184
13185 2010-03-14  Bruno Haible  <bruno@clisp.org>
13186
13187         * tests/test-flock.c (test_exclusive): Comment out a test that causes
13188         portability problems. Instead use a simpler test.
13189         (main): Check that invalid arguments are rejected only on Linux.
13190
13191 2010-03-14  Bruno Haible  <bruno@clisp.org>
13192
13193         Fix bug introduced on 2009-12-31.
13194         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13195         gl_PREREQ_SYS_H_WINSOCK2 always.
13196         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
13197         SYS_SOCKET_H variable.
13198         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
13199         Update comments.
13200         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
13201         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13202         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13203         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13204         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13205
13206 2010-03-14  Bruno Haible  <bruno@clisp.org>
13207
13208         Fix values returned by sinl, cosl.
13209         * lib/trigl.h: Add specification comments.
13210         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
13211         that combines the values from the precomputed table with the values of
13212         the Chebyshev polynomials.
13213
13214 2010-03-14  Bruno Haible  <bruno@clisp.org>
13215
13216         Fix compilation error when modules 'posix_spawn[p]' are not used.
13217         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
13218         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
13219
13220 2010-03-14  Bruno Haible  <bruno@clisp.org>
13221
13222         Fix compilation error on mingw when module 'time_r' is not used.
13223         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
13224         is 1.
13225         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
13226         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13227         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
13228         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
13229
13230 2010-03-14  Bruno Haible  <bruno@clisp.org>
13231
13232         Fix compilation error with Sun C.
13233         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
13234         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
13235         instead of GCC specific ULONG_LONG_MAX.
13236         * lib/xstrtoll.c: Likewise.
13237         * lib/xstrtoull.c: Likewise.
13238
13239 2010-03-13  Bruno Haible  <bruno@clisp.org>
13240
13241         Allow the user to disable C++ code and tests.
13242         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
13243         (gl_PROG_ANSI_CXX): Require it.
13244
13245 2010-03-13  Bruno Haible  <bruno@clisp.org>
13246
13247         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
13248         cases.
13249
13250 2010-03-13  Bruno Haible  <bruno@clisp.org>
13251
13252         Test that gnulib does not break the standard C++ headers.
13253         * tests/test-locale-c++2.cc: New file.
13254         * modules/locale-tests (Files): Add it.
13255         (Makefile.am): Compile it for test-locale-c++.
13256         * tests/test-math-c++2.cc: New file.
13257         * modules/math-tests (Files): Add it.
13258         (Makefile.am): Compile it for test-math-c++.
13259         * tests/test-signal-c++2.cc: New file.
13260         * modules/signal-tests (Files): Add it.
13261         (Makefile.am): Compile it for test-signal-c++.
13262         * tests/test-stdio-c++2.cc: New file.
13263         * modules/stdio-tests (Files): Add it.
13264         (Makefile.am): Compile it for test-stdio-c++.
13265         * tests/test-stdlib-c++2.cc: New file.
13266         * modules/stdlib-tests (Files): Add it.
13267         (Makefile.am): Compile it for test-stdlib-c++.
13268         * tests/test-string-c++2.cc: New file.
13269         * modules/string-tests (Files): Add it.
13270         (Makefile.am): Compile it for test-string-c++.
13271         * tests/test-time-c++2.cc: New file.
13272         * modules/time-tests (Files): Add it.
13273         (Makefile.am): Compile it for test-time-c++.
13274         Reported by John W. Eaton <jwe@gnu.org>.
13275
13276 2010-03-13  Bruno Haible  <bruno@clisp.org>
13277
13278         * gnulib-tool (func_usage): Clarify which options are available for
13279         --create-testdir and --create-megatestdir.
13280
13281 2010-03-13  Bruno Haible  <bruno@clisp.org>
13282
13283         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
13284         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
13285         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
13286         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13287         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
13288         when appropriate.
13289         Reported by Jim Meyering.
13290
13291 2010-03-12  Simon Josefsson  <simon@josefsson.org>
13292
13293         * gnulib-tool (func_import): Explain origin of code.
13294
13295 2010-03-12  Bruno Haible  <bruno@clisp.org>
13296
13297         Fix problem with automake's definition of CXXLINK.
13298         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
13299         Reported by Simon Josefsson and Ludovic Courtès.
13300
13301 2010-03-12  Bruno Haible  <bruno@clisp.org>
13302
13303         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
13304         stable releases.
13305
13306 2010-03-11  Bruno Haible  <bruno@clisp.org>
13307
13308         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
13309         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
13310         whether the system provides one variant or multiple variants of the
13311         function.
13312         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
13313         C++ compilers.
13314         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
13315         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
13316         Reported by Jim Meyering.
13317
13318 2010-03-09  Simon Josefsson  <simon@josefsson.org>
13319
13320         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
13321
13322 2010-03-08  Bruno Haible  <bruno@clisp.org>
13323
13324         gnulib-tool: Add support for --libtool in --create-testdir.
13325         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
13326         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
13327
13328 2010-03-08  Eric Blake  <eblake@redhat.com>
13329
13330         gnulib-tool.texi: mention possibility of git submodule
13331         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
13332         submodules.
13333         * doc/.gitignore: Ignore another generated file.
13334
13335 2010-03-08  Karl Berry  <karl@gnu.org>
13336
13337         * doc/gnulib-tool.texi (VCS Issues): Mention third option
13338         of committing gnulib files while skipping others.
13339
13340 2010-03-07  Bruno Haible  <bruno@clisp.org>
13341
13342         Tests of module 'wctype' in C++ mode.
13343         * tests/test-wctype-c++.cc: New file.
13344         * modules/wctype-tests (Files): Add it and tests/signature.h.
13345         (Depends-on): Add ansi-c++-opt.
13346         (Makefile.am): Arrange to compile and run test-wctype-c++.
13347
13348         Tests of module 'wchar' in C++ mode.
13349         * tests/test-wchar-c++.cc: New file.
13350         * modules/wchar-tests (Files): Add it and tests/signature.h.
13351         (Depends-on): Add ansi-c++-opt.
13352         (Makefile.am): Arrange to compile and run test-wchar-c++.
13353         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
13354         gl_MODULE_INDICATOR.
13355
13356         Tests of module 'unistd' in C++ mode.
13357         * tests/test-unistd-c++.cc: New file.
13358         * modules/unistd-tests (Files): Add it and tests/signature.h.
13359         (Depends-on): Add ansi-c++-opt.
13360         (Makefile.am): Arrange to compile and run test-unistd-c++.
13361         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
13362         gl_MODULE_INDICATOR.
13363
13364         Tests of module 'time' in C++ mode.
13365         * tests/test-time-c++.cc: New file.
13366         * modules/time-tests (Files): Add it and tests/signature.h.
13367         (Depends-on): Add ansi-c++-opt.
13368         (Makefile.am): Arrange to compile and run test-time-c++.
13369         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13370
13371         Tests of module 'sys_time' in C++ mode.
13372         * tests/test-sys_time-c++.cc: New file.
13373         * modules/sys_time-tests (Files): Add it and tests/signature.h.
13374         (Depends-on): Add ansi-c++-opt.
13375         (Makefile.am): Arrange to compile and run test-sys_time-c++.
13376         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
13377         gl_MODULE_INDICATOR.
13378
13379         Tests of module 'sys_stat' in C++ mode.
13380         * tests/test-sys_stat-c++.cc: New file.
13381         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
13382         (Depends-on): Add ansi-c++-opt.
13383         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
13384         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
13385         gl_MODULE_INDICATOR.
13386
13387         Tests of module 'sys_socket' in C++ mode.
13388         * tests/test-sys_socket-c++.cc: New file.
13389         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
13390         (Depends-on): Add ansi-c++-opt.
13391         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
13392         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
13393         gl_MODULE_INDICATOR.
13394
13395         Tests of module 'sys_select' in C++ mode.
13396         * tests/test-sys_select-c++.cc: New file.
13397         * modules/sys_select-tests (Files): Add it and tests/signature.h.
13398         (Depends-on): Add ansi-c++-opt.
13399         (Makefile.am): Arrange to compile and run test-sys_select-c++.
13400         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
13401         gl_MODULE_INDICATOR.
13402
13403         Tests of module 'sys_ioctl' in C++ mode.
13404         * tests/test-sys_ioctl-c++.cc: New file.
13405         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
13406         (Depends-on): Add ansi-c++-opt.
13407         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
13408         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
13409         gl_MODULE_INDICATOR.
13410
13411         Tests of module 'string' in C++ mode.
13412         * tests/test-string-c++.cc: New file.
13413         * modules/string-tests (Files): Add it and tests/signature.h.
13414         (Depends-on): Add ansi-c++-opt.
13415         (Makefile.am): Arrange to compile and run test-string-c++.
13416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
13417         gl_MODULE_INDICATOR.
13418
13419         Tests of module 'stdlib' in C++ mode.
13420         * tests/test-stdlib-c++.cc: New file.
13421         * modules/stdlib-tests (Files): Add it and tests/signature.h.
13422         (Depends-on): Add ansi-c++-opt.
13423         (Makefile.am): Arrange to compile and run test-stdlib-c++.
13424         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
13425         gl_MODULE_INDICATOR.
13426
13427         Tests of module 'stdio' in C++ mode.
13428         * tests/test-stdio-c++.cc: New file.
13429         * modules/stdio-tests (Files): Add it and tests/signature.h.
13430         (Depends-on): Add ansi-c++-opt.
13431         (Makefile.am): Arrange to compile and run test-stdio-c++.
13432         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
13433         gl_MODULE_INDICATOR.
13434
13435         Tests of module 'spawn' in C++ mode.
13436         * tests/test-spawn-c++.cc: New file.
13437         * modules/spawn-tests (Files): Add it and tests/signature.h.
13438         (Depends-on): Add ansi-c++-opt.
13439         (Makefile.am): Arrange to compile and run test-spawn-c++.
13440         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
13441         gl_MODULE_INDICATOR.
13442
13443         Tests of module 'signal' in C++ mode.
13444         * tests/test-signal-c++.cc: New file.
13445         * modules/signal-tests (Files): Add it and tests/signature.h.
13446         (Depends-on): Add ansi-c++-opt.
13447         (Makefile.am): Arrange to compile and run test-signal-c++.
13448         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
13449         gl_MODULE_INDICATOR.
13450
13451         Tests of module 'search' in C++ mode.
13452         * tests/test-search-c++.cc: New file.
13453         * modules/search-tests (Files): Add it and tests/signature.h.
13454         (Depends-on): Add ansi-c++-opt.
13455         (Makefile.am): Arrange to compile and run test-search-c++.
13456         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
13457         gl_MODULE_INDICATOR.
13458
13459         Tests of module 'math' in C++ mode.
13460         * tests/test-math-c++.cc: New file.
13461         * modules/math-tests (Files): Add it and tests/signature.h.
13462         (Depends-on): Add ansi-c++-opt.
13463         (Makefile.am): Arrange to compile and run test-math-c++.
13464         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13465
13466         Tests of module 'locale' in C++ mode.
13467         * tests/test-locale-c++.cc: New file.
13468         * modules/locale-tests (Files): Add it and tests/signature.h.
13469         (Depends-on): Add ansi-c++-opt.
13470         (Makefile.am): Arrange to compile and run test-locale-c++.
13471         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
13472         gl_MODULE_INDICATOR.
13473
13474         Tests of module 'langinfo' in C++ mode.
13475         * tests/test-langinfo-c++.cc: New file.
13476         * modules/langinfo-tests (Files): Add it and tests/signature.h.
13477         (Depends-on): Add ansi-c++-opt.
13478         (Makefile.am): Arrange to compile and run test-langinfo-c++.
13479         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
13480         gl_MODULE_INDICATOR.
13481
13482         Tests of module 'iconv-h' in C++ mode.
13483         * tests/test-iconv-h-c++.cc: New file.
13484         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
13485         (Depends-on): Add ansi-c++-opt.
13486         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
13487
13488         Tests of module 'glob' in C++ mode.
13489         * tests/test-glob-c++.cc: New file.
13490         * modules/glob-tests (Files): Add it.
13491         (Depends-on): Add ansi-c++-opt.
13492         (Makefile.am): Arrange to compile and run test-glob-c++.
13493
13494         Tests of module 'fcntl-h' in C++ mode.
13495         * tests/test-fcntl-h-c++.cc: New file.
13496         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
13497         (Depends-on): Add ansi-c++-opt.
13498         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
13499         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
13500         gl_MODULE_INDICATOR.
13501
13502         Tests of module 'dirent' in C++ mode.
13503         * tests/test-dirent-c++.cc: New file.
13504         * modules/dirent-tests (Files): Add it and tests/signature.h.
13505         (Depends-on): Add ansi-c++-opt.
13506         (Makefile.am): Arrange to compile and run test-dirent-c++.
13507         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13508         gl_MODULE_INDICATOR.
13509
13510         New module 'ansi-c++-opt'.
13511         * modules/ansi-c++-opt: New file.
13512         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
13513
13514         Document C++ namespace mode.
13515         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
13516
13517         wctype: Avoid #define replacements in C++ mode.
13518         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
13519         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
13520         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
13521         In C++, define a namespaced alias symbol.
13522         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
13523         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
13524         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
13525         rule.
13526
13527         wchar: Avoid #define replacements in C++ mode.
13528         * lib/wchar.in.h: Include c++defs.h.
13529         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
13530         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
13531         symbol.
13532         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
13533         * modules/wchar (Depends-on): Add c++defs.
13534         (Makefile.am): Update wchar.h rule.
13535
13536         unistd: Avoid #define replacements in C++ mode.
13537         * lib/unistd.in.h: Include c++defs.h.
13538         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
13539         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
13540         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
13541         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
13542         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
13543         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
13544         symbol.
13545         (environ): Update.
13546         * modules/unistd (Depends-on): Add c++defs.
13547         (Makefile.am): Update unistd.h rule.
13548
13549         time: Avoid #define replacements in C++ mode.
13550         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
13551         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
13552         define a namespaced alias symbol.
13553         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
13554         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
13555         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
13556         * modules/time (Depends-on): Add c++defs, warn-on-use.
13557         (Makefile.am): Update time.h rule.
13558         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13559         * modules/nanosleep (configure.ac): Likewise.
13560         * modules/strptime (configure.ac): Likewise.
13561         * modules/timegm (configure.ac): Likewise.
13562
13563         sys_time: Avoid #define replacements in C++ mode.
13564         * lib/sys_time.in.h: Include c++defs.h.
13565         (gettimeofday): In C++, define a namespaced alias symbol.
13566         * modules/sys_time (Depends-on): Add c++defs.
13567         (Makefile.am): Update sys/time.h rule.
13568
13569         sys_stat: Avoid #define replacements in C++ mode.
13570         * lib/sys_stat.in.h: Include c++defs.h.
13571         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
13572         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
13573         namespaced alias symbol.
13574         In C++, define a namespaced alias symbol.
13575         * modules/sys_stat (Depends-on): Add c++defs.
13576         (Makefile.am): Update sys/stat.h rule.
13577
13578         sys_socket: Avoid #define replacements in C++ mode.
13579         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
13580         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
13581         definitions also when the system has a <sys/socket.h>.
13582         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13583         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
13584         In C++, define a namespaced alias symbol.
13585         * modules/sys_socket (Depends-on): Add c++defs.
13586         (Makefile.am): Update sys/socket.h rule.
13587
13588         sys_select: Avoid #define replacements in C++ mode.
13589         * lib/sys_select.in.h: Include c++defs.h. Enable the function
13590         definitions also when the system has a <sys/select.h>.
13591         (select): In C++, define a namespaced alias symbol.
13592         * modules/sys_select (Depends-on): Add c++defs.
13593         (Makefile.am): Update sys/select.h rule.
13594
13595         sys_ioctl: Avoid #define replacements in C++ mode.
13596         * lib/sys_ioctl.in.h: Include c++defs.h.
13597         (ioctl): In C++, define a namespaced alias symbol.
13598         * modules/sys_ioctl (Depends-on): Add c++defs.
13599         (Makefile.am): Update sys/ioctl.h rule.
13600
13601         string: Avoid #define replacements in C++ mode.
13602         * lib/string.in.h: Include c++defs.h.
13603         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
13604         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13605         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13606         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
13607         strsignal, strverscmp): In C++, define a namespaced alias symbol.
13608         * modules/string (Depends-on): Add c++defs.
13609         (Makefile.am): Update string.h rule.
13610
13611         stdlib: Avoid #define replacements in C++ mode.
13612         * lib/stdlib.in.h: Include c++defs.h.
13613         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
13614         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
13615         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
13616         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
13617         symbol.
13618         * modules/stdlib (Depends-on): Add c++defs.
13619         (Makefile.am): Update stdlib.h rule.
13620
13621         stdio: Avoid #define replacements in C++ mode.
13622         * lib/stdio.in.h: Include c++defs.h.
13623         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
13624         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
13625         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
13626         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
13627         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
13628         namespaced alias symbol.
13629         * modules/stdio (Depends-on): Add c++defs.
13630         (Makefile.am): Update stdio.h rule.
13631
13632         spawn: Avoid #define replacements in C++ mode.
13633         * lib/spawn.in.h: Include c++defs.h.
13634         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13635         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13636         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13637         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13638         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13639         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13640         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13641         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13642         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13643         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13644         In C++, define a namespaced alias symbol.
13645         * modules/spawn (Depends-on): Add c++defs.
13646         (Makefile.am): Update spawn.h rule.
13647
13648         signal: Avoid #define replacements in C++ mode.
13649         * lib/signal.in.h: Include c++defs.h.
13650         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13651         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
13652         namespaced alias symbol.
13653         * modules/signal (Depends-on): Add c++defs.
13654         (Makefile.am): Update signal.h rule.
13655
13656         search: Avoid #define replacements in C++ mode.
13657         * lib/search.in.h: Include c++defs.h.
13658         (_gl_search_compar_fn, _gl_search_action_fn): New types.
13659         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
13660         symbol.
13661         * modules/search (Depends-on): Add c++defs.
13662         (Makefile.am): Update search.h rule.
13663
13664         math: Avoid #define replacements in C++ mode.
13665         * lib/math.in.h: Include c++defs.h.
13666         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
13667         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
13668         trunc, truncl): In C++, define a namespaced alias symbol.
13669         * modules/math (Depends-on): Add c++defs.
13670         (Makefile.am): Update math.h rule.
13671
13672         locale: Avoid #define replacements in C++ mode.
13673         * lib/locale.in.h: Include c++defs.h.
13674         (duplocale): In C++, define a namespaced alias symbol.
13675         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
13676         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
13677         * modules/locale (Depends-on): Add c++defs.
13678         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
13679
13680         langinfo: Avoid #define replacements in C++ mode.
13681         * lib/langinfo.in.h: Include c++defs.h.
13682         (nl_langinfo): In C++, define a namespaced alias symbol.
13683         * modules/langinfo (Depends-on): Add c++defs.
13684         (Makefile.am): Update langinfo.h rule.
13685
13686         iconv-h: Avoid #define replacements in C++ mode.
13687         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
13688         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
13689         symbol.
13690         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
13691         whenever iconv is present.
13692         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
13693         (Makefile.am): Update iconv.h rule.
13694
13695         glob: Avoid #define replacements in C++ mode.
13696         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
13697         (_gl_glob_errfunc_fn): New type.
13698         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
13699         symbol.
13700         * modules/glob (Depends-on): Add c++defs, warn-on-use.
13701         (Makefile.am): Update glob.h rule.
13702
13703         fcntl-h: Avoid #define replacements in C++ mode.
13704         * lib/fcntl.in.h: Include c++defs.h.
13705         (fcntl, open, openat): In C++, define a namespaced alias symbol.
13706         * modules/fcntl-h (Depends-on): Add c++defs.
13707         (Makefile.am): Update fcntl.h rule.
13708
13709         dirent: Avoid #define replacements in C++ mode.
13710         * lib/dirent.in.h: Include c++defs.h.
13711         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
13712         namespaced alias symbol.
13713         (dirfd): Update declaration.
13714         * modules/dirent (Depends-on): Add c++defs.
13715         (Makefile.am): Update dirent.h rule.
13716
13717         ctype: Make it usable in C++ code.
13718         * lib/ctype.in.h: Include c++defs.h.
13719         (isblank): Declare as extern "C".
13720         * modules/ctype (Depends-on): Add c++defs.
13721         (Makefile.am): Update ctype.h rule.
13722
13723         New module 'c++defs'.
13724         * modules/c++defs: New file.
13725         * build-aux/c++defs.h: New file.
13726         Reported by John W. Eaton <jwe@gnu.org>.
13727
13728 2010-03-07  Bruno Haible  <bruno@clisp.org>
13729
13730         logb: Provide missing declaration for Cygwin.
13731         * lib/math.in.h (logb): New declaration.
13732         * m4/logb.m4: New file.
13733         * modules/logb (Files): Add m4/logb.m4.
13734         (Depends-on): Add math.
13735         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
13736         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
13737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
13738         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
13739         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
13740
13741 2010-03-07  Bruno Haible  <bruno@clisp.org>
13742
13743         Fix test-cond link error.
13744         * tests/test-cond.c: Include <stdio.h>.
13745
13746 2010-03-07  Bruno Haible  <bruno@clisp.org>
13747
13748         Fix test-dirent-safer link error.
13749         * modules/dirent-safer-tests (Makefile.am): Define
13750         test_dirent_safer_LDADD.
13751
13752 2010-03-07  Bruno Haible  <bruno@clisp.org>
13753
13754         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
13755         among default module list.
13756
13757 2010-03-07  Bruno Haible  <bruno@clisp.org>
13758
13759         Fix link error on platforms with GNU libiconv.
13760         * modules/unistr/u8-strcoll-tests (Makefile): Define
13761         test_u8_strcoll_LDADD.
13762         * modules/unistr/u16-strcoll-tests (Makefile): Define
13763         test_u16_strcoll_LDADD.
13764         * modules/unistr/u32-strcoll-tests (Makefile): Define
13765         test_u32_strcoll_LDADD.
13766
13767 2010-03-07  Bruno Haible  <bruno@clisp.org>
13768
13769         Use POSIX declarations for socket functions.
13770         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
13771         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
13772         rpl_sendto): Change declaration to match POSIX.
13773         * lib/connect.c (rpl_connect): Likewise.
13774         * lib/accept.c (rpl_accept): Likewise.
13775         * lib/bind.c (rpl_bind): Likewise.
13776         * lib/getpeername.c (rpl_getpeername): Likewise.
13777         * lib/getsockname.c (rpl_getsockname): Likewise.
13778         * lib/recv.c (rpl_recv): Likewise.
13779         * lib/send.c (rpl_send): Likewise.
13780         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13781         * lib/sendto.c (rpl_sendto): Likewise.
13782
13783 2010-03-06  Bruno Haible  <bruno@clisp.org>
13784
13785         Clarify access, euidaccess, faccessat.
13786         * doc/posix-functions/faccessat.texi: Mention security problem under
13787         "Other problems", not "Portability problems".
13788         * doc/posix-functions/access.texi: Likewise. Mention a related security
13789         problem.
13790         * doc/glibc-functions/euidaccess.texi: Mention security problems.
13791         * lib/euidaccess.c: Add comments about platforms.
13792         * lib/unistd.in.h (access, euidaccess): Add warnings.
13793
13794 2010-03-07  Bruno Haible  <bruno@clisp.org>
13795
13796         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
13797         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
13798         (POSIX_SPAWN_SETSCHEDULER): Likewise.
13799         (POSIX_SPAWN_USEVFORK): Define in a way that works when
13800         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
13801         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
13802         declare when POSIX_SPAWN_SETSCHEDULER is zero.
13803         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
13804         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
13805         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
13806         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
13807         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
13808         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
13809         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
13810         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
13811         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
13812         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
13813         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
13814         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
13815         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
13816         Likewise.
13817         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
13818         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
13819         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
13820         Likewise.
13821         * tests/test-spawn.c (main): Make it work when
13822         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
13823
13824 2010-03-07  Bruno Haible  <bruno@clisp.org>
13825
13826         Fix incorrect Makefile.am generation in German locale.
13827         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13828         Execute sed command with character range in C locale.
13829
13830 2010-03-06  Bruno Haible  <bruno@clisp.org>
13831
13832         Tests for module 'iconv-h'.
13833         * modules/iconv-h-tests: New file.
13834         * tests/test-iconv-h.c: New file.
13835
13836         New module 'iconv-h'.
13837         * modules/iconv-h: New file.
13838         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
13839         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
13840         (configure.ac): Remove gl_ICONV_H.
13841         (Makefile.am): Remove rule for iconv.h.
13842
13843 2010-03-06  Bruno Haible  <bruno@clisp.org>
13844
13845         More consistent naming of *.m4 files.
13846         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
13847         * modules/wctype (Files): Update.
13848
13849         More consistent naming of *.m4 files.
13850         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
13851         * modules/wchar (Files): Update.
13852
13853 2010-03-06  Jim Meyering  <meyering@redhat.com>
13854
13855         euidaccess: relax license to LGPLv2+
13856         * modules/euidaccess (License): Relax to LGPLv2+.
13857
13858 2010-03-06  Bruno Haible  <bruno@clisp.org>
13859
13860         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
13861         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
13862         (Makefile.am): Augment lib_SOURCES instead.
13863
13864 2010-03-04  Jim Meyering  <meyering@redhat.com>
13865
13866         utime: remove obsolete module
13867         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
13868         unnecessary for years, and has been marked as obsolete for 10 months.
13869         * modules/utime: Remove file.
13870         * lib/utime.c: Remove file.
13871         * m4/utime.m4: Remove file.
13872         * m4/utimes-null.m4: Remove file.
13873         * doc/posix-functions/utime.texi (utime): Remove reference to
13874         the module.  Move the sole "fixed by gnulib" item into the
13875         "problems not fixed by Gnulib" list.
13876         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
13877
13878 2010-03-05  Simon Josefsson  <simon@josefsson.org>
13879
13880         * modules/exit (License): Relax license to LGPLv2+.
13881         (Status): Mark as obsolete.
13882         * NEWS: Mention deprecated 'exit' module.
13883         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
13884         of now obsolete 'exit'.
13885
13886 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13887
13888         fts-lgpl: remove unused module
13889         * modules/fts-lgpl: Remove.
13890         * MODULES.html.sh (func_all_modules): Adjust.
13891         * check-module (find_included_lib_files): Adjust.
13892         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
13893
13894 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
13895
13896         copy-acl: enhance Solaris ACL error handling
13897         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
13898         * lib/set-mode-acl.c (qset_acl): Likewise.
13899
13900 2010-03-02  Bruno Haible  <bruno@clisp.org>
13901
13902         spawn: Don't override the system defined values on FreeBSD 8.
13903         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
13904         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
13905         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
13906         if HAVE_POSIX_SPAWN is 1.
13907         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
13908
13909 2010-03-01  Bruno Haible  <bruno@clisp.org>
13910
13911         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
13912         regarding Automake.
13913
13914 2010-02-25  Bruno Haible  <bruno@clisp.org>
13915
13916         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
13917         * gnulib-tool: Define 'echo' as a function only before the ksh alias
13918         setting, not afterwards.
13919         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
13920
13921 2010-02-24  Eric Blake  <eblake@redhat.com>
13922
13923         bootstrap, git-version-gen: use timestamp
13924         * build-aux/git-version-gen (scriptversion): Force UTC.
13925         * build-aux/bootstrap (scriptversion): New variable.
13926
13927         bootstrap: allow older git
13928         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
13929         older than 1.6.4.  Requested by the libvirt project.
13930
13931 2010-02-23  Eric Blake  <eblake@redhat.com>
13932
13933         warn-on-use: work with old autoconf
13934         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
13935         AS_VAR semantics of autoconf 2.60.
13936         Reported by Bruno Haible.
13937
13938         bootstrap: improve some comments
13939         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
13940         clarification comments.
13941
13942         gettimeofday: provide correct function
13943         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
13944         when replacement is declared, otherwise provide gettimeofday.
13945         Reported by Michael Goffioul.
13946
13947 2010-02-23  Jim Meyering  <meyering@redhat.com>
13948
13949         lib-ignore: relax license to "unlimited", not LGPLv2+
13950         * modules/lib-ignore (License): Relax to "unlimited".
13951
13952 2010-02-23  Jim Meyering  <meyering@redhat.com>
13953
13954         lib-ignore: relax license to LGPLv2+
13955         * modules/lib-ignore (License): Relax to LGPLv2+.
13956
13957 2010-02-22  Eric Blake  <eblake@redhat.com>
13958
13959         lseek: avoid bash 3.2 broken pipe bug
13960         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
13961         warning from bash 3.2.
13962         Reported by Ben Pfaff, with analysis from Bruno Haible.
13963
13964         bootstrap: support non-FSF copyright holder
13965         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
13966         bootstrap.conf override of COPYRIGHT_HOLDER.
13967         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
13968
13969         bootstrap: interoperate with gettext 0.14.1
13970         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
13971
13972         bootstrap: allow for alternate submodule location
13973         * build-aux/bootstrap (gnulib_path): New variable; use instead of
13974         hardcoding submodule location.
13975         (gnulib_mk): Allow direct use of Makefile.am.
13976
13977         bootstrap: use GNULIB_SRCDIR to reduce disk usage
13978         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
13979         rather than reconfiguring where the submodule points.
13980
13981         gettimeofday: restore support for platforms that lack function
13982         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
13983         replacement if function is missing.
13984         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
13985         * modules/sys_time (Makefile.am): Substitute it.
13986         * lib/sys_time.in.h (gettimeofday): Check it.
13987         Reported by Michael Goffioul.
13988
13989 2010-02-21  Bruno Haible  <bruno@clisp.org>
13990
13991         * lib/stdio.in.h (obstack_printf): Fix typo.
13992
13993 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
13994
13995         vc-list-files: use bzr ls's -R option
13996         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
13997         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
13998
13999 2010-02-21  Jim Meyering  <meyering@redhat.com>
14000
14001         init.sh: fix EXEEXT shims to work also for names like test-prog
14002         * tests/init.sh: Re-exec a better shell, when needed.
14003         If the current shell lacks support for posix $(...), an init.sh-using
14004         test will now try to find a shell that supports that.  If EXEEXT is
14005         nonempty, we also require support for hyphen-in-alias-name and shell
14006         substitutions like ${var#glob}.  Failure to find such a shell results
14007         in a skipped test.
14008
14009 2010-02-21  Bruno Haible  <bruno@clisp.org>
14010
14011         Really work around around "broken pipe" error message from bash 3.2.
14012         * gnulib-tool (func_reset_sigpipe): Remove function.
14013         (echo): In bash 3.2, define to a function that uses printf.
14014         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
14015
14016 2010-02-20  Bruno Haible  <bruno@clisp.org>
14017
14018         Restore support for automake 1.9.6 with autoconf 2.61.
14019         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
14020         Reported by James Youngman <jay@gnu.org>.
14021
14022 2010-02-20  Bruno Haible  <bruno@clisp.org>
14023
14024         Improve *printf warning condition.
14025         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
14026         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
14027         and the function is overridden due to SIGPIPE emulation.
14028
14029 2010-02-20  Bruno Haible  <bruno@clisp.org>
14030
14031         * lib/stdio.in.h: Tweak comments.
14032
14033 2010-02-19  Bruno Haible  <bruno@clisp.org>
14034
14035         Make it easier to find modules. New gnulib-tool option '--find'.
14036         * gnulib-tool: New option --find.
14037         (func_usage): Document it.
14038         (func_sanitize_modulelist): New function, extracted from
14039         func_all_modules.
14040         (func_all_modules): Invoke it.
14041         * doc/gnulib-tool.texi (Which modules?): New node.
14042
14043 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
14044
14045         * lib/sys_select.in.h: Provide select replacement even if
14046         sys/select.h exists on a system, for Interix.
14047
14048 2010-02-18  Jim Meyering  <meyering@redhat.com>
14049
14050         init.sh: don't use $(...) just yet
14051         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
14052         to accommodate e.g., Solaris' /bin/sh.
14053
14054 2010-02-17  Bruno Haible  <bruno@clisp.org>
14055
14056         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
14057         Reported by Ludovic Courtès <ludo@gnu.org>.
14058
14059 2010-02-16  Simon Josefsson  <simon@josefsson.org>
14060
14061         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
14062         linking with -lintl.
14063
14064 2010-02-17  Simon Josefsson  <simon@josefsson.org>
14065
14066         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
14067         if not provided by the system's netdb.h.  Reported by
14068         ludo@gnu.org (Ludovic Courtès).
14069
14070 2010-02-15  Jim Meyering  <meyering@redhat.com>
14071
14072         init.sh: improve portability and efficiency
14073         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
14074         "dummy" in a for loop.
14075         Use '!', not '^' to select the complement of a character set used
14076         in a "case" statement.
14077         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
14078         Suggestions from Eric Blake.
14079
14080         init.sh: automatically accommodate programs with the .exe suffix
14081         Automatically arrange for an invocation of "prog" to execute the
14082         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
14083         may use the simpler "prog", yet still work when built on a system
14084         that requires specifying the added suffix.
14085         Do this by constructing a function named "prog" that invokes
14086         "prog.exe" for each .exe file in selected directories.
14087         * tests/init.sh (find_exe_basenames_): New function.
14088         (create_exe_shim_functions_): New function.
14089         (path_prepend_): Use it.
14090
14091         maint.mk: mark syntax-check sc_*.m rules as .PHONY
14092         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
14093         "make -t syntax-check" doesn't create a ton of sc_*.m files.
14094
14095 2010-02-14  Jim Meyering  <meyering@redhat.com>
14096
14097         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
14098         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
14099         (sc_prohibit_hash_pjw_without_use): New rule.
14100
14101         maint.mk: allow the default upload destination dir to be overridden
14102         * top/maint.mk (upload_dest_dir_): Define with a default that
14103         preserves the status quo.
14104         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
14105         Reported by Peter Simons.
14106
14107         maint.mk: prohibit inclusion of "hash.h" without_use
14108         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
14109
14110 2010-02-10  Jim Meyering  <meyering@redhat.com>
14111
14112         maint.mk: prohibit inclusion of "ignore-value.h" without_use
14113         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
14114
14115 2010-02-09  Eric Blake  <ebb9@byu.net>
14116         and Bruno Haible  <bruno@clisp.org>
14117
14118         obstack-printf-posix: ensure declaration
14119         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
14120         extracted from gl_FUNC_OBSTACK_PRINTF.
14121         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
14122         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
14123         Likewise.
14124         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
14125         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
14126         0.
14127
14128 2010-02-08  Bruno Haible  <bruno@clisp.org>
14129
14130         gnulib-tool: Fix typo in 2010-02-07 commit.
14131         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
14132         Reported by Eric Blake.
14133
14134 2010-02-07  Bruno Haible  <bruno@clisp.org>
14135
14136         gnulib-tool: Fix up caching patches.
14137         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
14138         option --no-cache. Use associative arrays when supported by the shell.
14139         (sed_comments): New variable.
14140         (modcache): Renamed from do_cache.
14141         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
14142         abbreviate unnecessarily.
14143         (have_associative): New variable.
14144         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
14145         way also for ksh and zsh.
14146         (func_init_sed_convert_to_cache_statements): New function, extracted
14147         from func_cache_lookup_module. Add support for associative arrays.
14148         Don't set the c_MODULE_cached variable here. Ignore all lines before
14149         the first field header. Remove only the final newline, not all trailing
14150         newlines. Support empty fields correctly. Limit the use of 'eval' to
14151         assignments.
14152         (func_get_description, func_get_status, func_get_notice,
14153         func_get_applicability, func_get_filelist, func_get_dependencies,
14154         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
14155         func_get_automake_snippet, func_get_include_directive,
14156         func_get_link_directive, func_get_license, func_get_maintainer):
14157         Update documentation. List the unoptimized code first. Add support for
14158         associative arrays. Limit the use of 'eval' to assignments.
14159         (func_get_applicability): Undo stylistic pessimisations.
14160         (func_get_automake_snippet, func_get_include_directive): Reduce code
14161         duplication.
14162         (func_modules_transitive_closure, func_modules_add_dummy,
14163         func_modules_notice, func_modules_to_filelist, func_add_file,
14164         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
14165         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
14166         func_create_testdir, func_create_megatestdir): Update documentation.
14167
14168 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14169
14170         * gnulib-tool (func_cache_lookup_module): Store the module name
14171         belonging to the cache variable; error out if two different
14172         module names map to the same cache variable name.
14173
14174 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14175
14176         gnulib-tool: Make caching optional.
14177         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
14178         Update matching short versions of --no-changelog.
14179         (func_usage): Update.
14180         (sed_extract_cache_prog): Renamed from ...
14181         (sed_extract_prog): ... this; revert to old extraction script.
14182         (func_get_description, func_get_status)
14183         (func_get_notice, func_get_applicability, func_get_filelist)
14184         (func_get_dependencies, func_get_autoconf_early_snippet)
14185         (func_get_autoconf_snippet, func_get_automake_snippet)
14186         (func_get_include_directive, func_get_link_directive)
14187         (func_get_license, func_get_maintainer): If $do_cache is false,
14188         use old, non-caching extraction scripts.
14189         Suggestion by Bruno Haible.
14190
14191 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14192
14193         gnulib-tool: cache module metainformation.
14194         * gnulib-tool (sed_extract_prog): Match newline before each
14195         header, and rewrite header to a shell variable suffix.
14196         (func_cache_var, func_cache_lookup_module): New functions,
14197         to turn a module name into a cache variable prefix, and to
14198         look up and cache module metainformation.
14199         (func_get_description, func_get_status)
14200         (func_get_notice, func_get_applicability, func_get_filelist)
14201         (func_get_dependencies, func_get_autoconf_early_snippet)
14202         (func_get_autoconf_snippet, func_get_automake_snippet)
14203         (func_get_include_directive, func_get_link_directive)
14204         (func_get_license, func_get_maintainer): Use
14205         func_cache_lookup_module.
14206
14207 2010-02-07  Bruno Haible  <bruno@clisp.org>
14208
14209         fnctl: Fix missing dependency.
14210         * modules/fcntl (Depends-on): Add getdtablesize.
14211         Reported by John W. Eaton <jwe@gnu.org>.
14212
14213 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14214
14215         Argp: fix recognition of short alias options.
14216
14217         * lib/argp-parse.c (convert_options): Fix improper use of
14218         `|' between character values.
14219         * tests/test-argp.c (group1_option): New alias option
14220         --read (-r).
14221         (group1_parser): Special handling for 'r'.
14222         (test15): New test case.
14223         (test_fun): Add test15.
14224         * tests/test-argp-2.sh: Update expected --help and --usage
14225         outputs.
14226
14227 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14228
14229         * tests/test-argp.c: Fix indentation.
14230
14231 2010-02-04  Eric Blake  <ebb9@byu.net>
14232
14233         gettimeofday: expose type of second argument
14234         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
14235         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
14236         * tests/test-gettimeofday.c: Use it to silence warning.
14237         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
14238         the issue.
14239
14240 2010-02-03  Jim Meyering  <meyering@redhat.com>
14241
14242         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
14243         * lib/regcomp.c (TYPE_SIGNED): Define.
14244         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
14245
14246         regcomp.c: avoid a new -Wshadow warning
14247         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
14248
14249 2010-02-01  Jim Meyering  <meyering@redhat.com>
14250
14251         removing useless parentheses in cpp #define directives
14252         For motivation, see commit c0221df4, "define STREQ(a,b)
14253         consistently, removing useless parentheses"
14254         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
14255         * lib/mountlist.c (MNT_IGNORE): Likewise.
14256         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
14257
14258 2010-02-01  Eric Blake  <ebb9@byu.net>
14259
14260         sys_time: use link-warning
14261         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
14262         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
14263         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
14264         * modules/sys_time (Depends-on): Add warn-on-use.
14265         (Makefile.am): Always build replacement.
14266         (configure.ac): Update substitutions.
14267         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
14268         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
14269         bother with SYS_TIME_H.
14270         * modules/gettimeofday (configure.ac): Declare indicator.
14271         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
14272         in use.
14273
14274         closein-tests: silence compiler warning
14275         * tests/test-closein.c (main): Ignore fread result.
14276         * modules/closein-tests (Depends-on): Add ignore-value.
14277
14278         tests: silence warning about system return
14279         * tests/test-areadlink-with-size.c (main): Ignore system result.
14280         * tests/test-areadlink.c (main): Likewise.
14281         * tests/test-areadlinkat-with-size.c (main): Likewise.
14282         * tests/test-areadlinkat.c (main): Likewise.
14283         * tests/test-canonicalize-lgpl.c (main): Likewise.
14284         * tests/test-canonicalize.c (main): Likewise.
14285         * tests/test-chown.c (main): Likewise.
14286         * tests/test-fchownat.c (main): Likewise.
14287         * tests/test-fdutimensat.c (main): Likewise.
14288         * tests/test-fstatat.c (main): Likewise.
14289         * tests/test-futimens.c (main): Likewise.
14290         * tests/test-lchown.c (main): Likewise.
14291         * tests/test-link.c (main): Likewise.
14292         * tests/test-linkat.c (main): Likewise.
14293         * tests/test-lstat.c (main): Likewise.
14294         * tests/test-mkdir.c (main): Likewise.
14295         * tests/test-mkdirat.c (main): Likewise.
14296         * tests/test-mkfifo.c (main): Likewise.
14297         * tests/test-mkfifoat.c (main): Likewise.
14298         * tests/test-mknod.c (main): Likewise.
14299         * tests/test-readlink.c (main): Likewise.
14300         * tests/test-remove.c (main): Likewise.
14301         * tests/test-rename.c (main): Likewise.
14302         * tests/test-renameat.c (main): Likewise.
14303         * tests/test-rmdir.c (main): Likewise.
14304         * tests/test-symlink.c (main): Likewise.
14305         * tests/test-symlinkat.c (main): Likewise.
14306         * tests/test-unlink.c (main): Likewise.
14307         * tests/test-unlinkat.c (main): Likewise.
14308         * tests/test-utimens.c (main): Likewise.
14309         * tests/test-utimensat.c (main): Likewise.
14310         * modules/areadlink-tests (Depends-on): Add ignore-value.
14311         * modules/areadlink-with-size-tests (Depends-on): Likewise.
14312         * modules/areadlinkat-tests (Depends-on): Likewise.
14313         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
14314         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14315         * modules/canonicalize-tests (Depends-on): Likewise.
14316         * modules/chown-tests (Depends-on): Likewise.
14317         * modules/fdutimensat-tests (Depends-on): Likewise.
14318         * modules/futimens-tests (Depends-on): Likewise.
14319         * modules/lchown-tests (Depends-on): Likewise.
14320         * modules/link-tests (Depends-on): Likewise.
14321         * modules/linkat-tests (Depends-on): Likewise.
14322         * modules/lstat-tests (Depends-on): Likewise.
14323         * modules/mkdir-tests (Depends-on): Likewise.
14324         * modules/mkfifo-tests (Depends-on): Likewise.
14325         * modules/mkfifoat-tests (Depends-on): Likewise.
14326         * modules/mknod-tests (Depends-on): Likewise.
14327         * modules/openat-tests (Depends-on): Likewise.
14328         * modules/readlink-tests (Depends-on): Likewise.
14329         * modules/remove-tests (Depends-on): Likewise.
14330         * modules/rename-tests (Depends-on): Likewise.
14331         * modules/renameat-tests (Depends-on): Likewise.
14332         * modules/rmdir-tests (Depends-on): Likewise.
14333         * modules/symlink-tests (Depends-on): Likewise.
14334         * modules/symlinkat-tests (Depends-on): Likewise.
14335         * modules/unlink-tests (Depends-on): Likewise.
14336         * modules/utimens-tests (Depends-on): Likewise.
14337         * modules/utimensat-tests (Depends-on): Likewise.
14338
14339 2010-01-31  Bruno Haible  <bruno@clisp.org>
14340
14341         Perform the same test for many <math.h> functions.
14342         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
14343         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
14344         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
14345         of gl_MATHFUNC.
14346         * modules/acos (configure.ac): Likewise.
14347         * modules/asin (configure.ac): Likewise.
14348         * modules/atan (configure.ac): Likewise.
14349         * modules/atan2 (configure.ac): Likewise.
14350         * modules/cbrt (configure.ac): Likewise.
14351         * modules/copysign (configure.ac): Likewise.
14352         * modules/cos (configure.ac): Likewise.
14353         * modules/cosh (configure.ac): Likewise.
14354         * modules/erf (configure.ac): Likewise.
14355         * modules/erfc (configure.ac): Likewise.
14356         * modules/exp (configure.ac): Likewise.
14357         * modules/fmod (configure.ac): Likewise.
14358         * modules/hypot (configure.ac): Likewise.
14359         * modules/j0 (configure.ac): Likewise.
14360         * modules/j1 (configure.ac): Likewise.
14361         * modules/jn (configure.ac): Likewise.
14362         * modules/lgamma (configure.ac): Likewise.
14363         * modules/log (configure.ac): Likewise.
14364         * modules/log10 (configure.ac): Likewise.
14365         * modules/log1p (configure.ac): Likewise.
14366         * modules/pow (configure.ac): Likewise.
14367         * modules/remainder (configure.ac): Likewise.
14368         * modules/sin (configure.ac): Likewise.
14369         * modules/sinh (configure.ac): Likewise.
14370         * modules/tan (configure.ac): Likewise.
14371         * modules/tanh (configure.ac): Likewise.
14372         * modules/y0 (configure.ac): Likewise.
14373         * modules/y1 (configure.ac): Likewise.
14374         * modules/yn (configure.ac): Likewise.
14375         Suggested by Paolo Bonzini.
14376
14377 2010-01-31  Bruno Haible  <bruno@clisp.org>
14378
14379         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
14380
14381 2010-01-31  Bruno Haible  <bruno@clisp.org>
14382
14383         Work around getdelim() bug on FreeBSD 8.0.
14384         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
14385         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
14386         not work.
14387         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
14388         is 1.
14389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
14390         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
14391         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
14392         a non-zero size.
14393         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
14394
14395 2010-01-31  Bruno Haible  <bruno@clisp.org>
14396
14397         Work around getline() bug on FreeBSD 8.0.
14398         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
14399         and a non-zero size.
14400         * tests/test-getline.c (main): Likewise.
14401         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
14402         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
14403
14404 2010-01-28  Eric Blake  <ebb9@byu.net>
14405
14406         regex: fix build failure
14407         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
14408         platforms.
14409
14410 2010-01-28  Jim Meyering  <meyering@redhat.com>
14411
14412         regex: do not ignore memory allocation failure
14413         * lib/regex_internal.c (create_cd_newstate): Detect
14414         re_node_set_init_copy failure.   Extracted from glibc commit
14415         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14416
14417         regex: sync more white-space changes from libc
14418         * lib/regex_internal.c: White-space only changes.
14419         * lib/regexec.c: Likewise.
14420
14421         regex: add many uses of __attribute_warn_unused_result__
14422         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
14423         * lib/regexec.c: Likewise.
14424         Extracted from a messy glibc commit.
14425
14426         regcomp.c: spelling and merge-artifact from glibc
14427         * lib/regcomp.c: Merge remainder of glibc's
14428         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14429
14430         regcomp.c: sync white-space changes from glibc
14431         * lib/regcomp.c: Merge to accommodate white space
14432         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14433
14434         regcomp.c: do not ignore internal return values
14435         * lib/regcomp.c: Do not ignore internal return values.
14436         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
14437         but without its white-space changes and spelling fixes.
14438
14439         regex_internal.h: define __attribute_warn_unused_result__
14440         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
14441
14442         maint: add a syntax-check rule to check for vulnerable Makefile.in
14443         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
14444
14445 2010-01-27  Jim Meyering  <meyering@redhat.com>
14446
14447         ncftpput-ftp: clean up spaces
14448         * build-aux/ncftpput-ftp: Make Copyright line consistent.
14449         Remove trailing blanks.
14450
14451 2010-01-27  Simon Josefsson  <simon@josefsson.org>
14452
14453         * build-aux/git-version-gen: Fix copyright statement.
14454         * build-aux/gnupload: Likewise.
14455         * tests/test-arcfour.c: Likewise.
14456         * tests/test-arctwo.c: Likewise.
14457         * tests/test-count-one-bits.c: Likewise.
14458         * tests/test-crc.c: Likewise.
14459         * tests/test-des.c: Likewise.
14460         * tests/test-gc-arcfour.c: Likewise.
14461         * tests/test-gc-arctwo.c: Likewise.
14462         * tests/test-gc-des.c: Likewise.
14463         * tests/test-gc-hmac-md5.c: Likewise.
14464         * tests/test-gc-hmac-sha1.c: Likewise.
14465         * tests/test-gc-md2.c: Likewise.
14466         * tests/test-gc-md4.c: Likewise.
14467         * tests/test-gc-md5.c: Likewise.
14468         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14469         * tests/test-gc-rijndael.c: Likewise.
14470         * tests/test-gc-sha1.c: Likewise.
14471         * tests/test-gc.c: Likewise.
14472         * tests/test-gethostname.c: Likewise.
14473         * tests/test-gettimeofday.c: Likewise.
14474         * tests/test-hash.c: Likewise.
14475         * tests/test-hmac-md5.c: Likewise.
14476         * tests/test-hmac-sha1.c: Likewise.
14477         * tests/test-md2.c: Likewise.
14478         * tests/test-md4.c: Likewise.
14479         * tests/test-md5.c: Likewise.
14480         * tests/test-memchr.c: Likewise.
14481         * tests/test-memchr2.c: Likewise.
14482         * tests/test-memcmp.c: Likewise.
14483         * tests/test-memmem.c: Likewise.
14484         * tests/test-memrchr.c: Likewise.
14485         * tests/test-rawmemchr.c: Likewise.
14486         * tests/test-read-file.c: Likewise.
14487         * tests/test-rijndael.c: Likewise.
14488         * tests/test-sockets.c: Likewise.
14489         * tests/test-strchrnul.c: Likewise.
14490         * tests/test-strstr.c: Likewise.
14491         * tests/test-strtod.c: Likewise.
14492         * build-aux/ncftpput-ftp: Likewise.
14493
14494 2010-01-26  Eric Blake  <ebb9@byu.net>
14495
14496         ignore-value: update recommended header name
14497         * modules/ignore-value (Include): Only use <> for headers that
14498         exist in glibc.
14499
14500 2010-01-26  Jim Meyering  <meyering@redhat.com>
14501
14502         test-userspec.c: avoid compiler warnings
14503         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
14504         and "initialization discards qualifiers..." warnings.
14505         Put the first "uid" in its own scope, and make char* members "const".
14506
14507 2010-01-25  Bruno Haible  <bruno@clisp.org>
14508
14509         gnulib-tool: Make warning diagnostics consistent.
14510         * gnulib-tool (func_warning): New function.
14511         Use it everywhere where gnulib-tool produces output to stderr and it is
14512         not a fatal error.
14513
14514 2010-01-25  Bruno Haible  <bruno@clisp.org>
14515
14516         Fix test dependencies.
14517         * modules/xstrtol-tests (Depends-on): Add inttypes.
14518         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
14519
14520 2010-01-25 Pádraig Brady <P@draigBrady.com>
14521
14522         syntax-check: detect incorrect boolean macro values in config.h
14523         * modules/maintainer-makefile (configure.ac): Parameterize the location
14524         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
14525         The logic is from Eric Blake and the location indicated by Jim Meyering.
14526         Note the more natural CONFIG_HEADER name is prohibited by automake
14527         for backwards compatibility reasons.
14528         * top/maint.mk (sc_Wundef_boolean): New rule.
14529
14530 2010-01-25  Jim Meyering  <meyering@redhat.com>
14531
14532         bootstrap: detect MacOS 10.6's shasum, too
14533         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
14534         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
14535
14536 2010-01-23  Jim Meyering  <meyering@redhat.com>
14537
14538         xstrtoll: new module
14539         * modules/xstrtoll: New file.
14540         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
14541         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
14542         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
14543         ./configure fails if you use this module and lack "long long".
14544         * modules/xstrtoll-tests: New module.
14545         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
14546         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
14547         new init.sh-based test framework.
14548
14549 2010-01-24  Bruno Haible  <bruno@clisp.org>
14550
14551         Tests for module 'yn'.
14552         * modules/yn-tests: New file.
14553         * tests/test-yn.c: New file.
14554
14555         Tests for module 'y1'.
14556         * modules/y1-tests: New file.
14557         * tests/test-y1.c: New file.
14558
14559         Tests for module 'y0'.
14560         * modules/y0-tests: New file.
14561         * tests/test-y0.c: New file.
14562
14563         Tests for module 'tanh'.
14564         * modules/tanh-tests: New file.
14565         * tests/test-tanh.c: New file.
14566
14567         Tests for module 'tan'.
14568         * modules/tan-tests: New file.
14569         * tests/test-tan.c: New file.
14570
14571         Tests for module 'sqrt'.
14572         * modules/sqrt-tests: New file.
14573         * tests/test-sqrt.c: New file.
14574
14575         Tests for module 'sinh'.
14576         * modules/sinh-tests: New file.
14577         * tests/test-sinh.c: New file.
14578
14579         Tests for module 'sin'.
14580         * modules/sin-tests: New file.
14581         * tests/test-sin.c: New file.
14582
14583         Tests for module 'rint'.
14584         * modules/rint-tests: New file.
14585         * tests/test-rint.c: New file.
14586
14587         Tests for module 'remainder'.
14588         * modules/remainder-tests: New file.
14589         * tests/test-remainder.c: New file.
14590
14591         Tests for module 'pow'.
14592         * modules/pow-tests: New file.
14593         * tests/test-pow.c: New file.
14594
14595         Tests for module 'nextafter'.
14596         * modules/nextafter-tests: New file.
14597         * tests/test-nextafter.c: New file.
14598
14599         Tests for module 'modf'.
14600         * modules/modf-tests: New file.
14601         * tests/test-modf.c: New file.
14602
14603         Tests for module 'logb'.
14604         * modules/logb-tests: New file.
14605         * tests/test-logb.c: New file.
14606
14607         Tests for module 'log1p'.
14608         * modules/log1p-tests: New file.
14609         * tests/test-log1p.c: New file.
14610
14611         Tests for module 'log10'.
14612         * modules/log10-tests: New file.
14613         * tests/test-log10.c: New file.
14614
14615         Tests for module 'log'.
14616         * modules/log-tests: New file.
14617         * tests/test-log.c: New file.
14618
14619         Tests for module 'lgamma'.
14620         * modules/lgamma-tests: New file.
14621         * tests/test-lgamma.c: New file.
14622
14623         Tests for module 'ldexp'.
14624         * modules/ldexp-tests: New file.
14625         * tests/test-ldexp.c: New file.
14626
14627         Tests for module 'jn'.
14628         * modules/jn-tests: New file.
14629         * tests/test-jn.c: New file.
14630
14631         Tests for module 'j1'.
14632         * modules/j1-tests: New file.
14633         * tests/test-j1.c: New file.
14634
14635         Tests for module 'j0'.
14636         * modules/j0-tests: New file.
14637         * tests/test-j0.c: New file.
14638
14639         Tests for module 'hypot'.
14640         * modules/hypot-tests: New file.
14641         * tests/test-hypot.c: New file.
14642
14643         Tests for module 'fmod'.
14644         * modules/fmod-tests: New file.
14645         * tests/test-fmod.c: New file.
14646
14647         Tests for module 'fabs'.
14648         * modules/fabs-tests: New file.
14649         * tests/test-fabs.c: New file.
14650
14651         Tests for module 'exp'.
14652         * modules/exp-tests: New file.
14653         * tests/test-exp.c: New file.
14654
14655         Tests for module 'erfc'.
14656         * modules/erfc-tests: New file.
14657         * tests/test-erfc.c: New file.
14658
14659         Tests for module 'erf'.
14660         * modules/erf-tests: New file.
14661         * tests/test-erf.c: New file.
14662
14663         Tests for module 'cosh'.
14664         * modules/cosh-tests: New file.
14665         * tests/test-cosh.c: New file.
14666
14667         Tests for module 'cos'.
14668         * modules/cos-tests: New file.
14669         * tests/test-cos.c: New file.
14670
14671         Tests for module 'copysign'.
14672         * modules/copysign-tests: New file.
14673         * tests/test-copysign.c: New file.
14674
14675         Tests for module 'cbrt'.
14676         * modules/cbrt-tests: New file.
14677         * tests/test-cbrt.c: New file.
14678
14679         Tests for module 'atan2'.
14680         * modules/atan2-tests: New file.
14681         * tests/test-atan2.c: New file.
14682
14683         Tests for module 'atan'.
14684         * modules/atan-tests: New file.
14685         * tests/test-atan.c: New file.
14686
14687         Tests for module 'asin'.
14688         * modules/asin-tests: New file.
14689         * tests/test-asin.c: New file.
14690
14691         Tests for module 'acos'.
14692         * modules/acos-tests: New file.
14693         * tests/test-acos.c: New file.
14694
14695 2010-01-24  Bruno Haible  <bruno@clisp.org>
14696
14697         Fix tests for common <math.h> functions.
14698         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
14699         code snippet that references the function pointer, rather than merely
14700         calling the function. Substitute the FUNC_LIBM variable.
14701         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
14702         * modules/acos (configure.ac): Likewise.
14703         * modules/asin (configure.ac): Likewise.
14704         * modules/atan (configure.ac): Likewise.
14705         * modules/atan2 (configure.ac): Likewise.
14706         * modules/cbrt (configure.ac): Likewise.
14707         * modules/copysign (configure.ac): Likewise.
14708         * modules/cos (configure.ac): Likewise.
14709         * modules/cosh (configure.ac): Likewise.
14710         * modules/erf (configure.ac): Likewise.
14711         * modules/erfc (configure.ac): Likewise.
14712         * modules/exp (configure.ac): Likewise.
14713         * modules/fabs (configure.ac): Likewise.
14714         * modules/fmod (configure.ac): Likewise.
14715         * modules/hypot (configure.ac): Likewise.
14716         * modules/j0 (configure.ac): Likewise.
14717         * modules/j1 (configure.ac): Likewise.
14718         * modules/jn (configure.ac): Likewise.
14719         * modules/ldexp (configure.ac): Likewise.
14720         * modules/lgamma (configure.ac): Likewise.
14721         * modules/log (configure.ac): Likewise.
14722         * modules/log10 (configure.ac): Likewise.
14723         * modules/log1p (configure.ac): Likewise.
14724         * modules/logb (configure.ac): Likewise.
14725         * modules/modf (configure.ac): Likewise.
14726         * modules/nextafter (configure.ac): Likewise.
14727         * modules/pow (configure.ac): Likewise.
14728         * modules/remainder (configure.ac): Likewise.
14729         * modules/rint (configure.ac): Likewise.
14730         * modules/sin (configure.ac): Likewise.
14731         * modules/sinh (configure.ac): Likewise.
14732         * modules/tan (configure.ac): Likewise.
14733         * modules/tanh (configure.ac): Likewise.
14734         * modules/y0 (configure.ac): Likewise.
14735         * modules/y1 (configure.ac): Likewise.
14736         * modules/yn (configure.ac): Likewise.
14737
14738 2010-01-24  Bruno Haible  <bruno@clisp.org>
14739
14740         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
14741         * tests/test-acosl.c (x): New variable.
14742         (main): Store argument in x and fetch it from x.
14743         * tests/test-asinl.c (x): New variable.
14744         (main): Store argument in x and fetch it from x.
14745         * tests/test-atanl.c (x): New variable.
14746         (main): Store argument in x and fetch it from x.
14747         * tests/test-cosl.c (x): New variable.
14748         (main): Store argument in x and fetch it from x.
14749         * tests/test-expl.c (x): New variable.
14750         (main): Store argument in x and fetch it from x.
14751         * tests/test-logl.c (x): New variable.
14752         (main): Store argument in x and fetch it from x.
14753         * tests/test-sinl.c (x): New variable.
14754         (main): Store argument in x and fetch it from x.
14755         * tests/test-sqrtl.c (x): New variable.
14756         (main): Store argument in x and fetch it from x.
14757         * tests/test-tanl.c (x): New variable.
14758         (main): Store argument in x and fetch it from x.
14759
14760 2010-01-24  Bruno Haible  <bruno@clisp.org>
14761
14762         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
14763         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
14764         assignments to the initial TESTS_ENVIRONMENT.
14765         * doc/gnulib.texi (Unit test modules): Document it.
14766         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
14767         TESTS_ENVIRONMENT.
14768         * modules/btowc-tests (Makefile.am): Likewise.
14769         * modules/c-stack-tests (Makefile.am): Likewise.
14770         * modules/c-strcase-tests (Makefile.am): Likewise.
14771         * modules/copy-file-tests (Makefile.am): Likewise.
14772         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
14773         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
14774         * modules/mbrtowc-tests (Makefile.am): Likewise.
14775         * modules/mbscasecmp-tests (Makefile.am): Likewise.
14776         * modules/mbscasestr-tests (Makefile.am): Likewise.
14777         * modules/mbschr-tests (Makefile.am): Likewise.
14778         * modules/mbscspn-tests (Makefile.am): Likewise.
14779         * modules/mbsinit-tests (Makefile.am): Likewise.
14780         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
14781         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
14782         * modules/mbspbrk-tests (Makefile.am): Likewise.
14783         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
14784         * modules/mbsrchr-tests (Makefile.am): Likewise.
14785         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
14786         * modules/mbsspn-tests (Makefile.am): Likewise.
14787         * modules/mbsstr-tests (Makefile.am): Likewise.
14788         * modules/nl_langinfo-tests (Makefile.am): Likewise.
14789         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
14790         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
14791         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
14792         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
14793         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
14794         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
14795         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
14796         * modules/wcrtomb-tests (Makefile.am): Likewise.
14797         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
14798         * modules/wcsrtombs-tests (Makefile.am): Likewise.
14799         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
14800         assignments from TESTS_ENVIRONMENT.
14801         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
14802         augmentation.
14803         * modules/argp-version-etc-tests (Makefile.am): Likewise.
14804         * modules/atexit-tests (Makefile.am): Likewise.
14805         * modules/binary-io-tests (Makefile.am): Likewise.
14806         * modules/closein-tests (Makefile.am): Likewise.
14807         * modules/dprintf-posix-tests (Makefile.am): Likewise.
14808         * modules/exclude-tests (Makefile.am): Likewise.
14809         * modules/fflush-tests (Makefile.am): Likewise.
14810         * modules/fpending-tests (Makefile.am): Likewise.
14811         * modules/fprintf-posix-tests (Makefile.am): Likewise.
14812         * modules/freadahead-tests (Makefile.am): Likewise.
14813         * modules/freadptr-tests (Makefile.am): Likewise.
14814         * modules/freadseek-tests (Makefile.am): Likewise.
14815         * modules/fseek-tests (Makefile.am): Likewise.
14816         * modules/fseeko-tests (Makefile.am): Likewise.
14817         * modules/ftell-tests (Makefile.am): Likewise.
14818         * modules/ftello-tests (Makefile.am): Likewise.
14819         * modules/idpriv-drop-tests (Makefile.am): Likewise.
14820         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
14821         * modules/lseek-tests (Makefile.am): Likewise.
14822         * modules/parse-duration-tests (Makefile.am): Likewise.
14823         * modules/perror-tests (Makefile.am): Likewise.
14824         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
14825         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
14826         * modules/pipe-tests (Makefile.am): Likewise.
14827         * modules/pread-tests (Makefile.am): Likewise.
14828         * modules/printf-posix-tests (Makefile.am): Likewise.
14829         * modules/select-tests (Makefile.am): Likewise.
14830         * modules/sigpipe-tests (Makefile.am): Likewise.
14831         * modules/tsearch-tests (Makefile.am): Likewise.
14832         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
14833         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
14834         * modules/uniname/uniname-tests (Makefile.am): Likewise.
14835         * modules/uniwidth/width-tests (Makefile.am): Likewise.
14836         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
14837         * modules/version-etc-tests (Makefile.am): Likewise.
14838         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
14839         * modules/vprintf-posix-tests (Makefile.am): Likewise.
14840         * modules/xalloc-die-tests (Makefile.am): Likewise.
14841         * modules/xprintf-posix-tests (Makefile.am): Likewise.
14842         * modules/xstrtoimax-tests (Makefile.am): Likewise.
14843         * modules/xstrtol-tests (Makefile.am): Likewise.
14844         * modules/xstrtoumax-tests (Makefile.am): Likewise.
14845         * modules/yesno-tests (Makefile.am): Likewise.
14846         Suggested by Jim Meyering.
14847
14848 2010-01-24  Bruno Haible  <bruno@clisp.org>
14849
14850         More documentation.
14851         * doc/gnulib.texi (Writing modules): New chapter.
14852         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
14853         the new chapter.
14854
14855 2010-01-24  Jim Meyering  <meyering@redhat.com>
14856
14857         maint.mk: do not prepend "./" after filtering
14858         * top/maint.mk (_prepend_srcdir_prefix): New variable
14859         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
14860         "./" when $(srcdir) is ".".
14861
14862         define STREQ(a,b) consistently, removing useless parentheses
14863         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
14864         since the only risk is that "a" or "b" contains an unparenthesized
14865         comma, but if either did that, STREQ would have 3 or more arguments.
14866         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
14867         * lib/fts.c (STREQ): Remove unnecessary parentheses.
14868         * lib/hash-triple.c (STREQ): Likewise.
14869         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
14870         * lib/getugroups.c (STREQ): Likewise.
14871
14872 2010-01-23  Jim Meyering  <meyering@redhat.com>
14873
14874         maint.mk: fix syntax-check in a non-srcdir build directory
14875         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
14876         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
14877
14878 2010-01-22  Jim Meyering  <meyering@redhat.com>
14879
14880         userspec: add unit tests
14881         * tests/test-userspec.c: New file.
14882         * modules/userspec-tests: Likewise.
14883
14884 2010-01-21  Jim Meyering  <meyering@redhat.com>
14885
14886         maint.mk: handle source file names containing "." robustly
14887         * top/maint.mk (_dot_escaped_srcdir): Define.
14888         (VC_LIST): Use it in LHS of sed substitution.
14889
14890 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
14891
14892         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
14893         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
14894         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
14895         from a non-srcdir build.
14896
14897 2010-01-20  Eric Blake  <ebb9@byu.net>
14898
14899         warn-on-use: use instead of link-warning
14900         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
14901         * modules/unistd (Depends-on, Makefile.am): Likewise.
14902         * modules/arpa_inet (Depends-on): Replace link-warning with
14903         warn-on-use.
14904         (Makefile.am): Update rules accordingly.
14905         * modules/ctype (Depends-on, Makefile.am): Likewise.
14906         * modules/dirent (Depends-on, Makefile.am): Likewise.
14907         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
14908         * modules/inttypes (Depends-on, Makefile.am): Likewise.
14909         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14910         * modules/locale (Depends-on, Makefile.am): Likewise.
14911         * modules/math (Depends-on, Makefile.am): Likewise.
14912         * modules/search (Depends-on, Makefile.am): Likewise.
14913         * modules/signal (Depends-on, Makefile.am): Likewise.
14914         * modules/spawn (Depends-on, Makefile.am): Likewise.
14915         * modules/stdlib (Depends-on, Makefile.am): Likewise.
14916         * modules/string (Depends-on, Makefile.am): Likewise.
14917         * modules/strings (Depends-on, Makefile.am): Likewise.
14918         * modules/sys_file (Depends-on, Makefile.am): Likewise.
14919         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
14920         * modules/sys_select (Depends-on, Makefile.am): Likewise.
14921         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
14922         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
14923         * modules/sys_times (Depends-on, Makefile.am): Likewise.
14924         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14925         * modules/wchar (Depends-on, Makefile.am): Likewise.
14926         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
14927         should be poisoned.
14928         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
14929         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
14930         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
14931         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14932         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14933         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14934         * m4/math_h.m4 (gl_MATH_H): Likewise.
14935         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14936         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14937         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14938         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14939         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14940         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14941         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14942         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
14943         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14944         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14945         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14947         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14948         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14949         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14950         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14951         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
14952         GL_LINK_WARNING.
14953         * lib/ctype.in.h: Likewise.
14954         * lib/dirent.in.h: Likewise.
14955         * lib/fcntl.in.h: Likewise.
14956         * lib/inttypes.in.h: Likewise.
14957         * lib/langinfo.in.h: Likewise.
14958         * lib/locale.in.h: Likewise.
14959         * lib/math.in.h: Likewise.
14960         * lib/search.in.h: Likewise.
14961         * lib/signal.in.h: Likewise.
14962         * lib/spawn.in.h: Likewise.
14963         * lib/stdio.in.h: Likewise.
14964         * lib/stdlib.in.h: Likewise.
14965         * lib/string.in.h: Likewise.
14966         * lib/strings.in.h: Likewise.
14967         * lib/sys_file.in.h: Likewise.
14968         * lib/sys_ioctl.in.h: Likewise.
14969         * lib/sys_select.in.h: Likewise.
14970         * lib/sys_socket.in.h: Likewise.
14971         * lib/sys_stat.in.h: Likewise.
14972         * lib/sys_times.in.h: Likewise.
14973         * lib/sys_utsname.in.h: Likewise.
14974         * lib/unistd.in.h: Likewise.
14975         * lib/wchar.in.h: Likewise.
14976
14977 2010-01-20  Bruno Haible  <bruno@clisp.org>
14978
14979         Avoid duplicate -lm.
14980         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
14981         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
14982         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
14983         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
14984         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
14985         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
14986         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
14987         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
14988         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
14989         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
14990         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
14991         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14992         Reported by Paolo Bonzini.
14993
14994 2010-01-19  Bruno Haible  <bruno@clisp.org>
14995
14996         langinfo, nl_langinfo: Relicense under LGPLv2+.
14997         * modules/langinfo (License): Change to LGPLv2+.
14998         * modules/nl_langinfo (License): Likewise.
14999         Patch by David Lutterkort <lutter@redhat.com>.
15000
15001 2010-01-19  Bruno Haible  <bruno@clisp.org>
15002
15003         Avoid compilation error with cc on OSF/1 5.1.
15004         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
15005         statement, not before.
15006         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15007
15008 2010-01-18  Bruno Haible  <bruno@clisp.org>
15009
15010         Avoid a link error due to the __printf__ symbol.
15011         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
15012         and 2.6.x.
15013         (__format__, __printf__): Remove definitions.
15014         * lib/argp-fmtstream.h: Likewise.
15015         * lib/argp.h: Likewise.
15016         * lib/error.h: Likewise.
15017         * lib/vasnprintf.h: Likewise.
15018         * lib/xprintf.h: Likewise.
15019         * lib/xvasprintf.h: Likewise.
15020         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15021
15022 2010-01-18  Bruno Haible  <bruno@clisp.org>
15023
15024         Tests for module 'tanl'.
15025         * modules/tanl-tests: New file.
15026         * tests/test-tanl.c: New file.
15027
15028         Tests for module 'sqrtl'.
15029         * modules/sqrtl-tests: New file.
15030         * tests/test-sqrtl.c: New file.
15031
15032         Tests for module 'sinl'.
15033         * modules/sinl-tests: New file.
15034         * tests/test-sinl.c: New file.
15035
15036         Tests for module 'logl'.
15037         * modules/logl-tests: New file.
15038         * tests/test-logl.c: New file.
15039
15040         Tests for module 'expl'.
15041         * modules/expl-tests: New file.
15042         * tests/test-expl.c: New file.
15043
15044         Tests for module 'cosl'.
15045         * modules/cosl-tests: New file.
15046         * tests/test-cosl.c: New file.
15047
15048         Tests for module 'atanl'.
15049         * modules/atanl-tests: New file.
15050         * tests/test-atanl.c: New file.
15051
15052         Tests for module 'asinl'.
15053         * modules/asinl-tests: New file.
15054         * tests/test-asinl.c: New file.
15055
15056         Tests for module 'acosl'.
15057         * modules/acosl-tests: New file.
15058         * tests/test-acosl.c: New file.
15059
15060         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15061         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
15062         tanl): Use the standard gnulib idiom.
15063         * lib/cosl.c: Don't include trigl.c and sincosl.c.
15064         * lib/sinl.c: Likewise.
15065         * lib/tanl.c: Don't include trigl.c.
15066         (kernel_tanl): Make static.
15067         * lib/sincosl.c: Include trigl.h first.
15068         * lib/trigl.c: Likewise.
15069         * m4/acosl.m4: New file.
15070         * m4/asinl.m4: New file.
15071         * m4/atanl.m4: New file.
15072         * m4/cosl.m4: New file.
15073         * m4/expl.m4: New file.
15074         * m4/logl.m4: New file.
15075         * m4/sinl.m4: New file.
15076         * m4/sqrtl.m4: New file.
15077         * m4/tanl.m4: New file.
15078         * m4/mathl.m4: Remove file.
15079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
15080         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15081         Don't initialize GNULIB_MATHL.
15082         * modules/acosl: New file.
15083         * modules/asinl: New file.
15084         * modules/atanl: New file.
15085         * modules/cosl: New file.
15086         * modules/expl: New file.
15087         * modules/logl: New file.
15088         * modules/sinl: New file.
15089         * modules/sqrtl: New file.
15090         * modules/tanl: New file.
15091         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
15092         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
15093         substitute GNULIB_MATHL.
15094         * modules/mathl: Rewritten.
15095         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
15096         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
15097         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
15098         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
15099         * doc/posix-functions/expl.texi: Mention the 'expl' module.
15100         * doc/posix-functions/logl.texi: Mention the 'logl' module.
15101         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
15102         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
15103         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
15104
15105 2010-01-18  Bruno Haible  <bruno@clisp.org>
15106
15107         sqrt: Make gl_FUNC_SQRT requirable.
15108         * m4/sqrt.m4: New file.
15109         * modules/sqrt (Files): Add it.
15110         (configure.ac): Invoke gl_FUNC_SQRT.
15111
15112 2010-01-18  Bruno Haible  <bruno@clisp.org>
15113
15114         New modules for common <math.h> functions.
15115         * m4/mathfunc.m4: New file.
15116         * modules/acos: New file.
15117         * modules/asin: New file.
15118         * modules/atan: New file.
15119         * modules/atan2: New file.
15120         * modules/cbrt: New file.
15121         * modules/copysign: New file.
15122         * modules/cos: New file.
15123         * modules/cosh: New file.
15124         * modules/erf: New file.
15125         * modules/erfc: New file.
15126         * modules/exp: New file.
15127         * modules/fabs: New file.
15128         * modules/fmod: New file.
15129         * modules/hypot: New file.
15130         * modules/j0: New file.
15131         * modules/j1: New file.
15132         * modules/jn: New file.
15133         * modules/ldexp: New file.
15134         * modules/lgamma: New file.
15135         * modules/log: New file.
15136         * modules/log10: New file.
15137         * modules/log1p: New file.
15138         * modules/logb: New file.
15139         * modules/modf: New file.
15140         * modules/nextafter: New file.
15141         * modules/pow: New file.
15142         * modules/remainder: New file.
15143         * modules/rint: New file.
15144         * modules/sin: New file.
15145         * modules/sinh: New file.
15146         * modules/sqrt: New file.
15147         * modules/tan: New file.
15148         * modules/tanh: New file.
15149         * modules/y0: New file.
15150         * modules/y1: New file.
15151         * modules/yn: New file.
15152         * doc/posix-functions/acos.texi: Mention the 'acos' module.
15153         * doc/posix-functions/asin.texi: Mention the 'asin' module.
15154         * doc/posix-functions/atan.texi: Mention the 'atan' module.
15155         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
15156         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
15157         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
15158         * doc/posix-functions/cos.texi: Mention the 'cos' module.
15159         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
15160         * doc/posix-functions/erf.texi: Mention the 'erf' module.
15161         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
15162         * doc/posix-functions/exp.texi: Mention the 'exp' module.
15163         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
15164         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
15165         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
15166         * doc/posix-functions/j0.texi: Mention the 'j0' module.
15167         * doc/posix-functions/j1.texi: Mention the 'j1' module.
15168         * doc/posix-functions/jn.texi: Mention the 'jn' module.
15169         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
15170         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
15171         * doc/posix-functions/log.texi: Mention the 'log' module.
15172         * doc/posix-functions/log10.texi: Mention the 'log10' module.
15173         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
15174         * doc/posix-functions/logb.texi: Mention the 'logb' module.
15175         * doc/posix-functions/modf.texi: Mention the 'modf' module.
15176         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
15177         * doc/posix-functions/pow.texi: Mention the 'pow' module.
15178         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
15179         * doc/posix-functions/rint.texi: Mention the 'rint' module.
15180         * doc/posix-functions/sin.texi: Mention the 'sin' module.
15181         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
15182         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
15183         * doc/posix-functions/tan.texi: Mention the 'tan' module.
15184         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
15185         * doc/posix-functions/y0.texi: Mention the 'y0' module.
15186         * doc/posix-functions/y1.texi: Mention the 'y1' module.
15187         * doc/posix-functions/yn.texi: Mention the 'yn' module.
15188
15189 2010-01-18  Jim Meyering  <meyering@redhat.com>
15190
15191         ignore-value: relax license to LGPLv2+
15192         * modules/ignore-value (License): Relax to LGPLv2+.
15193
15194         getdate: don't leak when TZ contains two or more '"'s
15195         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
15196         double quote in TZ after the first one.
15197
15198         readtokens: do not leak internal token_lengths buffer
15199         * lib/readtokens.c (readtokens): Free the local, lengths,
15200         when the supplied "token_lengths" parameter is NULL.
15201
15202 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15203
15204         Fix a couple of missing LIBTHREAD link failures on AIX.
15205         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
15206         $(LIBTHREAD).
15207         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
15208
15209         Link test-poll against INET_PTON_LIB.
15210         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
15211         for inet_pton on Solaris 10.
15212
15213 2010-01-17  Bruno Haible  <bruno@clisp.org>
15214
15215         unistdio/*-sprintf: Fix typo in module description.
15216         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
15217         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
15218         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
15219         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
15220         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
15221         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
15222         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
15223         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15224
15225 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15226
15227         gnulib-tool: fix filelist for AIX, HP-UX ksh.
15228         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
15229         variables in shell case patterns, for AIX and HP-UX ksh.
15230
15231         Split large sed scripts, for HP-UX sed.
15232         * modules/stdio: Split sed scripts around 50 sed commands,
15233         to avoid HP-UX limit of 99 commands, in the near future.
15234         * modules/string: Likewise.
15235         * modules/unistd: Likewise.
15236
15237         gnulib-tool: avoid writing in the current directory.
15238         * gnulib-tool (func_emit_lib_Makefile_am)
15239         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
15240         not in the current directory, so concurrent gnulib-tool
15241         instances do not interfere.
15242
15243 2010-01-16  Jim Meyering  <meyering@redhat.com>
15244
15245         doc: update users.txt
15246         * users.txt: Add grep.
15247         (diffutils, gzip): Update URLs.
15248
15249 2010-01-12  Bruno Haible  <bruno@clisp.org>
15250
15251         posix_spawn: Avoid test failure on Cygwin.
15252         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
15253         characters.
15254         Reported by Simon Josefsson.
15255
15256 2010-01-12  Bruno Haible  <bruno@clisp.org>
15257
15258         * tests/test-cond.c (main): When skipping the test, show the reason.
15259
15260 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15261
15262         * lib/striconv.c (str_cd_iconv): Avoid if before free.
15263
15264 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15265
15266         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
15267         VC_LIST_ALWAYS_EXCLUDE_REGEX.
15268
15269 2010-01-12  Eric Blake  <ebb9@byu.net>
15270
15271         build: guarantee AS_VAR_IF
15272         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
15273         (gl_AS_VAR_IF): Move...
15274         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
15275         Reported by Simon Josefsson.
15276
15277 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15278
15279         * lib/stdio.in.h: Fix typo.
15280
15281 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15282
15283         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
15284         libgpg-error.
15285
15286 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15287
15288         * tests/test-xalloc-die.sh: Use $EXEEXT.
15289
15290 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15291             Bruno Haible  <bruno@clisp.org>
15292
15293         getlogin, getlogin_r: Avoid test failure.
15294         * tests/test-getlogin.c: Include <stdio.h>.
15295         (main): Skip the test when the function fails because stdin is not a
15296         tty.
15297         * tests/test-getlogin_r.c: Include <stdio.h>.
15298         (main): Skip the test when the function fails because stdin is not a
15299         tty.
15300
15301 2010-01-11  Eric Blake  <ebb9@byu.net>
15302
15303         tests: avoid more large file warnings
15304         * tests/test-fflush.c: Avoid warning about ftell use.
15305         * tests/test-fseek.c: Avoid warning about fseek use.
15306
15307 2010-01-10  Bruno Haible  <bruno@clisp.org>
15308
15309         nproc: Work better on Linux when /proc and /sys are not mounted.
15310         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
15311         as lower bound when, on glibc/Linux systems,
15312         sysconf (_SC_NPROCESSORS_CONF) returns 1.
15313         Suggested by Pádraig Brady <P@draigbrady.com>.
15314         Reported by Dmitry V. Levin <ldv@altlinux.org>.
15315
15316         nproc: Refactor.
15317         * lib/nproc.c (num_processors_via_affinity_mask): New function,
15318         extracted from num_processors.
15319         (num_processors): Call it.
15320
15321 2010-01-11  Jim Meyering  <meyering@redhat.com>
15322
15323         utimecmp: avoid new warning from upcoming gcc-4.5.0
15324         * lib/utimecmp.c (BILLION): Define using #define rather than an
15325         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
15326
15327 2010-01-11  Eric Blake  <ebb9@byu.net>
15328
15329         math: add portability warnings for classification macros
15330         * modules/math (Depends-on): Add warn-on-use.
15331         (Makefile.am): Provide new substitutions.
15332         * m4/math_h.m4 (gl_MATH_H): Require inline.
15333         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
15334         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
15335         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
15336         implement warnings.
15337
15338         unistd: warn on use of environ without module
15339         * modules/unistd (Depends-on): Add warn-on-use.
15340         (Makefile.am): Provide new substitutions.
15341         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
15342         * lib/unistd.in.h (environ): Wrap with a warning helper function.
15343
15344         stdio: warn on suspicious uses
15345         * modules/stdio (Depends-on): Add warn-on-use.
15346         (Makefile.am): Provide new substitutions.
15347         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
15348         fseeko.
15349         * lib/stdio.in.h (gets): Always warn on use.
15350         (fseek, ftell): Adjust when warnings are issued, and honor
15351         _GL_NO_LARGE_FILES as a way to silence the warning.
15352         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
15353         any warning about large file offsets.
15354         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
15355         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
15356         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
15357         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
15358         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
15359         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
15360         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
15361         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
15362
15363         warn-on-use: new module
15364         * modules/warn-on-use: New file.
15365         * build-aux/warn-on-use.h: Likewise.
15366         * m4/warn-on-use.m4: Likewise.
15367         * MODULES.html.sh (Support for building): Mention it.
15368
15369 2010-01-10  Bruno Haible  <bruno@clisp.org>
15370
15371         Tests for module 'unistr/u32-strdup'.
15372         * modules/unistr/u32-strdup-tests: New file.
15373         * tests/unistr/test-u32-strdup.c: New file.
15374
15375         Tests for module 'unistr/u16-strdup'.
15376         * modules/unistr/u16-strdup-tests: New file.
15377         * tests/unistr/test-u16-strdup.c: New file.
15378
15379         Tests for module 'unistr/u8-strdup'.
15380         * modules/unistr/u8-strdup-tests: New file.
15381         * tests/unistr/test-u8-strdup.c: New file.
15382         * tests/unistr/test-strdup.h: New file.
15383
15384         Tests for module 'unistr/u32-strncmp'.
15385         * modules/unistr/u32-strncmp-tests: New file.
15386         * tests/unistr/test-u32-strncmp.c: New file.
15387
15388         Tests for module 'unistr/u16-strncmp'.
15389         * modules/unistr/u16-strncmp-tests: New file.
15390         * tests/unistr/test-u16-strncmp.c: New file.
15391
15392         Tests for module 'unistr/u8-strncmp'.
15393         * modules/unistr/u8-strncmp-tests: New file.
15394         * tests/unistr/test-u8-strncmp.c: New file.
15395         * tests/unistr/test-strncmp.h: New file.
15396
15397         Tests for module 'unistr/u32-strcoll'.
15398         * modules/unistr/u32-strcoll-tests: New file.
15399         * tests/unistr/test-u32-strcoll.c: New file.
15400
15401         Tests for module 'unistr/u16-strcoll'.
15402         * modules/unistr/u16-strcoll-tests: New file.
15403         * tests/unistr/test-u16-strcoll.c: New file.
15404
15405         Tests for module 'unistr/u8-strcoll'.
15406         * modules/unistr/u8-strcoll-tests: New file.
15407         * tests/unistr/test-u8-strcoll.c: New file.
15408
15409         Tests for module 'unistr/u32-strcmp'.
15410         * modules/unistr/u32-strcmp-tests: New file.
15411         * tests/unistr/test-u32-strcmp.c: New file.
15412         * tests/unistr/test-u32-strcmp.h: New file.
15413
15414         Tests for module 'unistr/u16-strcmp'.
15415         * modules/unistr/u16-strcmp-tests: New file.
15416         * tests/unistr/test-u16-strcmp.c: New file.
15417         * tests/unistr/test-u16-strcmp.h: New file.
15418
15419         Tests for module 'unistr/u8-strcmp'.
15420         * modules/unistr/u8-strcmp-tests: New file.
15421         * tests/unistr/test-u8-strcmp.c: New file.
15422         * tests/unistr/test-u8-strcmp.h: New file.
15423         * tests/unistr/test-strcmp.h: New file.
15424
15425         Tests for module 'unistr/u32-strncat'.
15426         * modules/unistr/u32-strncat-tests: New file.
15427         * tests/unistr/test-u32-strncat.c: New file.
15428
15429         Tests for module 'unistr/u16-strncat'.
15430         * modules/unistr/u16-strncat-tests: New file.
15431         * tests/unistr/test-u16-strncat.c: New file.
15432
15433         Tests for module 'unistr/u8-strncat'.
15434         * modules/unistr/u8-strncat-tests: New file.
15435         * tests/unistr/test-u8-strncat.c: New file.
15436         * tests/unistr/test-strncat.h: New file.
15437
15438         Tests for module 'unistr/u32-strcat'.
15439         * modules/unistr/u32-strcat-tests: New file.
15440         * tests/unistr/test-u32-strcat.c: New file.
15441
15442         Tests for module 'unistr/u16-strcat'.
15443         * modules/unistr/u16-strcat-tests: New file.
15444         * tests/unistr/test-u16-strcat.c: New file.
15445
15446         Tests for module 'unistr/u8-strcat'.
15447         * modules/unistr/u8-strcat-tests: New file.
15448         * tests/unistr/test-u8-strcat.c: New file.
15449         * tests/unistr/test-strcat.h: New file.
15450
15451         Tests for module 'unistr/u32-stpncpy'.
15452         * modules/unistr/u32-stpncpy-tests: New file.
15453         * tests/unistr/test-u32-stpncpy.c: New file.
15454
15455         Tests for module 'unistr/u16-stpncpy'.
15456         * modules/unistr/u16-stpncpy-tests: New file.
15457         * tests/unistr/test-u16-stpncpy.c: New file.
15458
15459         Tests for module 'unistr/u8-stpncpy'.
15460         * modules/unistr/u8-stpncpy-tests: New file.
15461         * tests/unistr/test-u8-stpncpy.c: New file.
15462         * tests/unistr/test-stpncpy.h: New file.
15463
15464         Tests for module 'unistr/u32-strncpy'.
15465         * modules/unistr/u32-strncpy-tests: New file.
15466         * tests/unistr/test-u32-strncpy.c: New file.
15467
15468         Tests for module 'unistr/u16-strncpy'.
15469         * modules/unistr/u16-strncpy-tests: New file.
15470         * tests/unistr/test-u16-strncpy.c: New file.
15471
15472         Tests for module 'unistr/u8-strncpy'.
15473         * modules/unistr/u8-strncpy-tests: New file.
15474         * tests/unistr/test-u8-strncpy.c: New file.
15475         * tests/unistr/test-strncpy.h: New file.
15476
15477         Tests for module 'unistr/u32-stpcpy'.
15478         * modules/unistr/u32-stpcpy-tests: New file.
15479         * tests/unistr/test-u32-stpcpy.c: New file.
15480
15481         Tests for module 'unistr/u16-stpcpy'.
15482         * modules/unistr/u16-stpcpy-tests: New file.
15483         * tests/unistr/test-u16-stpcpy.c: New file.
15484
15485         Tests for module 'unistr/u8-stpcpy'.
15486         * modules/unistr/u8-stpcpy-tests: New file.
15487         * tests/unistr/test-u8-stpcpy.c: New file.
15488         * tests/unistr/test-stpcpy.h: New file.
15489
15490         Tests for module 'unistr/u32-strcpy'.
15491         * modules/unistr/u32-strcpy-tests: New file.
15492         * tests/unistr/test-u32-strcpy.c: New file.
15493
15494         Tests for module 'unistr/u16-strcpy'.
15495         * modules/unistr/u16-strcpy-tests: New file.
15496         * tests/unistr/test-u16-strcpy.c: New file.
15497
15498         Tests for module 'unistr/u8-strcpy'.
15499         * modules/unistr/u8-strcpy-tests: New file.
15500         * tests/unistr/test-u8-strcpy.c: New file.
15501         * tests/unistr/test-strcpy.h: New file.
15502
15503         Tests for module 'unistr/u32-strnlen'.
15504         * modules/unistr/u32-strnlen-tests: New file.
15505         * tests/unistr/test-u32-strnlen.c: New file.
15506
15507         Tests for module 'unistr/u16-strnlen'.
15508         * modules/unistr/u16-strnlen-tests: New file.
15509         * tests/unistr/test-u16-strnlen.c: New file.
15510
15511         Tests for module 'unistr/u8-strnlen'.
15512         * modules/unistr/u8-strnlen-tests: New file.
15513         * tests/unistr/test-u8-strnlen.c: New file.
15514         * tests/unistr/test-strnlen.h: New file.
15515
15516         Tests for module 'unistr/u32-strlen'.
15517         * modules/unistr/u32-strlen-tests: New file.
15518         * tests/unistr/test-u32-strlen.c: New file.
15519
15520         Tests for module 'unistr/u16-strlen'.
15521         * modules/unistr/u16-strlen-tests: New file.
15522         * tests/unistr/test-u16-strlen.c: New file.
15523
15524         Tests for module 'unistr/u8-strlen'.
15525         * modules/unistr/u8-strlen-tests: New file.
15526         * tests/unistr/test-u8-strlen.c: New file.
15527
15528         Tests for module 'unistr/u32-prev'.
15529         * modules/unistr/u32-prev-tests: New file.
15530         * tests/unistr/test-u32-prev.c: New file.
15531
15532         Tests for module 'unistr/u16-prev'.
15533         * modules/unistr/u16-prev-tests: New file.
15534         * tests/unistr/test-u16-prev.c: New file.
15535
15536         Tests for module 'unistr/u8-prev'.
15537         * modules/unistr/u8-prev-tests: New file.
15538         * tests/unistr/test-u8-prev.c: New file.
15539
15540         Tests for module 'unistr/u32-next'.
15541         * modules/unistr/u32-next-tests: New file.
15542         * tests/unistr/test-u32-next.c: New file.
15543
15544         Tests for module 'unistr/u16-next'.
15545         * modules/unistr/u16-next-tests: New file.
15546         * tests/unistr/test-u16-next.c: New file.
15547
15548         Tests for module 'unistr/u8-next'.
15549         * modules/unistr/u8-next-tests: New file.
15550         * tests/unistr/test-u8-next.c: New file.
15551
15552         Tests for module 'unistr/u32-strmbtouc'.
15553         * modules/unistr/u32-strmbtouc-tests: New file.
15554         * tests/unistr/test-u32-strmbtouc.c: New file.
15555
15556         Tests for module 'unistr/u16-strmbtouc'.
15557         * modules/unistr/u16-strmbtouc-tests: New file.
15558         * tests/unistr/test-u16-strmbtouc.c: New file.
15559
15560         Tests for module 'unistr/u8-strmbtouc'.
15561         * modules/unistr/u8-strmbtouc-tests: New file.
15562         * tests/unistr/test-u8-strmbtouc.c: New file.
15563
15564         Tests for module 'unistr/u32-strmblen'.
15565         * modules/unistr/u32-strmblen-tests: New file.
15566         * tests/unistr/test-u32-strmblen.c: New file.
15567
15568         Tests for module 'unistr/u16-strmblen'.
15569         * modules/unistr/u16-strmblen-tests: New file.
15570         * tests/unistr/test-u16-strmblen.c: New file.
15571
15572         Tests for module 'unistr/u8-strmblen'.
15573         * modules/unistr/u8-strmblen-tests: New file.
15574         * tests/unistr/test-u8-strmblen.c: New file.
15575
15576         Tests for module 'unistr/u32-cpy-alloc'.
15577         * modules/unistr/u32-cpy-alloc-tests: New file.
15578         * tests/unistr/test-u32-cpy-alloc.c: New file.
15579
15580         Tests for module 'unistr/u16-cpy-alloc'.
15581         * modules/unistr/u16-cpy-alloc-tests: New file.
15582         * tests/unistr/test-u16-cpy-alloc.c: New file.
15583
15584         Tests for module 'unistr/u8-cpy-alloc'.
15585         * modules/unistr/u8-cpy-alloc-tests: New file.
15586         * tests/unistr/test-u8-cpy-alloc.c: New file.
15587         * tests/unistr/test-cpy-alloc.h: New file.
15588
15589         Tests for module 'unistr/u32-mbsnlen'.
15590         * modules/unistr/u32-mbsnlen-tests: New file.
15591         * tests/unistr/test-u32-mbsnlen.c: New file.
15592
15593         Tests for module 'unistr/u16-mbsnlen'.
15594         * modules/unistr/u16-mbsnlen-tests: New file.
15595         * tests/unistr/test-u16-mbsnlen.c: New file.
15596
15597         Tests for module 'unistr/u8-mbsnlen'.
15598         * modules/unistr/u8-mbsnlen-tests: New file.
15599         * tests/unistr/test-u8-mbsnlen.c: New file.
15600
15601         Tests for module 'unistr/u32-chr'.
15602         * modules/unistr/u32-chr-tests: New file.
15603         * tests/unistr/test-u32-chr.c: New file.
15604
15605         Tests for module 'unistr/u16-chr'.
15606         * modules/unistr/u16-chr-tests: New file.
15607         * tests/unistr/test-u16-chr.c: New file.
15608
15609         Tests for module 'unistr/u8-chr'.
15610         * modules/unistr/u8-chr-tests: New file.
15611         * tests/unistr/test-u8-chr.c: New file.
15612         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
15613
15614         Tests for module 'unistr/u32-cmp2'.
15615         * modules/unistr/u32-cmp2-tests: New file.
15616         * tests/unistr/test-u32-cmp2.c: New file.
15617
15618         Tests for module 'unistr/u16-cmp2'.
15619         * modules/unistr/u16-cmp2-tests: New file.
15620         * tests/unistr/test-u16-cmp2.c: New file.
15621
15622         Tests for module 'unistr/u8-cmp2'.
15623         * modules/unistr/u8-cmp2-tests: New file.
15624         * tests/unistr/test-u8-cmp2.c: New file.
15625         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
15626
15627         Tests for module 'unistr/u32-cmp'.
15628         * modules/unistr/u32-cmp-tests: New file.
15629         * tests/unistr/test-u32-cmp.c: New file.
15630
15631         Tests for module 'unistr/u16-cmp'.
15632         * modules/unistr/u16-cmp-tests: New file.
15633         * tests/unistr/test-u16-cmp.c: New file.
15634
15635         Tests for module 'unistr/u8-cmp'.
15636         * modules/unistr/u8-cmp-tests: New file.
15637         * tests/unistr/test-u8-cmp.c: New file.
15638         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
15639
15640         Tests for module 'unistr/u32-set'.
15641         * modules/unistr/u32-set-tests: New file.
15642         * tests/unistr/test-u32-set.c: New file.
15643
15644         Tests for module 'unistr/u16-set'.
15645         * modules/unistr/u16-set-tests: New file.
15646         * tests/unistr/test-u16-set.c: New file.
15647
15648         Tests for module 'unistr/u8-set'.
15649         * modules/unistr/u8-set-tests: New file.
15650         * tests/unistr/test-u8-set.c: New file.
15651         * tests/unistr/test-set.h: New file.
15652
15653         Tests for module 'unistr/u32-move'.
15654         * modules/unistr/u32-move-tests: New file.
15655         * tests/unistr/test-u32-move.c: New file.
15656
15657         Tests for module 'unistr/u16-move'.
15658         * modules/unistr/u16-move-tests: New file.
15659         * tests/unistr/test-u16-move.c: New file.
15660
15661         Tests for module 'unistr/u8-move'.
15662         * modules/unistr/u8-move-tests: New file.
15663         * tests/unistr/test-u8-move.c: New file.
15664         * tests/unistr/test-move.h: New file.
15665
15666         Tests for module 'unistr/u32-cpy'.
15667         * modules/unistr/u32-cpy-tests: New file.
15668         * tests/unistr/test-u32-cpy.c: New file.
15669
15670         Tests for module 'unistr/u16-cpy'.
15671         * modules/unistr/u16-cpy-tests: New file.
15672         * tests/unistr/test-u16-cpy.c: New file.
15673
15674         Tests for module 'unistr/u8-cpy'.
15675         * modules/unistr/u8-cpy-tests: New file.
15676         * tests/unistr/test-u8-cpy.c: New file.
15677         * tests/unistr/test-cpy.h: New file.
15678
15679 2010-01-09  Bruno Haible  <bruno@clisp.org>
15680
15681         Tests for module 'unistr/u32-uctomb'.
15682         * modules/unistr/u32-uctomb-tests: New file.
15683         * tests/unistr/test-u32-uctomb.c: New file.
15684
15685         Tests for module 'unistr/u16-uctomb'.
15686         * modules/unistr/u16-uctomb-tests: New file.
15687         * tests/unistr/test-u16-uctomb.c: New file.
15688
15689         Tests for module 'unistr/u8-uctomb'.
15690         * modules/unistr/u8-uctomb-tests: New file.
15691         * tests/unistr/test-u8-uctomb.c: New file.
15692
15693         Tests for module 'unistr/u32-mbtoucr'.
15694         * modules/unistr/u32-mbtoucr-tests: New file.
15695         * tests/unistr/test-u32-mbtoucr.c: New file.
15696
15697         Tests for module 'unistr/u16-mbtoucr'.
15698         * modules/unistr/u16-mbtoucr-tests: New file.
15699         * tests/unistr/test-u16-mbtoucr.c: New file.
15700
15701         Tests for module 'unistr/u8-mbtoucr'.
15702         * modules/unistr/u8-mbtoucr-tests: New file.
15703         * tests/unistr/test-u8-mbtoucr.c: New file.
15704
15705         Tests for module 'unistr/u32-mbtouc'.
15706         * modules/unistr/u32-mbtouc-tests: New file.
15707         * tests/unistr/test-u32-mbtouc.c: New file.
15708
15709         Tests for module 'unistr/u16-mbtouc'.
15710         * modules/unistr/u16-mbtouc-tests: New file.
15711         * tests/unistr/test-u16-mbtouc.c: New file.
15712
15713         Tests for module 'unistr/u8-mbtouc'.
15714         * modules/unistr/u8-mbtouc-tests: New file.
15715         * tests/unistr/test-u8-mbtouc.c: New file.
15716
15717         Tests for module 'unistr/u32-mbtouc-unsafe'.
15718         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
15719         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
15720         * tests/unistr/test-u32-mbtouc.h: New file.
15721
15722         Tests for module 'unistr/u16-mbtouc-unsafe'.
15723         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
15724         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
15725         * tests/unistr/test-u16-mbtouc.h: New file.
15726
15727         Tests for module 'unistr/u8-mbtouc-unsafe'.
15728         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
15729         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
15730         * tests/unistr/test-u8-mbtouc.h: New file.
15731
15732         Tests for module 'unistr/u32-mblen'.
15733         * modules/unistr/u32-mblen-tests: New file.
15734         * tests/unistr/test-u32-mblen.c: New file.
15735
15736         Tests for module 'unistr/u16-mblen'.
15737         * modules/unistr/u16-mblen-tests: New file.
15738         * tests/unistr/test-u16-mblen.c: New file.
15739
15740         Tests for module 'unistr/u8-mblen'.
15741         * modules/unistr/u8-mblen-tests: New file.
15742         * tests/unistr/test-u8-mblen.c: New file.
15743
15744         Tests for module 'unistr/u32-to-u16'.
15745         * modules/unistr/u32-to-u16-tests: New file.
15746         * tests/unistr/test-u32-to-u16.c: New file.
15747
15748         Tests for module 'unistr/u32-to-u8'.
15749         * modules/unistr/u32-to-u8-tests: New file.
15750         * tests/unistr/test-u32-to-u8.c: New file.
15751
15752         Tests for module 'unistr/u16-to-u32'.
15753         * modules/unistr/u16-to-u32-tests: New file.
15754         * tests/unistr/test-u16-to-u32.c: New file.
15755
15756         Tests for module 'unistr/u16-to-u8'.
15757         * modules/unistr/u16-to-u8-tests: New file.
15758         * tests/unistr/test-u16-to-u8.c: New file.
15759
15760         Tests for module 'unistr/u8-to-u32'.
15761         * modules/unistr/u8-to-u32-tests: New file.
15762         * tests/unistr/test-u8-to-u32.c: New file.
15763
15764         Tests for module 'unistr/u8-to-u16'.
15765         * modules/unistr/u8-to-u16-tests: New file.
15766         * tests/unistr/test-u8-to-u16.c: New file.
15767
15768         Tests for module 'unistr/u32-check'.
15769         * modules/unistr/u32-check-tests: New file.
15770         * tests/unistr/test-u32-check.c: New file.
15771
15772         Tests for module 'unistr/u16-check'.
15773         * modules/unistr/u16-check-tests: New file.
15774         * tests/unistr/test-u16-check.c: New file.
15775
15776         Tests for module 'unistr/u8-check'.
15777         * modules/unistr/u8-check-tests: New file.
15778         * tests/unistr/test-u8-check.c: New file.
15779
15780         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
15781         (category_equals): New function.
15782         (main): Add more tests.
15783         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
15784
15785         * tests/unictype/test-bidi_byname.c (main): Add more tests.
15786
15787 2010-01-10  Bruno Haible  <bruno@clisp.org>
15788
15789         unistr/u*-strcoll: Try harder to distinguish different strings.
15790         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
15791         compare s1 and s2 to see if they are different.
15792
15793 2010-01-10  Bruno Haible  <bruno@clisp.org>
15794
15795         unistr/u*-stpncpy: Fix the return value.
15796         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
15797         description of the return value consistent with stpncpy in glibc.
15798         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
15799         written non-NUL unit.
15800
15801 2010-01-10  Bruno Haible  <bruno@clisp.org>
15802
15803         unistr/u*-next: Add missing dependencies.
15804         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
15805         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
15806         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
15807
15808 2010-01-10  Bruno Haible  <bruno@clisp.org>
15809
15810         unistr/u8-mbsnlen: Fix return value for incomplete character.
15811         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
15812         u8_mblen.
15813         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
15814         Remove unistr/u8-mblen.
15815         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
15816         u16_mblen.
15817         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
15818         Remove unistr/u16-mblen.
15819
15820 2010-01-10  Bruno Haible  <bruno@clisp.org>
15821
15822         wchar: Fix compilation error when <wchar.h> is used from coreutils.
15823         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
15824         Reported by Brian Gough <bjg@gnu.org> and
15825         Chris Clayton <chris2553@googlemail.com> via
15826         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
15827
15828 2010-01-09  Bruno Haible  <bruno@clisp.org>
15829
15830         unistr/u16-to-u32: Reject invalid input.
15831         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
15832         u16_mbtouc.
15833         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
15834         Remove unistr/u16-mbtouc.
15835
15836         unistr/u16-to-u8: Reject invalid input.
15837         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
15838         u16_mbtouc.
15839         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
15840         Remove unistr/u16-mbtouc.
15841
15842         unistr/u8-to-u32: Reject invalid input.
15843         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
15844         u8_mbtouc.
15845         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
15846         Remove unistr/u8-mbtouc.
15847
15848         unistr/u8-to-u16: Reject invalid input.
15849         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
15850         u8_mbtouc.
15851         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
15852         Remove unistr/u8-mbtouc.
15853
15854 2010-01-09  Bruno Haible  <bruno@clisp.org>
15855
15856         Tests for module 'getlogin'.
15857         * modules/getlogin-tests: New file.
15858         * tests/test-getlogin.c: New file.
15859
15860         New module 'getlogin'.
15861         * lib/unistd.in.h (getlogin): New declaration.
15862         * lib/getlogin.c: New file.
15863         * m4/getlogin.m4: New file.
15864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
15865         HAVE_GETLOGIN.
15866         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
15867         HAVE_GETLOGIN.
15868         * modules/getlogin: New file.
15869         * doc/posix-functions/getlogin.texi: Mention the new module.
15870         Reported by John W. Eaton <jwe@gnu.org>.
15871
15872 2010-01-09  Bruno Haible  <bruno@clisp.org>
15873
15874         getlogin_r: Support for native Windows.
15875         * lib/getlogin_r.c: Include <windows.h>
15876         (getlogin_r): Implement for native Windows.
15877         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
15878         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
15879         via John W. Eaton <jwe@gnu.org>.
15880
15881 2010-01-09  Bruno Haible  <bruno@clisp.org>
15882
15883         getlogin_r: Small fixes.
15884         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
15885         succeeds.
15886         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
15887         before testing whether getlogin_r is declared. No need to set
15888         HAVE_DECL_GETLOGIN_R to 1.
15889         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
15890
15891 2010-01-09  Bruno Haible  <bruno@clisp.org>
15892
15893         * lib/unistd.in.h (getlogin_r): Add comment.
15894
15895 2010-01-09  Bruno Haible  <bruno@clisp.org>
15896
15897         Tests for module 'getlogin_r'.
15898         * modules/getlogin_r-tests: New file.
15899         * tests/test-getlogin_r.c: New file.
15900
15901 2010-01-09  Jim Meyering  <meyering@redhat.com>
15902
15903         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
15904         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
15905         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
15906
15907 2010-01-08  Simon Josefsson  <simon@josefsson.org>
15908
15909         * lib/dup2.c (rpl_dup2): Improve comment.
15910
15911 2010-01-08  Eric Blake  <ebb9@byu.net>
15912
15913         maint.mk: allow packages to add makefile @@ exceptions
15914         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
15915         (sc_makefile_check): Rename...
15916         (sc_makefile_at_at_check): ...to this, and use hook.
15917
15918         dup2: work around mingw bug
15919         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
15920         Reported by Simon Josefsson.
15921
15922 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
15923
15924         glob: Fix C++ compilation.
15925         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
15926         C++.
15927
15928 2010-01-07  Bruno Haible  <bruno@clisp.org>
15929
15930         Fix indentation of wctype.in.h, broken since 2007-01-06.
15931         * lib/wctype.in.h: Fix indentation of preprocessor directives.
15932
15933 2010-01-07  Bruno Haible  <bruno@clisp.org>
15934
15935         mbslen: Avoid collision with system function.
15936         * lib/string.in.h [MirBSD]: Include <wchar.h>.
15937         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
15938         * m4/mbslen.m4: New file.
15939         * modules/mbslen (Files): Add it.
15940         (configure.ac): Invoke gl_MBSLEN.
15941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
15942         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
15943         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
15944         via Ian Beckwith <ianb@erislabs.net>.
15945
15946 2010-01-07  Bruno Haible  <bruno@clisp.org>
15947
15948         dirent: Document the last fix.
15949         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
15950
15951 2010-01-07  Bruno Haible  <bruno@clisp.org>
15952
15953         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
15954         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
15955         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
15956         va_list are defined.
15957         * doc/posix-headers/stdio.texi: Document the bug of missing types.
15958         Reported by Eric Blake.
15959
15960 2010-01-07  Bruno Haible  <bruno@clisp.org>
15961
15962         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
15963         * modules/xlist (Depends-on): Add 'list',
15964         * modules/xoset (Depends-on): Add 'oset'.
15965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15966
15967 2010-01-07  Bruno Haible  <bruno@clisp.org>
15968
15969         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
15970         * doc/posix-functions/strncasecmp.texi: Likewise.
15971
15972 2010-01-07  Bruno Haible  <bruno@clisp.org>
15973
15974         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
15975
15976 2010-01-07  John W. Eaton  <jwe@octave.org>
15977
15978         wctype: allow C++ use
15979         * lib/wctype.in.h: Add extern "C" block for C++.
15980
15981 2010-01-06  Eric Blake  <ebb9@byu.net>
15982
15983         maint.mk: detect incorrect GFDL usage
15984         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
15985
15986 2010-01-06  Jim Meyering  <meyering@redhat.com>
15987         and Eric Blake  <ebb9@byu.net>
15988
15989         maint.mk: ignore multi-line copyright in NEWS
15990         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
15991
15992 2010-01-06  Eric Blake  <ebb9@byu.net>
15993
15994         select: add missing dependency
15995         * modules/select-tests (Depends-on): Move sockets dependency...
15996         * modules/select (Depends-on): ...here.
15997         Reported by Ian Beckwith.
15998
15999         doc: regenerate INSTALL
16000         * doc/INSTALL: Reflect recent autoconf update.
16001         * doc/INSTALL.ISO: Likewise.
16002         * doc/INSTALL.UTF-8: Likewise.
16003
16004         pread: fix compilation on glibc
16005         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
16006         Reported by Ralf Wildenhues.
16007
16008         dirent: fix test failure
16009         * lib/dirent.in.h (includes): Guarantee ino_t.
16010         Reported by Ralf Wildenhues.
16011
16012 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
16013
16014         linkat, renameat: avoid bad free
16015         * lib/at-func2.c (at_func2): Fix typo.
16016         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
16017
16018 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16019
16020         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
16021         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
16022         to avoid failure of symlink test later.
16023
16024 2010-01-06  Eric Blake  <ebb9@byu.net>
16025
16026         stdio, unistd: guarantee ssize_t
16027         * lib/unistd.in.h (includes): Ensure that types required by POSIX
16028         2008 are exposed when needed.
16029         * lib/stdio.in.h (includes): Likewise.
16030         Reported by Ralf Wildenhues.
16031
16032 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
16033
16034         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
16035         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
16036         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
16037
16038 2010-01-06  Jim Meyering  <meyering@redhat.com>
16039
16040         readtokens: this module *does* require xalloc.h
16041         It uses only functions that were omitted by the old syntax-check rule.
16042         * lib/readtokens.c: Include "xalloc.h" once again.
16043         * modules/readtokens (Depends-on): Add xalloc.
16044         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
16045
16046 2010-01-05  Eric Blake  <ebb9@byu.net>
16047
16048         maint: support 'make announcement' from a VPATH build
16049         * top/maint.mk (announcement): Look for correct NEWS file.
16050
16051 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
16052
16053         utimens (fdutimens): ignore a negative FD, per contract
16054         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
16055         when we have a valid file descriptor.  Otherwise, using a brand
16056         new glibc (with just-patched futimens that now fails with EBADF)
16057         would cause this function to fail with ENOSYS.
16058         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
16059         See also http://bugzilla.redhat.com/552320.
16060
16061 2010-01-05  Eric Blake  <ebb9@byu.net>
16062
16063         strcase: document what it provides
16064         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
16065         gnulib module.
16066         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
16067         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
16068
16069 2010-01-05  Jim Meyering  <meyering@redhat.com>
16070
16071         maint: remove useless inclusions of "xalloc.h"
16072         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
16073         * lib/readtokens.c: Likewise.
16074         * lib/same.c: Likewise.
16075         * modules/getloadavg (Depends-on): Remove xalloc.
16076         * modules/readtokens: Likewise.
16077         * modules/same: Likewise.
16078
16079         maint.mk: include 4 more function names in alloca.h-checking regexp
16080         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
16081         regexp.  Before, we would give a false-positive (saying alloca.h
16082         is included unnecessarily) when the only uses involved omitted symbols.
16083
16084         xalloc.h: use consistent formatting
16085         * lib/xalloc.h: Move declarations to start in the first column.
16086
16087 2010-01-05  Eric Blake  <ebb9@byu.net>
16088
16089         mkdir: avoid xalloc
16090         * lib/mkdir.c (includes): Drop unused header.
16091         Reported by John W. Eaton.
16092
16093 2010-01-04  Jim Meyering  <meyering@redhat.com>
16094
16095         nl_langinfo: avoid configure-time syntax error
16096         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
16097         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
16098         the empty string.  Don't let that provoke a shell syntax error.
16099
16100         regcomp, regexec, fnmatch: avoid array bounds read error
16101         * lib/regcomp.c (build_equiv_class): From glibc:
16102         Use only the low 24 bits of a findidx return value as an index
16103         into the weights array.  Patch by Ulrich Drepper:
16104         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
16105         * lib/regexec.c (check_node_accept_bytes): Likewise.
16106         * lib/fnmatch_loop.c (FCT): Likewise.
16107
16108         regcomp: skip collseq lookup when there are no rules
16109         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
16110         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
16111
16112         regcomp: recognize ill-formed { } expressions
16113         * lib/regcomp.c (parse_dup_op): From glibc:
16114         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
16115
16116         regcomp: fix typo in comment
16117         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
16118         s/satisfy/satisfies/.
16119
16120         regcomp: sync from glibc: remove dead store
16121         * lib/regcomp.c (duplicate_node_closure): Remove useless
16122         search_duplicated_node call and dead store.
16123
16124         regcomp: sync from glibc; always use nl_langinfo
16125         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
16126         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
16127         * modules/regex (Depends-on): Add nl_langinfo.
16128
16129 2010-01-04  Eric Blake  <ebb9@byu.net>
16130
16131         fdopendir: fix configure test
16132         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
16133
16134 2010-01-01  Bruno Haible  <bruno@clisp.org>
16135
16136         wchar: Remove unused configure check.
16137         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
16138
16139 2010-01-01  Eric Blake  <ebb9@byu.net>
16140
16141         headers: make check of system header explicit
16142         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
16143         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
16144         ourselves.
16145         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16146         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16147         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
16148         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
16149         internals.
16150         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
16151         missing.
16152         Suggested by Bruno Haible.
16153
16154 2010-01-01  Jim Meyering  <meyering@redhat.com>
16155
16156         ChangeLog: tweak to eliminate unnecessary copyright line
16157         * ChangeLog: Remove a copyright line that was mistakenly updated
16158         by today's update-copyright run.  Reported by Eric Blake.
16159
16160         test-update-copyright: don't let envvar setting cause test failure
16161         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16162
16163 2010-01-01  Bruno Haible  <bruno@clisp.org>
16164
16165         localename: Avoid gcc warning.
16166         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
16167         function if it is not used.
16168
16169 2010-01-01  Jim Meyering  <meyering@redhat.com>
16170
16171         update nearly all FSF copyright year lists to include 2010
16172         Use the same procedure as for 2009, outlined in
16173         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
16174
16175         version-etc: set COPYRIGHT_YEAR to 2010
16176         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
16177
16178 2009-12-31  Eric Blake  <ebb9@byu.net>
16179
16180         doc: correct availability of cygwin 1.5.x getopt
16181         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
16182         variables.
16183         * doc/posix-functions/opterr.texi (opterr): Likewise.
16184         * doc/posix-functions/optind.texi (optind): Likewise.
16185         * doc/posix-functions/optopt.texi (optopt): Likewise.
16186         * doc/posix-functions/tzname.texi (tzname): Likewise.
16187
16188         openat: update maintainer
16189         * modules/openat (Maintainer): Add myself.
16190
16191         utimens: avoid shadowing warning
16192         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
16193         buffers into one, to avoid shadowing, as well as avoiding a
16194         redundant stat.
16195         Reported by Jim Meyering.
16196
16197         test-dup2: avoid compiler warning
16198         * tests/test-dup2.c (is_inheritable): Only define if used.
16199
16200 2010-01-01  Bruno Haible  <bruno@clisp.org>
16201
16202         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
16203         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
16204         defined, use wctomb instead of wcrtomb.
16205
16206 2010-01-01  Bruno Haible  <bruno@clisp.org>
16207
16208         iconv: Reject native Solaris iconv.
16209         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
16210         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
16211
16212 2009-12-31  Bruno Haible  <bruno@clisp.org>
16213
16214         * tests/test-signal.c (main): Remove test of 'SIG'.
16215
16216 2009-12-31  Bruno Haible  <bruno@clisp.org>
16217
16218         spawn: Fix incomplete fix.
16219         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16220         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16221         warnings for GNULIB_POSIXCHECK again.
16222         Reported by Eric Blake.
16223
16224 2009-12-31  Bruno Haible  <bruno@clisp.org>
16225
16226         Avoid namespace pollution on glibc systems.
16227         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
16228         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
16229         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
16230         glibc systems.
16231
16232 2009-12-31  Bruno Haible  <bruno@clisp.org>
16233
16234         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
16235         (gl_REPLACE_WCHAR_H): Turn into a no-op.
16236         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
16237         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16238         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16239         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16240         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16241
16242 2009-12-31  Bruno Haible  <bruno@clisp.org>
16243
16244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16245         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
16246         afterwards.
16247
16248 2009-12-31  Bruno Haible  <bruno@clisp.org>
16249
16250         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
16251         SYS_UTSNAME_H.
16252
16253 2009-12-31  Bruno Haible  <bruno@clisp.org>
16254
16255         spawn: Fix misapplied patch.
16256         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16257         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16258         warnings for GNULIB_POSIXCHECK.
16259
16260 2009-12-31  Bruno Haible  <bruno@clisp.org>
16261
16262         times: Update after sys_times changed.
16263         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
16264         * modules/times (Files): Add it.
16265         (configure.ac): Invoke gl_FUNC_TIMES.
16266
16267 2009-12-31  Bruno Haible  <bruno@clisp.org>
16268
16269         Use AC_C_INLINE where necessary.
16270         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
16271         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
16272         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
16273         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
16274         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16275         * m4/mbiter.m4 (gl_MBITER): Likewise.
16276         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16277         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16278         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
16279         * modules/u64 (configure.ac): Likewise.
16280
16281 2009-12-31  Bruno Haible  <bruno@clisp.org>
16282
16283         Use AC_C_INLINE instead of module 'inline' where possible.
16284         * modules/inline (Description): Clarify purpose.
16285         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
16286         * modules/count-one-bits (Depends-on): Remove inline.
16287         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
16288         * modules/openat (Depends-on): Remove inline.
16289         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
16290         instead of depending on module 'inline'.
16291         * modules/filevercmp (Depends-on, configure.ac): Likewise.
16292         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
16293         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
16294         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
16295         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
16296         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
16297         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
16298         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
16299         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
16300         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
16301         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
16302         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
16303         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
16304         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
16305         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
16306         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
16307         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
16308         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
16309         Likewise.
16310         * modules/unictype/property-ascii-hex-digit (Depends-on,
16311         configure.ac): Likewise.
16312         * modules/unictype/property-bidi-arabic-digit (Depends-on,
16313         configure.ac): Likewise.
16314         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
16315         configure.ac): Likewise.
16316         * modules/unictype/property-bidi-block-separator (Depends-on,
16317         configure.ac): Likewise.
16318         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
16319         configure.ac): Likewise.
16320         * modules/unictype/property-bidi-common-separator (Depends-on,
16321         configure.ac): Likewise.
16322         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
16323         Likewise.
16324         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
16325         configure.ac): Likewise.
16326         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
16327         configure.ac): Likewise.
16328         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
16329         configure.ac): Likewise.
16330         * modules/unictype/property-bidi-european-digit (Depends-on,
16331         configure.ac): Likewise.
16332         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
16333         configure.ac): Likewise.
16334         * modules/unictype/property-bidi-left-to-right (Depends-on,
16335         configure.ac): Likewise.
16336         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
16337         configure.ac): Likewise.
16338         * modules/unictype/property-bidi-other-neutral (Depends-on,
16339         configure.ac): Likewise.
16340         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
16341         Likewise.
16342         * modules/unictype/property-bidi-segment-separator (Depends-on,
16343         configure.ac): Likewise.
16344         * modules/unictype/property-bidi-whitespace (Depends-on,
16345         configure.ac): Likewise.
16346         * modules/unictype/property-combining (Depends-on, configure.ac):
16347         Likewise.
16348         * modules/unictype/property-composite (Depends-on, configure.ac):
16349         Likewise.
16350         * modules/unictype/property-currency-symbol (Depends-on,
16351         configure.ac): Likewise.
16352         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
16353         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
16354         Likewise.
16355         * modules/unictype/property-default-ignorable-code-point (Depends-on,
16356         configure.ac): Likewise.
16357         * modules/unictype/property-deprecated (Depends-on, configure.ac):
16358         Likewise.
16359         * modules/unictype/property-diacritic (Depends-on, configure.ac):
16360         Likewise.
16361         * modules/unictype/property-extender (Depends-on, configure.ac):
16362         Likewise.
16363         * modules/unictype/property-format-control (Depends-on, configure.ac):
16364         Likewise.
16365         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
16366         Likewise.
16367         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
16368         Likewise.
16369         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
16370         Likewise.
16371         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
16372         Likewise.
16373         * modules/unictype/property-hyphen (Depends-on, configure.ac):
16374         Likewise.
16375         * modules/unictype/property-id-continue (Depends-on, configure.ac):
16376         Likewise.
16377         * modules/unictype/property-id-start (Depends-on, configure.ac):
16378         Likewise.
16379         * modules/unictype/property-ideographic (Depends-on, configure.ac):
16380         Likewise.
16381         * modules/unictype/property-ids-binary-operator (Depends-on,
16382         configure.ac): Likewise.
16383         * modules/unictype/property-ids-trinary-operator (Depends-on,
16384         configure.ac): Likewise.
16385         * modules/unictype/property-ignorable-control (Depends-on,
16386         configure.ac): Likewise.
16387         * modules/unictype/property-iso-control (Depends-on, configure.ac):
16388         Likewise.
16389         * modules/unictype/property-join-control (Depends-on, configure.ac):
16390         Likewise.
16391         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
16392         Likewise.
16393         * modules/unictype/property-line-separator (Depends-on, configure.ac):
16394         Likewise.
16395         * modules/unictype/property-logical-order-exception (Depends-on,
16396         configure.ac): Likewise.
16397         * modules/unictype/property-lowercase (Depends-on, configure.ac):
16398         Likewise.
16399         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
16400         * modules/unictype/property-non-break (Depends-on, configure.ac):
16401         Likewise.
16402         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
16403         Likewise.
16404         * modules/unictype/property-numeric (Depends-on, configure.ac):
16405         Likewise.
16406         * modules/unictype/property-other-alphabetic (Depends-on,
16407         configure.ac): Likewise.
16408         * modules/unictype/property-other-default-ignorable-code-point
16409         (Depends-on, configure.ac): Likewise.
16410         * modules/unictype/property-other-grapheme-extend (Depends-on,
16411         configure.ac): Likewise.
16412         * modules/unictype/property-other-id-continue (Depends-on,
16413         configure.ac): Likewise.
16414         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
16415         Likewise.
16416         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
16417         Likewise.
16418         * modules/unictype/property-other-math (Depends-on, configure.ac):
16419         Likewise.
16420         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
16421         Likewise.
16422         * modules/unictype/property-paired-punctuation (Depends-on,
16423         configure.ac): Likewise.
16424         * modules/unictype/property-paragraph-separator (Depends-on,
16425         configure.ac): Likewise.
16426         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
16427         Likewise.
16428         * modules/unictype/property-pattern-white-space (Depends-on,
16429         configure.ac): Likewise.
16430         * modules/unictype/property-private-use (Depends-on, configure.ac):
16431         Likewise.
16432         * modules/unictype/property-punctuation (Depends-on, configure.ac):
16433         Likewise.
16434         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
16435         Likewise.
16436         * modules/unictype/property-radical (Depends-on, configure.ac):
16437         Likewise.
16438         * modules/unictype/property-sentence-terminal (Depends-on,
16439         configure.ac): Likewise.
16440         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
16441         Likewise.
16442         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
16443         * modules/unictype/property-terminal-punctuation (Depends-on,
16444         configure.ac): Likewise.
16445         * modules/unictype/property-titlecase (Depends-on, configure.ac):
16446         Likewise.
16447         * modules/unictype/property-unassigned-code-value (Depends-on,
16448         configure.ac): Likewise.
16449         * modules/unictype/property-unified-ideograph (Depends-on,
16450         configure.ac): Likewise.
16451         * modules/unictype/property-uppercase (Depends-on, configure.ac):
16452         Likewise.
16453         * modules/unictype/property-variation-selector (Depends-on,
16454         configure.ac): Likewise.
16455         * modules/unictype/property-white-space (Depends-on, configure.ac):
16456         Likewise.
16457         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
16458         Likewise.
16459         * modules/unictype/property-xid-start (Depends-on, configure.ac):
16460         Likewise.
16461         * modules/unictype/property-zero-width (Depends-on, configure.ac):
16462         Likewise.
16463         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
16464         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
16465         Likewise.
16466
16467 2009-12-31  Bruno Haible  <bruno@clisp.org>
16468
16469         Remove unnecessary AC_C_INLINE invocation.
16470         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
16471         since 2009-08-21.
16472
16473 2009-12-31  Jim Meyering  <meyering@redhat.com>
16474
16475         maint.mk: don't require explicit gpg_key_ID in cfg.mk
16476         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
16477         With this change, we can all remove the gpg_key_ID = ... definition
16478         from our respective cfg.mk files.
16479
16480         maint.mk: create announcement template in ~/, not in /tmp
16481         * top/maint.mk (emit_upload_commands): Adjust.
16482         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
16483         Remove temporary file, .ci-msg.
16484
16485 2009-12-31  Eric Blake  <ebb9@byu.net>
16486
16487         link-warning: always build headers with link warnings
16488         * modules/arpa_inet (Makefile.am): Always build replacement
16489         header.
16490         * modules/ctype (Makefile.am): Likewise.
16491         * modules/dirent (Makefile.am): Likewise.
16492         * modules/inttypes (Makefile.am): Likewise.
16493         * modules/langinfo (Makefile.am): Likewise.
16494         * modules/locale (Makefile.am): Likewise.
16495         * modules/spawn (Makefile.am): Likewise.
16496         * modules/sys_file (Makefile.am): Likewise.
16497         * modules/sys_ioctl (Makefile.am): Likewise.
16498         * modules/sys_select (Makefile.am): Likewise.
16499         * modules/sys_socket (Makefile.am): Likewise.
16500         * modules/sys_times (Makefile.am): Likewise.
16501         * modules/sys_utsname (Makefile.am): Likewise.
16502         * modules/sys_wait (Makefile.am): Likewise.
16503         * modules/wchar (Makefile.am): Likewise.
16504         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
16505         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
16506         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
16507         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
16508         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
16509         Likewise.
16510         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16511         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16512         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
16513         Likewise.
16514         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
16515         Likewise.
16516         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16517         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
16518         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
16519         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16520         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16521         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16522         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16523         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
16524         (gl_WCHAR_H_DEFAULTS): Likewise.
16525
16526 2009-12-31  Eric Blake  <ebb9@byu.net>
16527
16528         signal, spawn: use link warnings
16529         * lib/signal.in.h (sigset_t): Make unconditional.
16530         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
16531         (sigpending, sigprocmask, sigaction): Add link warnings.
16532         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
16533         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
16534         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
16535         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
16536         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
16537         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
16538         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
16539         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
16540         (posix_spawn_file_actions_destroy)
16541         (posix_spawn_file_actions_addopen)
16542         (posix_spawn_file_actions_addclose)
16543         (posix_spawn_file_actions_adddup2): Likewise.
16544         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
16545         * tests/test-signal.c (main): Enhance test.
16546
16547         spawn: improve wrapper support
16548         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
16549         (gl_SPAWN_H_DEFAULTS): New defaults.
16550         * modules/spawn (Makefile.am): Substitute them.
16551         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
16552         Only declare if missing or broken.
16553
16554         sys_times, sys_utsname: use include_next
16555         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
16556         header.
16557         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
16558         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16559         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16560         * modules/sys_times (Depends-on): Add include_next.
16561         (Makefile.am): Substitute additional values.
16562         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16563         * lib/sys_times.in.h (includes): Include native header, if
16564         available.
16565         * lib/sys_utsname.in.h (includes): Likewise.
16566         * tests/test-sys_times.c (main): Enhance test.
16567
16568         fdutimensat: revert prior patch
16569         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
16570         utimens.h.
16571         Reported by Bruno Haible.
16572
16573 2009-12-30  Eric Blake  <ebb9@byu.net>
16574
16575         sys_wait: drop link-warning dependency
16576         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
16577         link-warning efforts.
16578         * lib/sys_wait.in.h: Likewise.
16579
16580         fdutimensat: remove bogus dependency
16581         * modules/fdutimensat (Depends-on): Drop inline.
16582
16583         unistd: fix typo
16584         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
16585
16586 2009-12-30  Bruno Haible  <bruno@clisp.org>
16587
16588         Fix compilation error with Solaris cc.
16589         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
16590         * lib/unicase/u16-is-invariant.c: Likewise.
16591         * lib/unicase/u32-is-invariant.c: Likewise.
16592         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16593
16594 2009-12-30  Bruno Haible  <bruno@clisp.org>
16595
16596         Fix test crash.
16597         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
16598         locales.
16599         Reported by Simon Josefsson <simon@josefsson.org>.
16600
16601 2009-12-30  Bruno Haible  <bruno@clisp.org>
16602
16603         Fix compilation error on most platforms.
16604         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
16605         Reported by Simon Josefsson <simon@josefsson.org>
16606         and Nelson H. F. Beebe <beebe@math.utah.edu>.
16607
16608 2009-12-30  Eric Blake  <ebb9@byu.net>
16609
16610         futimens, utimensat: work around ntfs-3g bug
16611         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
16612         a ctime bug is present, and expand workaround to cover ntfs-3g.
16613         * lib/utimens.c (fdutimens, lutimens): Likewise.
16614         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
16615         (validate_timespec): Adjust return value.
16616         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
16617         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16618         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
16619
16620 2009-12-29  Eric Blake  <ebb9@byu.net>
16621
16622         link-warning: make usage consistent
16623         * modules/ctype (Depends-on): Add link-warning.
16624         (Makefile.am): Update rules accordingly.
16625         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16626         * modules/locale (Depends-on, Makefile.am): Likewise.
16627         * modules/sys_file (Makefile.am): Likewise.
16628         * modules/getopt-posix (Makefile.am): Delete unused link warning
16629         efforts.
16630         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
16631         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
16632         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
16633         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
16634
16635         stdio: remove unused variables
16636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
16637         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
16638         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16639
16640         tests: test more substitute headers
16641         * modules/ctype-tests: New file.
16642         * modules/dirent-tests: Likewise.
16643         * modules/spawn-tests: Likewise.
16644         * modules/sys_file-tests: Likewise.
16645         * modules/sys_ioctl-tests: Likewise.
16646         * modules/sys_wait-tests: Likewise.
16647         * tests/test-ctype.c: Likewise.
16648         * tests/test-dirent.c: Likewise.
16649         * tests/test-spawn.c: Likewise.
16650         * tests/test-sys_file.c: Likewise.
16651         * tests/test-sys_ioctl.c: Likewise.
16652         * tests/test-sys_wait.c: Likewise.
16653         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
16654         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
16655         whether or not flock is in use.
16656
16657         tests: remove License section from module
16658         * modules/arpa_inet-tests: Remove unneeded section.
16659         * modules/byteswap-tests: Likewise.
16660         * modules/ceilf-tests: Likewise.
16661         * modules/ceill-tests: Likewise.
16662         * modules/crypto/des-tests: Likewise.
16663         * modules/crypto/gc-arcfour-tests: Likewise.
16664         * modules/crypto/gc-arctwo-tests: Likewise.
16665         * modules/crypto/gc-des-tests: Likewise.
16666         * modules/crypto/gc-hmac-md5-tests: Likewise.
16667         * modules/crypto/gc-hmac-sha1-tests: Likewise.
16668         * modules/crypto/gc-md2-tests: Likewise.
16669         * modules/crypto/gc-md4-tests: Likewise.
16670         * modules/crypto/gc-md5-tests: Likewise.
16671         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
16672         * modules/crypto/gc-rijndael-tests: Likewise.
16673         * modules/crypto/gc-sha1-tests: Likewise.
16674         * modules/crypto/gc-tests: Likewise.
16675         * modules/crypto/md2-tests: Likewise.
16676         * modules/crypto/md4-tests: Likewise.
16677         * modules/fcntl-h-tests: Likewise.
16678         * modules/floorf-tests: Likewise.
16679         * modules/floorl-tests: Likewise.
16680         * modules/frexp-nolibm-tests: Likewise.
16681         * modules/frexp-tests: Likewise.
16682         * modules/frexpl-nolibm-tests: Likewise.
16683         * modules/frexpl-tests: Likewise.
16684         * modules/getaddrinfo-tests: Likewise.
16685         * modules/inttypes-tests: Likewise.
16686         * modules/isfinite-tests: Likewise.
16687         * modules/isinf-tests: Likewise.
16688         * modules/ldexpl-tests: Likewise.
16689         * modules/locale-tests: Likewise.
16690         * modules/math-tests: Likewise.
16691         * modules/netdb-tests: Likewise.
16692         * modules/netinet_in-tests: Likewise.
16693         * modules/printf-frexp-tests: Likewise.
16694         * modules/printf-frexpl-tests: Likewise.
16695         * modules/priv-set-tests: Likewise.
16696         * modules/random_r-tests: Likewise.
16697         * modules/round-tests: Likewise.
16698         * modules/roundf-tests: Likewise.
16699         * modules/roundl-tests: Likewise.
16700         * modules/search-tests: Likewise.
16701         * modules/select-tests: Likewise.
16702         * modules/signal-tests: Likewise.
16703         * modules/stdbool-tests: Likewise.
16704         * modules/stddef-tests: Likewise.
16705         * modules/stdint-tests: Likewise.
16706         * modules/stdio-tests: Likewise.
16707         * modules/stdlib-tests: Likewise.
16708         * modules/string-tests: Likewise.
16709         * modules/strings-tests: Likewise.
16710         * modules/sys_select-tests: Likewise.
16711         * modules/sys_socket-tests: Likewise.
16712         * modules/sys_stat-tests: Likewise.
16713         * modules/sys_time-tests: Likewise.
16714         * modules/sys_utsname-tests: Likewise.
16715         * modules/sysexits-tests: Likewise.
16716         * modules/time-tests: Likewise.
16717         * modules/trunc-tests: Likewise.
16718         * modules/truncf-tests: Likewise.
16719         * modules/truncl-tests: Likewise.
16720         * modules/tsearch-tests: Likewise.
16721         * modules/unistd-tests: Likewise.
16722         * modules/wchar-tests: Likewise.
16723         * modules/wctype-tests: Likewise.
16724
16725         tests: fix license on several tests
16726         * tests/test-des.c: Update to GPLv3+.
16727         * tests/test-flock.c: Likewise.
16728         * tests/test-fsync.c: Likewise.
16729         * tests/test-futimens.h: Likewise.
16730         * tests/test-gc-arcfour.c: Likewise.
16731         * tests/test-gc-arctwo.c: Likewise.
16732         * tests/test-gc-des.c: Likewise.
16733         * tests/test-gc-hmac-md5.c: Likewise.
16734         * tests/test-gc-hmac-sha1.c: Likewise.
16735         * tests/test-gc-md2.c: Likewise.
16736         * tests/test-gc-md4.c: Likewise.
16737         * tests/test-gc-md5.c: Likewise.
16738         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16739         * tests/test-gc-rijndael.c: Likewise.
16740         * tests/test-gc-sha1.c: Likewise.
16741         * tests/test-gc.c: Likewise.
16742         * tests/test-getcwd.c: Likewise.
16743         * tests/test-link.c: Likewise.
16744         * tests/test-link.h: Likewise.
16745         * tests/test-lutimens.h: Likewise.
16746         * tests/test-md2.c: Likewise.
16747         * tests/test-md4.c: Likewise.
16748         * tests/test-mkdir.h: Likewise.
16749         * tests/test-rename.c: Likewise.
16750         * tests/test-rename.h: Likewise.
16751         * tests/test-safe-alloc.c: Likewise.
16752         * tests/test-utimens-common.h: Likewise.
16753         * tests/test-utimens.h: Likewise.
16754
16755         maint: sync license texts
16756         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
16757         * doc/gpl-3.0.texi: Revert copyright year update.
16758         * doc/lgpl-3.0.texi: Likewise.
16759
16760 2009-12-29  Jim Meyering  <meyering@redhat.com>
16761
16762         update nearly all FSF copyright year lists to include 2009
16763         The files named by the following are exempted:
16764             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
16765               test -f "$dst" && { echo "$dst"; continue; }
16766               test -d "$dst" || continue
16767               echo "$dst"/$(basename "$src")
16768             done > exempt
16769             git ls-files tests/unictype >> exempt
16770         In the remaining files, convert to all-interval notation if
16771         - there is already at least one year interval like 2000-2003
16772         - the file is maintained by me
16773         - the file is in lib/uni*/, where that style already prevails
16774         Otherwise, use update-copyright's default.
16775
16776 2009-12-29  Simon Josefsson  <simon@josefsson.org>
16777         and Eric Blake  <ebb9@byu.net>
16778
16779         tests: don't require debug system() to pass
16780         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
16781         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16782         * tests/test-unlink.h (test_unlink_func): Likewise.
16783         * tests/test-fstatat.c (main): ...into callers.
16784         * tests/test-lstat.c (main): Likewise.
16785         * tests/test-rmdir.c (main): Likewise.
16786         * tests/test-unlink.c (main): Likewise.
16787         * tests/test-unlinkat.c (main): Likewise.
16788         * tests/test-areadlink-with-size.c (main): Don't require a
16789         debug-only system call to pass, aiding cross-testing to mingw.
16790         * tests/test-areadlink.c (main): Likewise.
16791         * tests/test-areadlinkat-with-size.c (main): Likewise.
16792         * tests/test-areadlinkat.c (main): Likewise.
16793         * tests/test-canonicalize-lgpl.c (main): Likewise.
16794         * tests/test-canonicalize.c (main): Likewise.
16795         * tests/test-chown.c (main): Likewise.
16796         * tests/test-fchownat.c (main): Likewise.
16797         * tests/test-lchown.c (main): Likewise.
16798         * tests/test-fdutimensat.c (main): Likewise.
16799         * tests/test-futimens.c (main): Likewise.
16800         * tests/test-link.c (main): Likewise.
16801         * tests/test-linkat.c (main): Likewise.
16802         * tests/test-mkdir.c (main): Likewise.
16803         * tests/test-mkdirat.c (main): Likewise.
16804         * tests/test-mkfifo.c (main): Likewise.
16805         * tests/test-mkfifoat.c (main): Likewise.
16806         * tests/test-mknod.c (main): Likewise.
16807         * tests/test-readlink.c (main): Likewise.
16808         * tests/test-remove.c (main): Likewise.
16809         * tests/test-rename.c (main): Likewise.
16810         * tests/test-renameat.c (main): Likewise.
16811         * tests/test-symlink.c (main): Likewise.
16812         * tests/test-symlinkat.c (main): Likewise.
16813         * tests/test-utimens.c (main): Likewise.
16814         * tests/test-utimensat.c (main): Likewise.
16815
16816 2009-12-29  Simon Josefsson  <simon@josefsson.org>
16817
16818         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
16819         on $(UNUSED_PARAMETER_H) to avoid build failure.
16820
16821 2009-12-28  Jim Meyering  <meyering@redhat.com>
16822
16823         update-copyright: you may specify a max. line length other than 72
16824         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16825
16826         maint: use consistent FSF copyright line syntax
16827         * lib/posixtm.c: Add missing comma in FSF copyright line.
16828         * lib/posixtm.h: Likewise.
16829         * lib/getugroups.c: Add missing ", Inc.".
16830
16831         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
16832         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
16833         FSF copyright line.  Remove trailing blanks.
16834
16835 2009-12-28  Eric Blake  <ebb9@byu.net>
16836
16837         test-dup2: reduce dependencies
16838         * modules/cloexec (Configure.ac): Set witness.
16839         * modules/dup2-tests (Depends-on): Drop cloexec.
16840         * tests/test-dup2.c (main): Skip portion of test if cloexec module
16841         not present.
16842         Suggested by Bruno Haible.
16843
16844 2009-12-26  Bruno Haible  <bruno@clisp.org>
16845
16846         Remove an unneeded dependency.
16847         * modules/fseterr (Depends-on): Remove dup2.
16848
16849 2009-12-26  Eric Blake  <ebb9@byu.net>
16850
16851         tests: use macros.h in more places
16852         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
16853         (ASSERT_STREAM): Provide default of stderr.
16854         * tests/test-dirent-safer.c: Include macros.h, using alternate
16855         stream for assertions.
16856         * tests/test-dup-safer.c: Likewise.
16857         * tests/test-freopen-safer.c: Likewise.
16858         * tests/test-getopt.c: Likewise.
16859         * tests/test-openat-safer.c: Likewise.
16860         * tests/test-pipe.c: Likewise.
16861         * tests/test-popen-safer.c: Likewise.
16862         * modules/dirent-safer-tests (Files): Include macros.h.
16863         * modules/unistd-safer-tests (Files): Likewise.
16864         * modules/freopen-safer-tests (Files): Likewise.
16865         * modules/getopt-posix-tests (Files): Likewise.
16866         * modules/openat-safer-tests (Files): Likewise.
16867         * modules/pipe-tests (Files): Likewise.
16868
16869 2009-12-26  Bruno Haible  <bruno@clisp.org>
16870
16871         javacomp: Portability fix.
16872         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
16873         that it also works on Solaris.
16874
16875 2009-12-26  Bruno Haible  <bruno@clisp.org>
16876
16877         localename: Fix storage allocation of gl_locale_name_thread's result.
16878         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
16879         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
16880         all platforms that have 'uselocale'.
16881         (gl_locale_name_thread_unsafe): New function, extracted from
16882         gl_locale_name_thread.
16883         (gl_locale_name_thread): Call struniq on all platforms that have
16884         'uselocale'.
16885         * tests/test-localename.c (test_locale_name_thread): Check that the
16886         resulting strings are permanently allocated.
16887         * modules/localename-tests (Depends-on): Add strdup.
16888
16889 2009-12-26  Bruno Haible  <bruno@clisp.org>
16890
16891         * tests/test-localename.c (categories): Fill in the strings.
16892
16893 2009-12-26  Jim Meyering  <meyering@redhat.com>
16894
16895         isdir: complete the removal of m4/isdir.m4
16896         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
16897
16898         isdir: clean up, since at least grep still uses it
16899         * lib/isdir.c: Include "isdir.h".
16900         (S_ISDIR): Remove now-unneeded definition.
16901         * modules/isdir (Files): Add lib/isdir.h.
16902         * lib/isdir.h: New file, with declaration.
16903         * m4/isdir.m4: Remove file -- unneeded.
16904
16905 2009-12-25  Bruno Haible  <bruno@clisp.org>
16906
16907         selinux-h: Make generated .h files standalone.
16908         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
16909         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
16910         * lib/se-selinux.in.h: Likewise.
16911         * modules/selinux-h (Depends-on): Add unused-parameter.
16912         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
16913         selinux/selinux.h and selinux/context.h.
16914         Suggested by Eric Blake.
16915
16916 2009-12-25  Bruno Haible  <bruno@clisp.org>
16917
16918         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
16919         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
16920         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
16921         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
16922         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
16923
16924 2009-12-24  Bruno Haible  <bruno@clisp.org>
16925
16926         openat: Fix warning.
16927         * lib/openat-proc.c: Include <unistd.h>.
16928
16929 2009-12-24  Bruno Haible  <bruno@clisp.org>
16930
16931         New module 'unused-parameter'.
16932         * build-aux/unused-parameter.h: New file, extracted from earlier
16933         gnulib-common.m4.
16934         * modules/unused-parameter: New file.
16935         * lib/unistr.h: Include unused-parameter.h.
16936         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
16937         _GL_UNUSED.
16938         * modules/unistr/base (Depends-on): Add unused-parameter.
16939
16940 2009-12-24  Bruno Haible  <bruno@clisp.org>
16941
16942         Add missing dependencies to 'extensions' module.
16943         * m4/extensions.m4: Add comment.
16944         * modules/accept4 (Depends-on): Add extensions.
16945         * modules/dup3 (Depends-on): Likewise.
16946         * modules/fcntl (Depends-on): Likewise.
16947         * modules/futimens (Depends-on): Likewise.
16948         * modules/mknod (Depends-on): Likewise.
16949         * modules/pipe2 (Depends-on): Likewise.
16950         * modules/stat-time (Depends-on): Likewise.
16951         * modules/strcasestr-simple (Depends-on): Likewise.
16952         * modules/strsignal (Depends-on): Likewise.
16953         * modules/utimensat (Depends-on): Likewise.
16954         * modules/localcharset (Depends-on): Likewise. Needed because of
16955         gl_FCNTL_O_FLAGS.
16956         * modules/wcrtomb (Depends-on): Likewise. Needed because of
16957         AC_TYPE_MBSTATE_T.
16958         * modules/wcsnrtombs (Depends-on): Likewise.
16959         * modules/wcsrtombs (Depends-on): Likewise.
16960
16961 2009-12-24  Bruno Haible  <bruno@clisp.org>
16962
16963         binary-io: Avoid gcc warning due to SET_BINARY.
16964         * lib/binary-io.h (SET_BINARY): Cast the result to void.
16965         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
16966
16967 2009-12-24  Bruno Haible  <bruno@clisp.org>
16968
16969         Avoid future namespace pollution on glibc systems.
16970         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
16971         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
16972         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
16973         glibc systems.
16974
16975 2009-12-24  Bruno Haible  <bruno@clisp.org>
16976
16977         Refactor common macros used in tests.
16978         * tests/macros.h: New file.
16979         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
16980         and/or <stdlib.h>, if appropriate.
16981         (ASSERT, SIZEOF): Remove macros.
16982         * tests/test-areadlink-with-size.c: Likewise.
16983         * tests/test-areadlinkat.c: Likewise.
16984         * tests/test-areadlinkat-with-size.c: Likewise.
16985         * tests/test-argmatch.c: Likewise.
16986         * tests/test-argv-iter.c: Likewise.
16987         * tests/test-array-mergesort.c: Likewise.
16988         * tests/test-array_list.c: Likewise.
16989         * tests/test-array_oset.c: Likewise.
16990         * tests/test-avltree_list.c: Likewise.
16991         * tests/test-avltree_oset.c: Likewise.
16992         * tests/test-avltreehash_list.c: Likewise.
16993         * tests/test-base64.c: Likewise.
16994         * tests/test-binary-io.c: Likewise.
16995         * tests/test-bitrotate.c: Likewise.
16996         * tests/test-btowc.c: Likewise.
16997         * tests/test-byteswap.c: Likewise.
16998         * tests/test-c-ctype.c: Likewise.
16999         * tests/test-c-stack.c: Likewise.
17000         * tests/test-c-strcasecmp.c: Likewise.
17001         * tests/test-c-strcasestr.c: Likewise.
17002         * tests/test-c-strncasecmp.c: Likewise.
17003         * tests/test-c-strstr.c: Likewise.
17004         * tests/test-canonicalize-lgpl.c: Likewise.
17005         * tests/test-canonicalize.c: Likewise.
17006         * tests/test-carray_list.c: Likewise.
17007         * tests/test-ceilf1.c: Likewise.
17008         * tests/test-ceilf2.c: Likewise.
17009         * tests/test-ceill.c: Likewise.
17010         * tests/test-chown.c: Likewise.
17011         * tests/test-cloexec.c: Likewise.
17012         * tests/test-copy-acl.c: Likewise.
17013         * tests/test-copy-file.c: Likewise.
17014         * tests/test-count-one-bits.c: Likewise.
17015         * tests/test-dprintf-posix.c: Likewise.
17016         * tests/test-dup2.c: Likewise.
17017         * tests/test-dup3.c: Likewise.
17018         * tests/test-duplocale.c: Likewise.
17019         * tests/test-fbufmode.c: Likewise.
17020         * tests/test-fchdir.c: Likewise.
17021         * tests/test-fchownat.c: Likewise.
17022         * tests/test-fcntl-safer.c: Likewise.
17023         * tests/test-fcntl.c: Likewise.
17024         * tests/test-fdopendir.c: Likewise.
17025         * tests/test-fdutimensat.c: Likewise.
17026         * tests/test-fflush2.c: Likewise.
17027         * tests/test-file-has-acl.c: Likewise.
17028         * tests/test-filevercmp.c: Likewise.
17029         * tests/test-flock.c: Likewise.
17030         * tests/test-floorf1.c: Likewise.
17031         * tests/test-floorf2.c: Likewise.
17032         * tests/test-floorl.c: Likewise.
17033         * tests/test-fnmatch.c: Likewise.
17034         * tests/test-fopen.h: Likewise.
17035         * tests/test-fpending.c: Likewise.
17036         * tests/test-fprintf-posix.c: Likewise.
17037         * tests/test-fpurge.c: Likewise.
17038         * tests/test-freadable.c: Likewise.
17039         * tests/test-freadahead.c: Likewise.
17040         * tests/test-freading.c: Likewise.
17041         * tests/test-freadptr.c: Likewise.
17042         * tests/test-freadptr2.c: Likewise.
17043         * tests/test-freadseek.c: Likewise.
17044         * tests/test-freopen.c: Likewise.
17045         * tests/test-frexp.c: Likewise.
17046         * tests/test-frexpl.c: Likewise.
17047         * tests/test-fseek.c: Likewise.
17048         * tests/test-fseeko.c: Likewise.
17049         * tests/test-fstatat.c: Likewise.
17050         * tests/test-fstrcmp.c: Likewise.
17051         * tests/test-fsync.c: Likewise.
17052         * tests/test-ftell.c: Likewise.
17053         * tests/test-ftello.c: Likewise.
17054         * tests/test-func.c: Likewise.
17055         * tests/test-futimens.c: Likewise.
17056         * tests/test-fwritable.c: Likewise.
17057         * tests/test-fwriting.c: Likewise.
17058         * tests/test-getcwd.c: Likewise.
17059         * tests/test-getdate.c: Likewise.
17060         * tests/test-getdelim.c: Likewise.
17061         * tests/test-getdtablesize.c: Likewise.
17062         * tests/test-getgroups.c: Likewise.
17063         * tests/test-getline.c: Likewise.
17064         * tests/test-getndelim2.c: Likewise.
17065         * tests/test-glob.c: Likewise.
17066         * tests/test-hash.c: Likewise.
17067         * tests/test-i-ring.c: Likewise.
17068         * tests/test-iconv-utf.c: Likewise.
17069         * tests/test-iconv.c: Likewise.
17070         * tests/test-idpriv-drop.c: Likewise.
17071         * tests/test-idpriv-droptemp.c: Likewise.
17072         * tests/test-inet_ntop.c: Likewise.
17073         * tests/test-inet_pton.c: Likewise.
17074         * tests/test-isblank.c: Likewise.
17075         * tests/test-isfinite.c: Likewise.
17076         * tests/test-isinf.c: Likewise.
17077         * tests/test-isnan.c: Likewise.
17078         * tests/test-isnand.h: Likewise.
17079         * tests/test-isnanf.h: Likewise.
17080         * tests/test-isnanl.h: Likewise.
17081         * tests/test-lchown.c: Likewise.
17082         * tests/test-ldexpl.c: Likewise.
17083         * tests/test-link.c: Likewise.
17084         * tests/test-linkat.c: Likewise.
17085         * tests/test-linked_list.c: Likewise.
17086         * tests/test-linkedhash_list.c: Likewise.
17087         * tests/test-localename.c: Likewise.
17088         * tests/test-lseek.c: Likewise.
17089         * tests/test-lstat.c: Likewise.
17090         * tests/test-mbmemcasecmp.c: Likewise.
17091         * tests/test-mbmemcasecoll.c: Likewise.
17092         * tests/test-mbrtowc.c: Likewise.
17093         * tests/test-mbscasecmp.c: Likewise.
17094         * tests/test-mbscasestr1.c: Likewise.
17095         * tests/test-mbscasestr2.c: Likewise.
17096         * tests/test-mbscasestr3.c: Likewise.
17097         * tests/test-mbscasestr4.c: Likewise.
17098         * tests/test-mbschr.c: Likewise.
17099         * tests/test-mbscspn.c: Likewise.
17100         * tests/test-mbsinit.c: Likewise.
17101         * tests/test-mbsncasecmp.c: Likewise.
17102         * tests/test-mbsnrtowcs.c: Likewise.
17103         * tests/test-mbspbrk.c: Likewise.
17104         * tests/test-mbspcasecmp.c: Likewise.
17105         * tests/test-mbsrchr.c: Likewise.
17106         * tests/test-mbsrtowcs.c: Likewise.
17107         * tests/test-mbsspn.c: Likewise.
17108         * tests/test-mbsstr1.c: Likewise.
17109         * tests/test-mbsstr2.c: Likewise.
17110         * tests/test-mbsstr3.c: Likewise.
17111         * tests/test-memchr.c: Likewise.
17112         * tests/test-memchr2.c: Likewise.
17113         * tests/test-memcmp.c: Likewise.
17114         * tests/test-memmem.c: Likewise.
17115         * tests/test-memrchr.c: Likewise.
17116         * tests/test-mkdir.c: Likewise.
17117         * tests/test-mkdirat.c: Likewise.
17118         * tests/test-mkfifo.c: Likewise.
17119         * tests/test-mkfifoat.c: Likewise.
17120         * tests/test-mknod.c: Likewise.
17121         * tests/test-nanosleep.c: Likewise.
17122         * tests/test-nl_langinfo.c: Likewise.
17123         * tests/test-obstack-printf.c: Likewise.
17124         * tests/test-open.c: Likewise.
17125         * tests/test-openat.c: Likewise.
17126         * tests/test-pipe-filter-gi1.c: Likewise.
17127         * tests/test-pipe-filter-gi2-main.c: Likewise.
17128         * tests/test-pipe-filter-ii1.c: Likewise.
17129         * tests/test-pipe-filter-ii2-main.c: Likewise.
17130         * tests/test-pipe2.c: Likewise.
17131         * tests/test-popen.h: Likewise.
17132         * tests/test-posixtm.c: Likewise.
17133         * tests/test-pread.c: Likewise.
17134         * tests/test-printf-frexp.c: Likewise.
17135         * tests/test-printf-frexpl.c: Likewise.
17136         * tests/test-printf-posix.c: Likewise.
17137         * tests/test-priv-set.c: Likewise.
17138         * tests/test-quotearg.c: Likewise.
17139         * tests/test-random_r.c: Likewise.
17140         * tests/test-rawmemchr.c: Likewise.
17141         * tests/test-rbtree_list.c: Likewise.
17142         * tests/test-rbtree_oset.c: Likewise.
17143         * tests/test-rbtreehash_list.c: Likewise.
17144         * tests/test-readlink.c: Likewise.
17145         * tests/test-remove.c: Likewise.
17146         * tests/test-rename.c: Likewise.
17147         * tests/test-renameat.c: Likewise.
17148         * tests/test-rmdir.c: Likewise.
17149         * tests/test-round1.c: Likewise.
17150         * tests/test-roundf1.c: Likewise.
17151         * tests/test-roundl.c: Likewise.
17152         * tests/test-safe-alloc.c: Likewise.
17153         * tests/test-sameacls.c: Likewise.
17154         * tests/test-set-mode-acl.c: Likewise.
17155         * tests/test-setenv.c: Likewise.
17156         * tests/test-sigaction.c: Likewise.
17157         * tests/test-signbit.c: Likewise.
17158         * tests/test-sleep.c: Likewise.
17159         * tests/test-snprintf-posix.c: Likewise.
17160         * tests/test-snprintf.c: Likewise.
17161         * tests/test-sprintf-posix.c: Likewise.
17162         * tests/test-stat-time.c: Likewise.
17163         * tests/test-stat.c: Likewise.
17164         * tests/test-strcasestr.c: Likewise.
17165         * tests/test-strchrnul.c: Likewise.
17166         * tests/test-strerror.c: Likewise.
17167         * tests/test-striconv.c: Likewise.
17168         * tests/test-striconveh.c: Likewise.
17169         * tests/test-striconveha.c: Likewise.
17170         * tests/test-strsignal.c: Likewise.
17171         * tests/test-strstr.c: Likewise.
17172         * tests/test-strtod.c: Likewise.
17173         * tests/test-strverscmp.c: Likewise.
17174         * tests/test-symlink.c: Likewise.
17175         * tests/test-symlinkat.c: Likewise.
17176         * tests/test-trunc1.c: Likewise.
17177         * tests/test-trunc2.c: Likewise.
17178         * tests/test-truncf1.c: Likewise.
17179         * tests/test-truncf2.c: Likewise.
17180         * tests/test-truncl.c: Likewise.
17181         * tests/test-uname.c: Likewise.
17182         * tests/test-unlink.c: Likewise.
17183         * tests/test-unlinkat.c: Likewise.
17184         * tests/test-unsetenv.c: Likewise.
17185         * tests/test-usleep.c: Likewise.
17186         * tests/test-utimens.c: Likewise.
17187         * tests/test-utimensat.c: Likewise.
17188         * tests/test-vasnprintf-posix.c: Likewise.
17189         * tests/test-vasnprintf-posix2.c: Likewise.
17190         * tests/test-vasnprintf.c: Likewise.
17191         * tests/test-vasprintf-posix.c: Likewise.
17192         * tests/test-vasprintf.c: Likewise.
17193         * tests/test-vdprintf-posix.c: Likewise.
17194         * tests/test-vfprintf-posix.c: Likewise.
17195         * tests/test-vprintf-posix.c: Likewise.
17196         * tests/test-vsnprintf-posix.c: Likewise.
17197         * tests/test-vsnprintf.c: Likewise.
17198         * tests/test-vsprintf-posix.c: Likewise.
17199         * tests/test-wcrtomb.c: Likewise.
17200         * tests/test-wcsnrtombs.c: Likewise.
17201         * tests/test-wcsrtombs.c: Likewise.
17202         * tests/test-wctype.c: Likewise.
17203         * tests/test-wcwidth.c: Likewise.
17204         * tests/test-xfprintf-posix.c: Likewise.
17205         * tests/test-xmemdup0.c: Likewise.
17206         * tests/test-xprintf-posix.c: Likewise.
17207         * tests/test-xvasprintf.c: Likewise.
17208         * tests/unicase/test-locale-language.c: Likewise.
17209         * tests/unicase/test-mapping-part1.h: Likewise.
17210         * tests/unicase/test-predicate-part1.h: Likewise.
17211         * tests/unicase/test-u8-casecmp.c: Likewise.
17212         * tests/unicase/test-u8-casecoll.c: Likewise.
17213         * tests/unicase/test-u8-casefold.c: Likewise.
17214         * tests/unicase/test-u8-is-cased.c: Likewise.
17215         * tests/unicase/test-u8-is-casefolded.c: Likewise.
17216         * tests/unicase/test-u8-is-lowercase.c: Likewise.
17217         * tests/unicase/test-u8-is-titlecase.c: Likewise.
17218         * tests/unicase/test-u8-is-uppercase.c: Likewise.
17219         * tests/unicase/test-u8-tolower.c: Likewise.
17220         * tests/unicase/test-u8-totitle.c: Likewise.
17221         * tests/unicase/test-u8-toupper.c: Likewise.
17222         * tests/unicase/test-u16-casecmp.c: Likewise.
17223         * tests/unicase/test-u16-casecoll.c: Likewise.
17224         * tests/unicase/test-u16-casefold.c: Likewise.
17225         * tests/unicase/test-u16-is-cased.c: Likewise.
17226         * tests/unicase/test-u16-is-casefolded.c: Likewise.
17227         * tests/unicase/test-u16-is-lowercase.c: Likewise.
17228         * tests/unicase/test-u16-is-titlecase.c: Likewise.
17229         * tests/unicase/test-u16-is-uppercase.c: Likewise.
17230         * tests/unicase/test-u16-tolower.c: Likewise.
17231         * tests/unicase/test-u16-totitle.c: Likewise.
17232         * tests/unicase/test-u16-toupper.c: Likewise.
17233         * tests/unicase/test-u32-casecmp.c: Likewise.
17234         * tests/unicase/test-u32-casecoll.c: Likewise.
17235         * tests/unicase/test-u32-casefold.c: Likewise.
17236         * tests/unicase/test-u32-is-cased.c: Likewise.
17237         * tests/unicase/test-u32-is-casefolded.c: Likewise.
17238         * tests/unicase/test-u32-is-lowercase.c: Likewise.
17239         * tests/unicase/test-u32-is-titlecase.c: Likewise.
17240         * tests/unicase/test-u32-is-uppercase.c: Likewise.
17241         * tests/unicase/test-u32-tolower.c: Likewise.
17242         * tests/unicase/test-u32-totitle.c: Likewise.
17243         * tests/unicase/test-u32-toupper.c: Likewise.
17244         * tests/unicase/test-ulc-casecmp.c: Likewise.
17245         * tests/unicase/test-ulc-casecoll.c: Likewise.
17246         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17247         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17248         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17249         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17250         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17251         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17252         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17253         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17254         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17255         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17256         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17257         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17258         * tests/unictype/test-bidi_byname.c: Likewise.
17259         * tests/unictype/test-bidi_name.c: Likewise.
17260         * tests/unictype/test-bidi_of.c: Likewise.
17261         * tests/unictype/test-bidi_test.c: Likewise.
17262         * tests/unictype/test-block_list.c: Likewise.
17263         * tests/unictype/test-block_of.c: Likewise.
17264         * tests/unictype/test-block_test.c: Likewise.
17265         * tests/unictype/test-categ_and.c: Likewise.
17266         * tests/unictype/test-categ_and_not.c: Likewise.
17267         * tests/unictype/test-categ_byname.c: Likewise.
17268         * tests/unictype/test-categ_name.c: Likewise.
17269         * tests/unictype/test-categ_none.c: Likewise.
17270         * tests/unictype/test-categ_of.c: Likewise.
17271         * tests/unictype/test-categ_or.c: Likewise.
17272         * tests/unictype/test-categ_test_withtable.c: Likewise.
17273         * tests/unictype/test-combining.c: Likewise.
17274         * tests/unictype/test-decdigit.c: Likewise.
17275         * tests/unictype/test-digit.c: Likewise.
17276         * tests/unictype/test-mirror.c: Likewise.
17277         * tests/unictype/test-numeric.c: Likewise.
17278         * tests/unictype/test-pr_byname.c: Likewise.
17279         * tests/unictype/test-pr_test.c: Likewise.
17280         * tests/unictype/test-predicate-part1.h: Likewise.
17281         * tests/unictype/test-scripts.c: Likewise.
17282         * tests/unictype/test-sy_c_ident.c: Likewise.
17283         * tests/unictype/test-sy_java_ident.c: Likewise.
17284         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
17285         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
17286         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
17287         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
17288         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
17289         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
17290         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
17291         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
17292         * tests/uninorm/test-canonical-decomposition.c: Likewise.
17293         * tests/uninorm/test-compat-decomposition.c: Likewise.
17294         * tests/uninorm/test-composition.c: Likewise.
17295         * tests/uninorm/test-decomposing-form.c: Likewise.
17296         * tests/uninorm/test-decomposition.c: Likewise.
17297         * tests/uninorm/test-u8-nfc.c: Likewise.
17298         * tests/uninorm/test-u8-nfd.c: Likewise.
17299         * tests/uninorm/test-u8-nfkc.c: Likewise.
17300         * tests/uninorm/test-u8-nfkd.c: Likewise.
17301         * tests/uninorm/test-u8-normcmp.c: Likewise.
17302         * tests/uninorm/test-u8-normcoll.c: Likewise.
17303         * tests/uninorm/test-u16-nfc.c: Likewise.
17304         * tests/uninorm/test-u16-nfd.c: Likewise.
17305         * tests/uninorm/test-u16-nfkc.c: Likewise.
17306         * tests/uninorm/test-u16-nfkd.c: Likewise.
17307         * tests/uninorm/test-u16-normcmp.c: Likewise.
17308         * tests/uninorm/test-u16-normcoll.c: Likewise.
17309         * tests/uninorm/test-u32-nfc.c: Likewise.
17310         * tests/uninorm/test-u32-nfd.c: Likewise.
17311         * tests/uninorm/test-u32-nfkc.c: Likewise.
17312         * tests/uninorm/test-u32-nfkd.c: Likewise.
17313         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17314         * tests/uninorm/test-u32-normcmp.c: Likewise.
17315         * tests/uninorm/test-u32-normcoll.c: Likewise.
17316         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
17317         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17318         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17319         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17320         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17321         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17322         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17323         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17324         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17325         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17326         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17327         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17328         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17329         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17330         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17331         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17332         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17333         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17334         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17335         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17336         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17337         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17338         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17339         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17340         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17341         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17342         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17343         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17344         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17345         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
17346         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
17347         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
17348         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
17349         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17350         * tests/uniwidth/test-u8-width.c: Likewise.
17351         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17352         * tests/uniwidth/test-u16-width.c: Likewise.
17353         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17354         * tests/uniwidth/test-u32-width.c: Likewise.
17355         * tests/uniwidth/test-uc_width.c: Likewise.
17356         * tests/uniwidth/test-uc_width2.c: Likewise.
17357         * modules/acl-tests (Files): Add tests/macros.h.
17358         * modules/areadlink-tests (Files): Likewise.
17359         * modules/areadlink-with-size-tests (Files): Likewise.
17360         * modules/areadlinkat-tests (Files): Likewise.
17361         * modules/areadlinkat-with-size-tests (Files): Likewise.
17362         * modules/argmatch-tests (Files): Likewise.
17363         * modules/argv-iter-tests (Files): Likewise.
17364         * modules/array-list-tests (Files): Likewise.
17365         * modules/array-mergesort-tests (Files): Likewise.
17366         * modules/array-oset-tests (Files): Likewise.
17367         * modules/avltree-list-tests (Files): Likewise.
17368         * modules/avltree-oset-tests (Files): Likewise.
17369         * modules/avltreehash-list-tests (Files): Likewise.
17370         * modules/base64-tests (Files): Likewise.
17371         * modules/binary-io-tests (Files): Likewise.
17372         * modules/bitrotate-tests (Files): Likewise.
17373         * modules/btowc-tests (Files): Likewise.
17374         * modules/byteswap-tests (Files): Likewise.
17375         * modules/c-ctype-tests (Files): Likewise.
17376         * modules/c-stack-tests (Files): Likewise.
17377         * modules/c-strcase-tests (Files): Likewise.
17378         * modules/c-strcasestr-tests (Files): Likewise.
17379         * modules/c-strstr-tests (Files): Likewise.
17380         * modules/canonicalize-lgpl-tests (Files): Likewise.
17381         * modules/canonicalize-tests (Files): Likewise.
17382         * modules/carray-list-tests (Files): Likewise.
17383         * modules/ceilf-tests (Files): Likewise.
17384         * modules/ceill-tests (Files): Likewise.
17385         * modules/chown-tests (Files): Likewise.
17386         * modules/cloexec-tests (Files): Likewise.
17387         * modules/copy-file-tests (Files): Likewise.
17388         * modules/count-one-bits-tests (Files): Likewise.
17389         * modules/dprintf-posix-tests (Files): Likewise.
17390         * modules/dup2-tests (Files): Likewise.
17391         * modules/dup3-tests (Files): Likewise.
17392         * modules/duplocale-tests (Files): Likewise.
17393         * modules/fbufmode-tests (Files): Likewise.
17394         * modules/fchdir-tests (Files): Likewise.
17395         * modules/fcntl-safer-tests (Files): Likewise.
17396         * modules/fcntl-tests (Files): Likewise.
17397         * modules/fdopendir-tests (Files): Likewise.
17398         * modules/fdutimensat-tests (Files): Likewise.
17399         * modules/fflush-tests (Files): Likewise.
17400         * modules/filevercmp-tests (Files): Likewise.
17401         * modules/flock-tests (Files): Likewise.
17402         * modules/floorf-tests (Files): Likewise.
17403         * modules/floorl-tests (Files): Likewise.
17404         * modules/fnmatch-tests (Files): Likewise.
17405         * modules/fopen-safer-tests (Files): Likewise.
17406         * modules/fopen-tests (Files): Likewise.
17407         * modules/fpending-tests (Files): Likewise.
17408         * modules/fprintf-posix-tests (Files): Likewise.
17409         * modules/fpurge-tests (Files): Likewise.
17410         * modules/freadable-tests (Files): Likewise.
17411         * modules/freadahead-tests (Files): Likewise.
17412         * modules/freading-tests (Files): Likewise.
17413         * modules/freadptr-tests (Files): Likewise.
17414         * modules/freadseek-tests (Files): Likewise.
17415         * modules/freopen-tests (Files): Likewise.
17416         * modules/frexp-nolibm-tests (Files): Likewise.
17417         * modules/frexp-tests (Files): Likewise.
17418         * modules/frexpl-nolibm-tests (Files): Likewise.
17419         * modules/frexpl-tests (Files): Likewise.
17420         * modules/fseek-tests (Files): Likewise.
17421         * modules/fseeko-tests (Files): Likewise.
17422         * modules/fstrcmp-tests (Files): Likewise.
17423         * modules/fsync-tests (Files): Likewise.
17424         * modules/ftell-tests (Files): Likewise.
17425         * modules/ftello-tests (Files): Likewise.
17426         * modules/func-tests (Files): Likewise.
17427         * modules/futimens-tests (Files): Likewise.
17428         * modules/fwritable-tests (Files): Likewise.
17429         * modules/fwriting-tests (Files): Likewise.
17430         * modules/getcwd-tests (Files): Likewise.
17431         * modules/getdate-tests (Files): Likewise.
17432         * modules/getdelim-tests (Files): Likewise.
17433         * modules/getdtablesize-tests (Files): Likewise.
17434         * modules/getgroups-tests (Files): Likewise.
17435         * modules/getline-tests (Files): Likewise.
17436         * modules/getndelim2-tests (Files): Likewise.
17437         * modules/glob-tests (Files): Likewise.
17438         * modules/hash-tests (Files): Likewise.
17439         * modules/i-ring-tests (Files): Likewise.
17440         * modules/iconv-tests (Files): Likewise.
17441         * modules/iconv_open-utf-tests (Files): Likewise.
17442         * modules/idpriv-drop-tests (Files): Likewise.
17443         * modules/idpriv-droptemp-tests (Files): Likewise.
17444         * modules/inet_ntop-tests (Files): Likewise.
17445         * modules/inet_pton-tests (Files): Likewise.
17446         * modules/isblank-tests (Files): Likewise.
17447         * modules/isfinite-tests (Files): Likewise.
17448         * modules/isinf-tests (Files): Likewise.
17449         * modules/isnan-tests (Files): Likewise.
17450         * modules/isnand-nolibm-tests (Files): Likewise.
17451         * modules/isnand-tests (Files): Likewise.
17452         * modules/isnanf-nolibm-tests (Files): Likewise.
17453         * modules/isnanf-tests (Files): Likewise.
17454         * modules/isnanl-nolibm-tests (Files): Likewise.
17455         * modules/isnanl-tests (Files): Likewise.
17456         * modules/lchown-tests (Files): Likewise.
17457         * modules/ldexpl-tests (Files): Likewise.
17458         * modules/link-tests (Files): Likewise.
17459         * modules/linkat-tests (Files): Likewise.
17460         * modules/linked-list-tests (Files): Likewise.
17461         * modules/linkedhash-list-tests (Files): Likewise.
17462         * modules/localename-tests (Files): Likewise.
17463         * modules/lseek-tests (Files): Likewise.
17464         * modules/lstat-tests (Files): Likewise.
17465         * modules/mbmemcasecmp-tests (Files): Likewise.
17466         * modules/mbmemcasecoll-tests (Files): Likewise.
17467         * modules/mbrtowc-tests (Files): Likewise.
17468         * modules/mbscasecmp-tests (Files): Likewise.
17469         * modules/mbscasestr-tests (Files): Likewise.
17470         * modules/mbschr-tests (Files): Likewise.
17471         * modules/mbscspn-tests (Files): Likewise.
17472         * modules/mbsinit-tests (Files): Likewise.
17473         * modules/mbsncasecmp-tests (Files): Likewise.
17474         * modules/mbsnrtowcs-tests (Files): Likewise.
17475         * modules/mbspbrk-tests (Files): Likewise.
17476         * modules/mbspcasecmp-tests (Files): Likewise.
17477         * modules/mbsrchr-tests (Files): Likewise.
17478         * modules/mbsrtowcs-tests (Files): Likewise.
17479         * modules/mbsspn-tests (Files): Likewise.
17480         * modules/mbsstr-tests (Files): Likewise.
17481         * modules/memchr-tests (Files): Likewise.
17482         * modules/memchr2-tests (Files): Likewise.
17483         * modules/memcmp-tests (Files): Likewise.
17484         * modules/memmem-tests (Files): Likewise.
17485         * modules/memrchr-tests (Files): Likewise.
17486         * modules/mkdir-tests (Files): Likewise.
17487         * modules/mkfifo-tests (Files): Likewise.
17488         * modules/mkfifoat-tests (Files): Likewise.
17489         * modules/mknod-tests (Files): Likewise.
17490         * modules/nanosleep-tests (Files): Likewise.
17491         * modules/nl_langinfo-tests (Files): Likewise.
17492         * modules/obstack-printf-tests (Files): Likewise.
17493         * modules/open-tests (Files): Likewise.
17494         * modules/openat-tests (Files): Likewise.
17495         * modules/pipe-filter-gi-tests (Files): Likewise.
17496         * modules/pipe-filter-ii-tests (Files): Likewise.
17497         * modules/pipe2-tests (Files): Likewise.
17498         * modules/popen-safer-tests (Files): Likewise.
17499         * modules/popen-tests (Files): Likewise.
17500         * modules/posixtm-tests (Files): Likewise.
17501         * modules/pread-tests (Files): Likewise.
17502         * modules/printf-frexp-tests (Files): Likewise.
17503         * modules/printf-frexpl-tests (Files): Likewise.
17504         * modules/printf-posix-tests (Files): Likewise.
17505         * modules/priv-set-tests (Files): Likewise.
17506         * modules/quotearg-tests (Files): Likewise.
17507         * modules/random_r-tests (Files): Likewise.
17508         * modules/rawmemchr-tests (Files): Likewise.
17509         * modules/rbtree-list-tests (Files): Likewise.
17510         * modules/rbtree-oset-tests (Files): Likewise.
17511         * modules/rbtreehash-list-tests (Files): Likewise.
17512         * modules/readlink-tests (Files): Likewise.
17513         * modules/remove-tests (Files): Likewise.
17514         * modules/rename-tests (Files): Likewise.
17515         * modules/renameat-tests (Files): Likewise.
17516         * modules/rmdir-tests (Files): Likewise.
17517         * modules/round-tests (Files): Likewise.
17518         * modules/roundf-tests (Files): Likewise.
17519         * modules/roundl-tests (Files): Likewise.
17520         * modules/safe-alloc-tests (Files): Likewise.
17521         * modules/setenv-tests (Files): Likewise.
17522         * modules/sigaction-tests (Files): Likewise.
17523         * modules/signbit-tests (Files): Likewise.
17524         * modules/sleep-tests (Files): Likewise.
17525         * modules/snprintf-posix-tests (Files): Likewise.
17526         * modules/snprintf-tests (Files): Likewise.
17527         * modules/sprintf-posix-tests (Files): Likewise.
17528         * modules/stat-tests (Files): Likewise.
17529         * modules/stat-time-tests (Files): Likewise.
17530         * modules/strcasestr-tests (Files): Likewise.
17531         * modules/strchrnul-tests (Files): Likewise.
17532         * modules/strerror-tests (Files): Likewise.
17533         * modules/striconv-tests (Files): Likewise.
17534         * modules/striconveh-tests (Files): Likewise.
17535         * modules/striconveha-tests (Files): Likewise.
17536         * modules/strsignal-tests (Files): Likewise.
17537         * modules/strstr-tests (Files): Likewise.
17538         * modules/strtod-tests (Files): Likewise.
17539         * modules/strverscmp-tests (Files): Likewise.
17540         * modules/symlink-tests (Files): Likewise.
17541         * modules/symlinkat-tests (Files): Likewise.
17542         * modules/trunc-tests (Files): Likewise.
17543         * modules/truncf-tests (Files): Likewise.
17544         * modules/truncl-tests (Files): Likewise.
17545         * modules/uname-tests (Files): Likewise.
17546         * modules/unicase/cased-tests (Files): Likewise.
17547         * modules/unicase/ignorable-tests (Files): Likewise.
17548         * modules/unicase/locale-language-tests (Files): Likewise.
17549         * modules/unicase/tolower-tests (Files): Likewise.
17550         * modules/unicase/totitle-tests (Files): Likewise.
17551         * modules/unicase/toupper-tests (Files): Likewise.
17552         * modules/unicase/u8-casecmp-tests (Files): Likewise.
17553         * modules/unicase/u8-casecoll-tests (Files): Likewise.
17554         * modules/unicase/u8-casefold-tests (Files): Likewise.
17555         * modules/unicase/u8-is-cased-tests (Files): Likewise.
17556         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
17557         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
17558         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
17559         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
17560         * modules/unicase/u8-tolower-tests (Files): Likewise.
17561         * modules/unicase/u8-totitle-tests (Files): Likewise.
17562         * modules/unicase/u8-toupper-tests (Files): Likewise.
17563         * modules/unicase/u16-casecmp-tests (Files): Likewise.
17564         * modules/unicase/u16-casecoll-tests (Files): Likewise.
17565         * modules/unicase/u16-casefold-tests (Files): Likewise.
17566         * modules/unicase/u16-is-cased-tests (Files): Likewise.
17567         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
17568         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
17569         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
17570         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
17571         * modules/unicase/u16-tolower-tests (Files): Likewise.
17572         * modules/unicase/u16-totitle-tests (Files): Likewise.
17573         * modules/unicase/u16-toupper-tests (Files): Likewise.
17574         * modules/unicase/u32-casecmp-tests (Files): Likewise.
17575         * modules/unicase/u32-casecoll-tests (Files): Likewise.
17576         * modules/unicase/u32-casefold-tests (Files): Likewise.
17577         * modules/unicase/u32-is-cased-tests (Files): Likewise.
17578         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
17579         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
17580         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
17581         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
17582         * modules/unicase/u32-tolower-tests (Files): Likewise.
17583         * modules/unicase/u32-totitle-tests (Files): Likewise.
17584         * modules/unicase/u32-toupper-tests (Files): Likewise.
17585         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
17586         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
17587         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
17588         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
17589         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
17590         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
17591         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
17592         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
17593         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
17594         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
17595         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
17596         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
17597         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
17598         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
17599         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
17600         * modules/unictype/bidicategory-name-tests (Files): Likewise.
17601         * modules/unictype/bidicategory-of-tests (Files): Likewise.
17602         * modules/unictype/bidicategory-test-tests (Files): Likewise.
17603         * modules/unictype/block-list-tests (Files): Likewise.
17604         * modules/unictype/block-of-tests (Files): Likewise.
17605         * modules/unictype/block-test-tests (Files): Likewise.
17606         * modules/unictype/category-C-tests (Files): Likewise.
17607         * modules/unictype/category-Cc-tests (Files): Likewise.
17608         * modules/unictype/category-Cf-tests (Files): Likewise.
17609         * modules/unictype/category-Cn-tests (Files): Likewise.
17610         * modules/unictype/category-Co-tests (Files): Likewise.
17611         * modules/unictype/category-Cs-tests (Files): Likewise.
17612         * modules/unictype/category-L-tests (Files): Likewise.
17613         * modules/unictype/category-Ll-tests (Files): Likewise.
17614         * modules/unictype/category-Lm-tests (Files): Likewise.
17615         * modules/unictype/category-Lo-tests (Files): Likewise.
17616         * modules/unictype/category-Lt-tests (Files): Likewise.
17617         * modules/unictype/category-Lu-tests (Files): Likewise.
17618         * modules/unictype/category-M-tests (Files): Likewise.
17619         * modules/unictype/category-Mc-tests (Files): Likewise.
17620         * modules/unictype/category-Me-tests (Files): Likewise.
17621         * modules/unictype/category-Mn-tests (Files): Likewise.
17622         * modules/unictype/category-N-tests (Files): Likewise.
17623         * modules/unictype/category-Nd-tests (Files): Likewise.
17624         * modules/unictype/category-Nl-tests (Files): Likewise.
17625         * modules/unictype/category-No-tests (Files): Likewise.
17626         * modules/unictype/category-P-tests (Files): Likewise.
17627         * modules/unictype/category-Pc-tests (Files): Likewise.
17628         * modules/unictype/category-Pd-tests (Files): Likewise.
17629         * modules/unictype/category-Pe-tests (Files): Likewise.
17630         * modules/unictype/category-Pf-tests (Files): Likewise.
17631         * modules/unictype/category-Pi-tests (Files): Likewise.
17632         * modules/unictype/category-Po-tests (Files): Likewise.
17633         * modules/unictype/category-Ps-tests (Files): Likewise.
17634         * modules/unictype/category-S-tests (Files): Likewise.
17635         * modules/unictype/category-Sc-tests (Files): Likewise.
17636         * modules/unictype/category-Sk-tests (Files): Likewise.
17637         * modules/unictype/category-Sm-tests (Files): Likewise.
17638         * modules/unictype/category-So-tests (Files): Likewise.
17639         * modules/unictype/category-Z-tests (Files): Likewise.
17640         * modules/unictype/category-Zl-tests (Files): Likewise.
17641         * modules/unictype/category-Zp-tests (Files): Likewise.
17642         * modules/unictype/category-Zs-tests (Files): Likewise.
17643         * modules/unictype/category-and-not-tests (Files): Likewise.
17644         * modules/unictype/category-and-tests (Files): Likewise.
17645         * modules/unictype/category-byname-tests (Files): Likewise.
17646         * modules/unictype/category-name-tests (Files): Likewise.
17647         * modules/unictype/category-none-tests (Files): Likewise.
17648         * modules/unictype/category-of-tests (Files): Likewise.
17649         * modules/unictype/category-or-tests (Files): Likewise.
17650         * modules/unictype/category-test-withtable-tests (Files): Likewise.
17651         * modules/unictype/combining-class-tests (Files): Likewise.
17652         * modules/unictype/ctype-alnum-tests (Files): Likewise.
17653         * modules/unictype/ctype-alpha-tests (Files): Likewise.
17654         * modules/unictype/ctype-blank-tests (Files): Likewise.
17655         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
17656         * modules/unictype/ctype-digit-tests (Files): Likewise.
17657         * modules/unictype/ctype-graph-tests (Files): Likewise.
17658         * modules/unictype/ctype-lower-tests (Files): Likewise.
17659         * modules/unictype/ctype-print-tests (Files): Likewise.
17660         * modules/unictype/ctype-punct-tests (Files): Likewise.
17661         * modules/unictype/ctype-space-tests (Files): Likewise.
17662         * modules/unictype/ctype-upper-tests (Files): Likewise.
17663         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
17664         * modules/unictype/decimal-digit-tests (Files): Likewise.
17665         * modules/unictype/digit-tests (Files): Likewise.
17666         * modules/unictype/mirror-tests (Files): Likewise.
17667         * modules/unictype/numeric-tests (Files): Likewise.
17668         * modules/unictype/property-alphabetic-tests (Files): Likewise.
17669         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
17670         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
17671         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
17672         Likewise.
17673         * modules/unictype/property-bidi-block-separator-tests (Files):
17674         Likewise.
17675         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
17676         Likewise.
17677         * modules/unictype/property-bidi-common-separator-tests (Files):
17678         Likewise.
17679         * modules/unictype/property-bidi-control-tests (Files): Likewise.
17680         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
17681         Likewise.
17682         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
17683         Likewise.
17684         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
17685         Likewise.
17686         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
17687         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
17688         Likewise.
17689         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
17690         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
17691         Likewise.
17692         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
17693         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
17694         * modules/unictype/property-bidi-segment-separator-tests (Files):
17695         Likewise.
17696         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
17697         * modules/unictype/property-byname-tests (Files): Likewise.
17698         * modules/unictype/property-combining-tests (Files): Likewise.
17699         * modules/unictype/property-composite-tests (Files): Likewise.
17700         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
17701         * modules/unictype/property-dash-tests (Files): Likewise.
17702         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
17703         * modules/unictype/property-default-ignorable-code-point-tests (Files):
17704         Likewise.
17705         * modules/unictype/property-deprecated-tests (Files): Likewise.
17706         * modules/unictype/property-diacritic-tests (Files): Likewise.
17707         * modules/unictype/property-extender-tests (Files): Likewise.
17708         * modules/unictype/property-format-control-tests (Files): Likewise.
17709         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
17710         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
17711         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
17712         * modules/unictype/property-hex-digit-tests (Files): Likewise.
17713         * modules/unictype/property-hyphen-tests (Files): Likewise.
17714         * modules/unictype/property-id-continue-tests (Files): Likewise.
17715         * modules/unictype/property-id-start-tests (Files): Likewise.
17716         * modules/unictype/property-ideographic-tests (Files): Likewise.
17717         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
17718         * modules/unictype/property-ids-trinary-operator-tests (Files):
17719         Likewise.
17720         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
17721         * modules/unictype/property-iso-control-tests (Files): Likewise.
17722         * modules/unictype/property-join-control-tests (Files): Likewise.
17723         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
17724         * modules/unictype/property-line-separator-tests (Files): Likewise.
17725         * modules/unictype/property-logical-order-exception-tests (Files):
17726         Likewise.
17727         * modules/unictype/property-lowercase-tests (Files): Likewise.
17728         * modules/unictype/property-math-tests (Files): Likewise.
17729         * modules/unictype/property-non-break-tests (Files): Likewise.
17730         * modules/unictype/property-not-a-character-tests (Files): Likewise.
17731         * modules/unictype/property-numeric-tests (Files): Likewise.
17732         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
17733         * modules/unictype/property-other-default-ignorable-code-point-tests
17734         (Files): Likewise.
17735         * modules/unictype/property-other-grapheme-extend-tests (Files):
17736         Likewise.
17737         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
17738         * modules/unictype/property-other-id-start-tests (Files): Likewise.
17739         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
17740         * modules/unictype/property-other-math-tests (Files): Likewise.
17741         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
17742         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
17743         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
17744         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
17745         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
17746         * modules/unictype/property-private-use-tests (Files): Likewise.
17747         * modules/unictype/property-punctuation-tests (Files): Likewise.
17748         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
17749         * modules/unictype/property-radical-tests (Files): Likewise.
17750         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
17751         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
17752         * modules/unictype/property-space-tests (Files): Likewise.
17753         * modules/unictype/property-terminal-punctuation-tests (Files):
17754         Likewise.
17755         * modules/unictype/property-test-tests (Files): Likewise.
17756         * modules/unictype/property-titlecase-tests (Files): Likewise.
17757         * modules/unictype/property-unassigned-code-value-tests (Files):
17758         Likewise.
17759         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
17760         * modules/unictype/property-uppercase-tests (Files): Likewise.
17761         * modules/unictype/property-variation-selector-tests (Files): Likewise.
17762         * modules/unictype/property-white-space-tests (Files): Likewise.
17763         * modules/unictype/property-xid-continue-tests (Files): Likewise.
17764         * modules/unictype/property-xid-start-tests (Files): Likewise.
17765         * modules/unictype/property-zero-width-tests (Files): Likewise.
17766         * modules/unictype/scripts-tests (Files): Likewise.
17767         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
17768         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
17769         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
17770         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
17771         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
17772         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
17773         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
17774         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
17775         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
17776         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
17777         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
17778         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
17779         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
17780         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
17781         * modules/uninorm/composition-tests (Files): Likewise.
17782         * modules/uninorm/decomposing-form-tests (Files): Likewise.
17783         * modules/uninorm/decomposition-tests (Files): Likewise.
17784         * modules/uninorm/filter-tests (Files): Likewise.
17785         * modules/uninorm/nfc-tests (Files): Likewise.
17786         * modules/uninorm/nfd-tests (Files): Likewise.
17787         * modules/uninorm/nfkc-tests (Files): Likewise.
17788         * modules/uninorm/nfkd-tests (Files): Likewise.
17789         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
17790         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
17791         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
17792         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
17793         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
17794         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
17795         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
17796         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17797         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
17798         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
17799         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
17800         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
17801         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17802         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
17803         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
17804         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
17805         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
17806         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17807         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
17808         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
17809         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
17810         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
17811         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17812         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
17813         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
17814         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
17815         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
17816         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
17817         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
17818         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
17819         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
17820         * modules/uniwidth/u8-width-tests (Files): Likewise.
17821         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
17822         * modules/uniwidth/u16-width-tests (Files): Likewise.
17823         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
17824         * modules/uniwidth/u32-width-tests (Files): Likewise.
17825         * modules/uniwidth/width-tests (Files): Likewise.
17826         * modules/unlink-tests (Files): Likewise.
17827         * modules/unsetenv-tests (Files): Likewise.
17828         * modules/usleep-tests (Files): Likewise.
17829         * modules/utimens-tests (Files): Likewise.
17830         * modules/utimensat-tests (Files): Likewise.
17831         * modules/vasnprintf-posix-tests (Files): Likewise.
17832         * modules/vasnprintf-tests (Files): Likewise.
17833         * modules/vasprintf-posix-tests (Files): Likewise.
17834         * modules/vasprintf-tests (Files): Likewise.
17835         * modules/vdprintf-posix-tests (Files): Likewise.
17836         * modules/vfprintf-posix-tests (Files): Likewise.
17837         * modules/vprintf-posix-tests (Files): Likewise.
17838         * modules/vsnprintf-posix-tests (Files): Likewise.
17839         * modules/vsnprintf-tests (Files): Likewise.
17840         * modules/vsprintf-posix-tests (Files): Likewise.
17841         * modules/wcrtomb-tests (Files): Likewise.
17842         * modules/wcsnrtombs-tests (Files): Likewise.
17843         * modules/wcsrtombs-tests (Files): Likewise.
17844         * modules/wctype-tests (Files): Likewise.
17845         * modules/wcwidth-tests (Files): Likewise.
17846         * modules/xmemdup0-tests (Files): Likewise.
17847         * modules/xprintf-posix-tests (Files): Likewise.
17848         * modules/xvasprintf-tests (Files): Likewise.
17849
17850 2009-12-24  Eric Blake  <ebb9@byu.net>
17851
17852         test-nanosleep: fix typo
17853         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
17854         patch.
17855         Reported by Bruno Haible.
17856
17857 2009-12-24  Bruno Haible  <bruno@clisp.org>
17858
17859         Reduce namespace pollution on glibc systems.
17860         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
17861         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
17862         systems.
17863         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
17864         <getopt.h> on glibc systems.
17865         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
17866         systems.
17867         * lib/fcntl.c: Include <unistd.h> here instead.
17868
17869 2009-12-24  Bruno Haible  <bruno@clisp.org>
17870
17871         * lib/stdlib.in.h (includes): Fix typo in today's commit.
17872
17873 2009-12-24  Eric Blake  <ebb9@byu.net>
17874
17875         tests: add signature checks
17876         * tests/signature.h (SIGNATURE_CHECK): New file.
17877         * modules/atexit-tests (Files): Use it.
17878         * modules/btowc-tests (Files): Likewise.
17879         * modules/canonicalize-lgpl-tests (Files): Likewise.
17880         * modules/ceilf-tests (Files): Likewise.
17881         * modules/ceill-tests (Files): Likewise.
17882         * modules/chown-tests (Files): Likewise.
17883         * modules/dprintf-posix-tests (Files): Likewise.
17884         * modules/dup2-tests (Files): Likewise.
17885         * modules/dup3-tests (Files): Likewise.
17886         * modules/duplocale-tests (Files): Likewise.
17887         * modules/fchdir-tests (Files): Likewise.
17888         * modules/fcntl-tests (Files): Likewise.
17889         * modules/fdopendir-tests (Files): Likewise.
17890         * modules/fflush-tests (Files): Likewise.
17891         * modules/flock-tests (Files): Likewise.
17892         * modules/floorf-tests (Files): Likewise.
17893         * modules/floorl-tests (Files): Likewise.
17894         * modules/fnmatch-tests (Files): Likewise.
17895         * modules/fopen-tests (Files): Likewise.
17896         * modules/fprintf-posix-tests (Files): Likewise.
17897         * modules/freopen-tests (Files): Likewise.
17898         * modules/frexp-nolibm-tests (Files): Likewise.
17899         * modules/frexp-tests (Files): Likewise.
17900         * modules/frexpl-nolibm-tests (Files): Likewise.
17901         * modules/frexpl-tests (Files): Likewise.
17902         * modules/fseek-tests (Files): Likewise.
17903         * modules/fseeko-tests (Files): Likewise.
17904         * modules/fsync-tests (Files): Likewise.
17905         * modules/ftell-tests (Files): Likewise.
17906         * modules/ftello-tests (Files): Likewise.
17907         * modules/futimens-tests (Files): Likewise.
17908         * modules/getaddrinfo-tests (Files): Likewise.
17909         * modules/getcwd-tests (Files): Likewise.
17910         * modules/getdelim-tests (Files): Likewise.
17911         * modules/getdtablesize-tests (Files): Likewise.
17912         * modules/getgroups-tests (Files): Likewise.
17913         * modules/gethostname-tests (Files): Likewise.
17914         * modules/getline-tests (Files): Likewise.
17915         * modules/getopt-posix-tests (Files): Likewise.
17916         * modules/gettimeofday-tests (Files): Likewise.
17917         * modules/glob-tests (Files): Likewise.
17918         * modules/iconv-tests (Files): Likewise.
17919         * modules/inet_ntop-tests (Files): Likewise.
17920         * modules/inet_pton-tests (Files): Likewise.
17921         * modules/isblank-tests (Files): Likewise.
17922         * modules/lchown-tests (Files): Likewise.
17923         * modules/ldexpl-tests (Files): Likewise.
17924         * modules/link-tests (Files): Likewise.
17925         * modules/linkat-tests (Files): Likewise.
17926         * modules/lseek-tests (Files): Likewise.
17927         * modules/lstat-tests (Files): Likewise.
17928         * modules/mbrtowc-tests (Files): Likewise.
17929         * modules/mbsinit-tests (Files): Likewise.
17930         * modules/mbsnrtowcs-tests (Files): Likewise.
17931         * modules/mbsrtowcs-tests (Files): Likewise.
17932         * modules/memchr-tests (Files): Likewise.
17933         * modules/memcmp-tests (Files): Likewise.
17934         * modules/memmem-tests (Files): Likewise.
17935         * modules/memrchr-tests (Files): Likewise.
17936         * modules/mkdir-tests (Files): Likewise.
17937         * modules/mkfifo-tests (Files): Likewise.
17938         * modules/mkfifoat-tests (Files): Likewise.
17939         * modules/mknod-tests (Files): Likewise.
17940         * modules/nanosleep-tests (Files): Likewise.
17941         * modules/nl_langinfo-tests (Files): Likewise.
17942         * modules/obstack-printf-tests (Files): Likewise.
17943         * modules/open-tests (Files): Likewise.
17944         * modules/openat-tests (Files): Likewise.
17945         * modules/perror-tests (Files): Likewise.
17946         * modules/pipe2-tests (Files): Likewise.
17947         * modules/poll-tests (Files): Likewise.
17948         * modules/popen-tests (Files): Likewise.
17949         * modules/posix_spawn-tests (Files): Likewise.
17950         * modules/posix_spawnp-tests (Files): Likewise.
17951         * modules/pread-tests (Files): Likewise.
17952         * modules/printf-posix-tests (Files): Likewise.
17953         * modules/pty-tests (Files): Likewise.
17954         * modules/random_r-tests (Files): Likewise.
17955         * modules/rawmemchr-tests (Files): Likewise.
17956         * modules/readlink-tests (Files): Likewise.
17957         * modules/remove-tests (Files): Likewise.
17958         * modules/rename-tests (Files): Likewise.
17959         * modules/renameat-tests (Files): Likewise.
17960         * modules/rmdir-tests (Files): Likewise.
17961         * modules/round-tests (Files): Likewise.
17962         * modules/roundf-tests (Files): Likewise.
17963         * modules/roundl-tests (Files): Likewise.
17964         * modules/select-tests (Files): Likewise.
17965         * modules/setenv-tests (Files): Likewise.
17966         * modules/sigaction-tests (Files): Likewise.
17967         * modules/sleep-tests (Files): Likewise.
17968         * modules/snprintf-posix-tests (Files): Likewise.
17969         * modules/snprintf-tests (Files): Likewise.
17970         * modules/sprintf-posix-tests (Files): Likewise.
17971         * modules/stat-tests (Files): Likewise.
17972         * modules/strcasestr-tests (Files): Likewise.
17973         * modules/strchrnul-tests (Files): Likewise.
17974         * modules/strerror-tests (Files): Likewise.
17975         * modules/strsignal-tests (Files): Likewise.
17976         * modules/strstr-tests (Files): Likewise.
17977         * modules/strtod-tests (Files): Likewise.
17978         * modules/strverscmp-tests (Files): Likewise.
17979         * modules/symlink-tests (Files): Likewise.
17980         * modules/symlinkat-tests (Files): Likewise.
17981         * modules/times-tests (Files): Likewise.
17982         * modules/trunc-tests (Files): Likewise.
17983         * modules/truncf-tests (Files): Likewise.
17984         * modules/truncl-tests (Files): Likewise.
17985         * modules/tsearch-tests (Files): Likewise.
17986         * modules/uname-tests (Files): Likewise.
17987         * modules/unlink-tests (Files): Likewise.
17988         * modules/unsetenv-tests (Files): Likewise.
17989         * modules/usleep-tests (Files): Likewise.
17990         * modules/utimensat-tests (Files): Likewise.
17991         * modules/vasprintf-tests (Files): Likewise.
17992         * modules/vdprintf-posix-tests (Files): Likewise.
17993         * modules/vfprintf-posix-tests (Files): Likewise.
17994         * modules/vprintf-posix-tests (Files): Likewise.
17995         * modules/vsnprintf-posix-tests (Files): Likewise.
17996         * modules/vsnprintf-tests (Files): Likewise.
17997         * modules/vsprintf-posix-tests (Files): Likewise.
17998         * modules/wcrtomb-tests (Files): Likewise.
17999         * modules/wcsnrtombs-tests (Files): Likewise.
18000         * modules/wcsrtombs-tests (Files): Likewise.
18001         * modules/wcwidth-tests (Files): Likewise.
18002         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
18003         * tests/test-isinf.c (isinf): Likewise.
18004         * tests/test-isnan.c (isnan): Likewise.
18005         * tests/test-signbit.c (signbit): Likewise.
18006         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
18007         declaration, either as macro or with correct signature.
18008         (select): Ensure function under test is declared with correct
18009         signature in correct header.
18010         * tests/test-atexit.c (atexit): Likewise.
18011         * tests/test-btowc.c (btowc): Likewise.
18012         * tests/test-canonicalize-lgpl.c (realpath)
18013         (canonicalize_file_name): Likewise.
18014         * tests/test-ceilf1.c (ceilf): Likewise.
18015         * tests/test-ceill.c (ceill): Likewise.
18016         * tests/test-chown.c (chown): Likewise.
18017         * tests/test-dprintf-posix.c (dprintf): Likewise.
18018         * tests/test-dup2.c (dup2): Likewise.
18019         * tests/test-dup3.c (dup3): Likewise.
18020         * tests/test-duplocale.c (duplocale): Likewise.
18021         * tests/test-fchdir.c (fchdir): Likewise.
18022         * tests/test-fchownat.c (fchownat): Likewise.
18023         * tests/test-fcntl.c (fcntl): Likewise.
18024         * tests/test-fdopendir.c (fdopendir): Likewise.
18025         * tests/test-fflush.c (fflush): Likewise.
18026         * tests/test-flock.c (flock): Likewise.
18027         * tests/test-floorf1.c (floorf): Likewise.
18028         * tests/test-floorl.c (floorl): Likewise.
18029         * tests/test-fnmatch.c (fnmatch): Likewise.
18030         * tests/test-fopen.c (fopen): Likewise.
18031         * tests/test-fprintf-posix.c (fprintf): Likewise.
18032         * tests/test-freopen.c (freopen): Likewise.
18033         * tests/test-frexp.c (frexp): Likewise.
18034         * tests/test-frexpl.c (frexpl): Likewise.
18035         * tests/test-fseek.c (fseek): Likewise.
18036         * tests/test-fseeko.c (fseeko): Likewise.
18037         * tests/test-fstatat.c (fstatat): Likewise.
18038         * tests/test-fsync.c (fsync): Likewise.
18039         * tests/test-ftell.c (ftell): Likewise.
18040         * tests/test-ftello.c (ftello): Likewise.
18041         * tests/test-futimens.c (futimens): Likewise.
18042         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
18043         (gai_strerror): Likewise.
18044         * tests/test-getcwd.c (getcwd): Likewise.
18045         * tests/test-getdelim.c (getdelim): Likewise.
18046         * tests/test-getdtablesize.c (getdtablesize): Likewise.
18047         * tests/test-getgroups.c (getgroups): Likewise.
18048         * tests/test-gethostname.c (gethostname): Likewise.
18049         * tests/test-getline.c (getline): Likewise.
18050         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
18051         Likewise.
18052         * tests/test-gettimeofday.c (gettimeofday): Likewise.
18053         * tests/test-glob.c (glob, globfree): Likewise.
18054         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
18055         * tests/test-inet_ntop.c (inet_ntop): Likewise.
18056         * tests/test-inet_pton.c (inet_pton): Likewise.
18057         * tests/test-isblank.c (isblank): Likewise.
18058         * tests/test-lchown.c (lchown): Likewise.
18059         * tests/test-ldexpl.c (ldexpl): Likewise.
18060         * tests/test-link.c (link): Likewise.
18061         * tests/test-linkat.c (linkat): Likewise.
18062         * tests/test-lseek.c (lseek): Likewise.
18063         * tests/test-lstat.c (lstat): Likewise.
18064         * tests/test-mbrtowc.c (mbrtowc): Likewise.
18065         * tests/test-mbsinit.c (mbsinit): Likewise.
18066         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
18067         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
18068         * tests/test-memchr.c (memchr): Likewise.
18069         * tests/test-memcmp.c (memcmp): Likewise.
18070         * tests/test-memmem.c (memmem): Likewise.
18071         * tests/test-memrchr.c (memrchr): Likewise.
18072         * tests/test-mkdir.c (mkdir): Likewise.
18073         * tests/test-mkdirat.c (mkdirat): Likewise.
18074         * tests/test-mkfifo.c (mkfifo): Likewise.
18075         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
18076         * tests/test-mknod.c (mknod): Likewise.
18077         * tests/test-nanosleep.c (nanosleep): Likewise.
18078         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
18079         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
18080         Likewise.
18081         * tests/test-open.c (open): Likewise.
18082         * tests/test-openat.c (openat): Likewise.
18083         * tests/test-perror.c (perror): Likewise.
18084         * tests/test-pipe2.c (pipe2): Likewise.
18085         * tests/test-poll.c (poll): Likewise.
18086         * tests/test-popen.c (popen, pclose): Likewise.
18087         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
18088         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
18089         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
18090         (posix_spawn_file_actions_destroy)
18091         (posix_spawn_file_actions_addclose)
18092         (posix_spawn_file_actions_addopen)
18093         (posix_spawn_file_actions_adddup2): Likewise.
18094         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
18095         * tests/test-pread.c (pread): Likewise.
18096         * tests/test-printf-posix.c (printf): Likewise.
18097         * tests/test-pty.c (openpty, forkpty): Likewise.
18098         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
18099         (random_r): Likewise.
18100         * tests/test-rawmemchr.c (rawmemchr): Likewise.
18101         * tests/test-readlink.c (readlink): Likewise.
18102         * tests/test-remove.c (remove): Likewise.
18103         * tests/test-rename.c (rename): Likewise.
18104         * tests/test-renameat.c (renameat): Likewise.
18105         * tests/test-rmdir.c (rmdir): Likewise.
18106         * tests/test-round1.c (round): Likewise.
18107         * tests/test-roundf1.c (roundf): Likewise.
18108         * tests/test-roundl.c (roundl): Likewise.
18109         * tests/test-setenv.c (setenv): Likewise.
18110         * tests/test-sigaction.c (sigaction): Likewise.
18111         * tests/test-sleep.c (sleep): Likewise.
18112         * tests/test-snprintf.c (snprintf): Likewise.
18113         * tests/test-sprintf-posix.c (sprintf): Likewise.
18114         * tests/test-stat.c (stat): Likewise.
18115         * tests/test-stpncpy.c (stpncpy): Likewise.
18116         * tests/test-strcasestr.c (strcasestr): Likewise.
18117         * tests/test-strchrnul.c (strchrnul): Likewise.
18118         * tests/test-strerror.c (strerror): Likewise.
18119         * tests/test-strsignal.c (strsignal): Likewise.
18120         * tests/test-strstr.c (strstr): Likewise.
18121         * tests/test-strtod.c (strtod): Likewise.
18122         * tests/test-strverscmp.c (strverscmp): Likewise.
18123         * tests/test-symlink.c (symlink): Likewise.
18124         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
18125         * tests/test-times.c (times): Likewise.
18126         * tests/test-trunc1.c (trunc): Likewise.
18127         * tests/test-truncf1.c (truncf): Likewise.
18128         * tests/test-truncl.c (truncl): Likewise.
18129         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
18130         Likewise.
18131         * tests/test-uname.c (uname): Likewise.
18132         * tests/test-unlink.c (unlink): Likewise.
18133         * tests/test-unlinkat.c (unlinkat): Likewise.
18134         * tests/test-unsetenv.c (unsetenv): Likewise.
18135         * tests/test-usleep.c (usleep): Likewise.
18136         * tests/test-utimensat.c (utimensat): Likewise.
18137         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
18138         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
18139         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
18140         * tests/test-vprintf-posix.c (vprintf): Likewise.
18141         * tests/test-vsnprintf.c (vsnprintf): Likewise.
18142         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
18143         * tests/test-wcrtomb.c (wcrtomb): Likewise.
18144         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
18145         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
18146         * tests/test-wcwidth.c (wcwidth): Likewise.
18147
18148         build: pull in conditional headers during GNULIB_POSIXCHECK
18149         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
18150         definitions from any conditionally-included headers.
18151         * lib/stdlib.in.h (includes): Likewise.
18152         * lib/unistd.in.h (includes): Likewise.
18153
18154 2009-12-24  Bruno Haible  <bruno@clisp.org>
18155
18156         * tests/test-argv-iter.c: Include header file being tested immediately
18157         after config.h.
18158         * tests/test-base64.c: Likewise.
18159         * tests/test-flock.c: Likewise.
18160         * tests/test-fsync.c: Likewise.
18161         * tests/test-getdate.c: Likewise.
18162         * tests/test-getndelim2.c: Likewise.
18163         * tests/test-isfinite.c: Likewise.
18164         * tests/test-isinf.c: Likewise.
18165         * tests/test-strerror.c: Likewise.
18166         * tests/test-strsignal.c: Likewise.
18167
18168 2009-12-23  Eric Blake  <ebb9@byu.net>
18169
18170         unistd: work around cygwin bug
18171         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
18172         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
18173         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18174
18175 2009-12-23  Bruno Haible  <bruno@clisp.org>
18176
18177         localename: More tests.
18178         * tests/test-localename.c (SIZEOF): New macro.
18179         (categories): New variable.
18180         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
18181         test_locale_name_default): Add test w.r.t. thread locale.
18182         (test_locale_name_thread): New function.
18183         (main): Invoke it.
18184
18185         localename: Make aware of thread locale.
18186         * lib/localename.h (gl_locale_name_thread): New declaration.
18187         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
18188         behaviour with respect to thread locale.
18189         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
18190         <langinfo.h>, glthread/lock.h.
18191         (SIZE_BITS): New macro.
18192         (string_hash): New function.
18193         (struct hash_node): New type.
18194         (HASH_TABLE_SIZE): New macro.
18195         (struniq_hash_table, struniq_lock): New variables.
18196         (struniq): New function.
18197         (gl_locale_name_thread): New function.
18198         (gl_locale_name): Invoke it.
18199         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
18200         * modules/localename (Depends-on): Add lock.
18201         Reported by Mike Gran <spk121@yahoo.com>.
18202
18203 2009-12-23  Eric Blake  <ebb9@byu.net>
18204
18205         va-args: new module
18206         * modules/va-args: New file.
18207         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
18208         * MODULES.html.sh (Core language properties): Mention it.
18209
18210         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
18211         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
18212         named alias for __attribute__((__unused__)).
18213         * lib/chown.c: Update client.
18214         * lib/fchmodat.c: Likewise.
18215         * lib/fts.c: Likewise.
18216         * lib/getdate.y: Likewise.
18217         * lib/getgroups.c: Likewise.
18218         * lib/getopt.c: Likewise.
18219         * lib/getugroups.c: Likewise.
18220         * lib/mkdir.c: Likewise.
18221         * lib/mkfifo.c: Likewise.
18222         * lib/mkfifoat.c: Likewise.
18223         * lib/mknod.c: Likewise.
18224         * lib/mknodat.c: Likewise.
18225         * lib/readlink.c: Likewise.
18226         * lib/se-context.in.h: Likewise.
18227         * lib/se-selinux.in.h: Likewise.
18228         * lib/sockets.c: Likewise.
18229         * lib/symlink.c: Likewise.
18230         * lib/symlinkat.c: Likewise.
18231         * lib/unicodeio.c: Likewise.
18232         * lib/unistr.h: Likewise.
18233         * tests/test-areadlink.c: Likewise.
18234         * tests/test-areadlinkat.c: Likewise.
18235         * tests/test-filenamecat.c: Likewise.
18236         * tests/test-fseeko.c: Likewise.
18237         * tests/test-ftello.c: Likewise.
18238         * tests/test-getdate.c: Likewise.
18239         * tests/test-getgroups.c: Likewise.
18240         * tests/test-gethostname.c: Likewise.
18241         * tests/test-quotearg.c: Likewise.
18242         * tests/test-version-etc.c: Likewise.
18243         * tests/test-xalloc-die.c: Likewise.
18244         * tests/test-xfprintf-posix.c: Likewise.
18245         * tests/test-xprintf-posix.c: Likewise.
18246         * tests/test-xvasprintf.c: Likewise.
18247
18248         tests: avoid compiler warnings
18249         * tests/test-fcntl.c (main): Delete unused parameters.
18250         * tests/test-freopen-safer.c (main): Likewise.
18251         * tests/test-xalloc-die.c (main): Mark unused parameters.
18252         * tests/test-fseeko.c (main): Likewise.
18253         * tests/test-ftello.c (main): Likewise.
18254         * tests/test-nanosleep.c (main): Avoid declaration warning.
18255         * tests/test-sleep.c (main): Likewise.
18256         * tests/test-unsetenv.c (main): Silence warning about string
18257         literal.
18258         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18259
18260 2009-12-23  Bruno Haible  <bruno@clisp.org>
18261
18262         * tests/test-localename.c (test_locale_name): New function, extracted
18263         from main. Also test mixed situations.
18264         (test_locale_name_posix, test_locale_name_environ,
18265         test_locale_name_default): New functions.
18266         (main): Invoke them all.
18267         * modules/localename-tests (configure.ac): Test for newlocale.
18268
18269 2009-12-23  Bruno Haible  <bruno@clisp.org>
18270
18271         unistd: Ensure getcwd gets declared before being overridden.
18272         * lib/unistd.in.h: Conditionally include <io.h>.
18273
18274 2009-12-22  Bruno Haible  <bruno@clisp.org>
18275
18276         wchar: Diagnose broken combination of glibc and gcc versions and flags.
18277         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
18278         (gl_WCHAR_H): Invoke it.
18279         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
18280         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
18281         Reported by Karl Berry <karl@freefriends.org>.
18282
18283 2009-12-22  Eric Blake  <ebb9@byu.net>
18284
18285         math, unistd: avoid redundant includes
18286         * lib/math.in.h (isnan): No need to re-include <math.h>.
18287         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
18288
18289         getsubopt: work around cygwin bug
18290         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
18291         avoid conflicting with system getsubopt.
18292         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
18293         bug.
18294
18295         getopt: synchronize from glibc
18296         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
18297         parameter order.  Adjust all callers.
18298         (_getopt_internal_r, main): Adjust quoting in error messages.
18299         Drop considerations for outdated POSIX 1003.2 error message.
18300         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
18301         callers.
18302         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
18303
18304         test-getopt: test stderr behavior
18305         * modules/getopt-posix-tests (Depends-on): Add dup2.
18306         * tests/test-getopt.c (ASSERT): Avoid stderr.
18307         (main): Move stderr to a temporary file.
18308         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
18309         Instead, add parameter to inform caller if output occurred.
18310         (test_getopt): Adjust all existing tests to expect silence, and
18311         add new tests of leading ":".
18312         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18313         glibc shortcomings with leading "-:" or "+:" in optstring.
18314         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18315         Likewise.
18316         * doc/posix-functions/getopt.texi (getopt): Likewise.
18317
18318         test-getopt: enhance test
18319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
18320         supports optind=0.
18321         * tests/test-getopt.c (OPTIND_MIN): Move...
18322         * tests/test-getopt.h (OPTIND_MIN): ...here.
18323         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
18324         Require that optind=0 works, since modern BSD supports it in
18325         addition to optreset, and since coreutils expects it.
18326         (test_getopt_long_only): New test.
18327         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18328         glibc shortcomings with 'W;', and enforcement of optind=0.
18329         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18330         Likewise.
18331
18332 2009-12-21  Bruno Haible  <bruno@clisp.org>
18333
18334         localename: Improvements for MacOS X and Cygwin.
18335         * lib/localename.h (gl_locale_name_environ): New declaration.
18336         * lib/localename.c (gl_locale_name_environ): New function, extracted from
18337         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
18338         (gl_locale_name_posix): Invoke it.
18339         (gl_locale_name_default): Add comments. Use Windows native API also on
18340         Cygwin.
18341
18342 2009-12-21  Bruno Haible  <bruno@clisp.org>
18343
18344         Update list of Win32 locale ids.
18345         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
18346         (LANG_SAMI): Renamed from LANG_SAAMI.
18347         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
18348         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
18349         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
18350         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
18351         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
18352         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
18353         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
18354         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
18355         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
18356         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
18357         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
18358         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
18359         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
18360         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
18361         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
18362         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
18363         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
18364         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
18365         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
18366         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
18367         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
18368         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
18369         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
18370         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
18371         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
18372         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
18373         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
18374         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
18375         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
18376         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
18377         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
18378         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
18379         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
18380         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
18381         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
18382         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
18383         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
18384         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
18385         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
18386         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
18387         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
18388         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
18389         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
18390         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
18391         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
18392         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
18393         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
18394         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
18395         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
18396         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
18397         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
18398         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
18399         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
18400         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
18401         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
18402         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
18403         Add more languages and countries for Sami, Sorbian. Add more countries
18404         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
18405         for Pashto. Change country for Syriac, Tswana.
18406
18407 2009-12-21  Eric Blake  <ebb9@byu.net>
18408
18409         test-utimens: avoid spurious failure
18410         * tests/test-chown.h (nap): Factor...
18411         * tests/nap.h: ...into new file.
18412         * tests/test-lchown.h (nap): Avoid duplication.
18413         * tests/test-utimens-common.h (nap): Use shared implementation,
18414         necessary on file systems with 1-second resolution.
18415         * modules/chown-tests (Files): Include new file.
18416         * modules/fdutimensat-tests (Files): Likewise.
18417         * modules/futimens-tests (Files): Likewise.
18418         * modules/lchown-tests (Files): Likewise.
18419         * modules/openat-tests (Files): Likewise.
18420         * modules/utimens-tests (Files): Likewise.
18421         * modules/utimensat-tests (Files): Likewise.
18422
18423 2009-12-19  Eric Blake  <ebb9@byu.net>
18424
18425         futimens, utimensat: work around Linux bug
18426         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
18427         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18428         * lib/utimensat.c (rpl_utimensat): Work around it.
18429         * lib/futimens.c (rpl_futimens): Adjust comment.
18430
18431         utimens: work around Linux ctime bug
18432         * lib/utimens.c (detect_ctime_bug): New helper function.
18433         (update_timespec): Differentiate between workaround needed for
18434         this bug vs. what is needed for systems that lack utimensat.
18435         (fdutimens, lutimens): Work around bug.
18436
18437         utimens: check for ctime update
18438         * tests/test-utimens-common.h (check_ctime): Define.
18439         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
18440         * tests/test-futimens.h (test_futimens): Likewise.
18441         * tests/test-lutimens.h (test_lutimens): Likewise.
18442         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18443         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18444
18445 2009-12-19  Bruno Haible  <bruno@clisp.org>
18446
18447         dprintf-posix: Check against memory leak fixed on 2009-12-15.
18448         * tests/test-dprintf-posix2.sh: New file.
18449         * tests/test-dprintf-posix2.c: New file.
18450         * modules/dprintf-posix-tests (Files): Add them.
18451         (configure.ac): Check for getrlimit and setrlimit.
18452         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18453
18454 2009-12-19  Bruno Haible  <bruno@clisp.org>
18455
18456         fprintf-posix: Check against memory leak fixed on 2009-12-15.
18457         * tests/test-fprintf-posix3.sh: New file.
18458         * tests/test-fprintf-posix3.c: New file.
18459         * modules/fprintf-posix-tests (Files): Add them.
18460         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18461
18462 2009-12-19  Eric Blake  <ebb9@byu.net>
18463
18464         dirfd: fix prototype
18465         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
18466         * lib/dirfd.c (dirfd): Likewise.
18467
18468         canonicalize: reduce memory usage
18469         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
18470         allocation to size.
18471         Reported by Solar Designer <solar@openwall.com>.
18472
18473 2009-12-19  Bruno Haible  <bruno@clisp.org>
18474
18475         New module attribute 'Applicability'.
18476         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
18477         * gnulib-tool: New option --extract-applicability.
18478         (func_usage): Document it.
18479         (sed_extract_prog): Recognize it.
18480         (func_get_applicability): New function.
18481         (func_import): Generalize handling of 'link-warning' module.
18482         * modules/link-warning (Applicability): New section.
18483         * modules/arg-nonnull (Applicability): New section.
18484         Repoted by Simon Josefsson <simon@josefsson.org>.
18485
18486 2009-12-19  Bruno Haible  <bruno@clisp.org>
18487
18488         fflush: tweak
18489         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
18490         * lib/fseeko.c (rpl_fseeko): Likewise.
18491
18492 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
18493
18494         * lib/gl_list.h: Fix typo in comment.
18495
18496 2009-12-16  Eric Blake  <ebb9@byu.net>
18497
18498         fcntl: use to simplify other modules
18499         * modules/cloexec (Depends-on): Add fcntl.
18500         * modules/fchdir (Depends-on): Likewise.
18501         * modules/fd-safer-flag (Depends-on): Likewise.
18502         * modules/unistd-safer (Depends-on): Likewise.
18503         * modules/dup3 (configure.ac): Set module indicator.
18504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
18505         missing.
18506         * lib/fchdir.c (_gl_register_dup): Fix comment.
18507         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
18508         * lib/dup-safer.c (dup_safer): Likewise.
18509         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
18510         * lib/dup3.c (dup3): Likewise.
18511         * tests/test-fchdir.c (main): Enhance test.
18512         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
18513
18514         fcntl: port portions of fcntl to mingw
18515         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
18516         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
18517         replacement for mingw.
18518         * modules/fcntl (Description): Update.
18519         (Depends-on): Add dup2.
18520         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
18521         * modules/fcntl-h (Makefile.am): Substitute it.
18522         * lib/fcntl.in.h (fcntl): Update declaration.
18523         (F_DUPFD, F_GETFD): New macros, when needed.
18524         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18525         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
18526         * tests/test-fcntl.c (check_flags, main): Enhance test for items
18527         we now guarantee.
18528
18529         fcntl: work around cygwin bug in F_DUPFD
18530         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
18531         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
18532         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
18533         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
18534         * doc/posix-functions/fcntl.texi (fcntl): Document it.
18535
18536         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
18537         * modules/fcntl (Files): List new files.
18538         (configure.ac): Run a test.
18539         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
18540         * lib/fcntl.c (rpl_fcntl): Likewise.
18541         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
18542         (gl_FCNTL_H): Always replace fcntl.h.
18543         * modules/fcntl-h (Makefile.am): Substitute witnesses.
18544         * lib/fcntl.in.h (fcntl): Declare replacement.
18545         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
18546         needed, plus a witness.
18547         * doc/posix-functions/fcntl.texi (fcntl): Document this.
18548         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18549         * tests/test-fcntl.c: New file.
18550         * modules/fcntl-tests: Likewise.
18551
18552         binary-io: avoid potential compilation warning
18553         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
18554         directives.
18555
18556         fflush: avoid compilation error on NetBSD
18557         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
18558         between off_t and fpos_t, since the latter is sometimes a struct.
18559         * lib/fseeko.c (rpl_fseeko): Likewise.
18560         Reported by Alexander Nasonov <alnsn@yandex.ru>.
18561
18562 2009-12-15  Eric Blake  <ebb9@byu.net>
18563
18564         fcntl-h, stdio, sys_ioctl: fix declarations
18565         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
18566         function must not take arguments.
18567         * lib/sys_ioctl.in.h (ioctl): Likewise.
18568         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
18569         (open): Add a link warning.
18570
18571 2009-12-15  Jim Meyering  <meyering@redhat.com>
18572
18573         areadlink, areadlink-with-size: relax license to LGPLv2+
18574         * modules/areadlink (License): Relax to LGPLv2+.
18575         * modules/areadlink-with-size (License): Likewise.
18576
18577 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
18578             Bruno Haible  <bruno@clisp.org>
18579
18580         *printf: Fix memory leak.
18581         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
18582         * lib/vfprintf.c (vfprintf): Likewise.
18583         * lib/dprintf.c (dprintf): Likewise.
18584         * lib/vdprintf.c (vdprintf): Likewise.
18585
18586 2009-12-14  Eric Blake  <ebb9@byu.net>
18587
18588         accept4: adjust module dependencies
18589         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
18590
18591         utimens: one more try at avoiding compiler warning
18592         * lib/utimens.c (lutimens): Lower scope of result.
18593
18594 2009-12-13  Bruno Haible  <bruno@clisp.org>
18595
18596         Move the malloc checking from module 'list' to new module 'xlist'.
18597         * modules/xlist: New file.
18598         * lib/gl_xlist.h: New file.
18599         * lib/gl_xlist.c: New file.
18600         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
18601         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
18602         gl_list_add_last, gl_list_add_before, gl_list_add_after,
18603         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
18604         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
18605         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
18606         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
18607         gl_sortedlist_nx_add): New declarations.
18608         (struct gl_list_implementation): Rename and change methods accordingly.
18609         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
18610         (gl_list_nx_create): Renamed from gl_list_create.
18611         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18612         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18613         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18614         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18615         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18616         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18617         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18618         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18619         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
18620         gl_list_create_empty.
18621         (gl_list_nx_create): Renamed from gl_list_create.
18622         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18623         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18624         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18625         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18626         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18627         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18628         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18629         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18630         * lib/gl_array_list.c: Don't include xalloc.h.
18631         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
18632         NULL upon out-of-memory.
18633         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
18634         out-of-memory.
18635         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
18636         Change return type to 'int'.
18637         (gl_array_nx_set_at): Renamed from gl_array_set_at.
18638         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18639         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
18640         upon out-of-memory.
18641         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
18642         upon out-of-memory.
18643         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
18644         upon out-of-memory.
18645         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
18646         upon out-of-memory.
18647         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
18648         out-of-memory.
18649         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
18650         Update.
18651         (gl_array_list_implementation): Update.
18652         * lib/gl_carray_list.c: Don't include xalloc.h.
18653         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
18654         Return NULL upon out-of-memory.
18655         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
18656         out-of-memory.
18657         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
18658         Change return type to 'int'.
18659         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
18660         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18661         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
18662         upon out-of-memory.
18663         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
18664         upon out-of-memory.
18665         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
18666         out-of-memory.
18667         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
18668         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
18669         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
18670         Update.
18671         (gl_carray_list_implementation): Update.
18672         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
18673         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
18674         gl_linked_create_empty. Return NULL upon out-of-memory.
18675         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
18676         out-of-memory.
18677         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
18678         Change return type to 'int'. Return -1 upon out-of-memory.
18679         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
18680         out-of-memory.
18681         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
18682         upon out-of-memory.
18683         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
18684         upon out-of-memory.
18685         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
18686         NULL upon out-of-memory.
18687         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
18688         upon out-of-memory.
18689         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
18690         out-of-memory.
18691         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
18692         Update.
18693         * lib/gl_linked_list.c: Don't include xalloc.h.
18694         (gl_linked_list_implementation): Update.
18695         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
18696         (add_to_bucket): Change return type to 'int'.
18697         (gl_linkedhash_list_implementation): Update.
18698         * lib/gl_anytree_list1.h (free_subtree): New function.
18699         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
18700         gl_tree_create_empty. Return NULL upon out-of-memory.
18701         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
18702         Change return type to 'int'. Return -1 upon out-of-memory.
18703         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
18704         out-of-memory.
18705         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
18706         (gl_tree_remove_node): New function, moved here from
18707         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
18708         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
18709         Update.
18710         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
18711         malloc, not xmalloc. Return NULL upon out-of-memory.
18712         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
18713         out-of-memory.
18714         (gl_tree_remove_node_from_tree): New function, extracted from
18715         gl_tree_remove_node.
18716         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
18717         upon out-of-memory.
18718         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
18719         out-of-memory.
18720         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
18721         upon out-of-memory.
18722         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
18723         upon out-of-memory.
18724         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
18725         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
18726         not xmalloc. Return NULL upon out-of-memory.
18727         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
18728         out-of-memory.
18729         (gl_tree_remove_node_from_tree): New function, extracted from
18730         gl_tree_remove_node.
18731         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
18732         upon out-of-memory.
18733         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
18734         out-of-memory.
18735         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
18736         upon out-of-memory.
18737         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
18738         upon out-of-memory.
18739         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
18740         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
18741         gl_anytree_list1.h before gl_anyavltree_list2.h.
18742         (gl_avltree_list_implementation): Update.
18743         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
18744         gl_anytree_list1.h before gl_anyavltree_list2.h.
18745         (gl_rbtree_list_implementation): Update.
18746         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
18747         Change return type to 'int'. Return -1 upon out-of-memory. Use
18748         __builtin_expect.
18749         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
18750         (gl_avltreehash_list_implementation): Update.
18751         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
18752         (gl_rbtreehash_list_implementation): Update.
18753         * modules/array-list (Depends-on): Remove xalloc.
18754         * modules/carray-list (Depends-on): Likewise.
18755         * modules/linked-list (Depends-on): Likewise.
18756         * modules/linkedhash-list (Depends-on): Likewise.
18757         * modules/avltree-list (Depends-on): Likewise.
18758         * modules/rbtree-list (Depends-on): Likewise.
18759         * modules/avltreehash-list (Depends-on): Likewise.
18760         * modules/rbtreehash-list (Depends-on): Likewise.
18761
18762         * modules/xsublist: New file.
18763         * lib/gl_xsublist.h: New file.
18764         * lib/gl_xsublist.c: New file.
18765         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
18766         (gl_sublist_nx_create): New declaration.
18767         * lib/gl_sublist.c: Don't include xalloc.h.
18768         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
18769         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
18770         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
18771         Change return type to 'int'. Return -1 upon out-of-memory.
18772         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
18773         upon out-of-memory.
18774         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
18775         NULL upon out-of-memory.
18776         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
18777         upon out-of-memory.
18778         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
18779         NULL upon out-of-memory.
18780         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
18781         NULL upon out-of-memory.
18782         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
18783         upon out-of-memory.
18784         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
18785         (gl_sublist_list_implementation): Update.
18786         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
18787         upon out-of-memory.
18788         * modules/sublist (Depends-on): Remove xalloc.
18789
18790         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
18791         * tests/test-carray_list.c: Likewise.
18792         * tests/test-linked_list.c: Likewise.
18793         * tests/test-linkedhash_list.c: Likewise.
18794         * tests/test-avltree_list.c: Likewise.
18795         * tests/test-rbtree_list.c: Likewise.
18796         * tests/test-avltreehash_list.c: Likewise.
18797         * tests/test-rbtreehash_list.c: Likewise.
18798         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
18799         * modules/carray-list-tests (Makefile.am): Likewise.
18800         * modules/linked-list-tests (Makefile.am): Likewise.
18801         * modules/linkedhash-list-tests (Makefile.am): Likewise.
18802         * modules/avltree-list-tests (Makefile.am): Likewise.
18803         * modules/rbtree-list-tests (Makefile.am): Likewise.
18804         * modules/avltreehash-list-tests (Makefile.am): Likewise.
18805         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
18806
18807         * NEWS: Mention the changes.
18808
18809         * lib/clean-temp.c: Include gl_xlist.h.
18810         * modules/clean-temp (Depends-on): Add xlist.
18811
18812         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
18813         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
18814
18815         * tests/test-array_oset.c: Include gl_xlist.h.
18816         * modules/array-oset-tests (Depends-on): Add xlist.
18817
18818         Reported by José E. Marchesi <jemarch@gnu.org>.
18819
18820 2009-12-13  Bruno Haible  <bruno@clisp.org>
18821
18822         Move the malloc checking from module 'oset' to new module 'xoset'.
18823         * modules/xoset: New file.
18824         * lib/gl_xoset.h: New file.
18825         * lib/gl_xoset.c: New file.
18826         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
18827         declarations.
18828         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
18829         (struct gl_oset_implementation): Rename and change methods accordingly.
18830         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
18831         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
18832         'int'. Mark as __warn_unused_result__.
18833         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
18834         gl_oset_create_empty.
18835         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
18836         'int'.
18837         * lib/gl_array_oset.c: Don't include xalloc.h.
18838         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
18839         malloc, not xmalloc.
18840         (grow): Change return type to 'int'. Don't call xalloc_die.
18841         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
18842         to 'int'.
18843         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
18844         'int'.
18845         (gl_array_oset_implementation): Update.
18846         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
18847         gl_tree_create_empty.
18848         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
18849         'int'.
18850         * lib/gl_avltree_oset.c: Don't include xalloc.h.
18851         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
18852         xmalloc.
18853         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
18854         not xmalloc.
18855         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
18856         xmalloc.
18857         (gl_avltree_oset_implementation): Update.
18858         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
18859         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
18860         xmalloc.
18861         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
18862         not xmalloc.
18863         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
18864         xmalloc.
18865         (gl_rbtree_oset_implementation): Update.
18866         * modules/array-oset (Depends-on): Remove xalloc.
18867         * modules/avltree-oset (Depends-on): Likewise.
18868         * modules/rbtree-oset (Depends-on): Likewise.
18869         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
18870         * tests/test-avltree_oset.c: Likewise.
18871         * tests/test-rbtree_oset.c: Likewise.
18872         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
18873         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
18874         * modules/rbtree-oset-tests (Makefile.am): Likewise.
18875         * NEWS: Mention the change.
18876
18877 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
18878
18879         maint.mk: allow a project to override release-prep commands
18880         * top/maint.mk (alpha, beta, stable): Move release-preparatory
18881         commands into a new rule.
18882         (release-prep): New rule.
18883         (release-prep-hook): New overridable variable.
18884
18885 2009-12-13  Bruno Haible  <bruno@clisp.org>
18886
18887         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
18888
18889 2009-12-13  Jim Meyering  <meyering@redhat.com>
18890
18891         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
18892         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
18893
18894 2009-12-12  Bruno Haible  <bruno@clisp.org>
18895
18896         duplocale: Tweak.
18897         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
18898
18899 2009-12-12  Karl Berry  <karl@gnu.org>
18900
18901         * config/srclist.txt (strtoll.c): tab changes, no more sync.
18902
18903 2009-12-12  Bruno Haible  <bruno@clisp.org>
18904
18905         * m4/po.m4: Undo incorrect untabification.
18906
18907 2009-12-12  Bruno Haible  <bruno@clisp.org>
18908
18909         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
18910         * modules/c-strtod (Depends-on): Add locale.
18911         * modules/c-strtold (Depends-on): Likewise.
18912
18913 2009-12-12  Bruno Haible  <bruno@clisp.org>
18914
18915         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
18916
18917 2009-12-11  Eric Blake  <ebb9@byu.net>
18918
18919         setenv: relax requirement in light of POSIX ruling
18920         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
18921         not NULL.
18922         * tests/test-setenv.c (main): Relax test.
18923         * tests/test-unsetenv.c (main): Likewise.
18924         * doc/posix-functions/setenv.texi (setenv): Document this.
18925         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
18926
18927 2009-12-11  Bruno Haible  <bruno@clisp.org>
18928
18929         New module 'fd-safer-flag'.
18930         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
18931         * lib/dup-safer.c (dup_safer_flag): Remove function.
18932         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
18933         * lib/fd-safer.c (fd_safer_flag): Remove function.
18934         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
18935         * modules/cloexec (configure.ac): Drop indicator macro.
18936         * modules/fd-safer-flag: New file.
18937         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
18938         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
18939         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
18940
18941 2009-12-11  Bruno Haible  <bruno@clisp.org>
18942
18943         Tests for module 'nl_langinfo'.
18944         * modules/nl_langinfo-tests: New file.
18945         * tests/test-nl_langinfo.sh: New file.
18946         * tests/test-nl_langinfo.c: New file.
18947
18948         New module 'nl_langinfo'.
18949         * lib/nl_langinfo.c: New file.
18950         * m4/nl_langinfo.m4: New file.
18951         * modules/nl_langinfo: New file.
18952         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
18953
18954 2009-12-11  Bruno Haible  <bruno@clisp.org>
18955
18956         Tests for module 'langinfo'.
18957         * modules/langinfo-tests: New file.
18958         * tests/test-langinfo.c: New file.
18959
18960         New module 'langinfo'.
18961         * lib/langinfo.in.h: New file.
18962         * m4/langinfo_h.m4: New file.
18963         * modules/langinfo: New file.
18964         * doc/posix-headers/langinfo.texi: Mention the new module.
18965
18966 2009-12-11  Bruno Haible  <bruno@clisp.org>
18967
18968         * lib/config.charset: Untabify.
18969
18970 2009-12-11  Bruno Haible  <bruno@clisp.org>
18971
18972         * modules/unistd-safer (configure.ac): Drop indicator macro.
18973
18974 2009-12-11  Bruno Haible  <bruno@clisp.org>
18975
18976         Move pipe2-safer code to its own file.
18977         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
18978         * lib/pipe-safer.c (pipe2_safer): Remove function.
18979         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
18980         (Makefile.am): Add it to lib_SOURCES.
18981
18982 2009-12-10  Bruno Haible  <bruno@clisp.org>
18983
18984         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
18985
18986 2009-12-10  Bruno Haible  <bruno@clisp.org>
18987
18988         Declare which arguments expect non-NULL values, for GCC and clang.
18989         * build-aux/arg-nonnull.h: New file.
18990         * modules/arg-nonnull: New file.
18991         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
18992         (inet_ntop, inet_pton): Use it.
18993         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
18994         (closedir, dirfd, opendir, scandir, alphasort): Use it.
18995         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
18996         (open, openat): Use it.
18997         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
18998         (fnmatch): Use it.
18999         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
19000         (getopt, getopt_long, getopt_long_only): Use it.
19001         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
19002         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
19003         Use it.
19004         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
19005         (iconv_open): Use it.
19006         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
19007         (strtoimax, strtoumax): Use it.
19008         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
19009         (duplocale): Use it.
19010         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
19011         (frexp, frexpl): Use it.
19012         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
19013         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
19014         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
19015         (tsearch, tfind, tdelete, twalk): Use it.
19016         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
19017         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19018         sigpending): Use it.
19019         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
19020         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19021         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19022         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19023         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19024         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19025         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19026         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19027         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19028         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19029         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19030         Use it.
19031         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
19032         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
19033         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
19034         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
19035         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
19036         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
19037         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
19038         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
19039         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
19040         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
19041         strtoull, unsetenv): Use it.
19042         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
19043         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19044         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19045         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
19046         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
19047         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
19048         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
19049         (strcasecmp, strncasecmp): Use it.
19050         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
19051         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
19052         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
19053         rpl_setsockopt): Use it.
19054         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
19055         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
19056         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
19057         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
19058         (gettimeofday): Use it.
19059         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
19060         (times): Use it.
19061         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
19062         (uname): Use it.
19063         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
19064         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
19065         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
19066         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
19067         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
19068         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
19069         unlinkat, write): Use it.
19070         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
19071         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
19072         * lib/argv-iter.h: Include arg-nonnull.h.
19073         (_ATTRIBUTE_NONNULL_): Remove macro.
19074         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
19075         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
19076         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
19077         optimization.
19078         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
19079         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
19080         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
19081         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
19082         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
19083         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
19084         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
19085         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
19086         * modules/arpa_inet (Depends-on): Add arg-nonnull.
19087         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
19088         * modules/dirent (Depends-on): Add arg-nonnull.
19089         (Makefile.am): Insert arg-nonnull.h into dirent.h.
19090         * modules/fcntl-h (Depends-on): Add arg-nonnull.
19091         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
19092         * modules/fnmatch (Depends-on): Add arg-nonnull.
19093         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
19094         * modules/getopt-posix (Depends-on): Add arg-nonnull.
19095         (Makefile.am): Insert arg-nonnull.h into getopt.h.
19096         * modules/glob (Depends-on): Add arg-nonnull.
19097         (Makefile.am): Insert arg-nonnull.h into glob.h.
19098         * modules/iconv_open (Depends-on): Add arg-nonnull.
19099         (Makefile.am): Insert arg-nonnull.h into iconv.h.
19100         * modules/inttypes (Depends-on): Add arg-nonnull.
19101         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
19102         * modules/locale (Depends-on): Add arg-nonnull.
19103         (Makefile.am): Insert arg-nonnull.h into locale.h.
19104         * modules/math (Depends-on): Add arg-nonnull.
19105         (Makefile.am): Insert arg-nonnull.h into math.h.
19106         * modules/netdb (Depends-on): Add arg-nonnull.
19107         (Makefile.am): Insert arg-nonnull.h into netdb.h.
19108         * modules/search (Depends-on): Add arg-nonnull.
19109         (Makefile.am): Insert arg-nonnull.h into search.h.
19110         * modules/signal (Depends-on): Add arg-nonnull.
19111         (Makefile.am): Insert arg-nonnull.h into signal.h.
19112         * modules/spawn (Depends-on): Add arg-nonnull.
19113         (Makefile.am): Insert arg-nonnull.h into spawn.h.
19114         * modules/stdio (Depends-on): Add arg-nonnull.
19115         (Makefile.am): Insert arg-nonnull.h into stdio.h.
19116         * modules/stdlib (Depends-on): Add arg-nonnull.
19117         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
19118         * modules/string (Depends-on): Add arg-nonnull.
19119         (Makefile.am): Insert arg-nonnull.h into string.h.
19120         * modules/strings (Depends-on): Add arg-nonnull.
19121         (Makefile.am): Insert arg-nonnull.h into strings.h.
19122         * modules/sys_socket (Depends-on): Add arg-nonnull.
19123         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
19124         * modules/sys_stat (Depends-on): Add arg-nonnull.
19125         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
19126         * modules/sys_time (Depends-on): Add arg-nonnull.
19127         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
19128         * modules/sys_times (Depends-on): Add arg-nonnull.
19129         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
19130         * modules/sys_utsname (Depends-on): Add arg-nonnull.
19131         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
19132         * modules/time (Depends-on): Add arg-nonnull.
19133         (Makefile.am): Insert arg-nonnull.h into time.h.
19134         * modules/unistd (Depends-on): Add arg-nonnull.
19135         (Makefile.am): Insert arg-nonnull.h into unistd.h.
19136         * modules/wchar (Depends-on): Add arg-nonnull.
19137         (Makefile.am): Insert arg-nonnull.h into wchar.h.
19138         * modules/argv-iter (Depends-on): Add arg-nonnull.
19139         * tests/test-canonicalize.c (null_ptr): New function.
19140         (main): Use it.
19141         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
19142         (main): Use it.
19143         * tests/test-memmem.c (null_ptr): New function.
19144         (main): Use it.
19145         Reported by Jim Meyering.
19146
19147 2009-12-10  Bruno Haible  <bruno@clisp.org>
19148
19149         Use spaces for indentation, not tabs.
19150         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19151         * m4/*.m4: Untabify.
19152         * build-aux/*.h: Untabify.
19153         * tests/**/*.[hc]: Untabify.
19154         * README: New section "Indent with spaces, not TABs", based on
19155         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
19156         * NEWS: Mention the change.
19157
19158 2009-12-10  Bruno Haible  <bruno@clisp.org>
19159
19160         pty test: Fix link error.
19161         * modules/pty-tests (Makefile.am): Add the default LDADD value to
19162         test_pty_LDADD.
19163
19164 2009-12-07  Simon Josefsson  <simon@josefsson.org>
19165
19166         * modules/pty: New file.
19167         * modules/pty-tests: New file.
19168         * m4/pty.m4: New file.
19169         * tests/test-pty.c: New file.
19170         * doc/glibc-headers/pty.texi: Modified.
19171         * doc/glibc-functions/forkpty.texi: Modified.
19172         * doc/glibc-functions/openpty.texi: Modified.
19173
19174 2009-12-10  Bruno Haible  <bruno@clisp.org>
19175
19176         Avoid syntax error in C++ mode.
19177         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
19178
19179 2009-12-10  Bruno Haible  <bruno@clisp.org>
19180
19181         Use sed with option -e.
19182         * gnulib-tool (func_version, func_emit_copyright_notice,
19183         func_emit_initmacro_end, func_import, func_create_testdir): Pass
19184         option -e to sed.
19185         * modules/link-warning (Makefile.am): Likewise.
19186
19187 2009-12-10  Jim Meyering  <meyering@redhat.com>
19188
19189         mgetgroups: do not write bytes beyond end of malloc'd buffer
19190         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
19191         username, we call getgroups with a one-element-shorter buffer,
19192         but still told it the length was original, max_n_groups.
19193
19194 2009-12-09  Eric Blake  <ebb9@byu.net>
19195
19196         cloexec: relax license
19197         * modules/cloexec (Maintainer): Add myself.
19198         (License): Use LGPL, not GPL.
19199
19200         link-warning: optimize generation
19201         * modules/link-warning (Makefile.am): Reduce process usage.
19202
19203 2009-12-09  Bruno Haible  <bruno@clisp.org>
19204
19205         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
19206         workaround was added on 2009-11-17.
19207
19208 2009-12-09  Jim Meyering  <meyering@redhat.com>
19209             Bruno Haible  <bruno@clisp.org>
19210
19211         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
19212         * modules/link-warning (Makefile.am): Make the comment-removing sed
19213         command more robust in the face of bootstrap-prepended comment lines.
19214
19215 2009-12-09  Bruno Haible  <bruno@clisp.org>
19216
19217         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
19218         most one group.
19219
19220 2009-12-09  Simon Josefsson <simon@josefsson.org>
19221             Bruno Haible  <bruno@clisp.org>
19222
19223         * build-aux/link-warning.h: Add copyright notice.
19224         * modules/link-warning (Makefile.am): Generate link-warning.h from
19225         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
19226         * NEWS: Mention change in link-warning module.
19227         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
19228         * modules/dirent (Makefile.am): Add dependency to dirent.h.
19229         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
19230         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
19231         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
19232         * modules/math (Makefile.am): Add dependency to math.h.
19233         * modules/search (Makefile.am): Add dependency to search.h.
19234         * modules/signal (Makefile.am): Add dependency to signal.h.
19235         * modules/spawn (Makefile.am): Add dependency to spawn.h.
19236         * modules/stdio (Makefile.am): Add dependency to stdio.h.
19237         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
19238         * modules/string (Makefile.am): Add dependency to string.h.
19239         * modules/strings (Makefile.am): Add dependency to strings.h.
19240         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
19241         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
19242         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
19243         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
19244         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
19245         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
19246         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
19247         * modules/unistd (Makefile.am): Add dependency to unistd.h.
19248         * modules/wchar (Makefile.am): Add dependency to wchar.h.
19249
19250 2009-12-09  Bruno Haible  <bruno@clisp.org>
19251
19252         fchdir: Optimize away rpl_fstat when possible.
19253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
19254         REPLACE_OPEN_DIRECTORY.
19255         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
19256
19257 2009-12-09  Bruno Haible  <bruno@clisp.org>
19258
19259         * lib/fchdir.c: Update comment.
19260
19261 2009-12-09  Bruno Haible  <bruno@clisp.org>
19262
19263         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
19264
19265 2009-12-08  Eric Blake  <ebb9@byu.net>
19266
19267         fchdir: avoid memory leak on re-registration.
19268         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
19269
19270 2009-12-08  Jim Meyering  <meyering@redhat.com>
19271
19272         init.sh: avoid Solaris 10 /bin/sh portability problem
19273         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
19274         sourced script:
19275           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
19276           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
19277           bar
19278         tests/init.sh relied on that, accepting a --set-path=DIR argument,
19279         and two tests used that idiom.
19280         * tests/init.sh: Update suggested usage comments.
19281         (path_prepend_): New function, to be used in place
19282         of the --src-path=DIR option.
19283         (setup_): Move PATH-prepending code into path_prepend_.
19284         * tests/test-pread.sh: Adapt to new usage.
19285         * tests/test-xalloc-die.sh: Likewise.
19286
19287 2009-12-08  Simon Josefsson  <simon@josefsson.org>
19288
19289         * doc/gnulib.texi (Glibc pty.h): Add.
19290         * doc/glibc-functions/forkpty.texi: Add.
19291         * doc/glibc-functions/openpty.texi: Add.
19292         Suggested by Bruno Haible.
19293
19294 2009-12-08  Eric Blake  <ebb9@byu.net>
19295
19296         fchdir: fix logic bugs
19297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
19298         * tests/test-fchdir.c (main): Enhance test.
19299         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
19300         is in use.
19301
19302         dup2: fix logic bugs
19303         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
19304         REPLACE_DUP2 to decide when rpl_dup2 is needed.
19305         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
19306         exists.
19307         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
19308
19309 2009-12-07  Eric Blake  <ebb9@byu.net>
19310
19311         unlink: fix m4 detection
19312         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
19313
19314         unistd-safer: add unit test
19315         * modules/unistd-safer-tests: New file.
19316         * tests/test-dup-safer.c: Likewise.
19317         * tests/test-cloexec.c (setmode): Avoid compiler warning.
19318         * tests/test-dup2.c (setmode): Likewise.
19319         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
19320
19321         cloexec: preserve text vs. binary across dup_cloexec
19322         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
19323         mode.
19324         * modules/dup2-tests (Depends-on): Add binary-io.
19325         * modules/cloexec-tests (Depends-on): Likewise.
19326         * tests/test-dup2.c (setmode, is_mode): New helpers.
19327         (main): Add tests that translation mode is preserved.
19328         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
19329         Reported by Bruno Haible.
19330
19331         mgetgroups: reduce duplicate listings
19332         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
19333         resulting array.
19334         * tests/test-chown.h (test_chown): Simplify client.
19335         * tests/test-lchown.h (test_lchown): Likewise.
19336
19337 2009-12-06  Bruno Haible  <bruno@clisp.org>
19338
19339         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
19340         value.
19341
19342 2009-12-06  Bruno Haible  <bruno@clisp.org>
19343
19344         * lib/progname.c: Include stdio.h, stdlib.h.
19345         (set_program_name): Reject a NULL argument.
19346
19347 2009-12-05  Eric Blake  <ebb9@byu.net>
19348
19349         pipe2-safer: new module
19350         * modules/pipe2-safer: New file.
19351         * lib/unistd-safer.h (pipe2_safer): New prototype.
19352         * lib/unistd--.h (pipe2): New wrapper.
19353         * lib/pipe-safer.c (pipe2_safer): New function.
19354         * modules/pipe (Depends-on): Add pipe2-safer.
19355         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
19356
19357         stdlib-safer: preserve cloexec flag for mkostemp[s]
19358         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
19359         fd_safer_flag.
19360
19361         unistd-safer: allow preservation of cloexec status via flag
19362         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
19363         prototypes.
19364         * lib/dup-safer.c (dup_safer_flag): New function.
19365         * lib/fd-safer.c (fd_safer_flag): Likewise.
19366         * modules/cloexec (configure.ac): Set witness.
19367
19368         test-dup2: enhance test
19369         * modules/dup2-tests (Depends-on): Add cloexec.
19370         * tests/test-dup2.c (main): Enhance test.
19371
19372         cloexec: add dup_cloexec
19373         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
19374         header and comments.
19375         * lib/cloexec.c (set_cloexec_flag): Add comments.
19376         (dup_cloexec): New function, with mingw implementation borrowed
19377         from...
19378         * lib/w32spawn.h (dup_noinherit): ...here.
19379         * modules/execute (Depends-on): Add cloexec.
19380         * modules/pipe (Depends-on): Likewise.
19381         * modules/cloexec (Depends-on): Add dup2.
19382         * modules/cloexec-tests (Files): New file.
19383         * tests/test-cloexec.c: Likewise.
19384
19385         test-xalloc-die: fix test for mingw
19386         * modules/xalloc-die-tests (Files): Add tests/init.sh.
19387         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
19388         directory and .exe suffix off argv[0] output.
19389
19390         test-fseeko: fix test for mingw
19391         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
19392         than undefining fseek, so test will pass on mingw.
19393
19394 2009-12-05  Bruno Haible  <bruno@clisp.org>
19395
19396         * lib/progname.h (set_program_name): Clarify specification.
19397         * lib/progname.c (set_program_name): Likewise.
19398         Reported by Jim Meyering.
19399
19400 2009-12-05  Jim Meyering  <meyering@redhat.com>
19401
19402         maint.mk: backslash-escape parens in default regexp
19403         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
19404         backslash-escape the literal parentheses.
19405
19406         maint.mk: news-date-check: use grep -E
19407         * top/maint.mk (today): Define a Make variable, not a...
19408         (news-date-check): ...shell variable.
19409         (news-date-regexp): Use the Make variable.
19410         Use grep's -E option.  Change the failing diagnostic to mention
19411         the variable, $(news-date-regexp).
19412
19413 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
19414
19415         maintainer-makefile: allow customization of NEWS entry format
19416         * top/maint.mk (news-date-regexp): New overridable variable.
19417         (news-date-check): Use it.
19418
19419 2009-12-04  Eric Blake  <ebb9@byu.net>
19420
19421         mgetgroups: add xgetgroups, and avoid ENOSYS failures
19422         * lib/mgetgroups.h (xgetgroups): New prototype.
19423         * lib/mgetgroups.c (xgetgroups): New wrapper.
19424         (mgetgroups): Handle ENOSYS.
19425         * modules/mgetgroups (Depends-on): Add realloc.
19426         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
19427
19428         mgetgroups: avoid argument promotion issues with -1
19429         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
19430         for invalid gid_t.
19431         * tests/test-chown.h (getegid, test_chown): Likewise.
19432         * tests/test-lchown.h (getegid, test_lchown): Likewise.
19433
19434 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
19435
19436         exclude: Fix header file problems.
19437         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
19438
19439 2009-12-01  Jim Meyering  <meyering@redhat.com>
19440
19441         fts: fts_open: do not let an empty string cause immediate failure
19442         This is required in support of GNU rm, for which the command
19443         "rm A '' B" must process and remove both A and B, in spite of
19444         the empty string argument.
19445         * lib/fts.c (fts_open): Do not let the presence of an empty string
19446         cause fts_open to fail immediately.  Most fts-using tools must be
19447         able to process all arguments, in order, and can be expected to
19448         diagnose such arguments themselves.
19449
19450 2009-11-30  Eric Blake  <ebb9@byu.net>
19451
19452         utimens: fix compilation error
19453         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
19454         Declare variable at right scope.
19455
19456 2009-11-29  Jim Meyering  <meyering@redhat.com>
19457
19458         bootstrap: handle perl-5.11's changed --version output
19459         * build-aux/bootstrap (get_version): Handle perl separately,
19460         since perl-5.11's --version output is different.
19461
19462 2009-11-28  Jim Meyering  <meyering@redhat.com>
19463
19464         userspec: depend on the inttostr module, too
19465         * modules/userspec (Depends-on): Add inttostr.
19466
19467         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
19468         * lib/userspec.c (parse_with_separator): Do not accept a user ID
19469         number of MAXUID when it evaluates to (uid_t) -1.
19470         Likewise for group ID.  Reported by Matt McCutchen in
19471         <http://savannah.gnu.org/bugs/?28113>
19472
19473         userspec: reformat to use spaces, not TABs
19474         * lib/userspec.c: Expand TABs to spaces.
19475         Add Emacs' "indent-tabs-mode: nil" hint.
19476
19477 2009-11-27  Eric Blake  <ebb9@byu.net>
19478
19479         getopt-gnu: flush out another BSD bug
19480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
19481         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
19482         flush out BSD bug.
19483         * tests/test-getopt.h (test_getopt): End lists with NULL.
19484         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19485         (test_getopt_long_posix): Enhance test.
19486         * modules/getopt-posix-tests (Depends-on): Add stdbool.
19487         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
19488         getopt-gnu.
19489         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19490         Likewise.
19491
19492 2009-11-27  Simon Josefsson  <simon@josefsson.org>
19493
19494         * modules/idpriv-droptemp-tests (Notice): Fix text.
19495
19496 2009-11-27  Jim Meyering  <meyering@redhat.com>
19497
19498         test-xalloc-die: avoid spurious failure due to libtool argv difference
19499         In a libtool-enabled project, this test would fail due to a difference
19500         in the emitted program name, e.g.,
19501         -test-xalloc-die: memory exhausted
19502         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
19503         Use program to avoid that.
19504         * modules/xalloc-die-tests (Depends-on): Add progname.
19505         * tests/test-xalloc-die.c: Include progname.h".
19506         (program_name): Remove decl.
19507         (main): Call set_program_name.
19508         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
19509
19510 2009-11-26  Richard Jones  <rjones@redhat.com>
19511
19512         w32sock: leave win32 error in place.
19513         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
19514
19515 2009-11-26  Eric Blake  <ebb9@byu.net>
19516
19517         init.sh: suggest to use skip_ and fail_ functions in comments
19518         * tests/init.sh: Add a sentence.
19519
19520 2009-11-25  Bruno Haible  <bruno@clisp.org>
19521
19522         init.sh: add documentation in comments
19523         * tests/init.sh: Add some developer and user documentation.
19524
19525 2009-11-26  Jim Meyering  <meyering@redhat.com>
19526
19527         init.sh: accommodate even those who specify bogus srcdir manually
19528         * tests/init.sh: Normally, srcdir is guaranteed by automake and
19529         configure-time tests to be sanitized, so that there is no need to
19530         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
19531         (with no double quotes) suffices.  However, since tests may be
19532         invoked manually, and since you may explicitly set srcdir to the
19533         name of a directory containing spaces, do quote its uses here.
19534         * tests/test-pread.sh: Likewise.
19535         Suggested by Bruno Haible.
19536
19537         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
19538         * tests/test-pread.sh: Write no data into the pipe, because
19539         test-pread actually reads none.  This avoids a diagnostic,
19540         "bash: echo: write error: Broken pipe", that arises in the unusual
19541         event something is ignoring SIGPIPE, and might be interpreted
19542         as some sort of failure.  Reported by Bruno Haible.
19543
19544 2009-11-25  Jim Meyering  <meyering@redhat.com>
19545
19546         test-pread: cover failure with ESPIPE and EINVAL
19547         * tests/test-pread.c (main): Test for failure, too.
19548         * tests/test-pread.sh: Invoke with stdin on a pipe.
19549         Suggested by Eric Blake.
19550
19551         pread: improvement and fix
19552         * modules/pread (Depends-on): Depend on lseek, for portability to
19553         e.g., mingw.  Suggested by Eric Blake.
19554         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
19555
19556         unistd.in.h: correct declaration of pread
19557         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
19558         Reported by Richard W.M. Jones.
19559
19560         test-pread.sh: distribute the test script
19561         * modules/pread-tests (Files): Include test-pread.sh.
19562
19563         test-pread.sh: clean up
19564         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
19565         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
19566         That is unnecessary, since it's always ".".
19567         Suggestion from Eric Blake.
19568
19569         test-pread.sh: make executable
19570         * tests/test-pread.sh: Set executable bit.
19571         Reported by Eric Blake.
19572
19573         correct typo in test-pread.sh
19574         * tests/test-pread.sh: Add #! line.
19575
19576         test pread
19577         * tests/test-pread.c: New file.
19578         * tests/test-pread.sh: Likewise.
19579         * modules/pread-tests: Likewise.
19580
19581         pread: new module
19582         * modules/pread: New file.
19583         * lib/unistd.in.h (pread): Define/declare.
19584         * lib/pread.c (pread): New file.
19585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
19586         * modules/unistd (Makefile.am): Substitute witnesses.
19587         * doc/posix-functions/pread.texi (pread): Update.
19588         * MODULES.html.sh: Add pread.
19589
19590 2009-11-25  Jim Meyering  <meyering@redhat.com>
19591
19592         tests/init.sh: new file to be used via most *.sh tests
19593         * tests/init.sh: New file.
19594
19595 2009-11-25  Eric Blake  <ebb9@byu.net>
19596
19597         utimens: work around older Linux failure with symlinks
19598         * lib/utimens.c (lutimensat_works_really): New variable.
19599         (fdutimens, lutimens): Use it to manage kernels that support
19600         nanosecond times on files, but not on symlinks.
19601         Reported by OndÅ™ej Vašík.
19602
19603         utimes: fix configure grammar
19604         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
19605
19606 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
19607
19608         regex: Fix fastmap for multibyte character ranges.
19609         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
19610         characters when a multibyte character range is included.
19611
19612 2009-11-22  Andy Wingo  <wingo@pobox.com>
19613
19614         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
19615         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
19616
19617 2009-11-24  Bruno Haible  <bruno@clisp.org>
19618
19619         doc: Most *_l functions exist in MacOS X 10.5.
19620         * doc/posix-functions/duplocale.texi: Update platforms list.
19621         * doc/posix-functions/freelocale.texi: Likewise.
19622         * doc/posix-functions/newlocale.texi: Likewise.
19623         * doc/posix-functions/uselocale.texi: Likewise.
19624         * doc/posix-functions/isalnum_l.texi: Likewise.
19625         * doc/posix-functions/isalpha_l.texi: Likewise.
19626         * doc/posix-functions/isblank_l.texi: Likewise.
19627         * doc/posix-functions/iscntrl_l.texi: Likewise.
19628         * doc/posix-functions/isdigit_l.texi: Likewise.
19629         * doc/posix-functions/isgraph_l.texi: Likewise.
19630         * doc/posix-functions/islower_l.texi: Likewise.
19631         * doc/posix-functions/isprint_l.texi: Likewise.
19632         * doc/posix-functions/ispunct_l.texi: Likewise.
19633         * doc/posix-functions/isspace_l.texi: Likewise.
19634         * doc/posix-functions/isupper_l.texi: Likewise.
19635         * doc/posix-functions/iswalnum_l.texi: Likewise.
19636         * doc/posix-functions/iswalpha_l.texi: Likewise.
19637         * doc/posix-functions/iswblank_l.texi: Likewise.
19638         * doc/posix-functions/iswcntrl_l.texi: Likewise.
19639         * doc/posix-functions/iswctype_l.texi: Likewise.
19640         * doc/posix-functions/iswdigit_l.texi: Likewise.
19641         * doc/posix-functions/iswgraph_l.texi: Likewise.
19642         * doc/posix-functions/iswlower_l.texi: Likewise.
19643         * doc/posix-functions/iswprint_l.texi: Likewise.
19644         * doc/posix-functions/iswpunct_l.texi: Likewise.
19645         * doc/posix-functions/iswspace_l.texi: Likewise.
19646         * doc/posix-functions/iswupper_l.texi: Likewise.
19647         * doc/posix-functions/iswxdigit_l.texi: Likewise.
19648         * doc/posix-functions/isxdigit_l.texi: Likewise.
19649         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
19650         * doc/posix-functions/strcasecmp_l.texi: Likewise.
19651         * doc/posix-functions/strcoll_l.texi: Likewise.
19652         * doc/posix-functions/strfmon_l.texi: Likewise.
19653         * doc/posix-functions/strftime_l.texi: Likewise.
19654         * doc/posix-functions/strncasecmp_l.texi: Likewise.
19655         * doc/posix-functions/strxfrm_l.texi: Likewise.
19656         * doc/posix-functions/tolower_l.texi: Likewise.
19657         * doc/posix-functions/toupper_l.texi: Likewise.
19658         * doc/posix-functions/towctrans_l.texi: Likewise.
19659         * doc/posix-functions/towlower_l.texi: Likewise.
19660         * doc/posix-functions/towupper_l.texi: Likewise.
19661         * doc/posix-functions/wcscoll_l.texi: Likewise.
19662         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
19663         * doc/posix-functions/wctrans_l.texi: Likewise.
19664         * doc/posix-functions/wctype_l.texi: Likewise.
19665         * doc/glibc-functions/strptime_l.texi: Likewise.
19666         * doc/glibc-functions/strtod_l.texi: Likewise.
19667         * doc/glibc-functions/strtof_l.texi: Likewise.
19668         * doc/glibc-functions/strtol_l.texi: Likewise.
19669         * doc/glibc-functions/strtold_l.texi: Likewise.
19670         * doc/glibc-functions/strtoll_l.texi: Likewise.
19671         * doc/glibc-functions/strtoul_l.texi: Likewise.
19672         * doc/glibc-functions/strtoull_l.texi: Likewise.
19673         * doc/glibc-functions/wcsftime_l.texi: Likewise.
19674         * doc/glibc-functions/wcstod_l.texi: Likewise.
19675         * doc/glibc-functions/wcstof_l.texi: Likewise.
19676         * doc/glibc-functions/wcstol_l.texi: Likewise.
19677         * doc/glibc-functions/wcstold_l.texi: Likewise.
19678         * doc/glibc-functions/wcstoll_l.texi: Likewise.
19679         * doc/glibc-functions/wcstoul_l.texi: Likewise.
19680         * doc/glibc-functions/wcstoull_l.texi: Likewise.
19681
19682 2009-11-24  Bruno Haible  <bruno@clisp.org>
19683
19684         duplocale: Fix logic bug.
19685         * lib/duplocale.c: Don't include <langinfo.h>.
19686         (_NL_LOCALE_NAME): Remove macro.
19687         (rpl_duplocale): Use setlocale instead of nl_langinfo.
19688         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
19689
19690 2009-11-23  Jim Meyering  <meyering@redhat.com>
19691
19692         test-update-copyright: don't hard-code /usr/bin/perl
19693         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
19694         perl to print the current year.  Gilles Espinasse reported that
19695         the replaced use of perl was hard-coded as /usr/bin/perl.
19696
19697 2009-11-23  Bruno Haible  <bruno@clisp.org>
19698
19699         duplocale: Add support for glibc 2.3.x.
19700         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
19701
19702 2009-11-22  Bruno Haible  <bruno@clisp.org>
19703
19704         vasnprintf: Tiny optimization.
19705         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
19706         MacOS X.
19707
19708 2009-11-22  Bruno Haible  <bruno@clisp.org>
19709
19710         Tests for module 'duplocale'.
19711         * modules/duplocale-tests: New file.
19712         * tests/test-duplocale.c: New file.
19713
19714         New module 'duplocale'.
19715         * m4/duplocale.m4: New file.
19716         * lib/locale.in.h (duplocale): New declaration.
19717         * lib/duplocale.c: New file.
19718         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
19719         gl_LOCALE_H_DEFAULTS): New macros.
19720         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
19721         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
19722         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
19723         REPLACE_DUPLOCALE.
19724         * modules/duplocale: New file.
19725         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
19726
19727 2009-11-22  Bruno Haible  <bruno@clisp.org>
19728
19729         * modules/locale-tests (configure.ac): Test for newlocale function.
19730         * tests/test-locale.c: When the system has extended locale functions,
19731         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
19732
19733         locale: Make locale_t available when possible.
19734         * lib/locale.in.h: Include <xlocale.h> when it exists.
19735         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
19736         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
19737         * modules/locale (Depends-on): Add extensions.
19738         (Makefile.am): Also substitute HAVE_XLOCALE_H.
19739         * doc/posix-headers/locale.texi: Document the problem with locale_t.
19740
19741 2009-11-22  Bruno Haible  <bruno@clisp.org>
19742
19743         Add comments.
19744         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
19745         invocation.
19746         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
19747         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19748         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19749
19750 2009-11-22  Bruno Haible  <bruno@clisp.org>
19751
19752         error: account for the possibility of freopen (stdout).
19753         * lib/error.c: Include <unistd.h>.
19754         (flush_stdout): New function, extracted from error and error_at_line.
19755         Determine stdout's fd dynamically.
19756         (error, error_at_line): Invoke flush_stdout.
19757         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
19758         * modules/error (Depends-on): Add unistd.
19759
19760 2009-11-22  Bruno Haible  <bruno@clisp.org>
19761
19762         diffseq: Add comment.
19763         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
19764
19765 2009-11-22  Jim Meyering  <meyering@redhat.com>
19766
19767         c-stack: avoid defining an unused static function
19768         * lib/c-stack.c (find_stack_direction): Do not define this function
19769         when it will not be used.
19770
19771         diffseq: avoid spurious gcc warnings
19772         * lib/diffseq.h (IF_LINT2): Define.
19773         (compareseq): Use it to initialize two members of "part".
19774         This avoids two used-uninitialized warnings.
19775
19776 2009-11-21  Jim Meyering  <meyering@redhat.com>
19777
19778         c-stack: avoid "ignoring return value of `write'" warning
19779         * lib/c-stack.c: Include "ignore-value.h".
19780         (die): Explicitly ignore each write return value.
19781         * modules/c-stack (Depends-on): Add ignore-value.
19782
19783 2009-11-21  Bruno Haible  <bruno@clisp.org>
19784
19785         diffseq: reduce scope of variable 'best'.
19786         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
19787         variable, earlier used for two different purposes.
19788
19789 2009-11-21  Jim Meyering  <meyering@redhat.com>
19790
19791         diffseq: remove useless assignment to "best"
19792         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
19793         assignment.  At that point "best" is already guaranteed to be zero.
19794
19795 2009-11-20  Eric Blake  <ebb9@byu.net>
19796
19797         build: mention ftp redirector in release announcements
19798         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
19799         values that used to come from cfg.mk; mention FTP redirect URL.
19800         * build-aux/announce-gen: Mention the mirror list.
19801         Suggested by Karl Berry.
19802
19803         nanosleep: improve port to mingw
19804         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
19805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
19806         LIB_NANOSLEEP, but only when needed.
19807         * modules/select (Link): Document LIBSOCKET.
19808         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
19809         enough.
19810
19811         nanosleep: work around cygwin bug
19812         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
19813         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
19814         bug.
19815         (getnow): Delete, not needed.
19816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
19817         LIB_CLOCK_GETTIME.
19818         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
19819         clock-time, gettime.
19820         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
19821         bug.
19822         * modules/nanosleep-tests: New test.
19823         * tests/test-nanosleep.c: New file.
19824
19825         sleep: work around cygwin bug
19826         * lib/sleep.c (rpl_sleep): Work around the bug.
19827         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
19828         (gl_PREREQ_SLEEP): Delete unused macro.
19829         * modules/sleep (Depends-on): Add verify.
19830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19831         * modules/unistd (Makefile.am): Substitute witness.
19832         * lib/unistd.in.h (sleep): Update prototype.
19833         * doc/posix-functions/sleep.texi (sleep): Document the bug.
19834         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
19835         * modules/sleep-tests (Depends-on): Check for alarm.
19836
19837 2009-11-20  Jim Meyering  <meyering@redhat.com>
19838
19839         maint.mk: improve sc_prohibit_magic_number_exit
19840         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
19841         so it does not match uses like System.exit(1).
19842         Add comments showing how to correct all offenders.
19843
19844 2009-11-19  Eric Blake  <ebb9@byu.net>
19845
19846         xalloc-die-tests: add missing library
19847         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
19848
19849         test-xvasprintf: silence compiler warnings
19850         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
19851         empty string from gcc.
19852
19853 2009-11-19  Jim Meyering  <meyering@redhat.com>
19854
19855         xfreopen: new module, from coreutils
19856         * modules/xfreopen: New module.
19857         * lib/xfreopen.c: New file.
19858         * lib/xfreopen.h: New file.
19859         * MODULES.html.sh (File stream based Input/Output"): Add it.
19860
19861 2009-11-19  Eric Blake  <ebb9@byu.net>
19862
19863         manywarnings: depend on warnings
19864         * modules/manywarnings (Depends-on): Add warnings.
19865
19866         build: avoid compiler warnings
19867         * lib/select.c (rpl_select): Delete unused variable.
19868         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
19869
19870 2009-11-18  Eric Blake  <ebb9@byu.net>
19871
19872         tests: avoid false negative with --with-packager
19873         * tests/test-version-etc.sh: Discard packager information.
19874         * tests/test-argp-version-etc-1.sh: Likewise.
19875         Reported by Mike Frysinger.
19876
19877         utimens: fix regression on Solaris
19878         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
19879         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
19880         can only change fd timestamps via futimesat.  Instead, use an
19881         additional witness macro to avoid BSD bug.
19882         Reported by Jim Meyering.
19883
19884 2009-11-17  Eric Blake  <ebb9@byu.net>
19885
19886         usleep: use it to simplify tests
19887         * modules/stat-time-tests (Depends-on): Add usleep.
19888         (configure.ac): Drop usleep check.
19889         * modules/chown-tests (Depends-on, configure.ac): Likewise.
19890         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
19891         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
19892         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
19893         * modules/openat-tests (Depends-on, configure.ac): Likewise.
19894         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
19895         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
19896         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
19897         Likewise.
19898         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
19899         * tests/test-lchown.h (nap): Likewise.
19900         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
19901         * tests/test-stat-time.c (nap): Likewise.
19902         * tests/test-utimens-common.h (nap): Update comments.
19903
19904         usleep: new module
19905         * modules/usleep: New file.
19906         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19907         * lib/usleep.c (usleep): Likewise.
19908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19909         * modules/unistd (Makefile.am): Substitute witnesses.
19910         * lib/unistd.in.h (usleep): Add declaration.
19911         * doc/pastposix-functions/usleep.texi (usleep): Document this.
19912         * MODULES.html.sh (Date and time): Likewise.
19913         * modules/usleep-tests (Depends-on): New test.
19914         * tests/test-usleep.c: New file.
19915
19916         chown: work around OpenBSD bug
19917         * lib/chown.c (rpl_chown): Work around the bug.
19918         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
19919         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
19920         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
19921         * modules/chown (Depends-on): Add stdbool.
19922         * modules/lchown (Depends-on): Likewise.
19923         * doc/posix-functions/chown.texi (chown): Document the bug.
19924         * doc/posix-functions/lchown.texi (lchown): Likewise.
19925         * tests/test-lchown.h (test_chown): Relax test.
19926
19927         mkstemp: avoid conflict with C++ keyword template
19928         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
19929         * lib/mkostemp.c (mkostemp): Likewise.
19930         * lib/mkostemps.c (mkostemps): Likewise.
19931         * lib/mkstemp.c (mkstemp): Likewise.
19932         * lib/mkstemps.c (mkstemps): Likewise.
19933
19934         xalloc-die-tests: optimize
19935         * tests/test-xalloc-die.sh: Reduce number of processes.
19936
19937 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19938
19939         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
19940         patch from ludo@gnu.org (Ludovic Courtès).
19941
19942 2009-11-17  Jim Meyering  <meyering@redhat.com>
19943
19944         version-etc: use proper license string
19945         * modules/version-etc (License): Use LGPL, not LGPLv3+.
19946         * modules/version-etc-fsf: Likewise.
19947
19948 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19949
19950         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
19951         printed to stdout.  Deal with EOL differences.
19952
19953 2009-11-17  Eric Blake  <ebb9@byu.net>
19954
19955         unsetenv: work around Solaris bug
19956         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
19957         * lib/unsetenv.c (rpl_unsetenv): Work around it.
19958         Reported by Jim Meyering.
19959
19960         vasnprintf: avoid compiler warnings
19961         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
19962         variables.
19963         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
19964
19965 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19966
19967         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
19968         settings since xalloc-die is no longer the self test,
19969         xalloc-die.sh is.
19970
19971 2009-11-17  Jim Meyering  <meyering@redhat.com>
19972
19973         test-xalloc-die.sh: make the code agree with the commit log
19974         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
19975         at the end, just in case you happen to have a test-xalloc-die
19976         program in some other PATH directory.
19977
19978         test-xalloc-die.sh: fix a portability bug
19979         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
19980         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
19981         Otherwise, argv[0] (as often seen in diagnostics) would be too
19982         system-dependent, sometimes with, and sometimes without the leading "./".
19983
19984         version-etc-fsf: relax license to LGPLv3+
19985         * modules/version-etc-fsf (License): Relax license.
19986
19987 2009-11-16  Eric Blake  <ebb9@byu.net>
19988
19989         xalloc-die-tests: avoid printing null pointer
19990         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
19991         shell script.
19992         * tests/test-xalloc-die.c (program_name): Declare.
19993         * tests/test-xalloc-die.sh (tmpfiles): New file.
19994
19995         setenv, unsetenv: work around various bugs
19996         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
19997         (setenv) [HAVE_SETENV]: Work around bugs.
19998         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
19999         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
20000         for bugs.
20001         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
20002         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
20003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
20004         * modules/stdlib (Makefile.am): Update substitutions.
20005         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
20006         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
20007         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20008         * modules/setenv-tests: New test.
20009         * modules/unsetenv-tests: Likewise.
20010         * tests/test-setenv.c: New file.
20011         * tests/test-unsetenv.c: Likewise.
20012
20013 2009-11-16  Jim Meyering  <meyering@redhat.com>
20014
20015         version-etc: relax license to LGPLv3+
20016         * modules/version-etc (License): Relax license.
20017
20018         better AC_REQUIRE expanded-before-required-warning avoidance
20019         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
20020         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
20021         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
20022         which is no longer needed.
20023
20024 2009-11-16  Eric Blake  <ebb9@byu.net>
20025
20026         test-freading: clean up temporary file
20027         * tests/test-freading.c (main): Remove file on success, and use
20028         ASSERT more liberally.
20029         Reported by Jim Meyering.
20030
20031 2009-11-16  Jim Meyering  <meyering@redhat.com>
20032
20033         avoid new AC_REQUIRE expanded-before-required warnings
20034         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
20035         merely using it.
20036         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
20037         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
20038
20039 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20040
20041         * tests/test-xalloc-die.c: New file.
20042         * modules/xalloc-die-tests: New file.
20043         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
20044         XFAIL_TESTS so it can be appended by modules.
20045
20046 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20047
20048         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
20049         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
20050
20051 2009-11-14  Eric Blake  <ebb9@byu.net>
20052
20053         fnmatch: avoid compiler warning
20054         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
20055         to silence compiler warning about mismatch signedness in ?:.
20056         Reported by Robert Millan.
20057
20058         intprops: add double-inclusion guard
20059         * lib/intprops.h: Allow idempotent includes.
20060         Suggested by Bruce Korb.
20061
20062         openat: detect Solaris fchownat bug
20063         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
20064         penalizing glibc chownat when only lchownat is broken.
20065         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
20066         trailing slash bugs.
20067         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
20068         * modules/openat-tests (Files): Include more files.
20069         (Depends-on): Add mgetgroups, sleep, stat-time.
20070         (configure.ac): Add additional checks.
20071         (Makefile.am): Build new test.
20072         * tests/test-fchownat.c: New file.
20073
20074         lchown: detect Solaris and FreeBSD bug
20075         * lib/lchown.c (rpl_lchown): Work around bug.
20076         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
20077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20078         * modules/unistd (Makefile.am): Populate it.
20079         * lib/unistd.in.h (lchown): Update declaration.
20080         * doc/posix-functions/lchown.texi (lchown): Document the bug.
20081         * modules/lchown-tests: New file.
20082         * tests/test-lchown.h (test_lchown): Likewise.
20083         * tests/test-lchown.c (main): Likewise.
20084
20085         chown: detect Solaris and FreeBSD bug
20086         * lib/chown.c (rpl_chown): Work around bug.
20087         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
20088         (gl_PREREQ_CHOWN): Delete.
20089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20090         * modules/unistd (Makefile.am): Populate it.
20091         * lib/unistd.in.h (chown): Update declaration.
20092         * lib/lchown.c (chown): Update client.
20093         * modules/lchown (Depends-on): Add lstat.
20094         * doc/posix-functions/chown.texi (chown): Document the bug.
20095         * doc/posix-functions/getgroups.texi (getgroups): Document
20096         getgroups pitfall.
20097         * modules/chown-tests: New file.
20098         * tests/test-chown.h (test_chown): Likewise.
20099         * tests/test-chown.c (main): Likewise.
20100
20101 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
20102
20103         gnulib-tool: correctly detect absence of m4 directories
20104         * gnulib-tool: Avoid extra newline on data passed to wc -l.
20105
20106 2009-11-14  Jim Meyering  <meyering@redhat.com>
20107
20108         maint.mk: Prohibit inclusion of "xalloc.h" without use.
20109         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20110
20111 2009-11-14  John W. Eaton  <jwe@gnu.org>
20112
20113         strftime.h: wrap funtion declaration in extern "C" block
20114         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
20115
20116 2009-11-13  Eric Blake  <ebb9@byu.net>
20117
20118         getgroups: avoid compiler warning
20119         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
20120
20121         getgroups: work around FreeBSD bug
20122         * lib/getgroups.c (rpl_getgroups): Work around the bug.
20123         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
20124         * doc/posix-functions/getgroups.texi (getgroups): Document it.
20125         * tests/test-getgroups.c (main): Fix buffer overrun.
20126
20127         getgroups: avoid compilation failure
20128         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
20129         * modules/getgroups (Depends-on): Add stdint.
20130
20131 2009-11-13  Jim Meyering  <meyering@redhat.com>
20132
20133         test-getgroups: avoid compilation failure
20134         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
20135
20136 2009-11-13  Eric Blake  <ebb9@byu.net>
20137
20138         mgetgroups: new module, taken from coreutils
20139         * modules/mgetgroups: New file.
20140         * lib/mgetgroups.h: Likewise.
20141         * lib/mgetgroups.c (mgetgroups): Likewise.
20142         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
20143         * MODULES.html.sh (Users and groups): Mention it.
20144
20145         getgroups: don't expose GETGROUPS_T to user
20146         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
20147         an element at a time if GETGROUPS_T is wrong size.
20148         * lib/getugroups.h (getugroups): Change signature.
20149         * lib/unistd.in.h (getgroups): Likewise.
20150         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
20151         signature needs fixing.
20152         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
20153         AC_TYPE_GETGROUPS.
20154         * modules/group-member (Depends-on): Add getgroups.
20155         * lib/group-member.c (group_info, get_group_info): Use gid_t.
20156         (group_member): Rely on getgroups replacement.
20157         * lib/getugroups.c (getugroups): Use gid_t.
20158         * tests/test-getgroups.c (main): Likewise.
20159         * NEWS: Mention the signature change.
20160         * doc/posix-functions/getgroups.texi (getgroups): Mention the
20161         problem with signature.
20162         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
20163         GETGROUPS_T is still useful for setgroups.
20164
20165         getgroups, getugroups: provide stubs for mingw
20166         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
20167         * lib/getugroups.c (getugroups): Likewise.
20168         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
20169         function.  Modernize replacement scheme.
20170         (gl_PREREQ_GETGROUPS): Delete.
20171         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
20172         * modules/getgroups (configure.ac): Declare witness.
20173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20174         * modules/unistd (Depends-on): Substitute witness.
20175         * lib/unistd.in.h (getgroups): Declare replacement.
20176
20177         getgroups: avoid calling exit
20178         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
20179         drop xalloc.
20180         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
20181         dependencies.
20182         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
20183         exiting, in the rare case of malloc failure.
20184
20185         getgroups: fix logic error
20186         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
20187         has more than 20 groups.
20188         * modules/getgroups-tests: New test.
20189         * tests/test-getgroups.c: New file.
20190
20191 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20192
20193         * tests/test-base64.c: Improve.
20194
20195 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20196
20197         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
20198         Blake <ebb9@byu.net>.
20199
20200 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20201
20202         * tests/test-xvasprintf.c: Add %s%s related checks.
20203
20204 2009-11-12  Eric Blake  <ebb9@byu.net>
20205
20206         version-etc: match standards.texi style
20207         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
20208         and use <> only for URLs.
20209
20210 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
20211
20212         fts: do not fail on a submount during traversal
20213         * lib/fts.c (fts_build): Read the stat info again after opening
20214         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
20215         Original report at http://bugzilla.redhat.com/501848.
20216
20217 2009-11-12  Jim Meyering  <meyering@redhat.com>
20218
20219         bootstrap: sync from coreutils
20220         * build-aux/bootstrap (bootstrap_epilogue): New function.
20221         Use git_modules_config in one more place.  This make bootstrap's
20222         --gnulib-srcdir option more useful for testing.
20223
20224         bootstrap: generalize autoheader check
20225         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
20226         AC_CONFIG_HEADERS.
20227
20228 2009-11-11  Eric Blake  <ebb9@byu.net>
20229
20230         mkfifoat: use new modules for Solaris and BSD bugs
20231         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
20232         * lib/mkfifoat.c (mknodat): Split...
20233         * lib/mknodat.c (mknodat): ...into new file.
20234         * modules/mkfifoat (Files): Ship new file.
20235         (Depends-on): Add mkfifo, mknod.
20236         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
20237         (Depends-on): Add symlink.
20238         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
20239         redundant with test_mkfifo.h.
20240         (do_mkfifoat, do_mknodat): New helpers.
20241
20242         mknod: new module
20243         * modules/mknod: New file.
20244         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
20245         * lib/mknod.c (mknod): Likewise.
20246         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20247         defaults.
20248         * modules/sys_stat (Makefile.am): Substitute them.
20249         * lib/sys_stat.in.h (mknod): Declare replacement.
20250         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20251         Document it.
20252         * doc/posix-functions/mknod.texi (mknod): Likewise.
20253         * modules/mknod-tests: New test.
20254         * tests/test-mknod.c: Likewise.
20255
20256         mkfifo: new module
20257         * modules/mkfifo: New file.
20258         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20259         * lib/mkfifo.c (mkfifo): Likewise.
20260         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20261         defaults.
20262         * modules/sys_stat (Makefile.am): Substitute them.
20263         * lib/sys_stat.in.h (mkfifo): Declare replacement.
20264         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20265         Document it.
20266         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
20267         * modules/mkfifo-tests: New test.
20268         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
20269         from test-mkfifoat.c.
20270         * tests/test-mkfifo.c: New file.
20271
20272         readlink: detect FreeBSD bug
20273         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
20274         slash on symlink.
20275         * doc/posix-functions/readlink.texi (readlink): Document the bug.
20276         * tests/test-readlink.h (test_readlink): Enhance test.
20277
20278         symlink: detect FreeBSD bug
20279         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
20280         slash on symlink.
20281         * doc/posix-functions/symlink.texi (symlink): Document the bug.
20282         * tests/test-symlink.h (test_symlink): Enhance test.
20283
20284 2009-11-10  Eric Blake  <ebb9@byu.net>
20285
20286         link: detect FreeBSD bug
20287         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
20288         symlink.
20289         * doc/posix-functions/link.texi (link): Document the bug.
20290         * tests/test-link.h (test_link): Enhance test.
20291         * tests/test-linkat.c (main): Update caller.
20292
20293         unlink, remove: detect FreeBSD bug
20294         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
20295         slash on symlink.
20296         * doc/posix-functions/unlink.texi (unlink): Document the bug.
20297         * doc/posix-functions/remove.texi (remove): Likewise.
20298         * tests/test-unlink.h (test_unlink): Enhance test.
20299         * tests/test-remove.c (main): Likewise.
20300
20301 2009-11-09  Eric Blake  <ebb9@byu.net>
20302
20303         rename: detect FreeBSD bug
20304         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
20305         slash on symlink.
20306         * modules/renameat-tests (Depends-on): Add filenamecat.
20307         * tests/test-rename.h (test_rename): Allow one more errno.
20308         * tests/test-renameat.c (main): Likewise.
20309         * doc/posix-functions/rename.texi (rename): Document the bug.
20310
20311         open: detect FreeBSD bug
20312         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
20313         symlink.
20314         * doc/posix-functions/open.texi (open): Document the bug.
20315         * doc/posix-functions/utimes.texi (utimes): Likewise.
20316         * tests/test-open.h (test_open): Add parameters, and test symlink
20317         handling.
20318         * tests/test-open.c (main): Adjust caller.
20319         * tests/test-fcntl-safer.c (main): Likewise.
20320         * modules/open-tests (Depends-on): Add stdbool, symlink.
20321         * modules/fcntl-safer-tests (Depends-on): Likewise.
20322         * tests/test-openat.c (main): Add test-open tests.
20323
20324         stat: detect FreeBSD bug
20325         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
20326         symlink.
20327         * doc/posix-functions/stat.texi (stat): Document the bug.
20328         * tests/test-stat.h (test_stat_func): Add argument.
20329         * tests/test-stat.c (main): Adjust caller.
20330         * tests/test-fstatat.c (main): Likewise.
20331         * modules/stat-tests (Depends-on): Add stdbool, symlink.
20332         Reported by Jim Meyering.
20333
20334 2009-11-09  James Youngman  <jay@gnu.org>
20335
20336         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
20337         * lib/strftime.c: Correct placement of #include "ignore-value.h".
20338
20339 2009-11-08  Jim Meyering  <meyering@redhat.com>
20340
20341         utimens: remove invalid futimesat call
20342         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
20343         It used the file descriptor of the target file as the DIR_FD
20344         parameter and NULL as the file name.  That caused failure with
20345         errno == EFAULT on FreeBSD-8.0-rc2
20346
20347 2009-11-07  Eric Blake  <ebb9@byu.net>
20348
20349         fflush, freadseek: use fseeko, not fseek
20350         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20351         (clear_ungetc_buffer): Avoid potential problems on large files.
20352         * lib/freadseek.c (freadseek): Likewise.
20353         * modules/freadseek (Depends-on): Add fseeko.
20354         * modules/fseek (configure.ac): Set a witness.
20355         * tests/test-fflush.c (main): Use fseeko.
20356         * tests/test-fpurge.c (fseek): Disable link warning.
20357         * tests/test-freadable.c (fseek): Likewise.
20358         * tests/test-freading.c (fseek): Likewise.
20359         * tests/test-fseeko.c (fseek): Likewise.
20360         * tests/test-ftell.c (fseek): Likewise.
20361         * tests/test-ftello.c (fseek): Likewise.
20362         * tests/test-fwritable.c (fseek): Likewise.
20363         * tests/test-fwriting.c (fseek): Likewise.
20364
20365 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20366
20367         * modules/memchr (Depends-on): Drop getpagesize dependency.
20368
20369 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20370
20371         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
20372         Reported by Ludovic Courtès.
20373         * build-aux/pmccabe2html: Improve example usage.
20374         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
20375
20376 2009-11-06  Jim Meyering  <meyering@redhat.com>
20377
20378         do-release-commit-and-tag: New module.
20379         Automate the release-commit and tag process.
20380         * build-aux/do-release-commit-and-tag: New script, from coreutils.
20381         * modules/do-release-commit-and-tag: New file.
20382         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20383
20384 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20385
20386         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
20387         because test-select.c uses inet_pton.
20388
20389 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20390
20391         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
20392         GETADDRINFO_LIB.  Bump serial number.
20393         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
20394         Suggested by Eric Blake <ebb9@byu.net>.
20395
20396 2009-11-05  Eric Blake  <ebb9@byu.net>
20397
20398         strtod: detect darwin bug
20399         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
20400         Reported by Leo Davis.
20401
20402         freopen-safer: new module
20403         * modules/freopen-safer: New module.
20404         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
20405         * lib/freopen-safer.c (freopen_safer): New file.
20406         * lib/stdio-safer.h (freopen_safer): New declaration.
20407         * lib/stdio--.h (freopen): New override.
20408         * MODULES.html.sh (File stream based Input/Output): Mention it.
20409         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
20410         freopen-safer module.
20411         * doc/posix-functions/stderr.texi (stderr): Likewise.
20412         * doc/posix-functions/stdin.texi (stdin): Likewise.
20413         * doc/posix-functions/stdout.texi (stdout): Likewise.
20414         * modules/freopen-safer-tests: New test.
20415         * tests/test-reopen-safer.c: New file.
20416
20417 2009-11-05  Jim Meyering  <meyering@redhat.com>
20418
20419         maint.mk: Prohibit inclusion of "close-stream.h" without use.
20420         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20421
20422 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20423
20424         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
20425
20426 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20427
20428         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
20429
20430 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20431
20432         Fix link error.
20433         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20434         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20435
20436 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20437
20438         * tests/test-func.c: Also test value of __func__.
20439
20440 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20441
20442         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
20443         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
20444
20445 2009-11-05  Bruno Haible  <bruno@clisp.org>
20446
20447         Fix link error.
20448         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20449         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20450         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
20451
20452 2009-11-05  Bruno Haible  <bruno@clisp.org>
20453
20454         Tests for module 'inet_pton'.
20455         * modules/inet_pton-tests: New file.
20456         * tests/test-inet_pton.c: New file.
20457
20458 2009-11-05  Bruno Haible  <bruno@clisp.org>
20459
20460         Tests for module 'inet_ntop'.
20461         * modules/inet_ntop-tests: New file.
20462         * tests/test-inet_ntop.c: New file.
20463
20464 2009-11-04  Eric Blake  <ebb9@byu.net>
20465
20466         stdlib-safer: wrap all mkstemp variants
20467         * modules/mkostemp (configure.ac): Set witness.
20468         * modules/mkostemps (configure.ac): Likewise.
20469         * modules/mkstemps (configure.ac): Likewise.
20470         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
20471         (mkstemps_safer): Wrap more functions.
20472         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
20473         wrapping.
20474         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
20475         (mkstemps_safer): Implement the wrappers.
20476
20477         mkstemps, mkostemps: new modules
20478         * modules/mkostemps: New module.
20479         * modules/mkstemps: Likewise.
20480         * lib/mkostemps.c (mkostemps): New file.
20481         * lib/mkstemps.c (mkstemps): Likewise.
20482         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
20483         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
20484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
20485         * modules/stdlib (Makefile.am): Substitute them.
20486         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
20487         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
20488         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20489         * doc/gnulib.texi (Glibc stdlib.h): Include them.
20490         * MODULES.html.sh (File system functions): Mention them.
20491
20492         tempname: resync from glibc
20493         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
20494         same values for __GT_FILE as glibc.  Abort even when assertions
20495         are disabled.
20496         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
20497         match its value otherwise.  Allow idempotent inclusion.
20498         * lib/mkdtemp.c (mkdtemp): Adjust caller.
20499         * lib/mkostemp.c (mkostemp): Likewise.
20500         * lib/mkstemp.c (mkstemp): Likewise.
20501         * lib/tmpfile.c (tmpfile): Likewise.
20502         * NEWS: Document this.
20503
20504         utimens: fix use of futimens on older Linux
20505         * lib/utimens.c (fdutimens): Use updated, rather than original,
20506         timespec to avoid bug in older Linux kernel.
20507         Reported by Simon Josefsson.
20508
20509 2009-11-04  Bruno Haible  <bruno@clisp.org>
20510
20511         Make num_processors more flexible and consistent.
20512         * lib/nproc.h (enum nproc_query): New type.
20513         (num_processors): Add a 'query' argument.
20514         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
20515         (num_processors): Add a 'query' argument. Test the value of the
20516         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
20517         mingw, count the number of CPUs available for the current process.
20518         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
20519         Check for sched_getaffinity and sched_getaffinity_np.
20520         * modules/nproc (Depends-on): Add c-ctype, extensions.
20521         * NEWS: Mention the change.
20522
20523 2009-11-03  Bruno Haible  <bruno@clisp.org>
20524
20525         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
20526
20527 2009-11-03  Jim Meyering  <meyering@redhat.com>
20528
20529         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
20530         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
20531         if it is defined.
20532
20533 2009-11-02  Eric Blake  <ebb9@byu.net>
20534
20535         mktime, timegm: share common declaration
20536         * lib/mktime-internal.h: New file.
20537         * lib/mktime.c: Use it rather than open-coding a declaration.
20538         * lib/timegm.c: Likewise.
20539         * modules/mktime (Files): Ship it.
20540         * modules/timegm (Files): Likewise.
20541         Suggested by Bruno Haible.
20542
20543         test-update-copyright: update test to match script changes
20544         * tests/test-update-copyright.sh: Avoid hard-coding perl
20545         location.  Don't update *.bak created by earlier runs.
20546
20547 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20548             Simon Josefsson  <simon@josefsson.org>
20549             Bruno Haible  <bruno@clisp.org>
20550
20551         Fix link error on Solaris 8.
20552         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
20553         also in libnsl. Define also INET_PTON_LIB.
20554         * modules/inet_pton (Link): New section.
20555
20556 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20557             Bruno Haible  <bruno@clisp.org>
20558
20559         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
20560         * modules/inet_ntop (Link): New section.
20561         Reported by Boyan Kasarov <bkasarov@gmail.com>.
20562
20563 2009-11-02  Eric Blake  <ebb9@byu.net>
20564
20565         maint: avoid compiler warnings in m4 macros
20566         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
20567         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
20568
20569 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20570
20571         * m4/pmccabe2html.m4: Remove file.
20572         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
20573         function.  Change maintainer.
20574         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
20575         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
20576         Courtès).
20577
20578 2009-10-31  Eric Blake  <ebb9@byu.net>
20579
20580         fseeko: fix m4 regression
20581         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
20582         regression from 2009-10-27.
20583         Reported by Ralf Wildenhues.
20584
20585 2009-10-31  Jim Meyering  <meyering@redhat.com>
20586
20587         inttostr: aesthetics and improved (compile-time) safety
20588         Define inttype_is_signed rather than inttype_is_unsigned,
20589         since the sole use is via "#if inttype_is_signed".
20590         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
20591         inttype_is_unsigned.
20592         * lib/offtostr.c (inttype_is_signed): Likewise.
20593         * lib/uinttostr.c (inttype_is_signed): Likewise.
20594         * lib/umaxtostr.c (inttype_is_signed): Likewise.
20595         * lib/inttostr.c (inttostr): Use verify to cross-check the
20596         inttype_is_signed value and the signedness of the actual type.
20597         * modules/inttostr (Depends-on): Add verify.
20598
20599 2009-10-30  Eric Blake  <ebb9@byu.net>
20600
20601         build: avoid compiler warnings
20602         * lib/fchmodat.c (lchmod): Mark unused variables.
20603         * lib/getopt.c (_getopt_initialize): Likewise.
20604         * lib/mktime.c (__mktime_internal): Provide prototype.
20605         * lib/inttostr.c (inttostr): Avoid compiler warning even with
20606         older gcc that do not understand #pragma GCC diagnostic.
20607         * lib/uinttostr.c (inttype_is_unsigned): Define.
20608         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
20609
20610 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
20611
20612         stat: fix compilation on AIX
20613         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
20614         only see struct stat64.
20615
20616 2009-10-30  Eric Blake  <ebb9@byu.net>
20617
20618         exclude: make more robust
20619         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
20620         rather than masking a coding bug.
20621         Suggested by Bruno Haible.
20622
20623 2009-10-30  Jim Meyering  <meyering@redhat.com>
20624
20625         perl scripts: remove #!/usr/bin/perl in favor of more portable...
20626         Rather than putting #!/usr/bin/perl on the first line,
20627         start with a variant of what's recommended by "man perlrun" that
20628         invokes the first "perl" program from your shell's search path.
20629         * build-aux/gitlog-to-changelog: Replace #!... as above.
20630         Add a "Local Variables" perl mode setting.
20631         Prompted by a patch from Ludovic Courtès.
20632         Improved by Eric Blake.
20633         * build-aux/useless-if-before-free: Likewise.
20634         * build-aux/announce-gen: Likewise.
20635         * build-aux/update-copyright: Likewise.
20636
20637 2009-10-29  Eric Blake  <ebb9@byu.net>
20638
20639         filenamecat-lgpl: adjust clients
20640         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
20641         filenamecat.
20642         * modules/renameat (Depends-on): Likewise.
20643
20644         filenamecat: split into filenamecat-lgpl
20645         * modules/filenamecat-lgpl: New module.
20646         * modules/filenamecat (Files): Move library-safe files into
20647         filenamecat-lgpl.
20648         (Depends-on): Add filenamecat-lgpl.
20649         (configure.ac): Declare witness.
20650         * lib/filenamecat.h (file_name_concat): Only declare when using
20651         GPL module.
20652         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
20653         Move...
20654         * lib/filenamecat-lgpl.c: ...into new file.
20655         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
20656         (gl_FILE_NAME_CONCAT): Use it.
20657         * MODULES.html.sh (File system functions): Mention new module.
20658
20659         argp: avoid memory leak
20660         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
20661         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
20662         base_name, since the latter malloc()s and can call exit().
20663         Leak introduced 2006-07-03.
20664
20665         dirname-lgpl: adjust clients that don't need full dirname
20666         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
20667         * modules/filenamecat (Depends-on): Likewise.
20668         * modules/linkat (Depends-on): Likewise.
20669         * modules/mkancesdirs (Depends-on): Likewise.
20670         * modules/mkdir (Depends-on): Likewise.
20671         * modules/openat (Depends-on): Likewise.
20672         * modules/savewd (Depends-on): Likewise.
20673         * modules/rename (Depends-on): Likewise.
20674         (License): Relax license.
20675         * modules/mkdir-tests (Depends-on): Drop progname.
20676         (Makefile.am): Delete unneeded LDADD.
20677         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
20678
20679         dirname: split into dirname-lgpl
20680         * modules/dirname-lgpl: New module.
20681         * modules/dirname (Files): Move library-safe files into
20682         dirname-lgpl.
20683         (Depends-on): Add dirname-lgpl.
20684         (configure.ac): Declare witness.
20685         * modules/double-slash-root (License): Relax license.
20686         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
20687         module.
20688         * lib/dirname.c (dir_len, mdir_name): Move...
20689         * lib/dirname-lgpl.c: ...into new file.
20690         * lib/basename.c (last_component, base_len): Move...
20691         * lib/basename-lgpl.c: ...into new file.
20692         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
20693         (gl_DIRNAME): Use it.
20694         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
20695         Mention new module.
20696         * modules/dirname-tests (Depends-on): Add progname.
20697         * tests/test-dirname.c (program_name): Delete.
20698
20699         mkdir: make safe for libraries
20700         * modules/mkdir (Depends-on): Drop xalloc.
20701         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
20702         exit.
20703
20704         tests: avoid some compiler warnings
20705         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
20706         literals.
20707         * tests/test-memchr.c (main): Avoid type mismatch.
20708         * tests/test-arpa_inet.c (main): Avoid unused parameters.
20709         * tests/test-base64.c (main): Likewise.
20710         * tests/test-getdelim.c (main): Likewise.
20711         * tests/test-gethostname.c (main): Likewise.
20712         * tests/test-getline.c (main): Likewise.
20713         * tests/test-netinet_in.c (main): Likewise.
20714         * tests/test-select.c (open_server_socket, main): Likewise.
20715         * tests/test-select-stdin.c (main): Likewise.
20716         * tests/test-sockets.c (main): Likewise.
20717         * tests/test-strsignal.c (main): Likewise.
20718         * tests/test-sys_select.c (main): Likewise.
20719         * tests/test-sys_socket.c (main): Likewise.
20720         * tests/test-u64.c (main): Likewise.
20721         * tests/test-xfprintf-posix.c (main): Likewise.
20722         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
20723
20724         sockets: avoid compiler warning
20725         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
20726
20727         maint: detect usage(1) and other suspicious exits
20728         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
20729
20730 2009-10-29  Jim Meyering  <meyering@redhat.com>
20731
20732         timespec: long-to-int truncation could make timespec_cmp malfunction
20733         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
20734         a multiple of 2^32 nanoseconds as no difference.
20735
20736 2009-10-28  Jim Meyering  <meyering@redhat.com>
20737
20738         fprintftime: wrap macro code argument in "do {...} while(0)"
20739         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
20740         cpy macro must be a statement that can be followed by a semicolon.
20741         Now that the else clause contains a comment and is hence longer
20742         than one line, I require curly braces.  That in turn requires
20743         that we wrap this code block in the standard do...while(0).
20744
20745         fprintftime: remove stray semicolon from previous change
20746         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
20747
20748         fprintftime: avoid a warning about ignored fwrite return value
20749         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
20750         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
20751         that is unsafe.
20752         * modules/fprintftime (Depends-on): Add ignore-value.
20753
20754         exclude: avoid an unwarranted warning
20755         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
20756
20757 2009-10-27  Eric Blake  <ebb9@byu.net>
20758
20759         fseek: avoid compilation failure when fflush is replaced
20760         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
20761         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
20762         module is in use.
20763         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
20764         module is not in use; since REPLACE_FSEEK worked otherwise.
20765         (GNULIB_FTELLO): Likewise for ftell.
20766         Reported by Ian Beckwith and others.
20767
20768 2009-10-27  Bruno Haible  <bruno@clisp.org>
20769
20770         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
20771         Reported by Jim Meyering.
20772
20773 2009-10-27  Jim Meyering  <jim@meyering.net>
20774             Bruno Haible  <bruno@clisp.org>
20775
20776         Avoid warning despite dropping the return value of fwrite.
20777         * lib/unicodeio.c: Include ignore-value.h.
20778         (fwrite_success_callback): Explicitly ignore fwrite's return value.
20779         * modules/unicodeio (Depends-on): Add ignore-value.
20780
20781 2009-10-26  Eric Blake  <ebb9@byu.net>
20782
20783         areadlinkat: fix fallback path
20784         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
20785         pointer and zero.
20786
20787 2009-10-22  Pádraig Brady  <P@draigBrady.com>
20788
20789         Use a better IO block size for modern systems
20790         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
20791         * lib/md2.c: Likewise.
20792         * lib/md4.c: Likewise.
20793         * lib/md5.c: Likewise.
20794         * lib/sha1.c: Likewise.
20795         * lib/sha256.c: Likewise.
20796         * lib/sha512.c: Likewise.
20797
20798 2009-10-22  Eric Blake  <ebb9@byu.net>
20799
20800         tests: avoid several compiler warnings
20801         * tests/test-getcwd.c (main): Avoid buffer underflow.
20802         * tests/test-getdate.c (main): String literals are not safe with
20803         putenv, so use setenv.  Declare unused argument.
20804         * modules/getdate-tests (Depends-on): Add setenv.
20805         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
20806         problems with string literals in char *.
20807         * tests/test-hash.c (main): Avoid shadowing declaration.
20808         (insert_new): Treat string literals as char const *.
20809         * tests/test-getopt.h (test_getopt): Likewise.
20810         (getopt_loop): Alter types to minimize casting elsewhere.
20811         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
20812         (test_getopt_long_posix): Likewise.
20813         (do_getopt_long): Add wrapper to minimize casting.
20814         * tests/test-atexit.c (clear_temp_file): Use void.
20815         * tests/test-areadlink-with-size.c (main): Declare unused
20816         arguments.
20817         * tests/test-areadlink.c (main): Likewise.
20818         * tests/test-areadlinkat-with-size.c (main): Likewise.
20819         * tests/test-areadlinkat.c (main): Likewise.
20820         * tests/test-canonicalize-lgpl.c (main): Likewise.
20821         * tests/test-canonicalize.c (main): Likewise.
20822         * tests/test-dirent-safer.c (main): Likewise.
20823         * tests/test-dirname.c (main): Likewise.
20824         * tests/test-dup2.c (main): Likewise.
20825         * tests/test-fchdir.c (main): Likewise.
20826         * tests/test-fcntl-h.c (main): Likewise.
20827         * tests/test-fcntl-safer.c (main): Likewise.
20828         * tests/test-fdopendir.c (main): Likewise.
20829         * tests/test-fdutimensat.c (main): Likewise.
20830         * tests/test-fflush.c (main): Likewise.
20831         * tests/test-filenamecat.c (main): Likewise.
20832         * tests/test-filevercmp.c (main): Likewise.
20833         * tests/test-fopen-safer.c (main): Likewise.
20834         * tests/test-fopen.c (main): Likewise.
20835         * tests/test-fpending.c (main): Likewise.
20836         * tests/test-fpurge.c (main): Likewise.
20837         * tests/test-freading.c (main): Likewise.
20838         * tests/test-fstatat.c (main): Likewise.
20839         * tests/test-fsync.c (main): Likewise.
20840         * tests/test-futimens.c (main): Likewise.
20841         * tests/test-getndelim2.c (main): Likewise.
20842         * tests/test-gettimeofday.c (main): Likewise.
20843         * tests/test-getopt.c (main): Likewise.
20844         * tests/test-i-ring.c (main): Likewise.
20845         * tests/test-inttypes.c (main): Likewise.
20846         * tests/test-link.c (main): Likewise.
20847         * tests/test-lstat.c (main): Likewise.
20848         * tests/test-math.c (main): Likewise.
20849         * tests/test-md5.c (main): Likewise.
20850         * tests/test-memchr2.c (main): Likewise.
20851         * tests/test-memrchr.c (main): Likewise.
20852         * tests/test-mkdir.c (main): Likewise.
20853         * tests/test-mkdirat.c (main): Likewise.
20854         * tests/test-mkfifoat.c (main): Likewise.
20855         * tests/test-open.c (main): Likewise.
20856         * tests/test-openat-safer.c (main): Likewise.
20857         * tests/test-openat.c (main): Likewise.
20858         * tests/test-quotearg.c (main): Likewise.
20859         * tests/test-rawmemchr.c (main): Likewise.
20860         * tests/test-readlink.c (main): Likewise.
20861         * tests/test-remove.c (main): Likewise.
20862         * tests/test-rename.c (main): Likewise.
20863         * tests/test-renameat.c (main): Likewise.
20864         * tests/test-rmdir.c (main): Likewise.
20865         * tests/test-sha1.c (main): Likewise.
20866         * tests/test-signal.c (main): Likewise.
20867         * tests/test-sigaction.c (main): Likewise.
20868         * tests/test-stat.c (main): Likewise.
20869         * tests/test-stat-time.c (main): Likewise.
20870         * tests/test-stddef.c (main): Likewise.
20871         * tests/test-stdint.c (main): Likewise.
20872         * tests/test-stdio.c (main): Likewise.
20873         * tests/test-stdlib.c (main): Likewise.
20874         * tests/test-strchrnul.c (main): Likewise.
20875         * tests/test-strerror.c (main): Likewise.
20876         * tests/test-string.c (main): Likewise.
20877         * tests/test-strtod.c (main): Likewise.
20878         * tests/test-strverscmp.c (main): Likewise.
20879         * tests/test-symlink.c (main): Likewise.
20880         * tests/test-symlinkat.c (main): Likewise.
20881         * tests/test-sys_stat.c (main): Likewise.
20882         * tests/test-sys_time.c (main): Likewise.
20883         * tests/test-time.c (main): Likewise.
20884         * tests/test-unistd.c (main): Likewise.
20885         * tests/test-unlink.c (main): Likewise.
20886         * tests/test-unlinkat.c (main): Likewise.
20887         * tests/test-utimens.c (main): Likewise.
20888         * tests/test-utimensat.c (main): Likewise.
20889         * tests/test-version-etc.c (main): Likewise.
20890         * tests/test-wchar.c (main): Likewise.
20891         * tests/test-wctype.c (main): Likewise.
20892         * tests/test-xprintf-posix.c (main): Likewise.
20893         * tests/test-posixtm.c (main): Likewise.
20894         (STREQ): Delete unused macro.
20895         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
20896         shadowed variables.
20897         * tests/test-memchr.c (main): Likewise.
20898
20899 2009-10-21  Eric Blake  <ebb9@byu.net>
20900
20901         areadlinkat: avoid failure on older glibc
20902         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
20903         rather than mis-comparing 0 against FUNC_RESULT of char*.
20904
20905 2009-10-21  Bruno Haible  <bruno@clisp.org>
20906
20907         * modules/stpncpy (License): Relicense under LGPLv2+.
20908         Reported by David Lutterkort <lutter@redhat.com>.
20909
20910 2009-10-20  Eric Blake  <ebb9@byu.net>
20911
20912         utimensat: work around Solaris 9 bug
20913         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
20914         has trailing slash bugs.
20915         * tests/test-lutimens.h (test_lutimens): Enhance test.
20916         * tests/test-utimens.h (test_utimens): Likewise.
20917         * doc/posix-functions/utime.texi (utime): Enhance documentation.
20918         * doc/posix-functions/utimes.texi (utimes): Likewise.
20919         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20920         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
20921         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
20922         * doc/posix-functions/futimens.texi (futimens): Likewise.
20923
20924         fdutimensat: new module
20925         * modules/fdutimensat: New file.
20926         * lib/fdutimensat.c (fdutimensat): Likewise.
20927         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
20928         * MODULES.html.sh (File system functions): Mention module.
20929         * modules/fdutimensat-tests: New test.
20930         * tests/test-fdutimensat.c: Likewise.
20931
20932         doc: regenerate INSTALL
20933         * doc/INSTALL: Reflect recent autoconf update.
20934         * doc/INSTALL.ISO: Likewise.
20935         * doc/INSTALL.UTF-8: Likewise.
20936
20937 2009-10-20  Pádraig Brady  <P@draigBrady.com>
20938
20939         acl: warn if ACL support is not detected
20940         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
20941
20942 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
20943
20944         * lib/nproc.h: Add extern "C" block for C++.
20945
20946 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
20947             Bruno Haible  <bruno@clisp.org>
20948
20949         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
20950         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
20951         * doc/posix-functions/isalpha.texi: Likewise.
20952         * doc/posix-functions/isblank.texi: Likewise.
20953         * doc/posix-functions/iscntrl.texi: Likewise.
20954         * doc/posix-functions/isdigit.texi: Likewise.
20955         * doc/posix-functions/isgraph.texi: Likewise.
20956         * doc/posix-functions/islower.texi: Likewise.
20957         * doc/posix-functions/isprint.texi: Likewise.
20958         * doc/posix-functions/ispunct.texi: Likewise.
20959         * doc/posix-functions/isspace.texi: Likewise.
20960         * doc/posix-functions/isupper.texi: Likewise.
20961         * doc/posix-functions/isxdigit.texi: Likewise.
20962
20963 2009-10-18  Bruno Haible  <bruno@clisp.org>
20964
20965         Tests for module 'isblank'.
20966         * modules/isblank-tests: New file.
20967         * tests/test-isblank.c: New file.
20968
20969         New module 'isblank'.
20970         * lib/isblank.c: New file.
20971         * m4/isblank.m4: New file.
20972         * modules/isblank: New file.
20973         * doc/posix-functions/isblank.texi: Mention the new module.
20974
20975 2009-10-18  Bruno Haible  <bruno@clisp.org>
20976
20977         New module 'ctype'.
20978         * lib/ctype.in.h: New file.
20979         * m4/ctype.m4: New file.
20980         * modules/ctype: New file.
20981         * doc/posix-headers/ctype.texi: Mention the new module.
20982
20983 2009-10-18  Jim Meyering  <meyering@redhat.com>
20984
20985         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
20986         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
20987         right after its initialization, rather than farther down.
20988         Keeping these in close proximity makes it easier to ensure
20989         that each such variable is initialized.  E.g.,
20990
20991             LIB_CLOCK_GETTIME=
20992             AC_SUBST([LIB_CLOCK_GETTIME])
20993
20994         This change also increments these serial numbers.
20995         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
20996         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20998
20999 2009-10-18  Bruno Haible  <bruno@clisp.org>
21000
21001         Don't let environment variables perturb build.
21002         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
21003         (gl_PREREQ_GETHRXTIME): ... not here.
21004
21005 2009-10-18  Bruno Haible  <bruno@clisp.org>
21006
21007         Avoid symlink attack in localcharset module.
21008         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
21009         (O_NOFOLLOW): Define fallback.
21010         (get_charset_aliases): Don't open the file if it is a symbolic link.
21011         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
21012         gl_FCNTL_H.
21013         (gl_FCNTL_H): Require it.
21014         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
21015         * modules/localcharset (Files): Add m4/fcntl_h.m4.
21016         Reported by Fergal Glynn <fglynn@veracode.com>.
21017
21018 2009-10-18  Bruno Haible  <bruno@clisp.org>
21019
21020         Implement nproc for mingw.
21021         * lib/nproc.c: Include <windows.h>
21022         (num_processors): On native Windows platforms, try GetSystemInfo.
21023
21024 2009-10-18  Bruno Haible  <bruno@clisp.org>
21025
21026         Implement nproc for IRIX.
21027         * lib/nproc.c: Include <sys/sysmp.h>.
21028         (num_processors): On IRIX systems, try sysmp.
21029         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
21030
21031 2009-10-18  Bruno Haible  <bruno@clisp.org>
21032
21033         Implement nproc for HP-UX.
21034         * lib/nproc.c: Include <sys/pstat.h>
21035         (num_processors): On HP-UX systems, try pstat_getdynamic.
21036         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
21037         pstat_getdynamic.
21038
21039 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
21040             Bruno Haible  <bruno@clisp.org>
21041
21042         Implement nproc for NetBSD, OpenBSD.
21043         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
21044         (ARRAY_SIZE): New macro.
21045         (num_processors): On BSD systems, try sysctl of HW_NCPU.
21046         * m4/nproc.m4: New file.
21047         * modules/nproc (Files): Add m4/nproc.m4.
21048         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
21049         (Makefile.am): Instead, augment lib_SOURCES.
21050
21051 2009-10-18  Bruno Haible  <bruno@clisp.org>
21052
21053         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
21054         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
21055         sys/param.h.
21056
21057 2009-10-16  Eric Blake  <ebb9@byu.net>
21058
21059         utimensat: new module
21060         * modules/utimensat: New file.
21061         * lib/utimensat.c (utimensat): Likewise.
21062         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21063         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
21064         so we can work around Linux bugs.
21065         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21066         * modules/sys_stat (Makefile.am): Substitute them.
21067         * lib/sys_stat.in.h (utimensat): Declare it.
21068         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21069         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21070         * modules/utimensat-tests: New test.
21071         * tests/test-utimensat.c: Likewise.
21072
21073         utimens: let lutimens work on non-symlinks
21074         * lib/utimens.c (lutimens): Fall back to utimens rather than
21075         failing with ENOSYS, when file is not a symlink.
21076         (utimens): Reduce redirection.
21077         * tests/test-lutimens.h (test_lutimens): Update test to cover
21078         non-symlinks.
21079         * tests/test-utimens.h (test_utimens): Update test to cover
21080         symlinks.
21081         * tests/test-utimens.c (main): Update caller.
21082
21083         utimens: cache whether utimensat syscall works
21084         * lib/utimens.c (utimensat_works_really): New cache variable.
21085         (fdutimens, lutimens): Use it to avoid failing syscall.
21086
21087         test-stat-time, test-utimens: improve portability
21088         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
21089         ext4 on alpha, and for cygwin.
21090         * tests/test-utimens-common.h: New file.
21091         (nap): Factor delays into single function.
21092         * tests/test-lutimens.h (test_lutimens): Use new header.
21093         * tests/test-futimens.h (test_futimens): Likewise.
21094         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
21095         timestamps to occur from same machine, as was done previously for
21096         test_utimens.
21097         * modules/utimens-tests (Files): Ship new file.
21098         * modules/futimens-tests (Files): Likewise.
21099         Reported in part by Jim Meyering.
21100
21101         sys_stat: sort replacement declarations
21102         * lib/sys_stat.in.h: Sort declarations.
21103         * lib/futimens.c (futimens): Fix typo.
21104
21105 2009-10-15  Jim Meyering  <meyering@redhat.com>
21106
21107         don't let environment settings perturb build
21108         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
21109         could cause a configure-time and/or build-time malfunction.
21110         Typically, a configure-time function-in-library test is performed
21111         via code like this:
21112
21113           LIB_VAR=
21114           AC_SUBST([LIB_VAR])
21115           prefix_saved_LIBS=$LIBS
21116             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
21117                        [test "$ac_cv_search_FUNC" = "none required" ||
21118                         LIB_VAR=$ac_cv_search_FUNC])
21119           LIBS=$prefix_saved_LIBS
21120
21121         However, in each of the files affected by this change, the LIB_VAR=
21122         initialization was omitted.  Thus, when set in the environment, its
21123         value would propagate into generated Makefiles when FUNC is not found
21124         in LIB_NAME.
21125         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
21126         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21128
21129 2009-10-14  Eric Blake  <ebb9@byu.net>
21130
21131         fchdir: avoid infinite recursion in mingw
21132         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
21133         recursing.
21134
21135         test-stat-time: port to mingw
21136         * tests/test-stat-time.c (force_unlink): Return a value.
21137         (test_ctime) [W32]: Fix compilation error.
21138         (nap): Don't call usleep with too large an argument.  Use
21139         force_unlink.
21140         * doc/pastposix-functions/usleep.texi (usleep): Document the
21141         portability issue.
21142
21143 2009-10-13  Jim Meyering  <meyering@redhat.com>
21144
21145         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
21146         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
21147         * modules/pipe-filter-ii: Likewise.
21148         * modules/sys_socket-tests: Likewise.
21149         * modules/tsearch-tests: Likewise.
21150         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
21151         (check): Depend on it.
21152
21153 2009-10-12  Eric Blake  <ebb9@byu.net>
21154
21155         utimens-tests: port to NFS file systems
21156         * tests/test-utimens.h (test_utimens): Refactor utimecmp
21157         comparisons to avoid spurious failures from timestamp drift
21158         between NFS machines.
21159
21160 2009-10-12  Eric Blake  <ebb9@byu.net>
21161
21162         stat-time-tests: minor cleanups
21163         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
21164         * tests/test-stat-time.c (nap): Separate assignment from call.
21165         Suggested by Paolo Bonzini and Bruno Haible.
21166
21167         sys_stat: guarantee struct timespec
21168         * lib/sys_stat.in.h (includes): Always include <time.h>
21169         * modules/sys_stat (Depends-on): Add time.
21170         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
21171         mode_t permission values.
21172         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
21173         get at subsecond timestamps.
21174
21175 2009-10-10  Eric Blake  <ebb9@byu.net>
21176
21177         futimens: new module
21178         * modules/futimens: New file.
21179         * lib/futimens.c (futimens): Likewise.
21180         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
21181         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
21182         we can work around Linux bugs.
21183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21184         * modules/sys_stat (Makefile.am): Substitute them.
21185         * lib/sys_stat.in.h (futimens): Declare it.
21186         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21187         * doc/posix-functions/futimens.texi (futimens): Likewise.
21188         * modules/futimens-tests: New test.
21189         * tests/test-futimens.c: Likewise.
21190
21191         utimens: introduce fdutimens
21192         * lib/utimens.h (fdutimens): New prototype.
21193         * lib/utimens.c (gl_futimens): Move guts...
21194         (fdutimens): ...to new interface.
21195         * tests/test-utimens.c (do_fdutimens): Use it.
21196
21197         utimens: add UTIME_NOW and UTIME_OMIT support
21198         * lib/utimens.c (validate_timespec, update_timespec): New helper
21199         functions.
21200         (gl_futimens, lutimens): Use them.
21201         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
21202         stdbool, sys_stat.
21203         (Link): Mention resulting library dependency.
21204         * modules/utimecmp (Link): Likewise.
21205         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
21206         (Makefile.am): Pick up library dependency.
21207         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
21208         definition.
21209         * tests/test-sys_stat.c: Test the definitions.
21210         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
21211         * NEWS: Document library dependency.
21212
21213         utimecmp: support symlink timestamps
21214         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
21215         hashing when possible.  Use pathconf when available.
21216         (SYSCALL_RESOLUTION): Recognize tighter resolution.
21217         * modules/utimecmp (Depends-on): Add lstat.
21218
21219         utimens: add lutimens interface
21220         * lib/utimens.c (lutimens): New function.
21221         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
21222         * lib/utimens.h (lutimens): Declare new interface.
21223         * tests/test-utimens.c (main): Enhance test.
21224         * tests/test-lutimens.h (test_lutimens): New file.
21225         * modules/utimens-tests (Files): Distribute it.
21226         (Depends-on): Add symlink.
21227         (configure.ac): Check for usleep.
21228
21229         utimens: validate futimens usage
21230         * lib/utimens.c (gl_futimens): Require valid fd up front, using
21231         fewer syscalls on failure later on.  Avoid compiler warning on
21232         mingw.
21233         * modules/utimens (Depends-on): Add dup2.
21234
21235         utimens: add test
21236         * modules/utimens-tests: New test.
21237         * tests/test-utimens.h: New file.
21238         * tests/test-futimens.h: Likewise.
21239         * tests/test-utimens.c: Likewise.
21240
21241         doc: mention timestamp portability issues
21242         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
21243         instead.
21244         * doc/posix-functions/utime.texi (utime): Likewise.
21245         * doc/posix-functions/utimes.texi (utimes): Likewise.
21246         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
21247         instead.
21248         * doc/posix-functions/futimens.texi (futimens): Mention utimens
21249         module.
21250         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21251         Mention weakness with symlink timestamps.
21252         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
21253         to utimensat/futimens instead.
21254         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
21255
21256         test-dup2: enhance test
21257         * tests/test-dup2.c (main): Also check AT_FDCWD.
21258
21259         test-stat-time: avoid more spurious failures
21260         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
21261         xfs; and avoid race if the two timestamps cross quantization edge.
21262
21263         relocatable: prefer 'file system' over 'filesystem'
21264         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
21265         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
21266         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
21267         * doc/relocatable.texi (Enabling Relocatability): Likewise.
21268         * lib/relocatable.c (compute_curr_prefix): Likewise.
21269
21270 2009-10-10  Jim Meyering  <meyering@redhat.com>
21271
21272         stat-time-tests: check for the usleep function
21273         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
21274
21275 2009-10-10  Bruno Haible  <bruno@clisp.org>
21276
21277         * modules/xnanosleep: Put the Link section after the Include section.
21278
21279 2009-10-09  Eric Blake  <ebb9@byu.net>
21280
21281         dup2: work around FreeBSD 6.1 bug
21282         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
21283         * doc/posix-functions/dup2.texi (dup2): Document it.
21284         Reported by Nelson H. F. Beebe and Jim Meyering.
21285
21286         test-stat-time: port to buggy NFS clients
21287         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
21288         (test_ctime): Also skip test if mtime and ctime are skewed.
21289
21290         maint: prefer 'file system' over 'filesystem'
21291         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21292         * doc/posix-functions/lstat.texi (lstat): Likewise.
21293         * lib/file-has-acl.c (file_has_acl): Likewise.
21294         * lib/fwriteerror.c [TEST]: Likewise.
21295         * tests/test-areadlink.h (test_areadlink): Likewise.
21296         * tests/test-areadlinkat-with-size.c (main): Likewise.
21297         * tests/test-areadlinkat.c (main): Likewise.
21298         * tests/test-canonicalize-lgpl.c (main): Likewise.
21299         * tests/test-canonicalize.c (main): Likewise.
21300         * tests/test-fstatat.c (main): Likewise.
21301         * tests/test-linkat.c (main): Likewise.
21302         * tests/test-lstat.h (test_lstat_func): Likewise.
21303         * tests/test-mkdir.h (test_mkdir): Likewise.
21304         * tests/test-readlink.h (test_readlink): Likewise.
21305         * tests/test-remove.c (main): Likewise.
21306         * tests/test-rename.h (test_rename): Likewise.
21307         * tests/test-renameat.c (main): Likewise.
21308         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21309         * tests/test-symlink.h (test_symlink): Likewise.
21310         * tests/test-symlinkat.c (main): Likewise.
21311         * tests/test-unlink.h (test_unlink_func): Likewise.
21312         * tests/test-unlinkat.c (main): Likewise.
21313
21314         maint: make realtime library usage explicit
21315         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
21316         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
21317         * modules/settime (Link): Likewise.
21318         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
21319
21320         test-stat-time: speed up execution
21321         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
21322         warning on mingw.
21323         (nap): New helper function.
21324         (prepare_test): Use it to reduce sleep time.
21325         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
21326         execution.
21327         * modules/stat-time-tests (configure.ac): Check for usleep.
21328
21329 2009-10-09  Jim Meyering  <meyering@redhat.com>
21330
21331         selinux-h: always use getfilecon wrappers
21332         * lib/getfilecon.c: New file.
21333         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
21334         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
21335         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
21336         (fgetfilecon): Provide a stub.
21337         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
21338         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
21339         file unconditionally.
21340         When <selinux/selinux.h> is found, arrange to use wrappers.
21341         * modules/selinux-h (Files): Add getfilecon.c.
21342         (Makefile.am): Substitute include-next-related bits
21343         into the now-always-generated selinux/selinux.h file.
21344         * doc/glibc-functions/lgetfilecon.texi: New file.
21345         * doc/glibc-functions/fgetfilecon.texi: New file.
21346         * doc/glibc-functions/getfilecon.texi: New file.
21347         * doc/glibc-functions/getfilecon-desc.texi: New file.
21348         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
21349         which to pull in the new files.
21350         * MODULES.html.sh (Misc): Add selinux-h.
21351
21352 2009-10-08  Jim Meyering  <meyering@redhat.com>
21353
21354         unistd: fix comment typo
21355         * lib/unistd.in.h (euidaccess): Fix a comment typo.
21356
21357 2009-10-08  Eric Blake  <ebb9@byu.net>
21358
21359         areadlink: use SIZE_MAX consistently
21360         * modules/areadlink (Depends-on): Add stdint.
21361         * modules/areadlink-with-size (Depends-on): Likewise.
21362         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
21363         gives NULL; drop sys/types, since unistd gives size_t; and add
21364         stdint for SIZE_MAX.
21365         (SIZE_MAX): Rely on headers.
21366         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
21367         and add stdint.
21368         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
21369         (SIZE_MAX): Likewise.
21370         (INITIAL_BUF_SIZE): Turn into enum.
21371         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
21372
21373 2009-10-08  Jim Meyering  <meyering@redhat.com>
21374
21375         areadlinkat: avoid compilation failure
21376         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
21377         Fix typo in comment.
21378
21379 2009-10-07  Eric Blake  <ebb9@byu.net>
21380
21381         areadlinkat-with-size: new module
21382         * modules/areadlinkat-with-size: New module.
21383         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
21384         * lib/areadlink.h (areadlinkat): Declare it.
21385         * MODULES.html.sh (File system functions): Mention it.
21386         * modules/areadlinkat-with-size-tests: New test.
21387         * tests/test-areadlinkat-with-size.c: New file.
21388
21389         xreadlinkat: new module
21390         * modules/xreadlinkat: New module.
21391         * lib/xreadlinkat.c (xreadlinkat): New file.
21392         * lib/xreadlink.h (xreadlinkat): Declare it.
21393         * MODULES.html.sh (File system functions): Mention it.
21394
21395         areadlinkat: new module
21396         * lib/at-func.c (FUNC_FAIL): New define.
21397         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
21398         * modules/areadlinkat: New module.
21399         * lib/linkat.c (areadlinkat): Move...
21400         * lib/areadlinkat.c (areadlinkat): ...to new file.
21401         * lib/areadlink.h (areadlinkat): Declare it.
21402         * modules/linkat (Depends-on): Add areadlinkat.
21403         * MODULES.html.sh (File system functions): Mention it.
21404         * modules/areadlinkat-tests: New test.
21405         * tests/test-areadlinkat.c: New file.
21406
21407         areadlink, areadlink-with-size: add tests
21408         * modules/areadlink-tests: New test.
21409         * modules/areadlink-with-size-tests: Likewise.
21410         * tests/test-areadlink.h: New file.
21411         * tests/test-areadlink.c: Likewise.
21412         * tests/test-areadlink-with-size.c: Likewise.
21413
21414         maint: minor cleanups
21415         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
21416         _UNUSED_PARAMETER_ instead.
21417         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
21418         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
21419         * modules/linkat-tests (Files): Distribute test-link.h.
21420
21421         openat, utimens: whitespace cleanup
21422         * lib/openat.c: Prefer space throughout, rather than mix of 8
21423         spaces vs. tabs.
21424         * lib/at-func.c: Likewise.
21425         * lib/utimens.c: Likewise.
21426
21427         openat: avoid using wrong fd
21428         * lib/openat.c (openat_permissive): Reject user's fd if saving the
21429         working directory chooses same fd.
21430         * lib/at-func.c (AT_FUNC_NAME): Likewise.
21431
21432         mkdir, mkdirat: fix cygwin 1.5.x bug
21433         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
21434         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
21435         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
21436         bug.
21437         (gl_PREREQ_MKDIR): Delete unused macro.
21438         * modules/mkdir (Files): Track file rename.
21439         (configure.ac): Update macro name.
21440         * modules/openat (Depends-on): Add mkdir.
21441         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
21442
21443         mkdir, mkdirat: add tests
21444         * modules/mkdir-tests: New test.
21445         * tests/test-mkdir.h: New file.
21446         * tests/test-mkdir.c: Likewise.
21447         * tests/test-mkdirat.c: Likewise.
21448         * modules/openat-tests (Files): Add new files.
21449         (Makefile.am): Run new test.
21450
21451 2009-10-06  Eric Blake  <ebb9@byu.net>
21452
21453         doc: tweak *at function documentation
21454         * doc/posix-functions/faccessat.texi (faccessat): Mention
21455         known issue with replacement.
21456         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
21457         * doc/posix-functions/linkat.texi (linkat): Likewise.
21458         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21459         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21460         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21461         * doc/posix-functions/renameat.texi (renameat): Likewise.
21462         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21463
21464         openat: fix GNU/Hurd bug in unlinkat
21465         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
21466         broken.
21467         * doc/posix-functions/unlink.texi (unlink): Document this.
21468         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
21469
21470         fdopendir: fix GNU/Hurd bug
21471         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
21472         allowing non-directory fds.
21473         * lib/fdopendir.c (rpl_fdopendir): Work around it.
21474         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21475         * modules/dirent (Makefile.am): Substitute it.
21476         * lib/dirent.in.h (fdopendir): Declare replacement.
21477         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
21478         * tests/test-fdopendir.c (main): Test something other than
21479         /dev/null, since on Hurd that behaves like a directory.
21480
21481         test-symlink: port to GNU/Hurd
21482         * tests/test-symlink.h (test_symlink): Relax expected errno.
21483
21484         doc: tweak more cygwin information
21485         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
21486         now compatible with glibc.
21487         * doc/posix-functions/getopt.texi (getopt): Likewise.
21488
21489         getopt-gnu: add another test
21490         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
21491         guarantee behavior relied on by m4.
21492         * tests/test-getopt.c (main): Use it.
21493         * modules/getopt-posix-tests (Depends-on): Add setenv.
21494         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
21495
21496         getopt: fix compilation on darwin
21497         * lib/getopt.in.h (includes): Leave breadcrumbs during system
21498         include.
21499         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
21500         Reported by Ludovic Courtès.
21501
21502 2009-10-06  Bruno Haible  <bruno@clisp.org>
21503
21504         * modules/size_max (Description): Discourage its use.
21505         Reported by Simon Josefsson.
21506
21507 2009-10-06  Jim Meyering  <meyering@redhat.com>
21508
21509         linkat: avoid compilation failure
21510         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
21511
21512 2009-10-05  Eric Blake  <ebb9@byu.net>
21513
21514         linkat: support Linux 2.6.17
21515         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
21516         linkat on Linux, but allow cache variable override.
21517         * lib/linkat.c (rpl_linkat): Define override.
21518         * modules/linkat (Depends-on): Add symlinkat.
21519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
21520         * modules/unistd (Makefile.am): Substitute it.
21521         * lib/unistd.in.h (linkat): Declare replacement.
21522         Reported by Pádraig Brady.
21523
21524         quotearg: port test to systems with C.UTF-8 locale
21525         * tests/test-quotearg.c (struct result_strings): Add another
21526         member, differentiating between C.ASCII and C.UTF-8 handling.
21527         (compare_strings): Add parameter.
21528         (main): Adjust all callers.
21529
21530         getopt: avoid clash with FreeBSD _getopt_internal
21531         * lib/getopt.in.h (_getopt_internal): Override the name.
21532         * lib/getopt_int.h (includes): Pick up any overrides.
21533         Reported by Reuben Thomas.
21534
21535         hash: allow C89 compilation
21536         * lib/hash.c (check_tuning): Move declaration before statement.
21537         Reported by Reuben Thomas.
21538
21539 2009-10-05  Karl Berry  <karl@gnu.org>
21540
21541         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
21542
21543 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
21544             Bruno Haible  <bruno@clisp.org>
21545
21546         * lib/uname.c (uname): Use a table-driven algorithm to compute
21547         Windows NT versions.
21548
21549 2009-10-04  Bruno Haible  <bruno@clisp.org>
21550
21551         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
21552         program_invocation_short_name.
21553         * modules/progname (configure.ac): Test for presence of
21554         program_invocation_short_name.
21555         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21556
21557 2009-10-04  Bruno Haible  <bruno@clisp.org>
21558
21559         * lib/progname.c (set_program_name): Fix comment.
21560         Reported by Jim Meyering.
21561
21562 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21563             Bruno Haible  <bruno@clisp.org>
21564
21565         * lib/uname.c: Include <string.h>.
21566         (uname): Do only one call to GetVersionEx in the common case.
21567
21568 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21569             Bruno Haible  <bruno@clisp.org>
21570
21571         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
21572         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
21573         (uname): Add support for Windows CE and various non-x86 CPU types.
21574
21575 2009-10-03  Bruno Haible  <bruno@clisp.org>
21576
21577         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
21578         invocation to tests/configure.ac.
21579         Reported by Ian Beckwith <ianb@erislabs.net>.
21580
21581 2009-10-02  Eric Blake  <ebb9@byu.net>
21582
21583         fchdir: avoid compiler warning
21584         * lib/fchdir.c (canonicalize_file_name)
21585         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
21586
21587         test-open: support mingw errno values
21588         * tests/test-open.h (test_open): Relax test.
21589         * tests/test-fopen.h (test_fopen): Likewise.
21590         * tests/test-openat-safer.c (main): Likewise.
21591
21592         open: fix opening directory on mingw
21593         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
21594
21595         test-open: on GNU/Hurd, /dev/null is a directory
21596         * tests/test-fopen.h (main): Rename...
21597         (test_fopen): ...to this.  Use a guaranteed non-directory when
21598         confirming open behavior on trailing slash.
21599         * tests/test-openat-safer.c (main): Likewise.
21600         * tests/test-open.h (main): Likewise....
21601         (test_open): ...to this.
21602         * tests/test-fopen.c (main): Adjust caller.
21603         * tests/test-fopen-safer.c (main): Likewise.
21604         * tests/test-open.c (main): Likewise.
21605         * tests/test-fcntl-safer.c (main): Likewise.
21606         Reported by Samuel Thibault.
21607
21608         rename, fchdir: don't ignore chdir failure
21609         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
21610         * lib/rename.c (rpl_rename) [W32]: Likewise.
21611         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
21612         an empty destination directory if source cannot be renamed,
21613         although there is still possibility for failure.
21614         * doc/posix-functions/rename.texi (rename): Document the race.
21615         Reported by Jim Meyering.
21616
21617         maint: cleanup whitespace in recent commits
21618         * lib/rename.c (rpl_rename): Remove tabs.
21619         * tests/test-link.h (test_link): Likewise.
21620         * lib/fchdir.c (get_name): Likewise.
21621         Reported by Jim Meyering.
21622
21623 2009-10-02  Ben Pfaff  <blp@gnu.org>
21624
21625         relocatable-prog-wrapper: Add missing dependency on
21626         double-slash-root.
21627         * modules/relocatable-prog-wrapper: Add dependency.
21628         Reported by Ian Beckwith <ianb@erislabs.net>.
21629
21630 2009-10-02  Eric Blake  <ebb9@byu.net>
21631
21632         renameat: fix Solaris bugs
21633         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
21634         needed fixing.
21635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
21636         * modules/stdio (Makefile.am): Substitute it.
21637         * lib/stdio.in.h (renameat): Declare replacement.
21638         * lib/renameat.c (rpl_renameat): Implement fix.
21639
21640         renameat: new module
21641         * modules/renameat: New file.
21642         * lib/renameat.c (renameat): Likewise.
21643         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
21644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21645         * modules/stdio (Makefile.am): Substitute them.
21646         * lib/stdio.in.h (renameat): Declare it.
21647         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21648         * doc/posix-functions/renameat.texi (renameat): Likewise.
21649         * modules/renameat-tests: New test.
21650         * tests/test-renameat.c: Likewise.
21651
21652         rename: fix mingw bugs
21653         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
21654         directory overwrite bugs.
21655
21656         rename: fix another cygwin 1.5 bug
21657         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
21658         checks.
21659         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
21660         unnecessary cygwin workarounds.  Also work around bug with moving
21661         full directory onto an empty one.
21662         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
21663
21664         rename-dest-slash: merge into rename module
21665         * modules/rename-dest-slash (Status): Mark obsolete.
21666         (Depends-on): Add rename.
21667         (Files): Let rename do it all.
21668         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
21669         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
21670         * m4/rename-dest-slash.m4: ...so this file can be deleted.
21671         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
21672         * lib/rename.c (rpl_rename): Update comments.
21673
21674         rename: fix cygwin 1.5.x bugs
21675         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
21676         * lib/rename.c (rpl_rename): Work around them.
21677         * modules/rename (Depends-on): Add same-inode.
21678
21679         rename: fix Solaris 10 bug
21680         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21681         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
21682         was the only bug.
21683
21684         rename: fix Solaris 9 bug
21685         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
21686         on non-directory.  Avoid calling exit.
21687         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
21688         strdup.
21689         * modules/rename-tests (Depends-on): Drop lstat.
21690         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21691         (gl_PREREQ_RENAME): Delete unused macro.
21692
21693         rename-dest-slash: fix NetBSD bug
21694         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
21695         links.
21696         * modules/rename-dest-slash (Depends-on): Add same-inode.
21697
21698         rename-tests: new test, exposes several platform bugs
21699         * modules/rename-tests: New file.
21700         * tests/test-rename.h: Likewise.
21701         * tests/test-rename.c: Likewise.
21702         * doc/posix-functions/rename.texi (rename): Improve documentation,
21703         including bugs that will eventually be fixed in gnulib.
21704
21705 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
21706
21707         * lib/uname.c: Include <stdlib.h>
21708         (uname): Assume version info is available.
21709
21710 2009-10-02  Jim Meyering  <meyering@redhat.com>
21711
21712         gnu-web-doc-update: correct --help output
21713         * build-aux/gnu-web-doc-update: Make --help output relevant.
21714
21715         gnu-web-doc-update: add standard options
21716         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
21717
21718         gnu-web-doc-update: New module.
21719         Use this script to automatically update the on-line web documentation
21720         for your GNU project at http://www.gnu.org/software/$pkg/manual/
21721         * modules/gnu-web-doc-update: New file, from coreutils.
21722         * build-aux/gnu-web-doc-update: New script.
21723
21724 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
21725
21726         link: LoadLibrary is not needed.
21727         * lib/link.c: Use GetModuleHandle.
21728
21729 2009-10-01  Eric Blake  <ebb9@byu.net>
21730
21731         getopt: bump serial number
21732         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
21733         change.
21734
21735         tests: tighten link, rmdir, and remove tests
21736         * tests/test-link.h (includes): No need to use <config.h> here.
21737         Clean up if directory hard link was created, otherwise test for
21738         trailing '.'.
21739         * tests/test-linkat.c (main): Simplify.
21740         * tests/test-remove.c (main): Enhance test for trailing '.'.
21741         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21742
21743 2009-10-01  Jim Meyering  <meyering@redhat.com>
21744
21745         maint.mk: requiring "make major" was annoying, for a "minor" release.
21746         What is intended is "stable", to contrast with alpha and beta,
21747         so require "make stable", not "make major".
21748         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
21749         (get_tool_versions): Likewise.
21750         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
21751
21752 2009-09-30  Ben Pfaff  <blp@gnu.org>
21753
21754         Fix broken build of replacement for Windows tmpfile().
21755         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
21756         flags argument added along with the 'mkostemp' module.
21757
21758 2009-09-28  Bruno Haible  <bruno@clisp.org>
21759
21760         Avoid identifier clash with POSIX function 'remove' defined as a macro.
21761         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
21762         to 'remove_elt'.
21763         (gl_list_remove): Update.
21764         * lib/gl_list.c (gl_list_remove): Update.
21765         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
21766         to 'remove_elt'.
21767         (gl_oset_remove): Update.
21768         * lib/gl_list.c (gl_oset_remove): Update.
21769         Reported by Eric Blake.
21770
21771 2009-09-28  Eric Blake  <ebb9@byu.net>
21772
21773         doc: mention yet more cygwin 1.7 status
21774         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
21775         cygwin.
21776         * doc/glibc-functions/execvpe.texi (execvpe): New file.
21777         * doc/gnulib.texi (Glibc unistd.h): Mention it.
21778
21779         argp: fix test failure
21780         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
21781         that are not upper-case.  Pass correct range to tolower.
21782
21783 2009-09-27  Jim Meyering  <meyering@redhat.com>
21784
21785         test-yesno: work around sparc-dash here-document infelicity
21786         Without this change, the literal \177 byte in a here document
21787         would make dash 0.5.5.1-3 access uninitialized memory.
21788         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
21789         Instead, use a marker, "@", and filter through tr to create the desired
21790         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
21791
21792 2009-09-27  Bruno Haible  <bruno@clisp.org>
21793
21794         Disable untested support for new flavours of ACLs on AIX.
21795         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
21796         progress.
21797         * lib/set-mode-acl.c (qset_acl): Likewise.
21798
21799 2008-12-07  Bruno Haible  <bruno@clisp.org>
21800
21801         Add support for new flavours of ACLs on AIX. (Untested.)
21802         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
21803         (file_has_acl): Add support for newer AIX.
21804         * lib/set-mode-acl.c (qset_acl): Likewise.
21805         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
21806         Rainer Tammer <tammer@tammer.net>.
21807
21808 2009-09-26  Eric Blake  <ebb9@byu.net>
21809
21810         argp: fix compilation of getopt
21811         * lib/getopt.in.h (includes): Use different guard than glibc.
21812         Reported by Sergey Poznyakoff.
21813
21814         doc: mention more cygwin 1.7 status
21815         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
21816         bug.
21817         * doc/posix-functions/execl.texi (execl): Likewise.
21818         * doc/posix-functions/execle.texi (execle): Likewise.
21819         * doc/posix-functions/execlp.texi (execlp): Likewise.
21820         * doc/posix-functions/execv.texi (execv): Likewise.
21821         * doc/posix-functions/execve.texi (execve): Likewise.
21822         * doc/posix-functions/execvp.texi (execvp): Likewise.
21823         * doc/glibc-functions/canonicalize_file_name.texi
21824         (canonicalize_file_name): Cygwin 1.7 now provides this.
21825         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
21826         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
21827         on AT_SYMLINK_NOFOLLOW.
21828
21829 2009-09-24  Eric Blake  <ebb9@byu.net>
21830
21831         test-linkat: make test more robust
21832         * tests/test-linkat.c (main): Avoid collision with EEXIST.
21833
21834         getopt: fix inclusion guards for cygwin
21835         * modules/getopt-posix (Depends-on): Add include-next.
21836         (Makefile.am): Substitute more items in replacement header.
21837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
21838         <getopt.h>.
21839         * lib/getopt.in.h (includes): Use split inclusion guard, and
21840         prefer <getopt.h> over include <unistd.h> when one is present.
21841         (option): Also override name of 'struct option'.
21842
21843         same-inode: revert prior change; it is not yet ready
21844         * NEWS: Undo mention of this change.
21845         * lib/same-inode.h (same-inode.h): Undo tri-state change.
21846         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
21847         * lib/cycle-check.c (cycle_check): Likewise.
21848         * lib/same.c (same_name): Likewise.
21849         * lib/at-func2.c (at_func2): Likewise.
21850
21851 2009-09-23  Eric Blake  <ebb9@byu.net>
21852
21853         linkat: new module
21854         * modules/linkat: New file.
21855         * lib/at-func2.c (at_func2): Likewise.
21856         * lib/linkat.c (linkat): Likewise.
21857         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
21858         * lib/openat-priv.h (at_func2): Add declaration.
21859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21860         * modules/unistd (Makefile.am): Substitute them.
21861         * lib/unistd.in.h (linkat): Declare it.
21862         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21863         * doc/posix-functions/linkat.texi (linkat): Likewise.
21864         * doc/posix-functions/link.texi (link): Tweak wording.
21865         * tests/test-link.c (main): Move guts...
21866         * tests/test-link.h (test_link): ...into new file.
21867         * modules/linkat-tests: New test.
21868         * tests/test-linkat.c: Likewise.
21869         * modules/link-tests (Files): Ship new file.
21870         (Depends-on): Add stdbool.
21871
21872         dirname: add library-safe mdir_name
21873         * lib/dirname.h (mdir_name): New prototype.
21874         * lib/dirname.c (dir_name): Move guts...
21875         (mdir_name): ...to new function that avoids xalloc_die.
21876
21877         fchdir: another mingw fix
21878         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
21879         * lib/fchdir.c (get_name): New helper method; skips canonicalize
21880         on mingw (where it has not yet been ported), and make it optional
21881         elsewhere.
21882         (_gl_register_fd): Use it.
21883
21884         same-inode: make SAME_INODE tri-state, to port to mingw
21885         * NEWS: Mention this change.
21886         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
21887         st_ino always being 0.
21888         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
21889         * lib/cycle-check.c (cycle_check): Likewise.
21890         * lib/same.c (same_name): Likewise.
21891
21892         lstat: avoid mingw compilation error
21893         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
21894         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
21895         lstat ourselves.
21896         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
21897         was adequate.
21898         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
21899         the checks for lstat.
21900         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
21901
21902         link: fix test failure on Solaris 9
21903         * lib/link.c (rpl_link): Don't assume link will catch bogus
21904         trailing slash on source.
21905
21906         test-symlinkat: enhance test
21907         * tests/test-readlink.c (main): Move guts...
21908         * tests/test-readlink.h (test_readlink): ...into new file.
21909         * tests/test-symlink.c (main): Move guts...
21910         * tests/test-symlink.h (test_symlink): ...into new file.
21911         * tests/test-symlinkat.c (main): Use new files for further
21912         coverage.
21913         (do_symlink, do_readlink): New helper functions.
21914         * modules/symlink-tests (Files): Ship new file.
21915         (Depends-on): Add stdbool.
21916         * modules/readlink-tests (Files): Ship new file.
21917         (Depends-on): Add stdbool.
21918         * modules/symlinkat-tests (Files): Use new files.
21919
21920 2009-09-23  Eric Blake  <ebb9@byu.net>
21921
21922         readlink: document portability issue with symlink length
21923         * doc/posix-functions/lstat.texi (lstat): Mention that some file
21924         systems have bogus st_size on symlinks, and mention the
21925         areadlink-with-size module.
21926         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21927         * doc/posix-functions/readlink.texi (readlink): Mention the
21928         areadlink module, and ERANGE failure.
21929         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21930         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
21931
21932         readlink: fix Solaris 9 bug with trailing slash
21933         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
21934         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
21935         * doc/posix-functions/readlink.texi (readlink): Document this.
21936         * modules/readlink-tests: New test.
21937         * tests/test-readlink.c: Likewise.
21938
21939         readlink: fix cygwin 1.5.x bug with return type
21940         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
21941         * lib/unistd.in.h (readlink): Use ssize_t.
21942         * lib/readlink.c (readlink): Likewise.
21943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21944         * modules/unistd (Makefile.am): Substitute it.
21945         * lib/unistd.in.h (readlink): Declare replacement.
21946         * doc/posix-functions/readlink.texi (readlink): Document this.
21947
21948         symlink: use throughout gnulib
21949         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
21950         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
21951         symlink is not used.
21952         * modules/symlinkat (Depends-on): Add symlink.
21953         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21954         * modules/canonicalize-tests (Depends-on): Likewise.
21955         * modules/lstat-tests (Depends-on): Likewise.
21956         * modules/openat-tests (Depends-on): Likewise.
21957         * modules/remove-tests (Depends-on): Likewise.
21958         * modules/rmdir-tests (Depends-on): Likewise.
21959         * modules/unlink-tests (Depends-on): Likewise.
21960         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
21961         * tests/test-canonicalize.c (symlink): Likewise.
21962         * tests/test-fstatat.c (symlink): Likewise.
21963         * tests/test-lstat.c (symlink): Likewise.
21964         * tests/test-remove.c (symlink): Likewise.
21965         * tests/test-rmdir.c (symlink): Likewise.
21966         * tests/test-unlink.c (symlink): Likewise.
21967         * tests/test-unlinkat.c (symlink): Likewise.
21968
21969         symlink: new module, for Solaris 9 bug
21970         * modules/symlink: New file.
21971         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21972         * lib/symlink.c: Likewise.
21973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21974         * modules/unistd (Makefile.am): Substitute them.
21975         * lib/unistd.in.h (symlink): Declare replacement.
21976         * MODULES.html.sh (File system functions): Mention it.
21977         * doc/posix-functions/symlink.texi (symlink): Likewise.
21978         * modules/symlink-tests: New test.
21979         * tests/test-symlink.c: Likewise.
21980
21981 2009-09-23  Bruno Haible  <bruno@clisp.org>
21982
21983         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
21984         when needed.
21985         Test case: gnulib-tool --import --with-tests atexit inttypes.
21986         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
21987
21988 2009-09-23  Bruno Haible  <bruno@clisp.org>
21989
21990         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
21991         subcommand, not in a subshell.
21992
21993 2009-09-22  Eric Blake  <ebb9@byu.net>
21994
21995         unistd: sort replacement declarations
21996         * lib/unistd.in.h: Sort declarations.
21997
21998         open, openat: minor optimization
21999         * lib/open.c (open): If open succeeded, len is non-zero.
22000         * lib/openat.c (rpl_openat): Likewise.
22001
22002         link-follow: ensure correct result
22003         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
22004         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
22005         distinguish between possible failures.
22006
22007 2009-09-21  Eric Blake  <ebb9@byu.net>
22008
22009         fts: avoid compiler warning
22010         * lib/fts.c (dirent_inode_sort_may_be_useful)
22011         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
22012
22013 2009-09-19  Bruno Haible  <bruno@clisp.org>
22014
22015         * lib/progreloc.c (canonicalize_file_name): New declaration.
22016
22017 2009-09-19  Eric Blake  <ebb9@byu.net>
22018
22019         link: fix quoting
22020         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
22021
22022         openat: fix openat bugs on Solaris 9
22023         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
22024         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
22025         * modules/openat (Depends-on): Add open.
22026         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
22027         * modules/fcntl-h (Makefile.am): Substitute it.
22028         * lib/fcntl.in.h (openat): Declare replacement.
22029         * doc/posix-functions/openat.texi (openat): Document this.
22030
22031         openat: move fstatat and unlinkat into correct files
22032         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
22033         compiled.
22034         * lib/openat.c (fstatat, unlinkat): Move...
22035         * lib/fstatat.c (fstatat): ...into correct files.
22036         * lib/unlinkat.c (unlinkat): Likewise.
22037
22038         openat: fix unlinkat bugs on Solaris 9
22039         * lib/unlinkat.c (unlinkat): New file.
22040         * modules/openat (Depends-on): Add unlink.
22041         (Files): Distribute it.
22042         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
22043         trailing slash behavior is broken.
22044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22045         * modules/unistd (Makefile.am): Substitute it.
22046         * lib/unistd.in.h (unlinkat): Declare replacement.
22047         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
22048
22049         openat: fix fstatat bugs on Solaris 9
22050         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
22051         stat.
22052         * doc/posix-functions/fstatat.texi (fstatat): Document this.
22053
22054         test-unlinkat: enhance test, to expose Solaris 9 bug
22055         * tests/test-unlink.c (main): Factor guts...
22056         * tests/test-unlink.h (test_rmdir_func): ...into new file.
22057         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
22058         * tests/test-rmdir.c (main): Adjust caller.
22059         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
22060         (unlinker): New helper function.
22061         (rmdirat): Enhance check.
22062         * modules/rmdir-tests (Depends-on): Add stdbool.
22063         * modules/unlink-tests (Depends-on): Likewise.
22064         (Files): Add test-unlink.h.
22065         * modules/openat-tests (Files): Likewise.
22066         (Depends-on): Add unlinkdir.
22067
22068         test-fstatat: new test, to expose Solaris 9 bugs
22069         * tests/test-stat.c (main): Factor guts...
22070         * tests/test-stat.h (test_stat_func): ...into new file.
22071         * tests/test-lstat.c (main): Factor guts...
22072         * tests/test-lstat.h (test_lstat_func): ...into new file.
22073         * tests/test-fstatat.c: New file.
22074         * modules/stat-tests (Files): Add test-stat.h.
22075         * modules/lstat-tests (Files): Add test-lstat.h.
22076         (Depends-on): Add stdbool.
22077         * modules/openat-tests (Depends-on): Add pathmax.
22078         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
22079         (Makefile.am): Run new test.
22080
22081         remove: new module, for mingw and Solaris 9 bugs
22082         * modules/remove: New file.
22083         * lib/remove.c: Likewise.
22084         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
22085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22086         * modules/stdio (Makefile.am): Use them.
22087         * lib/stdio.in.h (remove): Declare replacement.
22088         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22089         * doc/posix-functions/remove.texi (remove): Likewise.
22090         * modules/remove-tests: New test.
22091         * tests/test-remove.c: Likewise.
22092
22093         unlink: new module, for Solaris 9 bug
22094         * modules/unlink: New file.
22095         * lib/unlink.c: Likewise.
22096         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22098         * modules/unistd (Makefile.am): Use them.
22099         * lib/unistd.in.h (stat): Declare replacement.
22100         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22101         * doc/posix-functions/unlink.texi (unlink): Likewise.
22102         * modules/unlink-tests: New test.
22103         * tests/test-unlink.c: Likewise.
22104
22105         lstat: fix Solaris 9 bug
22106         * lib/lstat.c (lstat): Also check for trailing slash on
22107         non-symlink, non-directories.  Use stat module to simplify logic.
22108         * doc/posix-functions/lstat.texi (lstat): Document it.
22109         * modules/lstat-tests (Depends-on): Add errno, same-inode.
22110         (configure.ac): Check for symlink.
22111         * tests/test-lstat.c (main): Add more tests.
22112
22113         stat: add as dependency to other modules
22114         * modules/chown (Depends-on): Add stat.
22115         * modules/euidaccess (Depends-on): Likewise.
22116         * modules/fchdir (Depends-on): Likewise.
22117         * modules/isdir (Depends-on): Likewise.
22118         * modules/link (Depends-on): Likewise.
22119         * modules/lstat (Depends-on): Likewise.
22120         * modules/mkdir-p (Depends-on): Likewise.
22121         * modules/modechange (Depends-on): Likewise.
22122         * modules/open (Depends-on): Likewise.
22123         * modules/readlink (Depends-on): Likewise.
22124         * modules/same (Depends-on): Likewise.
22125
22126         stat: fix Solaris 9 bug
22127         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
22128         slash.
22129         * lib/stat.c (rpl_stat): Work around it.
22130         * doc/posix-functions/stat.texi (stat): Update documentation.
22131
22132         stat: new module, for mingw bug
22133         * modules/stat: New file.
22134         * lib/stat.c: Likewise.
22135         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22136         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22137         * modules/sys_stat (Makefile.am): Use them.
22138         * lib/sys_stat.in.h (stat): Declare replacement.
22139         * lib/openat.c (fstatat): Deal with lstat and stat being function
22140         macros.
22141         * modules/openat (Depends-on): Add inline.
22142         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22143         * doc/posix-functions/stat.texi (stat): Likewise.
22144         * modules/stat-tests: New test.
22145         * tests/test-stat.c: Likewise.
22146
22147 2009-09-19  Jim Meyering  <meyering@redhat.com>
22148
22149         syntax-check: detect unnecessary inclusion of canonicalize.h
22150         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
22151
22152 2009-09-19  Eric Blake  <ebb9@byu.net>
22153
22154         canonicalize-lgpl: adjust clients to use correct header
22155         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22156         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
22157         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
22158         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
22159         * lib/progreloc.c (includes): Likewise.
22160
22161 2009-09-19  Jim Meyering  <meyering@redhat.com>
22162
22163         test-posixtm.c: correct a comment
22164         * tests/test-posixtm.c: Correct first-line comment.
22165         Spotted by Eric Blake.
22166
22167 2009-09-16  Jim Meyering  <meyering@redhat.com>
22168
22169         posixtm-tests: make T const-correct; add a test case
22170         * tests/test-posixtm.c (T): Declare const.
22171         Add a test for -(2^31+1).
22172         Remove useless can-succeed-only-in-2002 test.
22173
22174         posixtm-tests: adjust the sole failing test
22175         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
22176         expected output matches what mktime now produces.  Cross-checked via
22177         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
22178
22179         posixtm: move #ifdef'd tests into a new module
22180         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
22181         * tests/test-posixtm.c: ... this new file.
22182         * modules/posixtm-tests: New module.
22183
22184 2009-09-19  Eric Blake  <ebb9@byu.net>
22185
22186         openat: simplify use of at-func.c
22187         * lib/at-func.c (includes): Include prerequisites here, to
22188         simplify requirements on client files.
22189         * lib/openat-priv.h: Add double-inclusion guard.
22190         * lib/faccessat.c (includes): Simplify.
22191         * lib/fchmodat.c (includes): Likewise.
22192         * lib/fchownat.c (includes): Likewise.
22193         * lib/mkdirat.c (includes): Likewise.
22194         * lib/mkfifoat.c (includes): Likewise.
22195         * lib/symlinkat.c (includes): Likewise.
22196
22197         openat: allow return of fd 0
22198         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
22199         * modules/save-cwd (Depends-on): Replace fcntl-safer with
22200         unistd-safer.
22201         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
22202         <fcntl.h>; this module does not leak fds.
22203         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
22204         must be allowed to return 0, leaving openat_safer to add the
22205         safety.
22206         (openat_permissive): Avoid writing to just-opened fd 2 if
22207         restoring the current directory fails.
22208         * lib/openat-die.c (openat_restore_fail): Add comment.
22209         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
22210         (save_cwd): Guarantee safe fd, but without use of open_safer.
22211         * tests/test-openat.c: New test.
22212         * modules/openat-tests (Files, Makefile.am): Distribute and build
22213         new file.
22214
22215         relocatable-prog-wrapper: fix build
22216         * modules/relocatable-prog-wrapper (Files): Update name of
22217         canonicalize m4 file, broken on 2009-09-17.
22218         Reported by emad hajjar <aleppos@hotmail.com>.
22219
22220 2009-09-19  Bruno Haible  <bruno@clisp.org>
22221
22222         * lib/safe-alloc.h: Use the standard header with GPL copyright.
22223         * lib/safe-alloc.c: Likewise.
22224         Reported by Ian Beckwith <ianb@erislabs.net>.
22225
22226 2009-09-18  Bruno Haible  <bruno@clisp.org>
22227
22228         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
22229         Reported by <erobles@sensacd.com.mx>.
22230
22231 2009-09-17  Eric Blake  <ebb9@byu.net>
22232
22233         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
22234         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
22235         slashes when checking if last component is missing.
22236         * tests/test-canonicalize.c (main): Test this.
22237
22238         canonicalize, canonicalize-lgpl: honor // if distinct from /
22239         * modules/canonicalize (Files): Add double-slash-root.m4.
22240         * modules/canonicalize-lgpl (Files): Likewise.
22241         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22242         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
22243         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
22244         fallback definition.
22245         (canonicalize_filename_mode): Use it to protect //.
22246         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
22247         (__realpath): Likewise.
22248         * tests/test-canonicalize.c (main): Test this.
22249         * tests/test-canonicalize-lgpl.c (main): Likewise.
22250         * modules/canonicalize-tests (Depends-on): Add same-inode.
22251         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22252
22253         canonicalize-lgpl: fix glibc bug with trailing slash
22254         * m4/canonicalize-lgpl.m4: Move contents...
22255         * m4/canonicalize.m4: ...here.
22256         (gl_CANONICALIZE_LGPL): Factor realpath check...
22257         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
22258         glibc 2.3.5 bug, fixed 2005-04-27.
22259         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
22260         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
22261         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
22262         * modules/canonicalize-lgpl (Files): Manage file rename.
22263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22264         * modules/stdlib (Makefile.am): Substitute witness.
22265         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
22266         is needed.
22267         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
22268         replacement is required.
22269         * lib/canonicalize.c (canonicalize_file_name): Likewise.
22270         * doc/glibc-functions/canonicalize_file_name.texi
22271         (canonicalize_file_name): Document this.
22272         * doc/posix-functions/realpath.texi (realpath): Likewise.
22273
22274         canonicalize-lgpl: reject non-directory with trailing slash
22275         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
22276         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
22277         catches failures in glibc 2.3.5.
22278         * tests/test-canonicalize.c (main): Likewise.
22279
22280         canonicalize-lgpl: use native realpath if it works
22281         * lib/canonicalize-lgpl.c (realpath): Guard with
22282         FUNC_REALPATH_WORKS.
22283         * lib/stdlib.in.h (realpath): Make declaration optional based on
22284         HAVE_REALPATH.
22285         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
22286         native realpath works.
22287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22288         * modules/stdlib (Makefile.am): Substitute witness.
22289
22290         canonicalize, canonicalize-lgpl: use <stdlib.h>
22291         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
22292         (Include): Mention <stdlib.h>.
22293         (configure.ac): Mention functions we provide.
22294         * modules/canonicalize (configure.ac): Likewise.
22295         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
22296         realpath if canonicalize_file_name is missing.
22297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
22298         * modules/stdlib (Makefile.am): Substitute witnesses.
22299         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
22300         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
22301         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
22302         * NEWS: Document this.
22303         * doc/glibc-functions/canonicalize_file_name.texi
22304         (canonicalize_file_name): Likewise.
22305         * doc/posix-functions/realpath.texi (realpath): Likewise.
22306         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
22307
22308         test-canonicalize: consolidate into single C program
22309         * tests/test-canonicalize.sh: Delete; move setup into...
22310         * tests/test-canonicalize.c (main): ...the program, making it
22311         easier to run in debugger.  Add some tests.
22312         * modules/canonicalize-tests (Files): Remove unused file.
22313         (Depends-on): Add progname.
22314         (configure.ac, Makefile.am): Simplify.
22315
22316         test-canonicalize-lgpl: consolidate into single C program
22317         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
22318         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
22319         easier to run in debugger.  Add some tests.
22320         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
22321         (configure.ac, Makefile.am): Simplify.
22322
22323         canonicalize: avoid resolvepath
22324         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
22325         unnecessary checks.
22326         * lib/canonicalize.c (includes): Simplify.
22327         (canonicalize_file_name): Drop resolvepath implementation.
22328         * modules/canonicalize (Depends-on): Drop filenamecat.
22329
22330         canonicalize: don't lose errno
22331         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
22332         over calls to free.
22333
22334         canonicalize: simplify errno handling
22335         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
22336         assignment.
22337
22338         canonicalize, canonicalize-lgpl: update module dependencies
22339         * modules/canonicalize (Depends-on): Add extensions, lstat,
22340         pathmax, stdlib.
22341         (Files): Drop pathmax.h.
22342         (configure.ac): Adjust macro name.
22343         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
22344         lstat, stdlib, sys_stat.
22345         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
22346         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
22347         extensions.
22348         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
22349         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
22350         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
22351         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
22352         declaration, if available.
22353         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
22354         we can rely on the readlink module.
22355         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
22356         (includes): Use <unistd.h> unconditionally.
22357
22358 2009-09-17  Eric Blake  <ebb9@byu.net>
22359
22360         maint: make Include sections of modules consistent
22361         * modules/alloca: Use only header name; no need to list #include.
22362         * modules/alloca-opt: Likewise.
22363         * modules/arpa_inet: Likewise.
22364         * modules/canon-host: Likewise.
22365         * modules/configmake: Likewise.
22366         * modules/dirent: Likewise.
22367         * modules/eealloc: Likewise.
22368         * modules/environ: Likewise.
22369         * modules/fchdir: Likewise.
22370         * modules/fcntl: Likewise.
22371         * modules/fcntl-h: Likewise.
22372         * modules/gethrxtime: Likewise.
22373         * modules/gettime: Likewise.
22374         * modules/ignore-value: Likewise.
22375         * modules/inet_ntop: Likewise.
22376         * modules/inet_pton: Likewise.
22377         * modules/inttypes: Likewise.
22378         * modules/isnand-nolibm: Likewise.
22379         * modules/isnanf-nolibm: Likewise.
22380         * modules/mbchar: Likewise.
22381         * modules/mbfile: Likewise.
22382         * modules/mbiter: Likewise.
22383         * modules/mbuiter: Likewise.
22384         * modules/netdb: Likewise.
22385         * modules/netinet_in: Likewise.
22386         * modules/nproc: Likewise.
22387         * modules/pagealign_alloc: Likewise.
22388         * modules/poll: Likewise.
22389         * modules/printf-frexp: Likewise.
22390         * modules/pthread: Likewise.
22391         * modules/putenv: Likewise.
22392         * modules/random_r: Likewise.
22393         * modules/relocatable-prog: Likewise.
22394         * modules/search: Likewise.
22395         * modules/select: Likewise.
22396         * modules/selinux-h: Likewise.
22397         * modules/settime: Likewise.
22398         * modules/signal: Likewise.
22399         * modules/size_max: Likewise.
22400         * modules/socklen: Likewise.
22401         * modules/ssize_t: Likewise.
22402         * modules/stdarg: Likewise.
22403         * modules/stdbool: Likewise.
22404         * modules/stddef: Likewise.
22405         * modules/stdint: Likewise.
22406         * modules/stdio: Likewise.
22407         * modules/stdlib: Likewise.
22408         * modules/string: Likewise.
22409         * modules/strings: Likewise.
22410         * modules/sys_file: Likewise.
22411         * modules/sys_ioctl: Likewise.
22412         * modules/sys_select: Likewise.
22413         * modules/sys_socket: Likewise.
22414         * modules/sys_stat: Likewise.
22415         * modules/sys_time: Likewise.
22416         * modules/sys_times: Likewise.
22417         * modules/sys_utsname: Likewise.
22418         * modules/sys_wait: Likewise.
22419         * modules/sysexits: Likewise.
22420         * modules/time: Likewise.
22421         * modules/times: Likewise.
22422         * modules/tmpfile: Likewise.
22423         * modules/trim: Likewise.
22424         * modules/unistd: Likewise.
22425         * modules/wchar: Likewise.
22426         * modules/wctype: Likewise.
22427
22428 2009-09-17  Bruno Haible  <bruno@clisp.org>
22429
22430         Make getdate.y compile on QNX and NetBSD 5 / i386.
22431         * m4/getdate.m4 (gl_GETDATE): Conditionally define
22432         TIME_T_FITS_IN_LONG_INT.
22433         * lib/getdate.y (long_time_t): New type.
22434         (relative_time): Change type of 'seconds' field to long_time_t.
22435         (get_date): Update types of local variables. Check against overflow
22436         during conversion from long_time_t to time_t.
22437         Reported by Matt Kraai <kraai@ftbfs.org>
22438         and Hasso Tepper <hasso@netbsd.org>.
22439
22440 2009-09-17  Bruno Haible  <bruno@clisp.org>
22441
22442         * modules/COPYING: Update copyright years.
22443         * modules/README: Likeiwse.
22444         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
22445         Reported by Ian Beckwith <ianb@erislabs.net>.
22446
22447 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22448
22449         * users.txt: Update references for gnuit package.
22450
22451 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22452
22453         * m4/getdelim.m4: Fix typo in copyright line.
22454
22455 2009-09-17  Bruno Haible  <bruno@clisp.org>
22456
22457         * lib/atoll.c: Use the standard header with GPL copyright.
22458         * lib/argz.in.h: Likewise.
22459         * lib/glob.c: Likewise.
22460         * lib/glob-libc.h: Likewise.
22461         * lib/random_r.c: Likewise.
22462         * lib/siglist.h: Likewise.
22463         * lib/strsignal.c: Likewise.
22464         Reported by Ian Beckwith <ianb@erislabs.net>.
22465
22466 2009-09-17  Eric Blake  <ebb9@byu.net>
22467
22468         rmdir: ensure correct dependency order
22469         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
22470
22471 2009-09-17  Bruno Haible  <bruno@clisp.org>
22472
22473         Disable assertion that fails on NetBSD 5 / i386.
22474         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
22475         Reported by Sam Steingold <sds@gnu.org>
22476         and Hasso Tepper <hasso@netbsd.org>.
22477
22478 2009-09-16  Eric Blake  <ebb9@byu.net>
22479
22480         unlinkdir: port to mingw
22481         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
22482         on which no one can unlink a directory.
22483
22484         stdlib: sort witness names
22485         * modules/stdlib (Makefile.am): Sort replacements.
22486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22487         * lib/stdlib.in.h: Likewise.
22488
22489         parse-duration-tests: avoid link failure
22490         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
22491         LIBINTL.
22492         Reported by Tom G. Christensen.
22493
22494         openat-tests: ensure unlinkat behaves like rmdir
22495         * tests/test-rmdir.c (main): Factor guts...
22496         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
22497         * modules/rmdir-tests (Files): Ship new file.
22498         * modules/openat-tests: New test.
22499         * tests/test-unlinkat.c: Likewise.
22500
22501         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
22502         * modules/rmdir-errno (Status, Notice): Now obsolete.
22503
22504         rmdir: work around cygwin 1.5.x and mingw bugs
22505         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
22506         * lib/rmdir.c (rmdir): Work around it.
22507         * modules/rmdir (Status, Notice): No longer obsolete.
22508         (Files): Add dos.m4.
22509         (Depends-on): Add unistd.
22510         (configure.ac): Set witnesses.
22511         (License): Relax to LGPLv2+.
22512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
22513         * modules/unistd (Makefile.am): Substitute witnesses.
22514         * lib/unistd.in.h (rmdir): Declare replacement.
22515         * doc/posix-functions/rmdir.texi (rmdir): Document this.
22516         * modules/rmdir-tests: New tests.
22517         * tests/test-rmdir.c: Likewise.
22518
22519 2009-09-15  Eric Blake  <ebb9@byu.net>
22520
22521         fchdir: improve use of replacement functions
22522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
22523         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
22524         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
22525         REPLACE_CLOSEDIR.
22526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
22527         * modules/sys_stat (Makefile.am): Substitute correct witness.
22528         * modules/dirent (Makefile.am): Likewise.
22529         * modules/unistd (Makefile.am): Likewise.
22530         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
22531         * lib/unistd.in.h (dup): Likewise.
22532         * lib/sys_stat.in.h (fstat): Likewise.
22533
22534         maint: ignore gnulib-tool temp files
22535         * .gitignore: Ignore files created during gnulib-tool --test.
22536
22537 2009-09-13  Jim Meyering  <meyering@redhat.com>
22538
22539         posixtm: don't reject a time that specify "60" as the number of seconds
22540         * lib/posixtm.c (posixtime): The code to reject invalid dates
22541         would also reject a time specified with the .60 suffix.
22542         But POSIX allows that, in order to accommodate leap seconds.
22543         So don't reject it.
22544         (main): Adjust tests accordingly.
22545         * modules/posixtm (Depends-on): Add stpcpy.
22546
22547 2009-09-11  Jim Meyering  <meyering@redhat.com>
22548
22549         announce-gen: include [$release_type] in emitted Subject:
22550         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
22551         e.g., [stable] in the emitted Subject: line.
22552
22553 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22554
22555         Remove obsolete macros from several modules.
22556         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
22557         obsolete Autoconf macros with their modern counterparts.
22558         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
22559         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
22560         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22561         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22562         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
22563         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22565         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22566         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22567         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
22568         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22569         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22570         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
22571         * m4/sockets.m4 (gl_SOCKETS): Likewise.
22572         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
22573         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
22574         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
22575         * m4/time_r.m4 (gl_TIME_R): Likewise.
22576         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22577         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
22578         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
22579
22580         Fix copyright header in build-aux scripts.
22581         * build-aux/git-version-gen: Fix copyright header to match GPLv3
22582         recommendation.
22583         * build-aux/ncftpput-ftp: Likewise.
22584         * build-aux/update-copyright: Likewise.
22585
22586 2009-09-09  Eric Blake  <ebb9@byu.net>
22587
22588         test-link: allow Linux choice of errno
22589         * tests/test-link.c (main): Relax test for alternate error.
22590
22591         strndup: fix improper m4 caching
22592         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
22593         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
22594         (gl_PREREQ_STRNDUP): Delete.
22595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
22596         * modules/string (Makefile.am): Substitute it.
22597         * lib/string.in.h (strndup): Modernize prototype.
22598
22599         getcwd: port to mingw
22600         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
22601         different from the POSIX assumptions made throughout the getcwd
22602         module; fortunately, the mingw getcwd does not need replacement.
22603         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
22604         * modules/getcwd-tests: New test.
22605         * tests/test-getcwd.c: Likewise.
22606
22607         link: fix platform bugs
22608         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
22609         * lib/link.c (link): Work around them.  Fix related mingw bug.
22610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
22611         * modules/unistd (Makefile.am): Substitute it.
22612         * lib/unistd.in.h (link): Declare replacement.
22613         * doc/posix-functions/link.texi (link): Document this.
22614         * modules/link (Depends-on): Add strdup-posix, sys_stat.
22615
22616         test-link: consolidate into single C program, test more cases
22617         * tests/test-link.sh: Delete.
22618         * tests/test-link.c: Test more error conditions.  Exposes bugs on
22619         at least Cygwin and Solaris.
22620         * modules/link-tests (Files): Remove unused file.
22621         (Depends-on): Add errno, sys_stat.
22622         (Makefile.am): Simplify.
22623
22624 2009-09-08  Bruno Haible  <bruno@clisp.org>
22625
22626         Work around towlower, towupper bug on mingw.
22627         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
22628         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
22629         * doc/posix-functions/towlower.texi: Mention the mingw bug.
22630         * doc/posix-functions/towupper.texi: Likewise.
22631         Reported by Eric Blake.
22632
22633 2009-09-08  Jim Meyering  <meyering@redhat.com>
22634
22635         build: don't try to run autoheader if we don't use it
22636         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
22637         is not used in configure.ac.
22638
22639 2009-09-08  Eric Blake  <ebb9@byu.net>
22640
22641         euidaccess: fix compilation error
22642         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
22643
22644         rawmemchr: relax license
22645         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
22646         okay.
22647         Reported by Jim Meyering.
22648
22649         mkfifoat: new module
22650         * modules/mkfifoat: New file.
22651         * lib/mkfifoat.c: Likewise.
22652         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
22653         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22654         * modules/sys_stat (Makefile.am): Use them.
22655         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
22656         * MODULES.html.sh (File system functions): Mention module.
22657         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22658         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22659         * modules/mkfifoat-tests: New test.
22660         * tests/test-mkfifoat.c: Likewise.
22661
22662         strchrnul: relax license
22663         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
22664         okay.
22665         Reported by Jim Meyering.
22666
22667 2009-09-08  Eric Blake  <ebb9@byu.net>
22668
22669         fstatat: fix compilation on Solaris
22670         * lib/fstatat.c (includes): Add fcntl.h.
22671         Reported by Pádraig Brady.
22672
22673 2009-09-07  Eric Blake  <ebb9@byu.net>
22674
22675         rename: modernize replacement
22676         * modules/rename (Depends-on): Add stdio.
22677         (configure.ac): Declare witness.
22678         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
22679         stdio take care of replacement.
22680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
22681         * modules/stdio (Makefile.am): Substitute them.
22682         * lib/stdio.in.h (rename): Declare replacement.
22683         * lib/rename.c (includes): Allow cross-compilation to non-windows
22684         machines.
22685         * doc/posix-functions/rename.texi (rename): Improve
22686         documentation.
22687
22688         stdio: sort witness names
22689         * modules/stdio (Makefile.am): Sort replacements.
22690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22691         * lib/stdio.in.h: Likewise.
22692
22693         getcwd: minor cleanups
22694         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
22695         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
22696
22697         openat: provide more convenience names
22698         * modules/faccessat (configure.ac): Add C witness.
22699         * lib/unistd.in.h (readlinkat): Fix typo.
22700         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
22701         convenience wrappers.
22702         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
22703         wrappers in syntax checks.
22704
22705 2009-09-06  Eric Blake  <ebb9@byu.net>
22706
22707         doc: fix comments in recent patches
22708         * lib/faccessat.c: Mention correct function.
22709         * lib/fchmodat.c: Likewise.
22710         * lib/fchownat.c: Likewise.
22711         * lib/symlinkat.c: Likewise.
22712         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
22713         constants.
22714
22715         faccessat, symlinkat: continue cleanup of previous patch
22716         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
22717         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
22718         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
22719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
22720         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
22721         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
22722         set.
22723
22724 2009-09-06  Bruno Haible  <bruno@clisp.org>
22725
22726         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
22727         (fstatat): Declare if GNULIB_FSTATAT is set.
22728         (mkdirat): Declare if GNULIB_MKDIRAT is set.
22729         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
22730         (unlinkat): Declare if GNULIB_UNLINKAT is set.
22731         * modules/fcntl-h (Files): Remove m4/openat.m4.
22732         * modules/sys_stat (Files): Remove m4/openat.m4.
22733         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
22734         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
22735         * modules/unistd (Files): Remove m4/openat.m4.
22736         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
22737         GNULIB_OPENAT.
22738         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
22739         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
22740         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22741         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
22742         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
22743         gl_OPENAT_DEFAULTS.
22744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
22745         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
22746         Don't require gl_OPENAT_DEFAULTS.
22747         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
22748         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
22749         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
22750         (gl_OPENAT_DEFAULTS): Remove macro.
22751
22752 2009-09-06  Bruno Haible  <bruno@clisp.org>
22753
22754         * modules/openat (configure.ac): Remove unneeded witness.
22755
22756 2009-09-06  Bruno Haible  <bruno@clisp.org>
22757
22758         Set errno to ENOSYS when a function is entirely unsupported.
22759         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
22760         EOPNOTSUPP.
22761         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22762         * modules/chown (Depends-on): Remove errno.
22763
22764 2009-09-06  Bruno Haible  <bruno@clisp.org>
22765
22766         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
22767
22768 2009-09-06  Bruno Haible  <bruno@clisp.org>
22769
22770         * lib/sys_stat.in.h: Fix preprocessor command indentation.
22771
22772 2009-09-06  Ben Pfaff  <blp@gnu.org>
22773             Bruno Haible  <bruno@clisp.org>
22774
22775         Work around a glibc bug in strtok_r.
22776         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
22777         Undefine if UNDEFINE_STRTOK_R is set.
22778         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
22779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22780         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
22781         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
22782         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
22783         UNDEFINE_STRTOK_R.
22784         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
22785
22786 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22787
22788         exclude: minor fix
22789         * lib/exclude.c: Include wctype.h
22790
22791 2009-09-06  Akim Demaille  <demaille@gostai.com>
22792
22793         bootstrap: improve error message
22794         * build-aux/bootstrap (find_tool): Upon failure, report the list
22795         of candidates.
22796         Honor the initial value of the envvar.
22797
22798 2009-09-05  Eric Blake  <ebb9@byu.net>
22799
22800         symlinkat: new module
22801         * modules/symlinkat: New file.
22802         * lib/symlinkat.c: Likewise.
22803         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22805         * modules/unistd (Makefile.am): Use them.
22806         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
22807         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
22808         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
22809         * MODULES.html.sh (File system functions): Mention module.
22810         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22811         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22812         * modules/symlinkat-tests: New test.
22813         * tests/test-symlinkat.c: Likewise.
22814
22815         test-openat-safer: add more checks
22816         * tests/test-openat-safer.c (main): Check more code paths.
22817
22818 2009-09-05  Jim Meyering  <meyering@redhat.com>
22819
22820         syntax-check: detect unnecessary inclusion of openat.h
22821         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
22822
22823 2009-09-05  Bruno Haible  <bruno@clisp.org>
22824
22825         Support towlower, towupper.
22826         * doc/posix-functions/towlower.texi: Mention module wctype.
22827         * doc/posix-functions/towupper.texi: Likewise.
22828         * lib/wctype.in.h (towlower, towupper): New functions.
22829         * tests/test-wctype.c: Include stdio.h, stdlib.h.
22830         (ASSERT): New macro.
22831         (e): New variable.
22832         (main): Test also towlower, towupper. Test WEOF argument.
22833         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22834
22835 2009-09-05  Bruno Haible  <bruno@clisp.org>
22836
22837         Fix conversion behaviour when the input is invalid.
22838         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
22839         mark occurring in first pass of indirect conversion.
22840         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
22841         input.
22842         Found by clang's static analyzer.
22843
22844 2009-09-05  Bruno Haible  <bruno@clisp.org>
22845
22846         * tests/test-striconveh.c (main): Test indirect conversion on platforms
22847         where direct conversion is possible.
22848
22849 2009-09-04  Eric Blake  <ebb9@byu.net>
22850
22851         openat: fail with ENOENT on empty name
22852         * lib/openat-proc.c (openat_proc_name): Special-case the empty
22853         buffer.
22854
22855         link-follow: fix logic bug in prior patch
22856         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
22857         reversed sense of yes and no in prior patch.  Avoid confusing
22858         compilation failure with desired semantics.
22859
22860         link-follow: accomodate mingw and cross-compilation
22861         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
22862         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
22863         cross-compilation results to -1, to make linkat easier to
22864         implement when cross-compiling.  Trivially support mingw.
22865         * modules/link-follow (configure.ac): Call new name.
22866         * NEWS: Mention this.
22867
22868 2009-09-03  Eric Blake  <ebb9@byu.net>
22869
22870         faccessat: compile replacement
22871         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
22872         needed.
22873
22874         fts: fix compilation error
22875         * lib/fts.c (includes): Re-add "openat.h", for
22876         openat_needs_fchdir.
22877
22878         faccessat: new module
22879         * modules/faccessat: New file.
22880         * lib/faccessat.c: Likewise.
22881         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
22882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22883         * modules/unistd (Makefile.am): Use it.
22884         * lib/unistd.in.h (faccessat): Declare it.
22885         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
22886         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
22887         * MODULES.html.sh (File system functions): Mention it.
22888         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
22889         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22890
22891         euidaccess: prefer POSIX over non-standard implementation
22892         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
22893         * lib/euidaccess.c (euidaccess): Use it if available.
22894
22895         openat: make template easier to use
22896         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
22897         AT_FUNC_F2 to be undefined.
22898         (VALIDATE_FLAG): New macro; use it to reject bad flags.
22899         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
22900         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
22901         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
22902         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
22903         Likewise.
22904         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
22905         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
22906         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
22907         Likewise.
22908
22909         openat: declare in POSIX headers
22910         * NEWS: Mention this.
22911         * modules/openat (configure.ac): Declare witnesses.
22912         (Depends-on): Add fcntl-h, sys_stat, unistd.
22913         (Include): Mention correct headers.
22914         * modules/fcntl-h (Depends-on): Add link-warning.
22915         (Files): Add openat.m4.
22916         (Makefile.am): Substitute witnesses.
22917         * modules/sys_stat (Files, Makefile.am): Likewise.
22918         * modules/unistd (Files, Makefile.am): Likewise.
22919         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
22920         (gl_OPENAT_DEFAULTS): New macro.
22921         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
22922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
22923         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
22924         (SYS_STAT_H): Remove unused variable.
22925         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
22926         * lib/fcntl--.h (includes): Remove unneeded header.
22927         * lib/openat-safer.c (includes): Likewise.
22928         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
22929         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
22930         appropriate headers.
22931         (__OPENAT_PREFIX): Delete.
22932         * lib/fcntl.in.h (openat): Provide declaration.
22933         (AT_FDCWD): Fix Solaris bug.
22934         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
22935         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
22936         * lib/fchmodat.c (includes):  Adjust to find declaration.
22937         * lib/fchownat.c (includes): Likewise.
22938         * lib/mkdirat.c (includes): Likewise.
22939         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
22940         still visible.
22941
22942 2009-09-02  Eric Blake  <ebb9@byu.net>
22943
22944         errno: use consistently
22945         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
22946         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
22947         * lib/canonicalize.c (ELOOP): Likewise.
22948         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
22949         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
22950         * lib/lchown.c (EOPNOTSUPP): Likewise.
22951         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
22952         * lib/savewd.c (ESTALE): Likewise.
22953         * lib/settime.c (ENOSYS): Likewise.
22954         * lib/utimens.c (ENOSYS): Likewise.
22955         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
22956         * lib/chdir-safer.c (ELOOP): Likewise.
22957         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
22958         * modules/c-stack (Depends-on): Add errno.
22959         * modules/canonicalize (Depends-on): Likewise.
22960         * modules/chdir-safer (Depends-on): Likewise.
22961         * modules/fdopendir (Depends-on): Likewise.
22962         * modules/inet_ntop (Depends-on): Likewise.
22963         * modules/inet_pton (Depends-on): Likewise.
22964         * modules/lchown (Depends-on): Likewise.
22965         * modules/openat (Depends-on): Likewise.
22966         * modules/savewd (Depends-on): Likewise.
22967         * modules/settime (Depends-on): Likewise.
22968         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
22969
22970         fts: avoid leaking fds
22971         * modules/fts (Depends-on): Add cloexec.
22972         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
22973         flag.
22974
22975         fts: make directory fds more robust
22976         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
22977         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
22978
22979         backupfile, chdir-long, fts, savedir: make safer
22980         * lib/backupfile.c (includes): Use "dirent--.h", since
22981         numbered_backup can write to stderr during readdir.
22982         * lib/savedir.c (includes): Likewise.
22983         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
22984         emulation can write to stderr on failure.
22985         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
22986         * lib/getcwd.c: Document why opendir_safer is unused.
22987         * lib/glob.c: Likewise.
22988         * lib/scandir.c: Likewise.
22989         * lib/openat-proc.c: Likewise, for open_safer.
22990         * modules/backupfile (Depends-on): Add dirent-safer.
22991         * modules/savedir (Depends-on): Likewise.
22992         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
22993         * modules/chdir-long (Depends-on): Add openat-safer.
22994
22995         openat-safer: new module
22996         * modules/openat-safer: New file.
22997         * lib/openat-safer.c: Likewise.
22998         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
22999         * lib/fcntl-safer.h (openat_safer): Declare.
23000         * lib/fcntl--.h (openat): Override.
23001         * MODULES.html.sh (File descriptor based I/O): Mention it.
23002         * lib/openat.h: Add double-inclusion guards.
23003         * lib/openat.c (includes): Only include "fcntl-safer.h", not
23004         "fcntl--.h", so we can implement openat.
23005         * modules/openat-safer-tests: New test.
23006         * tests/test-openat-safer.c: New file.
23007
23008         dirent-safer: new module
23009         * modules/dirent-safer: New file.
23010         * lib/dirent--.h: Likewise.
23011         * lib/dirent-safer.h: Likewise.
23012         * lib/opendir-safer.c: Likewise.
23013         * m4/dirent-safer.m4: Likewise.
23014         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
23015         * modules/dirent-safer-tests: New test.
23016         * tests/test-dirent-safer.c: New file.
23017         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
23018
23019         fdopendir: optimize on mingw
23020         * lib/unistd.in.h (_gl_directory_name): New prototype.
23021         * lib/fchdir.c (_gl_directory_name): Implement it.
23022         (fchdir): Use it to simplify implementation.
23023         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
23024         fchdir, when available, to avoid calling [f]chdir().
23025
23026         fdopendir: split into its own module
23027         * lib/openat.c (fdopendir): Move...
23028         * lib/fdopendir.c: ...into new file.
23029         * modules/fdopendir: New module.
23030         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
23031         * modules/openat (Depends-on): Add fdopendir.
23032         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
23033         fdopendir here.
23034         * modules/savedir (Depends-on): Only need fdopendir, not full
23035         openat.
23036         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
23037         * lib/openat.h (fdopendir): Drop prototype.
23038         * lib/dirent.in.h (fdopendir): Provide prototype.
23039         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
23040         * modules/dirent (Makefile.am): Substitute them.
23041         * MODULES.html.sh (File system functions): Mention it.
23042         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
23043         * modules/fdopendir-tests: New file.
23044         * tests/test-fdopendir.c: Likewise.
23045
23046         fchdir: use more consistent macro convention
23047         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
23048         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
23049         REPLACE_FCHDIR, rather than relying on config.h macros.
23050         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
23051         inside a single make-time REPLACE_FCHDIR block, rather than using
23052         the config.h FCHDIR_REPLACEMENT.
23053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
23054         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
23055         Manage fstat replacement.
23056         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
23057         REPLACE_FCHDIR.
23058         * modules/sys_stat (Files): Add m4/unistd_h.m4.
23059         (Makefile.am): Substitute REPLACE_FCHDIR.
23060         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
23061         FCHDIR_REPLACEMENT.
23062         * lib/dup-safer.c (dup_safer): Likewise.
23063         * lib/dup2.c (rpl_dup2): Likewise.
23064         * lib/dup3.c (rpl_dup3): Likewise.
23065         * lib/open.c (rpl_open): Likewise.
23066
23067         fchdir: simplify error handling, and support dup3
23068         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
23069         stdbool, malloc-posix, realloc-posix.
23070         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
23071         (ensure_dirs_slot): Return false on allocation failure.
23072         (rpl_dup2): Delete.
23073         (_gl_register_dup): New function.
23074         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
23075         (_gl_register_fd): Close fd on allocation failure.
23076         * lib/fcntl.in.h (_gl_register_fd): Update signature.
23077         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
23078         prototype.
23079         (rpl_dup2_fchdir): Delete prototype.
23080         * lib/open.c (open): Update caller.
23081         * lib/dup2.c (dup2): Track fchdir metadata.
23082         * lib/dup3.c (dup3): Likewise.
23083         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
23084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
23085
23086 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23087
23088         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
23089         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
23090         don't pass arguments to AC_OUTPUT.
23091
23092 2009-09-02  Bruno Haible  <bruno@clisp.org>
23093
23094         * modules/mkdtemp (License): Relicense under LGPLv2+.
23095         Reported by Paolo Bonzini.
23096
23097 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23098
23099         Replace uses of obsolete autoconf macros in Jim's modules.
23100         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
23101         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
23102         can evoke a warning from autoconf when run with -Wobsolete
23103         enabled.  They were declared obsolete for good reasons (see
23104         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
23105         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
23106         should not continue using the deprecated macros.
23107         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
23108         obsolete Autoconf macros with modern counterparts.
23109         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23110         * m4/dos.m4 (gl_AC_DOS): Likewise.
23111         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
23112         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23113         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
23114         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
23115         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
23116         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23117         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
23118         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
23119         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23120         Likewise.
23121         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23122         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23123         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
23124         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
23125         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
23126         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23127
23128 2009-09-01  Eric Blake  <ebb9@byu.net>
23129
23130         fchdir: fix off-by-one bug in previous patch
23131         * lib/fchdir.c (rpl_fstat): Use correct bounds.
23132         (_gl_unregister_fd): Delete useless if.
23133
23134 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
23135
23136         maint.mk: sort the list of syntax-check rules
23137         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
23138         easier to get a sense of progress when the rules are run sequentially
23139         and take a long time.
23140
23141 2009-09-01  Simon Josefsson  <simon@josefsson.org>
23142
23143         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
23144         * modules/netinet_in: Likewise.
23145         * modules/sys_file: Likewise.
23146         * modules/sys_ioctl: Likewise.
23147         * modules/sys_select: Likewise.
23148         * modules/sys_socket: Likewise.
23149         * modules/sys_stat: Likewise.
23150         * modules/sys_time: Likewise.
23151         * modules/sys_times: Likewise.
23152         * modules/sys_utsname: Likewise.
23153         * modules/sys_wait: Likewise.
23154
23155 2009-09-01  Jim Meyering  <meyering@redhat.com>
23156
23157         fts: help ensure that return values are not ignored
23158         * lib/fts_.h (__GNUC_PREREQ): Define.
23159         (__attribute_warn_unused_result__): Define.
23160         (fts_children, fts_close, fts_open, fts_read): Declare with
23161         __attribute_warn_unused_result__.
23162
23163         fts: fts_close now fails also when closing a dir file descriptor fails
23164         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
23165         and propagate to caller, along with errno.
23166
23167         announce-gen: correct formatting in --help output
23168         * build-aux/announce-gen (usage): Move the one-line description in
23169         --help output "up", to where it belongs, just after Usage:.
23170
23171 2009-08-31  Eric Blake  <ebb9@byu.net>
23172
23173         fchdir: port to mingw
23174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
23175         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
23176         opened, then use a substitute.
23177         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
23178         replacement.
23179         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
23180         (_gl_register_fd): No need to check stat if open already filters
23181         all directories.
23182         (fchdir): Fix error condition to match POSIX.
23183         * modules/fchdir (Depends-on): Add sys_stat.
23184         * doc/posix-functions/open.texi (open): Document the limitation.
23185         * modules/fchdir-tests: New file.
23186         * tests/test-fchdir.c: Likewise.
23187
23188         canonicalize: allow cross-testing from cygwin to mingw
23189         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
23190         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
23191         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
23192         Likewise.
23193         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
23194         target does not support symlinks.
23195         * tests/test-canonicalize-lgpl.sh: Likewise.
23196
23197         chown: avoid compilation warning on mingw
23198         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
23199         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
23200         mingw.
23201         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23202         * modules/chown (Depends-on): Add errno.
23203
23204 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23205
23206         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
23207         command.
23208
23209 2009-08-31  Jim Meyering  <meyering@redhat.com>
23210
23211         canonicalize: remove useless initialization
23212         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
23213         initialization of local, "end".
23214
23215 2009-08-30  Bruno Haible  <bruno@clisp.org>
23216
23217         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
23218         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
23219         ENOSYS.
23220
23221 2009-08-30  Bruno Haible  <bruno@clisp.org>
23222
23223         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
23224         /usr/xpg4/bin/tr when it exists.
23225         * tests/test-pipe-filter-gi1.sh: Likewise.
23226
23227 2009-08-30  Bruno Haible  <bruno@clisp.org>
23228
23229         Work around deficient /usr/bin/id program on Solaris.
23230         * tests/test-file-has-acl.sh (ID): New variable.
23231         * tests/test-set-mode-acl.sh (ID): Likewise.
23232         * tests/test-copy-acl.sh (ID): Likewise.
23233         * tests/test-copy-file.sh (ID): Likewise.
23234
23235 2009-08-30  Bruno Haible  <bruno@clisp.org>
23236
23237         New module 'xstriconveh'.
23238         * lib/xstriconveh.h: New file.
23239         * lib/xstriconveh.c: New file.
23240         * modules/xstriconveh: New file.
23241
23242 2009-08-30  Bruno Haible  <bruno@clisp.org>
23243
23244         Make it easier to use mem_cd_iconveh.
23245         * lib/striconveh.h (iconveh_t): New type.
23246         (iconveh_open, iconveh_close): New declarations.
23247         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23248         with a single 'const iconveh_t *' argument.
23249         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
23250         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23251         with a single 'const iconveh_t *' argument.
23252         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
23253         * tests/test-striconveh.c (main): Update.
23254         * NEWS: Mention the change.
23255
23256 2009-08-30  Bruno Haible  <bruno@clisp.org>
23257
23258         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
23259         problem.
23260
23261 2009-08-30  Bruno Haible  <bruno@clisp.org>
23262
23263         Work around iconv_open problem on Solaris.
23264         * lib/iconv_open-solaris.gperf: New file.
23265         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
23266         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
23267         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
23268         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
23269         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
23270         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
23271
23272 2009-08-29  Jim Meyering  <meyering@redhat.com>
23273
23274         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
23275         * top/maint.mk (cvs-check): Remove target; it was just an alias
23276         to the better-named vc-diff-check.
23277         (maintainer-distcheck): Remove rule.  It was used only from
23278         the (alpha/beta/major) target, and all of its commands but one
23279         were coreutils-specific.
23280         (vc-dist): Remove rule.
23281         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
23282         Run vc-diff-check, not vc-dist.
23283         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
23284
23285 2009-08-27  Bruno Haible  <bruno@clisp.org>
23286
23287         * tests/test-bitrotate.c (main): Remove test that uses a shift count
23288         of 0.
23289
23290 2009-08-27  Bruno Haible  <bruno@clisp.org>
23291
23292         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
23293         compilers.
23294         * doc/func.texi: Document the SunPRO C bug.
23295
23296 2009-08-27  Bruno Haible  <bruno@clisp.org>
23297
23298         Fix link error on Solaris.
23299         * tests/test-parse-duration.c (xstrdup): Remove function.
23300
23301 2009-08-26  Pádraig Brady  <P@draigbrady.com>
23302
23303         ignore-value: handle pointer types, too
23304         * lib/ignore-value.h (__attribute__): Remove definition.
23305         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
23306         of a more concise and more-often effective "(void) i" statement.
23307         (ignore_ptr): New function to suppress warnings from functions that
23308         return pointers, and to make it explicit that one function doesn't
23309         handle all cases.
23310
23311 2009-08-25  Bruno Haible  <bruno@clisp.org>
23312
23313         dup2: work around a Linux bug.
23314         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
23315         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
23316         * doc/posix-functions/dup2.texi: Mention the Linux bug.
23317         Reported by Simon Josefsson.
23318
23319 2009-08-25  Jim Meyering  <meyering@redhat.com>
23320
23321         libguestfs uses gnulib
23322         * users.txt: Add libguestfs.
23323
23324 2009-08-24  Eric Blake  <ebb9@byu.net>
23325
23326         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
23327         * lib/pipe2.c (includes): Add binary-io.h.
23328         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
23329
23330 2009-08-24  Bruno Haible  <bruno@clisp.org>
23331
23332         Tolerate declared but missing accept4 syscall.
23333         * lib/accept4.c (accept4): Invoke original accept4 function first, if
23334         available.
23335         * lib/sys_socket.in.h (accept4): If the function is already present,
23336         override it.
23337         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
23338         * modules/accept4 (Makefile.am): Compile accept4.c always.
23339         Reported by Paolo Bonzini and Eric Blake.
23340
23341 2009-08-23  Bruno Haible  <bruno@clisp.org>
23342
23343         New module 'accept4'.
23344         * lib/sys_socket.in.h (accept4): New declaration.
23345         * lib/accept4.c: New file.
23346         * m4/accept4.m4: New file.
23347         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23348         GNULIB_ACCEPT4, HAVE_ACCEPT4.
23349         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
23350         HAVE_ACCEPT4.
23351         * modules/accept4: New file.
23352         * doc/glibc-functions/accept4.texi: Mention the new module.
23353
23354 2009-08-24  Jim Meyering  <meyering@redhat.com>
23355
23356         progname: also set global program_invocation_name, when possible
23357         Before this change, a libtool-enabled program that calls glibc's
23358         error function would report the program name as
23359         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
23360         * modules/progname (configure.ac): Check for a declaration of
23361         program_invocation_name.
23362         * lib/progname.c:  Include <errno.h>.
23363         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
23364         Set program_invocation_name.
23365
23366 2009-08-23  Bruno Haible  <bruno@clisp.org>
23367
23368         * lib/dup3.c: Include <string.h>.
23369
23370 2009-08-23  Bruno Haible  <bruno@clisp.org>
23371
23372         * lib/dup3.c (dup3): Test only once whether the system actually exists.
23373         * lib/pipe2.c (pipe2): Likewise.
23374         Suggested by Eric Blake.
23375
23376 2009-08-23  Bruno Haible  <bruno@clisp.org>
23377
23378         Tolerate declared but missing dup3 syscall.
23379         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
23380         * lib/unistd.in.h (dup3): If the function is already present,
23381         override it.
23382         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
23383         * modules/dup3 (Makefile.am): Compile dup3.c always.
23384         Reported by Paolo Bonzini.
23385
23386 2009-08-23  Bruno Haible  <bruno@clisp.org>
23387
23388         Tolerate declared but missing pipe2 syscall.
23389         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
23390         available.
23391         * lib/unistd.in.h (pipe2): If the function is already present,
23392         override it.
23393         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
23394         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
23395         Reported by Paolo Bonzini.
23396
23397 2009-08-23  Bruno Haible  <bruno@clisp.org>
23398
23399         * lib/pipe2.c (pipe2): Move #ifs inside function.
23400
23401 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23402
23403         quotearg: document limitations of quote_these_too
23404         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
23405         those limitations are created.
23406         * lib/quotearg.h (set_char_quoting): Document that digits and
23407         letters that are special after backslash are not permitted.
23408         (quotearg_char): Cross-reference set_char_quoting documentation.
23409
23410 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
23411
23412         quotearg: implement custom_quoting_style
23413         * lib/quotearg.c: (struct quoting_options): Add left_quote and
23414         right_quote fields.
23415         (set_custom_quoting): New public function.
23416         (quotearg_buffer_restyled): Add left_quote and right_quote
23417         arguments, handle them very much like locale quoting, and update
23418         all uses.
23419         (quotearg_n_custom): New public function.
23420         (quotearg_n_custom_mem): New public function.
23421         (quotearg_custom): New public function.
23422         (quotearg_custom_mem): New public function.
23423         * lib/quotearg.h: Prototype and document new public functions.
23424         (enum quoting_style): For escape_quoting_style and
23425         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
23426         ignored even though they're otherwise like c_quoting_style.
23427         Add custom_quoting_style member and document with comparison to
23428         clocale_quoting_style.
23429         * tests/test-quotearg.c (custom_quotes): New array.
23430         (custom_results): New array.
23431         (main): Extend to test custom quoting.
23432
23433 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23434
23435         quotearg: fix right quote escaping when it's in quote_these_too
23436         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
23437         quote, be sure to prepend only one backslash.
23438         * tests/test-quotearg.c (use_quote_double_quotes): New function.
23439         (main): Test it.
23440
23441 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23442
23443         quotearg-tests: test escaping of embedded locale quotes
23444         * tests/test-quotearg.c (struct result_strings): Add member for
23445         new input.
23446         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
23447         (inputs): Add new input.
23448         (results_g): Add expected results.
23449         (flag_results): Likewise.
23450         (locale_results): Likewise.
23451         (compare_strings): Check those.
23452
23453 2009-08-23  Bruno Haible  <bruno@clisp.org>
23454
23455         Tests for module 'dup3'.
23456         * modules/dup3-tests: New file.
23457         * tests/test-dup3.c: New file.
23458
23459         New module 'dup3'.
23460         * lib/unistd.in.h (dup3): New declaration.
23461         * lib/dup3.c: New file.
23462         * m4/dup3.m4: New file.
23463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
23464         HAVE_DUP3.
23465         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
23466         * modules/dup3: New file.
23467         * doc/glibc-functions/dup3.texi: Mention the new module.
23468
23469 2009-08-23  Bruno Haible  <bruno@clisp.org>
23470
23471         Tweak the dup2 test.
23472         * tests/test-dup2.c (main): Create the test file empty. Verify that an
23473         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
23474         the test file is still empty. Fix argument order of lseek.
23475
23476 2009-08-23  Bruno Haible  <bruno@clisp.org>
23477
23478         Avoid test link errors when the modules getopt-gnu, gettext are used.
23479         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
23480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23481
23482 2009-08-23  Bruno Haible  <bruno@clisp.org>
23483
23484         Fix getdtablesize() on mingw.
23485         * lib/getdtablesize.c (getdtablesize): Implement differently.
23486         * lib/unistd.in.h (getdtablesize): Improve comment.
23487
23488 2009-08-23  Bruno Haible  <bruno@clisp.org>
23489
23490         New module 'mkostemp'.
23491         Based on Ulrich Drepper's 2007-08-10 change in glibc.
23492         * lib/stdlib.in.h (mksotemp): New declaration.
23493         * lib/mkostemp.c: New file, from glibc with modifications.
23494         * lib/tempname.h (GT_FILE): Remove outdated comment.
23495         (gen_tempname): Add flags argument.
23496         * lib/tempname.c (__GT_BIGFILE): Remove macro.
23497         (__GT_FILE): Map to 1.
23498         (small_open, large_open): Remove macros.
23499         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
23500         * lib/mkstemp.c (mkstemp): Update.
23501         * lib/mkdtemp.c (mkdtemp): Likewise.
23502         * m4/mkostemp.m4: New file.
23503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
23504         HAVE_MKOSTEMP.
23505         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
23506         HAVE_MKOSTEMP.
23507         * modules/mkostemp: New file, based on modules/mkstemp.
23508         * doc/glibc-functions/mkostemp.texi: Mention the new module.
23509         * NEWS: Mention the change.
23510
23511 2009-08-23  Bruno Haible  <bruno@clisp.org>
23512
23513         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
23514         Reported by Eric Blake.
23515
23516 2009-08-23  Bruno Haible  <bruno@clisp.org>
23517
23518         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
23519         Reported by Eric Blake.
23520
23521 2009-08-23  Bruno Haible  <bruno@clisp.org>
23522
23523         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
23524         * modules/pipe2 (Depends-on): Likewise.
23525
23526 2009-08-23  Eric Blake  <ebb9@byu.net>
23527
23528         fcntl-h: add O_TTY_INIT support
23529         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
23530         * tests/test-fcntl-h.c (o): Test it.
23531         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23532
23533         fcntl-h: rename from fcntl, in preparation for fcntl(2)
23534         * modules/fcntl: Move <fcntl.h> header replacement...
23535         * modules/fcntl-h: ...to new name, so as not to collide with
23536         like-named function.
23537         * tests/test-fcntl.c: Rename...
23538         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
23539         * modules/fcntl-tests: Rename...
23540         * modules/fcntl-h-tests: ...to this.  Update test file name.
23541         * modules/chdir-long (Depends-on): Update clients.
23542         * modules/chdir-safer (Depends-on): Likewise.
23543         * modules/fcntl-safer (Depends-on): Likewise.
23544         * modules/fts (Depends-on): Likewise.
23545         * modules/mkancesdirs (Depends-on): Likewise.
23546         * modules/mkdir-p (Depends-on): Likewise.
23547         * modules/open (Depends-on): Likewise.
23548         * modules/savewd (Depends-on): Likewise.
23549         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
23550         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23551
23552 2009-08-22  Bruno Haible  <bruno@clisp.org>
23553
23554         * modules/binary-io (License): Relicense under LGPL.
23555         * modules/pipe2 (License): Likewise.
23556
23557 2009-08-22  Bruno Haible  <bruno@clisp.org>
23558
23559         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
23560         return value.
23561         * lib/pipe-filter-gi.c (filter_init): Likewise.
23562         Reported by Eric Blake.
23563
23564 2009-08-22  Bruno Haible  <bruno@clisp.org>
23565
23566         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
23567         * modules/pipe (Depends-on): Add pipe2.
23568
23569 2009-08-22  Bruno Haible  <bruno@clisp.org>
23570
23571         Tests for module 'pipe2'.
23572         * modules/pipe2-tests: New file.
23573         * tests/test-pipe2.c: New file.
23574
23575         New module 'pipe2'.
23576         * lib/unistd.in.h (pipe2): New declaration.
23577         * lib/pipe2.c: New file.
23578         * m4/pipe2.m4: New file.
23579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
23580         HAVE_PIPE2.
23581         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
23582         * modules/pipe2: New file.
23583         * doc/glibc-functions/pipe2.texi: Mention the new module.
23584
23585 2009-08-22  Bruno Haible  <bruno@clisp.org>
23586
23587         Reference some new glibc functions.
23588         * doc/glibc-functions/accept4.texi: New file.
23589         * doc/glibc-functions/dup3.texi: New file.
23590         * doc/glibc-functions/mkostemp.texi: New file.
23591         * doc/glibc-functions/pipe2.texi: New file.
23592         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
23593         (Glibc sys/socket.h): Refer to accept4.
23594         (Glibc unistd.h): Refer to dup3, pipe2.
23595         Reported by Eric Blake.
23596
23597 2009-08-22  Jim Meyering  <meyering@redhat.com>
23598             Bruno Haible  <bruno@clisp.org>
23599
23600         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
23601         This makes it so packages using automake-1.11's silent-rules option
23602         can print e.g., a single "GEN    configmake.h" line, rather than
23603         the 30+ statements that perform the job.  If you want to see the
23604         actual commands, you can still run "make V=1".
23605         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
23606         so that make output is abbreviated when those variables are defined
23607         appropriately.
23608         * modules/argz: Likewise.
23609         * modules/arpa_inet: Likewise.
23610         * modules/byteswap: Likewise.
23611         * modules/configmake: Likewise.
23612         * modules/dirent: Likewise.
23613         * modules/errno: Likewise.
23614         * modules/fcntl: Likewise.
23615         * modules/float: Likewise.
23616         * modules/fnmatch: Likewise.
23617         * modules/getopt-posix: Likewise.
23618         * modules/glob: Likewise.
23619         * modules/iconv_open: Likewise.
23620         * modules/inttypes: Likewise.
23621         * modules/localcharset: Likewise.
23622         * modules/locale: Likewise.
23623         * modules/math: Likewise.
23624         * modules/netdb: Likewise.
23625         * modules/netinet_in: Likewise.
23626         * modules/poll: Likewise.
23627         * modules/posix_spawnp-tests: Likewise.
23628         * modules/sched: Likewise.
23629         * modules/search: Likewise.
23630         * modules/selinux-h: Likewise.
23631         * modules/signal: Likewise.
23632         * modules/spawn: Likewise.
23633         * modules/stdarg: Likewise.
23634         * modules/stdbool: Likewise.
23635         * modules/stddef: Likewise.
23636         * modules/stdint: Likewise.
23637         * modules/stdio: Likewise.
23638         * modules/stdlib: Likewise.
23639         * modules/string: Likewise.
23640         * modules/strings: Likewise.
23641         * modules/sys_file: Likewise.
23642         * modules/sys_ioctl: Likewise.
23643         * modules/sys_select: Likewise.
23644         * modules/sys_socket: Likewise.
23645         * modules/sys_stat: Likewise.
23646         * modules/sys_time: Likewise.
23647         * modules/sys_times: Likewise.
23648         * modules/sys_utsname: Likewise.
23649         * modules/sys_wait: Likewise.
23650         * modules/sysexits: Likewise.
23651         * modules/time: Likewise.
23652         * modules/unistd: Likewise.
23653         * modules/wchar: Likewise.
23654         * modules/wctype: Likewise.
23655
23656 2009-08-22  Jim Meyering  <meyering@redhat.com>
23657
23658         announce-gen: detect write failure
23659         * build-aux/announce-gen: Add Coda at end.
23660         Remove equivalent-but-more-verbose block at top.
23661
23662 2009-08-19  Akim Demaille  <demaille@gostai.com>
23663
23664         bootstrap: --help to stdout.
23665         * bootstrap (usage): Don't send --help to stderr.
23666         Use a here doc instead of a long string.
23667
23668 2009-08-21  Eric Blake  <ebb9@byu.net>
23669
23670         test-popen-safer: split from test-popen
23671         * tests/test-popen.c (main): Move...
23672         * tests/test-popen.h: ...into new file.
23673         * tests/test-popen-safer2.c: New file.
23674         * modules/popen-tests (Files): Add test-popen.h.
23675         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
23676         Suggested by Bruno Haible.
23677
23678         test-fcntl-safer: split from test-open
23679         * tests/test-open.c (main): Move...
23680         * tests/test-open.h: ...into new file.
23681         * tests/test-fcntl-safer.c: New file.
23682         * modules/open-tests (Files): Add test-open.h.
23683         * modules/fcntl-safer-tests: New file.
23684         Suggested by Bruno Haible.
23685
23686         test-fopen-safer: split from test-fopen
23687         * tests/test-fopen.c (main): Move...
23688         * tests/test-fopen.h: ...into new file.
23689         * tests/test-fopen-safer.c: New file.
23690         * modules/fopen-tests (Files): Add test-fopen.h.
23691         * modules/fopen-safer-tests: New file.
23692         Suggested by Bruno Haible.
23693
23694 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23695
23696         popen-safer: test O_CLOEXEC at run-time.
23697         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
23698
23699 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23700
23701         fcntl: move more flags to the header
23702         * lib/cloexec.c: Do not define FD_CLOEXEC here.
23703         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
23704         * lib/fcntl.in.h: Do both things here.
23705
23706 2009-08-21  Jim Meyering  <meyering@redhat.com>
23707
23708         consistently remove $@-t before redirecting to it
23709         * modules/argz: Remove $@-t and $@ before redirecting to the former.
23710         * modules/alloca-opt: Likewise.
23711         * modules/byteswap: Likewise.
23712         * modules/fnmatch: Likewise.
23713         * modules/getopt-posix: Likewise.
23714         * modules/glob: Likewise.
23715         * modules/poll: Likewise.
23716         * modules/posix_spawnp-tests: Likewise.
23717         * modules/sys_socket: Likewise.
23718         * modules/sysexits: Likewise.
23719
23720 2009-08-21  Eric Blake  <ebb9@byu.net>
23721
23722         popen: simplify access to original popen
23723         * lib/popen.c (rpl_popen): No need to worry about popen being a
23724         macro.
23725         Reported by Bruno Haible.
23726
23727 2009-08-20  Eric Blake  <ebb9@byu.net>
23728
23729         build: avoid some compiler warnings
23730         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
23731         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
23732         type.
23733         (new_exclude_segment, excluded_file_pattern_p)
23734         (excluded_file_name_p): Reduce scope.
23735         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
23736         old-style declaration.
23737
23738 2009-08-20  Simon Josefsson  <simon@josefsson.org>
23739
23740         * tests/test-exclude1.sh: Handle Windows EOL.
23741         * tests/test-exclude2.sh: Likewise.
23742         * tests/test-exclude3.sh: Likewise.
23743         * tests/test-exclude4.sh: Likewise.
23744         * tests/test-exclude5.sh: Likewise.
23745         * tests/test-exclude6.sh: Likewise.
23746         * tests/test-exclude7.sh: Likewise.
23747
23748 2009-08-19  Akim Demaille  <demaille@gostai.com>
23749
23750         bootstrap: find sha1sum when named gsha1sum.
23751         * bootstrap (find_tool): New.
23752         ($SHA1SUM): New.
23753         Use it.
23754
23755 2009-08-20  Jim Meyering  <meyering@redhat.com>
23756
23757         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
23758         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
23759         expression that converts "." in a file name to "\." in the resulting
23760         regexp.  Start with a dummy statement, so that prior shell variable
23761         definitions are expanded portably.  Reported by Simon Josefsson.
23762
23763 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
23764
23765         Fix polling for writeability of a screen buffer.
23766         * lib/poll.c: Distinguish input and screen buffers for the
23767         Win32 implementation.
23768         * lib/select.c: Likewise.
23769
23770 2009-08-19  Eric Blake  <ebb9@byu.net>
23771
23772         popen-safer: prevent popen from clobbering std descriptors
23773         * modules/popen-safer: New file.
23774         * lib/popen-safer.c: Likewise.
23775         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
23776         * lib/stdio--.h (popen): Provide override.
23777         * lib/stdio-safer.h (popen_safer): Provide declaration.
23778         * tests/test-popen.c (includes): Partially test this.
23779         * modules/popen-safer-tests: New file, for more tests.
23780         * tests/test-popen-safer.c: Likewise.
23781         * MODULES.html.sh (file stream based Input/Output): Mention it.
23782
23783         tests: test some of the *-safer modules
23784         * modules/fopen-safer (Depends-on): Add fopen.
23785         * modules/fcntl-safer (Depends-on): Add fcntl.
23786         * modules/stdlib-safer (Depends-on): Add stdlib.
23787         (configure.ac): Set indicator.
23788         * modules/unistd-safer (configure.ac): Likewise.
23789         * modules/tmpfile-safer (configure.ac): Likewise.
23790         (Depends-on): Add tmpfile.
23791         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
23792         active.
23793         * tests/test-fopen.c (includes): Test safer versions when they are
23794         in use.
23795         * tests/test-open.c (includes): Likewise.
23796
23797         popen: fix cygwin 1.5 bug when stdin closed
23798         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
23799         * modules/popen: New file.
23800         * modules/popen-tests: Likewise.
23801         * tests/test-popen.c: Likewise.
23802         * m4/popen.m4: Likewise.
23803         * lib/popen.c: Likewise.
23804         * lib/stdio.in.h (popen): New declaration.
23805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
23806         * modules/stdio (Makefile.am): Likewise.
23807         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
23808
23809 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
23810
23811         maint.mk: give full control over update-copyright exclusions
23812         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
23813         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
23814         (update-copyright): Don't force inclusion of top-level
23815         ChangeLog.  Don't force exclusion of all COPYING files, but make
23816         them the default exclusion instead.
23817
23818 2009-08-16  Bruno Haible  <bruno@clisp.org>
23819
23820         Fix test failures on Solaris 10.
23821         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
23822         tests when Solaris iconv() is used.
23823         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
23824         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
23825         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
23826         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
23827         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
23828
23829 2009-08-16  Bruno Haible  <bruno@clisp.org>
23830
23831         Fix test failures on Solaris 10.
23832         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
23833         'tr' program and pass it as first argument.
23834         * tests/test-pipe-filter-gi1.sh: Likewise.
23835         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
23836         program as first argument.
23837         * tests/test-pipe-filter-gi1.c (main): Likewise.
23838
23839 2009-08-16  Eric Blake  <ebb9@byu.net>
23840
23841         fpurge: fix previous commits
23842         * modules/fpurge (Makefile.am): Make replacement conditional,
23843         partially reverting 2007-04-29 change; missed in previous
23844         attempt.
23845         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
23846         is missing.
23847
23848 2009-08-16  Bruno Haible  <bruno@clisp.org>
23849
23850         Clarify fpurge's effect on the file position.
23851         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
23852         * tests/test-fpurge.c (main): Make a second pass for checking the file
23853         position.
23854
23855 2009-08-16  Bruno Haible  <bruno@clisp.org>
23856
23857         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
23858         declaration of fpurge is missing.
23859         * tests/test-fpurge.c (main): Check that the file has not more contents
23860         than expected. Close the file before removing it.
23861
23862 2009-08-15  Eric Blake  <ebb9@byu.net>
23863
23864         fpurge: don't wrap working cygwin implementation
23865         * lib/fpurge.c (fpurge): Fix comment typo.
23866         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
23867         1.7 to avoid replacement.
23868         * tests/test-fpurge.c (main): Enhance test.
23869
23870 2009-08-15  Eric Blake  <ebb9@byu.net>
23871         and Jim Meyering  <meyering@redhat.com>
23872
23873         test-update-copyright: skip if perl is insufficient
23874         * tests/test-update-copyright.sh: Failure to run maintainer tool
23875         should not cause testsuite failure on cygwin 1.5.
23876
23877 2009-08-14  Eric Blake  <ebb9@byu.net>
23878
23879         doc: mention more functions added in cygwin 1.7.0
23880         * doc/posix-headers/limits.texi (limits.h): Update for recent
23881         cygwin additions.
23882         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
23883         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
23884         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
23885         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
23886         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
23887
23888 2009-08-14  Eric Blake  <ebb9@byu.net>
23889
23890         maint.mk: simplify update-copyright rule
23891         * top/maint.mk (update-copyright-local): Delete, and document how
23892         to do it in cfg.mk instead.
23893         (update-copyright-exclude-regexp): Delete, and document how to do
23894         it in .x-update-copyright instead.
23895         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
23896         exclude ChangeLog.
23897
23898 2009-08-14  Bruno Haible  <bruno@clisp.org>
23899
23900         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
23901
23902 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23903
23904         maint.mk: support update-copyright-env
23905         * top/maint.mk (update-copyright-env): Define place-holder.
23906         (update-copyright): Expand $(update-copyright-env) before
23907         invoking update-copyright.
23908
23909 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23910
23911         update-copyright: implement forced reformatting
23912         * build-aux/update-copyright: Implement and document
23913         UPDATE_COPYRIGHT_FORCE.
23914         * tests/test-update-copyright.sh: Test it.
23915
23916 2009-08-14  Eric Blake  <ebb9@byu.net>
23917         and Bruno Haible  <bruno@clisp.org>
23918
23919         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
23920         * tests/test-locale.c: Revert previous patch related to NULL.
23921         * tests/test-stdio.c: Likewise.
23922         * tests/test-stdlib.c: Likewise.
23923         * tests/test-string.c: Likewise.
23924         * tests/test-unistd.c: Likewise.
23925         * modules/time-tests (Depends-on): Add verify.
23926         * modules/wchar-tests (Depends-on): Likewise.
23927         * tests/test-time.c: Test for NULL compliance.
23928         * tests/test-wchar.c: Likewise.
23929         * modules/locale (Depends-on): Add stddef.
23930         * modules/stdio (Depends-on): Likewise.
23931         * modules/stdlib (Depends-on): Likewise.
23932         * modules/string (Depends-on): Likewise.
23933         * modules/time (Depends-on): Likewise.
23934         * modules/unistd (Depends-on): Likewise.
23935         * modules/wchar (Depends-on): Likewise.
23936         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
23937         * lib/stdlib.in.h (includes): Likewise.
23938         * lib/string.in.h (includes): Likewise.
23939         * lib/time.in.h (includes): Likewise.
23940         * lib/unistd.in.h (includes): Likewise.
23941         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
23942         replaced.
23943         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23944         * m4/stddef_h.m4: New file.
23945         * modules/stddef: Likewise.
23946         * lib/stddef.in.h: Likewise.
23947         * modules/stddef-tests: Likewise.
23948         * tests/test-stddef.c: Likewise.
23949         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
23950         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
23951         * doc/posix-headers/locale.texi (locale.h): Likewise.
23952         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
23953         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23954         * doc/posix-headers/string.texi (string.h): Likewise.
23955         * doc/posix-headers/time.texi (time.h): Likewise.
23956         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
23957         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
23958
23959 2009-08-14  Eric Blake  <ebb9@byu.net>
23960
23961         doc: improve git diff of texinfo files
23962         * .gitattributes: Add rule for *.texi files, with hint on how to
23963         use it.
23964         Copied from m4, and based on a report by Bruno Haible.
23965
23966 2009-08-14  Bruno Haible  <bruno@clisp.org>
23967
23968         Disable multithread support by default on Cygwin 1.5.x for real.
23969         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
23970
23971 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23972
23973         update-copyright: much ado about intervals
23974         * build-aux/update-copyright: Implement and document
23975         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
23976         of copyright year intervals.
23977         Also, document UPDATE_COPYRIGHT_YEAR.
23978         * tests/test-update-copyright.sh: Test it.
23979
23980         update-copyright: convert 2-digit to 4-digit years
23981         * build-aux/update-copyright: Implement and document.
23982         * tests/test-update-copyright.sh: Update.
23983
23984 2009-08-14  Jim Meyering  <meyering@redhat.com>
23985
23986         test-exclude: avoid coreutils "make check" failure
23987         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
23988         just as in test-argmatch.c.
23989
23990 2009-08-13  Eric Blake  <ebb9@byu.net>
23991
23992         test-dup2: fix bad assumption
23993         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
23994         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
23995
23996         test-version-etc: fix CRLF portability issue
23997         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
23998         recognize \r.
23999         * tests/test-argp-version-etc-1.sh: Likewise.
24000
24001         getopt: update client modules
24002         * modules/argp (Depends-on): Use getopt-gnu.
24003         * modules/git-merge-changelog (Depends-on): Likewise.
24004         * modules/long-options (Depends-on): Likewise.
24005         * modules/xstrtol (Depends-on): Likewise.
24006
24007 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24008
24009         * tests/test-version-etc.sh: Don't fail on different
24010         project/version.  Don't fail on CRLF differences.  Rewrite to use
24011         multiple -e instead of multiple sed forks, suggested by Eric Blake
24012         <ebb9@byu.net>.
24013         * tests/test-argp-version-etc-1.sh: Likewise.
24014
24015 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24016
24017         * tests/test-version-etc.sh: Don't fail on different
24018         project/version.
24019
24020 2009-08-12  Bruno Haible  <bruno@clisp.org>
24021
24022         Tests for modules 'getopt-posix', 'getopt-gnu'.
24023         * modules/getopt-posix-tests: New file.
24024         * tests/test-getopt.c: New file.
24025         * tests/test-getopt.h: New file.
24026         * tests/test-getopt_long.h: New file.
24027
24028         New modules 'getopt-posix', 'getopt-gnu'.
24029         * modules/getopt-gnu: New file, renamed from modules/getopt.
24030         * modules/getopt-posix: New file.
24031         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
24032         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
24033         (gl_GETOPT): Remove macro.
24034         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
24035         Disable the test against BSD systems that declare optreset. Test
24036         against mingw bug. Test against lack of support of optional arguments
24037         on many platforms.
24038         * doc/glibc-headers/getopt.texi: Update module name and list of
24039         relevant platforms.
24040         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
24041         'getopt-gnu' and more portability problems.
24042         * NEWS: Mention the changes.
24043
24044 2009-08-12  Bruno Haible  <bruno@clisp.org>
24045
24046         Ensure that optarg etc. get declared by <unistd.h>.
24047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
24048         AC_USE_SYSTEM_EXTENSIONS.
24049         * modules/getopt (Depends-on): Add 'extensions'.
24050
24051 2009-08-12  Bruno Haible  <bruno@clisp.org>
24052
24053         Avoid test link errors.
24054         * modules/pipe-filter-ii-tests (Makefile.am): Define
24055         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
24056         * modules/pipe-filter-gi-tests (Makefile.am): Define
24057         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
24058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24059
24060 2009-08-12  Bruno Haible  <bruno@clisp.org>
24061
24062         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
24063         gl_GETOPT_SUBSTITUTE before.
24064         (gl_GETOPT): Use it.
24065         * m4/argp.m4 (gl_ARGP): Update.
24066         Reported by Sergey Poznyakoff.
24067
24068         * m4/getopt.m4: Reorder macros.
24069         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
24070         (gl_GETOPT_SUBSTITUTE): Remove macro.
24071
24072 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24073
24074         Minor improvement in gitlog-to-changelog
24075
24076         * build-aux/gitlog-to-changelog: New option `--format' makes
24077         output format string configurable.
24078
24079 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24080
24081         Optimize exclude: use hash tables for non-wildcard patterns.
24082
24083         * lib/exclude.c: Include hash.h and mbuiter.h
24084         (struct exclude_pattern, exclude_segment): New data types.
24085         (struct exclude): Rewrite.
24086         (fnmatch_pattern_has_wildcards): New function.
24087         (new_exclude_segment, free_exclude_segment): New functions.
24088         (excluded_file_pattern_p, excluded_file_name_p): New functions.
24089         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
24090         * lib/exclude.h (is_fnmatch_pattern): New prototype.
24091         * modules/exclude: Depend on hash and mbuiter.
24092
24093         * modules/exclude-tests: New file.
24094         * tests/test-exclude.c: New file.
24095         * tests/test-exclude1.sh: New file.
24096         * tests/test-exclude2.sh: New file.
24097         * tests/test-exclude3.sh: New file.
24098         * tests/test-exclude4.sh: New file.
24099         * tests/test-exclude5.sh: New file.
24100         * tests/test-exclude6.sh: New file.
24101         * tests/test-exclude7.sh: New file.
24102
24103 2009-08-12  Bruno Haible  <bruno@clisp.org>
24104
24105         Ensure that getopt() gets declared by <unistd.h>.
24106         * lib/unistd.in.h: Conditionally include getopt.h.
24107         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
24108         Set GNULIB_UNISTD_H_GETOPT.
24109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24110         GNULIB_UNISTD_H_GETOPT.
24111         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
24112
24113 2009-08-12  Bruno Haible  <bruno@clisp.org>
24114
24115         Clarify logic.
24116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
24117         gl_replace_getopt instead of GETOPT_H.
24118
24119 2009-08-12  Bruno Haible  <bruno@clisp.org>
24120
24121         * m4/getopt.m4: Add comments.
24122
24123 2009-08-12  Bruno Haible  <bruno@clisp.org>
24124
24125         Disable multithread support by default on Cygwin 1.5.x.
24126         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
24127         set gl_use_threads=no if not specified otherwise.
24128
24129 2009-08-11  Bruno Haible  <bruno@clisp.org>
24130
24131         Avoid compilation error on NetBSD 5.0.
24132         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
24133         * tests/test-stdio.c: Likewise.
24134         * tests/test-stdlib.c: Likewise.
24135         * tests/test-string.c: Likewise.
24136         * tests/test-unistd.c: Likewise.
24137         Reported by Greg Troxel <gdt@ir.bbn.com>
24138         at <https://savannah.gnu.org/support/?106973>.
24139
24140 2009-08-11  Bruno Haible  <bruno@clisp.org>
24141
24142         * modules/dup2-tests (Depends-on): Remove close.
24143
24144         Undo 2009-07-19 commit.
24145         * modules/acl-tests (Depends-on): Remove close.
24146         * modules/binary-io-tests (Depends-on): Likewise.
24147         * modules/closein-tests (Depends-on): Likewise.
24148         * modules/flock-tests (Depends-on): Likewise.
24149         * modules/fsync-tests (Depends-on): Likewise.
24150         * modules/lseek-tests (Depends-on): Likewise.
24151         * modules/pipe-tests (Depends-on): Likewise.
24152         * modules/posix_spawn-tests (Depends-on): Likewise.
24153         * modules/posix_spawnp-tests (Depends-on): Likewise.
24154         * modules/stat-time-tests (Depends-on): Likewise.
24155         * modules/yesno-tests (Depends-on): Likewise.
24156
24157 2009-08-10  Bruno Haible  <bruno@clisp.org>
24158
24159         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
24160
24161 2009-08-10  Bruno Haible  <bruno@clisp.org>
24162
24163         Fix a gcc warning.
24164         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
24165
24166 2009-08-10  Bruno Haible  <bruno@clisp.org>
24167
24168         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
24169         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
24170         not only the first time.
24171         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
24172         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
24173         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
24174         is 1, not only the the first time.
24175
24176 2009-08-10  Bruno Haible  <bruno@clisp.org>
24177
24178         Make it possible to use module 'gethostname' without module 'close'.
24179         * lib/unistd.in.h (close): Evoke a link error only if
24180         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24182         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24183         * modules/unistd (Makefile.am): Substitute
24184         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24185         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
24186         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24187         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24188         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24189         * modules/sys_ioctl (Makefile.am): Substitute
24190         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24191         * modules/socket (configure.ac): On native Windows, set
24192         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
24193         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24194         Reported by Sam Steingold <sds@gnu.org>.
24195
24196 2009-08-10  Bruno Haible  <bruno@clisp.org>
24197
24198         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
24199         * modules/ioctl (configure.ac): Likewise.
24200
24201 2009-08-10  Bruno Haible  <bruno@clisp.org>
24202
24203         Avoid collision between gnulib wrapper and libintl wrapper.
24204         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
24205         already defined in intl/printf.c.
24206         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
24207         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
24208
24209 2009-08-09  Bruno Haible  <bruno@clisp.org>
24210
24211         Make <sys/select.h> really self-contained, also on Solaris 10.
24212         * lib/sys_select.in.h: Include <string.h>.
24213         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
24214         Solaris 10 problem.
24215         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
24216         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
24217         Reported by Jim Meyering.
24218
24219 2009-08-09  Bruno Haible  <bruno@clisp.org>
24220
24221         Avoid warnings from 'aclocal' that are due to a use of macro name
24222         AM_XGETTEXT_OPTION that is not defined in automake.
24223         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
24224         automake.
24225         * modules/error (configure.ac): Likewise.
24226         * modules/propername (configure.ac): Likewise.
24227         * modules/vasprintf (configure.ac): Likewise.
24228         * modules/verror (configure.ac): Likewise.
24229         * modules/xprintf (configure.ac): Likewise.
24230         * modules/xvasprintf (configure.ac): Likewise.
24231
24232 2009-08-08  Bruno Haible  <bruno@clisp.org>
24233
24234         Avoid compilation error in C++ mode.
24235         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
24236         Reported by Sam Steingold <sds@gnu.org>.
24237
24238 2009-08-08  Bruno Haible  <bruno@clisp.org>
24239
24240         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
24241         for the various Unix platforms.
24242         * doc/posix-headers/limits.texi: Update platforms list regarding
24243         HOST_NAME_MAX.
24244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24245
24246 2009-08-07  Jim Meyering  <meyering@redhat.com>
24247
24248         selinux-at: fix typo in a comment
24249         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
24250         Spotted by Paolo Bonzini.
24251
24252         selinux-at: remove redundant m4 code, add documentation
24253         * modules/selinux-at (configure.ac): Remove redundant code.
24254         LIB_SELINUX is already set via the dependent module, selinux-h.
24255         (Include): Add quotes around selinux-at.h.
24256         * lib/selinux-at.h: Add documentation.
24257         Reported by Bruno Haible in
24258         http://marc.info/?l=gnulib-bug&m=124958988300749
24259
24260 2009-08-07  Bruno Haible  <bruno@clisp.org>
24261
24262         Avoid link error on MacOS X 10.3 and 10.4.
24263         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
24264         on non-ELF systems.
24265         * lib/argp-pv.c (argp_program_version): Likewise.
24266         Reported by Simon Josefsson.
24267
24268 2009-08-07  Simon Josefsson  <simon@josefsson.org>
24269
24270         * tests/test-version-etc.sh: Use $EXEEXT.
24271
24272 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
24273
24274         update-copyright: update documentation to point to maint.mk
24275         * build-aux/update-copyright: Here.
24276
24277 2009-08-06  Jim Meyering  <meyering@redhat.com>
24278
24279         maint.mk: support update-copyright-local
24280         * top/maint.mk (update-copyright-local): Define place-holder.
24281         (update-copyright): Depend on $(update-copyright-local).
24282
24283 2009-08-06  Jim Meyering  <meyering@redhat.com>
24284
24285         selinux-at: new module
24286         Initially written for coreutils, this module will soon be
24287         used by findutils, too.
24288         * MODULES.html.sh [Misc]: Add selinux-at.
24289         * lib/selinux-at.h: New file, from coreutils.
24290         * lib/selinux-at.c: Likewise.
24291         * modules/selinux-at: Likewise.
24292         (License): Change from LGPL to GPL, since it depends
24293         on the GPL'd openat module.
24294
24295         doc: update README
24296         * README: Remove references to cogito.
24297         Remove cvs-repo-updating instructions from 2007.
24298         Don't imply that CVS is better if you have limited disk space.
24299
24300 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24301
24302         update-copyright: support C-style comments
24303         * build-aux/update-copyright: Implement and document.
24304         * tests/test-update-copyright.sh: Test.
24305
24306 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24307
24308         update-copyright: support omitted "(C)"
24309         * build-aux/update-copyright: Implement and document.  Also,
24310         allow variable whitespace before "(C)".
24311         * tests/test-update-copyright.sh: Test.
24312
24313 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24314
24315         update-copyright: don't trip on non-FSF copyright statements
24316         * build-aux/update-copyright: Fix so that the first correctly
24317         formatted FSF copyright statement is recognized no matter what
24318         appears before it.  Update documentation.
24319         * tests/test-update-copyright.sh: Test that.
24320
24321 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24322
24323         update-copyright: clean up code a little
24324         * build-aux/update-copyright: Append "_re" to the name of any
24325         variable holding a regular expression.
24326         Replace "old" and "new" with "stmt" in variable names.
24327         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
24328         handled correctly.
24329         Format code more consistently.
24330
24331 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24332
24333         update-copyright-tests: improve portability
24334         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
24335         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
24336
24337 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24338
24339         update-copyright: support @copyright{} and &copy;
24340         * build-aux/update-copyright: Implement and document.
24341         * tests/test-update-copyright.sh: Test.
24342
24343 2009-08-04  Jim Meyering  <meyering@redhat.com>
24344
24345         update-copyright-tests: correctly test EOL=\r\n handling
24346         * tests/test-update-copyright.sh: Put \r at the end of some lines
24347         for the dos-eol tests.  Based on a patch by Joel E. Denny.
24348
24349         maint.mk: make update-copyright exclusion list more configurable
24350         * top/maint.mk (update-copyright): Default to excluding COPYING,
24351         but allow an override, in case someone does want to update that file.
24352
24353         maint.mk: don't update copyright date in COPYING
24354         * top/maint.mk (update-copyright): Exclude COPYING.
24355
24356         maint.mk: add a copyright-updating rule
24357         * top/maint.mk (update-copyright): New rule.
24358         Derived from coreutils/Makefile.am.
24359
24360         update-copyright: rename some variables
24361         * build-aux/update-copyright: Rename a few variables for clarity.
24362         Tweak syntax.  List Joel E. Denny as coauthor.
24363
24364 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24365
24366         update-copyright: fix bug for 2-digit last year and add tests
24367         * build-aux/update-copyright: Fix bug.
24368         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
24369         specified.
24370         * modules/update-copyright-tests: New
24371         * tests/test-update-copyright.sh: New.
24372
24373 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24374
24375         update-copyright: handle leading tabs in line prefix
24376         * build-aux/update-copyright: Count leading tabs as 8 spaces
24377         when computing margin.  This helps with the formatting of
24378         ChangeLogs, for example.
24379         Fix documentation a little.
24380
24381 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24382
24383         update-copyright: support EOL=\r\n
24384         * build-aux/update-copyright: Implement that.
24385
24386 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24387
24388         update-copyright: automatically format copyright statements
24389         * build-aux/update-copyright: Implement that.
24390         Also, be a little more predictable and safer by always failing
24391         when the full copyright format is not perfectly recognized as an
24392         unbroken whole.  Discussed at
24393         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
24394         Rewrite documentation.
24395
24396 2009-08-03  Bruno Haible  <bruno@clisp.org>
24397
24398         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
24399
24400 2009-08-02  Bruno Haible  <bruno@clisp.org>
24401
24402         Tests for module 'uname'.
24403         * modules/uname-tests: New file.
24404         * tests/test-uname.c: New file.
24405
24406         New module 'uname'.
24407         * lib/uname.c: New file.
24408         * m4/uname.m4: New file.
24409         * modules/uname: New file.
24410         * doc/posix-functions/uname.texi: Mention the new module.
24411
24412 2009-08-02  Bruno Haible  <bruno@clisp.org>
24413
24414         Tests for module 'sys_utsname'.
24415         * modules/sys_utsname-tests: New file.
24416         * tests/test-sys_utsname.c: New file.
24417
24418         New module 'sys_utsname'.
24419         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
24420         * m4/sys_utsname_h.m4: New file.
24421         * modules/sys_utsname: New file.
24422         * doc/posix-headers/sys_utsname.texi: Mention the new module.
24423
24424 2009-08-02  Bruno Haible  <bruno@clisp.org>
24425
24426         Implicitly initialize the sockets library.
24427         * lib/gethostname.c: Include sockets.h.
24428         (rpl_gethostname): Invoke gl_sockets_startup.
24429         * lib/socket.c: Include sockets.h.
24430         (rpl_socket): Invoke gl_sockets_startup.
24431         * modules/gethostname (Depends-on): Add sockets.
24432         * modules/socket (Depends-on): Likewise.
24433         * tests/test-poll.c: Don't include sockets.h.
24434         (main): Don't invoke gl_sockets_startup.
24435         * tests/test-select.c: Don't include sockets.h.
24436         (main): Don't invoke gl_sockets_startup.
24437
24438 2009-08-02  Bruno Haible  <bruno@clisp.org>
24439
24440         Allow multiple calls to gl_sockets_startup.
24441         * lib/sockets.c (initialized_sockets_version): New variable.
24442         (gl_sockets_startup): Do nothing if already called for this or a higher
24443         version.
24444         (gl_sockets_cleanup): Reset initialized_sockets_version.
24445
24446 2009-08-03  Simon Josefsson  <simon@josefsson.org>
24447
24448         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
24449         different project/version.
24450
24451 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
24452             Bruno Haible  <bruno@clisp.org>
24453
24454         Tests for module 'pipe-filter-gi'.
24455         * modules/pipe-filter-gi-tests: New file.
24456         * tests/test-pipe-filter-gi1.sh: New file.
24457         * tests/test-pipe-filter-gi1.c: New file.
24458         * tests/test-pipe-filter-gi2.sh: New file.
24459         * tests/test-pipe-filter-gi2-main.c: New file.
24460         * tests/test-pipe-filter-gi2-child.c: New file.
24461
24462         New module 'pipe-filter-gi'.
24463         * lib/pipe-filter-gi.c: New file.
24464         * modules/pipe-filter-gi: New file.
24465
24466 2009-08-02  Bruno Haible  <bruno@clisp.org>
24467             Paolo Bonzini  <bonzini@gnu.org>
24468
24469         Tests for module 'pipe-filter-ii'.
24470         * modules/pipe-filter-ii-tests: New file.
24471         * tests/test-pipe-filter-ii1.sh: New file.
24472         * tests/test-pipe-filter-ii1.c: New file.
24473         * tests/test-pipe-filter-ii2.sh: New file.
24474         * tests/test-pipe-filter-ii2-main.c: New file.
24475         * tests/test-pipe-filter-ii2-child.c: New file.
24476
24477         New module 'pipe-filter-ii'.
24478         * lib/pipe-filter.h: New file.
24479         * lib/pipe-filter-ii.c: New file.
24480         * lib/pipe-filter-aux.h: New file.
24481         * modules/pipe-filter-ii: New file.
24482
24483 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24484
24485         * lib/gc-libgcrypt.c: Change copyright to FSF.
24486         * lib/gc-gnulib.c: Likewise.
24487
24488 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
24489
24490         * lib/gethostname.c: Include limits.h.
24491
24492 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24493             Bruno Haible  <bruno@clisp.org>
24494
24495         Ensure HOST_NAME_MAX as part of the gethostname module.
24496         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
24497         define also HOST_NAME_MAX.
24498         * tests/test-gethostname.c: Include <limits.h>.
24499         (main): Check also HOST_NAME_MAX.
24500         * doc/posix-headers/limits.texi: Document the mingw problem.
24501
24502 2009-08-02  Bruno Haible  <bruno@clisp.org>
24503
24504         * lib/gethostname.c (gethostname): Fix handling of large len argument.
24505         Add comments.
24506
24507 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24508
24509         * lib/gethostname.c: Add Windows wrapper.
24510         * m4/gethostname.m4: Look for gethostname in -lws2_32.
24511         * modules/gethostname: Depend on sys_socket & errno, for also
24512         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
24513         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
24514
24515 2009-07-31  Jim Meyering  <meyering@redhat.com>
24516
24517         getloadavg: fix symbol name in comment
24518         * lib/getloadavg.c: Correct a typo I introduced when adding
24519         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
24520         Matt Kraai spotted the problem.
24521
24522 2009-07-29  Matt Kraai  <mkraai@beckman.com>
24523
24524         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
24525         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
24526         code also if ! defined N_NAME_POINTER.
24527         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
24528         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
24529         but the n_name member is a 12-byte array.
24530
24531 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
24532
24533         update-copyright: generalize comment handling
24534         * build-aux/update-copyright: Handle copyright statements
24535         within more comment styles.
24536         Document usage.
24537         Report any file with an external copyright holder or parse failure.
24538
24539 2009-07-29  Jim Meyering  <meyering@redhat.com>
24540
24541         mktime: correct setting of REPLACE_MKTIME
24542         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
24543
24544         update-copyright: new module
24545         * modules/update-copyright: New file.
24546         * build-aux/update-copyright: New file.
24547         * MODULES.html.sh (maint+release support): Add update-copyright.
24548
24549 2009-07-27  Bruno Haible  <bruno@clisp.org>
24550
24551         Fix compilation error when <ctime> is used and mktime is replaced.
24552         * lib/time.in.h (mktime): New declaration.
24553         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
24554         REPLACE_MKTIME instead of defining mktime in config.h.
24555         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
24556         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
24557         Reported by Ross McFarland <rwmcfa1@neces.com>.
24558
24559 2009-07-27  Bruno Haible  <bruno@clisp.org>
24560
24561         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
24562         Reported by Matt Kraai <mkraai@beckman.com>.
24563
24564 2009-07-25  Jim Meyering  <meyering@redhat.com>
24565
24566         maint.mk: avoid warnings about missing files
24567         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
24568         diagnostic when .prev-version does not exist.
24569         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
24570         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
24571         nonexistent cfg.mk.
24572         Suggestions from Simon Josefsson.
24573
24574 2009-07-25  Bruno Haible  <bruno@clisp.org>
24575
24576         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
24577         defined as macros. Needed on QNX 6.4.1.
24578         Reported by Matt Kraai <mkraai@beckman.com>.
24579
24580 2009-07-23  Jim Meyering  <meyering@redhat.com>
24581
24582         maint.mk: invoke "make dist" with a working value of XZ_OPT
24583         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
24584
24585 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
24586
24587         Make fseeko.c compile on QNX.
24588         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
24589
24590 2009-07-22  Peter Simons  <simons@cryp.to>
24591
24592         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
24593         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
24594         * lib/md4.h: Likewise.
24595         * lib/md5.h: Likewise.
24596         * lib/sha1.h: Likewise.
24597         * lib/sha256.h: Likewise.
24598         * lib/sha512.h: Likewise.
24599
24600         tests-sha1: don't assign literal string to 'char *' variable
24601         * tests/test-sha1.c (main): Declare locals with "const" to match
24602         attributes of the right hand side.
24603
24604 2009-07-21  Eric Blake  <ebb9@byu.net>
24605
24606         dup2: fix more mingw problems
24607         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
24608         fd to itself.
24609         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24610         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
24611         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
24612         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
24613         care of mingw bugs.
24614
24615 2009-07-21  Jim Meyering  <meyering@redhat.com>
24616
24617         vc-list-files: avoid failure when /bin/sh is dash
24618         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
24619         On some Debian based systems, /bin/sh is a symlink to dash, and running
24620         this command would omit the "/" following each 'tests' prefix:
24621           dash -x build-aux/vc-list-files -C . tests
24622         That is because bash and dash work differently:
24623           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
24624           bash ok
24625           dash odd
24626
24627 2009-07-21  Eric Blake  <ebb9@byu.net>
24628
24629         dup2-tests: test previous patch
24630         * modules/dup2-tests: New file.
24631         * tests/test-dup2.c: Likewise.
24632         * tests/test-open.c (main): Avoid unspecified behavior.
24633         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
24634         test.
24635
24636         dup2: work around mingw and cygwin 1.5 bug
24637         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
24638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24639         * modules/unistd (Makefile.am): Substitute it.
24640         * lib/unistd.in.h (dup2): Declare the replacement.
24641         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
24642         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
24643         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
24644         * modules/execute (Depends-on): Add dup2.
24645         * modules/fseterr (Depends-on): Likewise.
24646         * modules/pipe (Depends-on): Likewise.
24647         * modules/posix_spawn-internal (Depends-on): Likewise.
24648
24649 2009-07-21  Bruno Haible  <bruno@clisp.org>
24650
24651         * modules/.gitattributes: New file.
24652
24653 2009-07-20  Bruno Haible  <bruno@clisp.org>
24654
24655         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
24656         (main): Use it.
24657
24658 2009-07-20  Eric Blake  <ebb9@byu.net>
24659
24660         test-pipe: make a bit more robust.
24661         * tests/test-pipe.c (myerr): Allow error messages regardless of
24662         what we do to stderr.
24663         (test_pipe): Rearrange to avoid deadlock.
24664         (child_main): Try a larger read, to ensure we avoided deadlock.
24665         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
24666         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
24667         if misused.
24668
24669 2009-07-19  Jim Meyering  <meyering@redhat.com>
24670
24671         fts: avoid false-positive cycle-detection
24672         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
24673         for each new command line argument.
24674
24675 2009-07-19  Bruno Haible  <bruno@clisp.org>
24676
24677         Fix build error on mingw with the modules sys_select and unistd.
24678         * modules/acl-tests (Depends-on): Add close.
24679         * modules/binary-io-tests (Depends-on): Likewise.
24680         * modules/closein-tests (Depends-on): Likewise.
24681         * modules/flock-tests (Depends-on): Likewise.
24682         * modules/fsync-tests (Depends-on): Likewise.
24683         * modules/lseek-tests (Depends-on): Likewise.
24684         * modules/pipe-tests (Depends-on): Likewise.
24685         * modules/posix_spawn-tests (Depends-on): Likewise.
24686         * modules/posix_spawnp-tests (Depends-on): Likewise.
24687         * modules/stat-time-tests (Depends-on): Likewise.
24688         * modules/yesno-tests (Depends-on): Likewise.
24689
24690 2009-07-19  Bruno Haible  <bruno@clisp.org>
24691
24692         Unify conditionals.
24693         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
24694         macros, not at the compiler macros.
24695         * lib/pipe.c: Likewise.
24696         * lib/execute.c: Likewise.
24697         * lib/spawni.c: Likewise.
24698
24699 2009-07-19  Bruno Haible  <bruno@clisp.org>
24700
24701         Fix handling of closed stdin/stdout/stderr on mingw.
24702         * lib/w32spawn.h: Include unistd.h.
24703         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
24704         file descriptor with O_NOINHERIT flag.
24705         (fd_safer_noinherit): New function, based on fd-safer.c.
24706         (dup_safer_noinherit): New function, based on dup-safer.c.
24707         (undup_safer_noinherit): New function.
24708         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
24709         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
24710         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
24711         instead of fd_safer.
24712         * tests/test-pipe.c: Include <windows.h>.
24713         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
24714
24715         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
24716         from main.
24717         (test_pipe): Pass an extra argument for disambiguation.
24718         (main): Invoke parent_main or child_main.
24719
24720         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
24721         consistently.
24722
24723 2009-07-18  Eric Blake  <ebb9@byu.net>
24724
24725         test-pipe: fix mingw build
24726         * tests/test-pipe.c (main): Avoid fcntl on mingw.
24727
24728 2009-07-18  Bruno Haible  <bruno@clisp.org>
24729
24730         * modules/pipe-tests (Makefile.am): Fix typo.
24731
24732 2009-07-18  Eric Blake  <ebb9@byu.net>
24733
24734         error: fix mingw build
24735         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
24736         Reported by Bruno Haible.
24737
24738         error: avoid undefined use of stdout
24739         * lib/error.c (error, error_at_line): Check that fd 1 is open
24740         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
24741         is handling faults and the close_stdout module wants to report the
24742         detection of closed stdout as an error.
24743
24744 2009-07-17  Eric Blake  <ebb9@byu.net>
24745
24746         pipe: be robust in face of closed fds
24747         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
24748         should cause child to misbehave.
24749         * modules/pipe-tests: New module.
24750         * tests/test-pipe.c: New file.
24751         * tests/test-pipe.sh: New file.
24752         Reported by Akim Demaille.
24753
24754 2009-07-14  Bruno Haible  <bruno@clisp.org>
24755
24756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
24757         Reported by anonymous kc.
24758
24759 2009-07-07  Jim Meyering  <meyering@redhat.com>
24760
24761         maint.mk: don't look for translatable strings in *.m4 or *.mk
24762         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
24763         when searching for translatable strings.
24764
24765 2009-07-05  Jim Meyering  <meyering@redhat.com>
24766
24767         remove superfluous parentheses in STREQ definition
24768         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
24769         * lib/getugroups.c (STREQ): Likewise.
24770         * lib/fnmatch.c (STREQ): Likewise.
24771         Spotted by Bruno Haible.
24772
24773 2009-07-04  Jim Meyering  <meyering@redhat.com>
24774
24775         argv-iter: new module
24776         * MODULES.html.sh: Add argv-iter.
24777         * lib/argv-iter.c, lib/argv-iter.h: New files.
24778         * modules/argv-iter: New file.
24779         * modules/argv-iter-tests: New file.
24780         * tests/test-argv-iter.c: Test it.
24781
24782 2009-07-04  Bruno Haible  <bruno@clisp.org>
24783
24784         Fix assertion.
24785         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
24786         contains more exact copies of a given entry than file2, leave the extra
24787         copies unpaired rather than aborting.
24788         Reported by Eric Blake.
24789
24790 2009-07-02  Bruno Haible  <bruno@clisp.org>
24791
24792         Speedup git-merge-changelog for git cherry-pick.
24793         * lib/git-merge-changelog.c (struct entries_mapping): New type.
24794         (entries_mapping_get): New function, extracted from compute_mapping.
24795         (entries_mapping_reverse_get): New function.
24796         (compute_mapping): Add a 'full' argument. Return the result in a
24797         'struct entries_mapping'.
24798         (main): Update. Access the mappings through entries_mapping_get.
24799         Reported by Eric Blake.
24800
24801 2009-07-02  Bruno Haible  <bruno@clisp.org>
24802
24803         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
24804         best_i.
24805
24806 2009-07-02  Bruno Haible  <bruno@clisp.org>
24807
24808         Speed up approximate search for matching ChangeLog entries.
24809         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
24810         argument. Call fstrcmp_bounded instead of fstrcmp.
24811         (compute_mapping, try_split_merged_entry, main): Update callers.
24812
24813 2009-07-02  Bruno Haible  <bruno@clisp.org>
24814
24815         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
24816
24817 2009-06-30  Bruno Haible  <bruno@clisp.org>
24818
24819         Reduce the number of uc_is_cased calls.
24820         * lib/unicase.h (casing_suffix_context_t): Add
24821         'first_char_except_ignorable' field.
24822         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
24823         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
24824         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
24825         Update initializer.
24826         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
24827         case-ignorable characters.
24828         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
24829         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
24830         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
24831         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
24832         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
24833
24834 2009-06-30  Bruno Haible  <bruno@clisp.org>
24835
24836         Tests for module 'unicase/ignorable'.
24837         * modules/unicase/ignorable-tests: New file.
24838         * tests/unicase/test-ignorable.c: New file, generated by
24839         gen-uni-tables.
24840
24841         Tests for module 'unicase/cased'.
24842         * modules/unicase/cased-tests: New file.
24843         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
24844         * tests/unicase/test-predicate-part1.h: New file, derived from
24845         tests/unictype/test-predicate-part1.h.
24846         * tests/unicase/test-predicate-part2.h: New file, same as
24847         tests/unictype/test-predicate-part2.h.
24848
24849         Fix evaluation of "Before C" condition of FINAL_SIGMA.
24850         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
24851         (output_casing_properties): New function.
24852         (main): Call it.
24853         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
24854         * lib/unicase/cased.c: Include unictype/bitmap.h.
24855         (uc_is_cased): Define through a bitmap lookup.
24856         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
24857         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
24858         (uc_is_case_ignorable): Define through a bitmap lookup.
24859         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
24860         lib/unictype/bitmap.h.
24861         (Depends-on): Add inline. Clean up.
24862         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
24863         lib/unictype/bitmap.h.
24864         (Depends-on): Add inline. Clean up.
24865         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
24866         recognition.
24867         * tests/unicase/test-u16-tolower.c (main): Likewise.
24868         * tests/unicase/test-u32-tolower.c (main): Likewise.
24869
24870 2009-06-30  Bruno Haible  <bruno@clisp.org>
24871
24872         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
24873         * lib/unicase/u16-casemap.c: Likewise.
24874         * lib/unicase/u32-casemap.c: Likewise.
24875
24876 2009-06-29  Bruno Haible  <bruno@clisp.org>
24877
24878         Define u32_casefold as a wrapper around u32_ct_casefold.
24879         * lib/unicase/u32-casefold.c: Update.
24880         * modules/unicase/u32-casefold (Depends-on): Add
24881         unicase/u32-ct-casefold, unicase/empty-prefix-context,
24882         unicase/empty-suffix-context. Clean up.
24883
24884         Define u16_casefold as a wrapper around u16_ct_casefold.
24885         * lib/unicase/u16-casefold.c: Update.
24886         * modules/unicase/u16-casefold (Depends-on): Add
24887         unicase/u16-ct-casefold, unicase/empty-prefix-context,
24888         unicase/empty-suffix-context. Clean up.
24889
24890         Define u8_casefold as a wrapper around u8_ct_casefold.
24891         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
24892         * lib/unicase/u8-casefold.c: Update.
24893         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
24894         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24895
24896         Define u32_totitle as a wrapper around u32_ct_totitle.
24897         * lib/unicase/u32-totitle.c: Update.
24898         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
24899         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24900
24901         Define u16_totitle as a wrapper around u16_ct_totitle.
24902         * lib/unicase/u16-totitle.c: Update.
24903         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
24904         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24905
24906         Define u8_totitle as a wrapper around u8_ct_totitle.
24907         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
24908         functions.
24909         (FUNC): Delegate to U_CT_TOTITLE.
24910         * lib/unicase/u8-totitle.c: Update.
24911         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
24912         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24913
24914         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
24915         invocation.
24916         * modules/unicase/u32-tolower (Depends-on): Add
24917         unicase/empty-prefix-context, unicase/empty-suffix-context.
24918
24919         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
24920         invocation.
24921         * modules/unicase/u16-tolower (Depends-on): Add
24922         unicase/empty-prefix-context, unicase/empty-suffix-context.
24923
24924         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
24925         * modules/unicase/u8-tolower (Depends-on): Add
24926         unicase/empty-prefix-context, unicase/empty-suffix-context.
24927
24928         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
24929         invocation.
24930         * modules/unicase/u32-toupper (Depends-on): Add
24931         unicase/empty-prefix-context, unicase/empty-suffix-context.
24932
24933         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
24934         invocation.
24935         * modules/unicase/u16-toupper (Depends-on): Add
24936         unicase/empty-prefix-context, unicase/empty-suffix-context.
24937
24938         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
24939         * modules/unicase/u8-toupper (Depends-on): Add
24940         unicase/empty-prefix-context, unicase/empty-suffix-context.
24941
24942         New module 'unicase/u32-ct-casefold'.
24943         * lib/unicase/u32-ct-casefold.c: New file.
24944         * modules/unicase/u32-ct-casefold: New file.
24945
24946         New module 'unicase/u16-ct-casefold'.
24947         * lib/unicase/u16-ct-casefold.c: New file.
24948         * modules/unicase/u16-ct-casefold: New file.
24949
24950         New module 'unicase/u8-ct-casefold'.
24951         * lib/unicase/u8-ct-casefold.c: New file.
24952         * lib/unicase/u-ct-casefold.h: New file, derived from
24953         lib/unicase/u-casefold.h.
24954         * modules/unicase/u8-ct-casefold: New file.
24955
24956         New module 'unicase/u32-ct-totitle'.
24957         * lib/unicase/u32-ct-totitle.c: New file.
24958         * modules/unicase/u32-ct-totitle: New file.
24959
24960         New module 'unicase/u16-ct-totitle'.
24961         * lib/unicase/u16-ct-totitle.c: New file.
24962         * modules/unicase/u16-ct-totitle: New file.
24963
24964         New module 'unicase/u8-ct-totitle'.
24965         * lib/unicase/u8-ct-totitle.c: New file.
24966         * lib/unicase/u-ct-totitle.h: New file, derived from
24967         lib/unicase/u-totitle.h.
24968         * modules/unicase/u8-ct-totitle: New file.
24969
24970         New module 'unicase/u32-ct-tolower'.
24971         * lib/unicase/u32-ct-tolower.c: New file.
24972         * modules/unicase/u32-ct-tolower: New file.
24973
24974         New module 'unicase/u16-ct-tolower'.
24975         * lib/unicase/u16-ct-tolower.c: New file.
24976         * modules/unicase/u16-ct-tolower: New file.
24977
24978         New module 'unicase/u8-ct-tolower'.
24979         * lib/unicase/u8-ct-tolower.c: New file.
24980         * modules/unicase/u8-ct-tolower: New file.
24981
24982         New module 'unicase/u32-ct-toupper'.
24983         * lib/unicase/u32-ct-toupper.c: New file.
24984         * modules/unicase/u32-ct-toupper: New file.
24985
24986         New module 'unicase/u16-ct-toupper'.
24987         * lib/unicase/u16-ct-toupper.c: New file.
24988         * modules/unicase/u16-ct-toupper: New file.
24989
24990         New module 'unicase/u8-ct-toupper'.
24991         * lib/unicase/u8-ct-toupper.c: New file.
24992         * modules/unicase/u8-ct-toupper: New file.
24993
24994         Add context arguments to u*_casemap functions.
24995         * lib/unicase/unicasemap.h: Include unicase.h.
24996         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
24997         suffix_context arguments.
24998         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
24999         functions.
25000         (FUNC): Add prefix_context and suffix_context arguments. Use
25001         uc_is_cased and uc_is_case_ignorable.
25002         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
25003         * lib/unicase/u16-casemap.c: Likewise.
25004         * lib/unicase/u32-casemap.c: Likewise.
25005         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
25006         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25007         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
25008         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25009         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
25010         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25011
25012         New module 'unicase/u32-suffix-context'.
25013         * lib/unicase/u32-suffix-context.c: New file.
25014         * modules/unicase/u32-suffix-context: New file.
25015
25016         New module 'unicase/u16-suffix-context'.
25017         * lib/unicase/u16-suffix-context.c: New file.
25018         * modules/unicase/u16-suffix-context: New file.
25019
25020         New module 'unicase/u8-suffix-context'.
25021         * lib/unicase/u8-suffix-context.c: New file.
25022         * lib/unicase/u-suffix-context.h: New file.
25023         * modules/unicase/u8-suffix-context: New file.
25024
25025         New module 'unicase/empty-suffix-context'.
25026         * lib/unicase/empty-suffix-context.c: New file.
25027         * modules/unicase/empty-suffix-context: New file.
25028
25029         New module 'unicase/u32-prefix-context'.
25030         * lib/unicase/u32-prefix-context.c: New file.
25031         * modules/unicase/u32-prefix-context: New file.
25032
25033         New module 'unicase/u16-prefix-context'.
25034         * lib/unicase/u16-prefix-context.c: New file.
25035         * modules/unicase/u16-prefix-context: New file.
25036
25037         New module 'unicase/u8-prefix-context'.
25038         * lib/unicase/u8-prefix-context.c: New file.
25039         * lib/unicase/u-prefix-context.h: New file.
25040         * lib/unicase/context.h: New file.
25041         * modules/unicase/u8-prefix-context: New file.
25042
25043         New module 'unicase/empty-prefix-context'.
25044         * lib/unicase/empty-prefix-context.c: New file.
25045         * modules/unicase/empty-prefix-context: New file.
25046
25047         New module 'unicase/ignorable'.
25048         * lib/unicase/ignorable.c: New file.
25049         * modules/unicase/ignorable: New file.
25050
25051         New module 'unicase/cased'.
25052         * lib/unicase/caseprop.h: New file.
25053         * lib/unicase/cased.c: New file.
25054         * modules/unicase/cased: New file.
25055
25056         New functions for case mapping of substrings.
25057         * lib/unicase.h (casing_prefix_context_t): New type.
25058         (unicase_empty_prefix_context): New variable.
25059         (u8_casing_prefix_context, u16_casing_prefix_context,
25060         u32_casing_prefix_context, u8_casing_prefixes_context,
25061         u16_casing_prefixes_context, u32_casing_prefixes_context): New
25062         declarations.
25063         (casing_suffix_context_t): New type.
25064         (unicase_empty_suffix_context): New variable.
25065         (u8_casing_suffix_context, u16_casing_suffix_context,
25066         u32_casing_suffix_context, u8_casing_suffixes_context,
25067         u16_casing_suffixes_context, u32_casing_suffixes_context,
25068         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
25069         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
25070         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
25071         declarations.
25072
25073 2009-06-28  Jim Meyering  <meyering@redhat.com>
25074
25075         boostrap: indent only with spaces
25076         * build-aux/bootstrap: Indent only with spaces, never TABs.
25077
25078         bootstrap: split long lines
25079         * build-aux/bootstrap: Keep line length < 80.
25080
25081         bootstrap: sync from coreutils
25082         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
25083         just as autoreconf does.  Verify a list of prerequisite
25084         package-name,version-number pairs if defined in bootstrap.conf.
25085         Refer to README-prereq, if prerequisites are not satisfied.
25086
25087 2009-06-27  Eric Blake  <ebb9@byu.net>
25088
25089         tests: add test for bogus NULL definition
25090         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
25091         * tests/test-stdlib.c: Likewise.
25092         * tests/test-string.c: Likewise.
25093         * tests/test-locale.c: Likewise.
25094         * tests/test-unistd.c: Likewise.
25095         * modules/stdio-tests (Depends-on): Add verify.
25096         * modules/stdlib-tests (Depends-on): Likewise.
25097         * modules/string-tests (Depends-on): Likewise.
25098         * modules/locale-tests (Depends-on): Likewise.
25099         * modules/unistd-tests (Depends-on): Likewise.
25100
25101 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
25102
25103         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
25104         self-explaining comment.
25105         * m4/selinux-selinux-h: Update serial.
25106         (gl_LIBSELINUX): New macro, adding a warning for missing development
25107         packages to code extracted from...
25108         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
25109         Add warning for missing development packages here, too.
25110
25111 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
25112
25113         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
25114
25115 2009-06-25  Eric Blake  <ebb9@byu.net>
25116
25117         version-etc: fix regression
25118         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
25119         gcc.
25120         (version_etc): Use it, to catch bugs with trailing NULL.
25121         * lib/version-etc.c (version_etc_arn): Delete unused argument.
25122         (version_etc_va): Fix logic bug.
25123         * modules/version-etc-tests: Add test.
25124         * tests/test-version-etc.c: New file.
25125         * tests/test-version-etc.sh: Likewise.
25126
25127 2009-06-25  Sam Steingold  <sds@gnu.org>
25128
25129         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
25130         mbtowc declaration.
25131
25132 2009-06-25  Eric Blake  <ebb9@byu.net>
25133
25134         fpurge: migrate into <stdio.h>
25135         * lib/fpurge.h: Delete...
25136         * lib/stdio.in.h (fpurge): ...and declare here, instead.
25137         * lib/fpurge.c (fpurge): Change declaring header.
25138         * modules/fpurge (Files): Drop deleted file.
25139         (Depends-on): Add stdio.
25140         (configure.ac): Set witness.
25141         * modules/stdio (Makefile.am): Support fpurge macros.
25142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25143         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
25144         * lib/fflush.c: Update client.
25145         * tests/test-fpurge.c: Likewise.
25146         * NEWS: Mention the change.
25147
25148 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25149
25150         * lib/argp-version-etc.c (program_authors): Add const
25151         qualifier.
25152         * lib/version-etc.c: Fix typos in the comments.
25153         * modules/argp-version-etc: Depends on version-etc.
25154
25155 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25156
25157         argp-version-etc: new module.
25158
25159         * lib/argp-version-etc.c: New file.
25160         * lib/argp-version-etc.h: New file.
25161         * modules/argp-version-etc: New file.
25162         * modules/argp-version-etc-tests: New file.
25163         * tests/test-argp-version-etc.c: New test.
25164         * tests/test-argp-version-etc-1.sh: New test.
25165
25166 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25167
25168         Provide additional interfaces and documentation for version-etc
25169         module.
25170
25171         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
25172         interfaces.
25173         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
25174         prototypes.
25175
25176 2009-06-24  Bruno Haible  <bruno@clisp.org>
25177
25178         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
25179         HAVE_LIB${NAME} macro.
25180         Reported by Sam Steingold <sds@gnu.org>.
25181
25182 2009-06-23  Simon Josefsson  <simon@josefsson.org>
25183
25184         * modules/hash-tests (test_hash_LDADD): Link to libintl when
25185         needed.
25186
25187 2009-06-21  Bruno Haible  <bruno@clisp.org>
25188
25189         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
25190         work.
25191         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
25192         together with LIB${NAME}, LTLIB${NAME}.
25193         Reported by Sam Steingold <sds@gnu.org>.
25194
25195 2009-06-20  Jim Meyering  <meyering@redhat.com>
25196
25197         tests: make sc_require_test_exit_idiom more generic
25198         * top/maint.mk (Exit_witness_file): New overridable variable.
25199         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
25200         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
25201
25202 2009-06-19  Jim Meyering  <meyering@redhat.com>
25203
25204         hash: reverse order of src/dst parameters in an internal interface
25205         * lib/hash.c (transfer_entries): Reverse order of parameters to
25206         put DST before SRC.  Adjust callers.
25207
25208         tests: test-hash: avoid wholesale duplication
25209         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
25210         Instead, use a loop and add a single conditional.
25211
25212         tests: test-hash: allow seed selection via a command line argument
25213         * tests/test-hash.c (get_seed): New function.
25214         (main): Use it.
25215
25216 2009-06-19  Eric Blake  <ebb9@byu.net>
25217
25218         hash: avoid memory leak on allocation failure
25219         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
25220         failure.  Factor repeated algorithm...
25221         (transfer_entries): ...into new helper routine.
25222         (hash_delete): React to hash_rehash return value.
25223
25224         hash: reduce memory pressure in hash_rehash no-op case
25225         * lib/hash.c (next_prime): Avoid overflow.
25226         (hash_initialize): Factor bucket size computation...
25227         (compute_bucket_size): ...into new helper function.
25228         (hash_rehash): Use new function and open coding to reduce memory
25229         pressure, and avoid a memory leak in USE_OBSTACK code.
25230         Reported by Jim Meyering.
25231
25232 2009-06-18  Eric Blake  <ebb9@byu.net>
25233
25234         hash: make rotation more obvious
25235         * modules/hash (Depends-on): Add bitrotate and stdint.
25236         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
25237         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
25238         (SIZE_MAX): Rely on headers for definition.
25239         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
25240         (raw_hasher): Use rotr_sz.
25241         Suggested by Jim Meyering.
25242
25243         hash: fix memory leak in last patch
25244         * lib/hash.c (hash_rehash): Avoid memory leak.
25245
25246         hash: avoid no-op rehashing
25247         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
25248
25249         hash: provide default callback functions
25250         * lib/hash.c (raw_hasher, raw_comparator): New functions.
25251         (hash_initialize): Use them as defaults.
25252         * tests/test-hash.c (main): Test this.
25253
25254         hash: minor optimization
25255         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
25256         when possible.
25257         (hash_initialize): Document this promise.
25258         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
25259         * tests/test-hash.c (hash_compare_strings): Test this.
25260
25261 2009-06-18  Bruno Haible  <bruno@clisp.org>
25262
25263         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
25264         going to be replaced anyway.
25265
25266 2009-06-18  Bruno Haible  <bruno@clisp.org>
25267
25268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
25269         in one place.
25270         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
25271         be replaced anyway.
25272
25273 2009-06-18  Eric Blake  <ebb9@byu.net>
25274
25275         hash: check for resize before insertion
25276         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
25277         threshold before insertion, so that a pathological hash_rehash
25278         that fills every bucket can still trigger another rehash.
25279
25280 2009-06-18  Jim Meyering  <meyering@redhat.com>
25281
25282         hash-tests: add a loop around the small tests
25283         * tests/test-hash.c (main): Repeat small tests with selected
25284         small initial table sizes.
25285
25286 2009-06-17  Eric Blake  <ebb9@byu.net>
25287
25288         hash: minor cleanups
25289         * lib/hash.h (hash_entry): Make opaque, by moving...
25290         * lib/hash.c (hash_entry): ...here.
25291         (hash_insert): Clarify restrictions on what can be inserted.
25292         (hash_get_next): Clarify when it is safe to remove an element
25293         during traversal.
25294         (check_tuning): Skip verification when tuning is known safe.
25295         (hash_initialize): Clarify restrictions on tuning.
25296
25297 2009-06-17  Jim Meyering  <jim@meyering.net>
25298         and Eric Blake  <ebb9@byu.net>
25299
25300         hash-tests: new module
25301         * modules/hash-tests: New file.
25302         * tests/test-hash.c: New file.
25303
25304 2009-06-17  Eric Blake  <ebb9@byu.net>
25305
25306         strstr-simple: document new module
25307         * MODULES.html.sh: Document new module.
25308
25309         strstr, strcasestr: replace on platforms with broken memchr
25310         * modules/strstr: Split into...
25311         * modules/strstr-simple: ...new module that does not care about
25312         performance, but does care about glibc bug.
25313         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
25314         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
25315         if platform memchr is broken, per Debian bug 521737.
25316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
25317         memchr.
25318         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
25319         * doc/posix-functions/strstr.texi (strstr): Document the fix.
25320         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25321         * modules/mountlist (Depends-on): Add strstr-simple.
25322         * modules/gen-uni-tables (Depends-on): Likewise.
25323         * modules/argz (Depends-on): Add strstr.
25324
25325 2009-06-17  Bruno Haible  <bruno@clisp.org>
25326
25327         * modules/posix_spawn-internal (Depends-on): Add errno.
25328
25329 2009-06-17  Bruno Haible  <bruno@clisp.org>
25330
25331         Define missing ESTALE on Interix 3.5.
25332         * lib/errno.in.h (ESTALE): Assign a value if missing.
25333         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
25334         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
25335         missing.
25336         * doc/posix-headers/errno.texi: Mention the Interix bug.
25337         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
25338
25339 2009-06-15  Eric Blake  <ebb9@byu.net>
25340
25341         memchr, memchr2: add valgrind exception
25342         * lib/memchr.valgrind: New file.
25343         * lib/memchr2.valgrind: New file.
25344         * modules/memchr (Files): Distribute valgrind file.
25345         * modules/memchr2 (Files): Likewise.
25346
25347         docs: memchr is no longer obsolete
25348         * MODULES.html.sh: Move memchr from obsolete to string.h section.
25349         * lib/string.in.h (memchr): Simplify logic.
25350
25351 2009-06-14  Jim Meyering  <meyering@redhat.com>
25352
25353         link-follow: fix the "checking..." message to not mention trailing slash
25354         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
25355         never considered trailing slashes.
25356
25357 2009-06-14  Bruno Haible  <bruno@clisp.org>
25358
25359         * m4/memchr.m4: Mention also the bug on IA-64.
25360         * doc/posix-functions/memchr.texi: Likewise.
25361
25362 2009-06-12  Eric Blake  <ebb9@byu.net>
25363
25364         memchr: detect broken x86_64 and alpha implementations
25365         * modules/memchr-tests (Depends-on): Move mmap detection...
25366         * modules/memchr (Depends-on): ...here.
25367         (configure.ac): Set indicator.
25368         * lib/string.in.h (memchr): Declare replacement.
25369         * modules/string (Makefile.am): Trigger replacement.
25370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25371         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
25372         bugs.
25373         * doc/posix-functions/memchr.texi (memchr): Document the bug.
25374         * modules/getpagesize (License): Relax license.
25375
25376 2009-06-11  Bruno Haible  <bruno@clisp.org>
25377
25378         * lib/idpriv.h: Add more references.
25379
25380 2009-06-08  Bruno Haible  <bruno@clisp.org>
25381
25382         Tests for module 'idpriv-droptemp'.
25383         * modules/idpriv-droptemp-tests: New file.
25384         * tests/test-idpriv-droptemp.sh: New file.
25385         * tests/test-idpriv-droptemp.su.sh: New file.
25386         * tests/test-idpriv-droptemp.c: New file.
25387
25388         New module 'idpriv-droptemp'.
25389         * lib/idpriv-droptemp.c: New file.
25390         * modules/idpriv-droptemp: New file.
25391
25392 2009-06-08  Bruno Haible  <bruno@clisp.org>
25393
25394         Tests for module 'idpriv-drop'.
25395         * modules/idpriv-drop-tests: New file.
25396         * tests/test-idpriv-drop.sh: New file.
25397         * tests/test-idpriv-drop.su.sh: New file.
25398         * tests/test-idpriv-drop.c: New file.
25399
25400         New module 'idpriv-drop'.
25401         * lib/idpriv.h: New file.
25402         * lib-idpriv-drop.c: New file.
25403         * m4/idpriv.m4: New file.
25404         * modules/idpriv-drop: New file.
25405
25406 2009-06-08  Bruno Haible  <bruno@clisp.org>
25407
25408         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
25409         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25410         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25411         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25412         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25413         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25414         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25415
25416 2009-06-08  Eric Blake  <ebb9@byu.net>
25417
25418         test-strstr: use memory fence, when possible
25419         * tests/test-strstr.c (main): Use memory fence, in order to be
25420         more likely to trigger Debian bug 521737.
25421         * modules/strstr-tests (Files): Pull in additional files.
25422
25423         memchr: no longer obsolete, for wider field testing
25424         * modules/memchr (Status, Notice): Delete, this module is no
25425         longer obsolete.
25426         * modules/vasnprintf (Depends-on): Add memchr.
25427
25428 2009-06-07  Jim Meyering  <meyering@redhat.com>
25429
25430         hash: declare some functions with the warn_unused_result attribute
25431         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
25432
25433 2009-06-07  Bruno Haible  <bruno@clisp.org>
25434
25435         * tests/test-alignof.c: Don't test int64_t if it does not exist.
25436         Reported by Eric Blake.
25437
25438 2009-06-06  Eric Blake  <ebb9@byu.net>
25439
25440         test-alignof: fix typo with long double
25441         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
25442         compiler error.
25443
25444 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
25445
25446         Escape non-texinfo { and }s.
25447         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
25448         markup error.
25449
25450 2009-06-04  Jim Meyering  <meyering@redhat.com>
25451
25452         gitlog-to-changelog: don't infloop on an empty commit log
25453         * build-aux/gitlog-to-changelog: Warn about an empty log message.
25454         Reported by Boris Petersen <transacid@centerim.org>.
25455
25456 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
25457
25458         version-etc: extend for packagers
25459         Add three new configure options, intended for packagers:
25460           --with-packager="packager name"
25461           --with-packager-version="packager-specific version"
25462           --with-packager-bug-reports="packager bug reporting"
25463         An example with coreutils:
25464           $ ./configure \
25465             --with-packager=Gentoo \
25466             --with-packager-bug-report=http://bugs.gentoo.org/ \
25467             --with-packager-version="patchset 1.6"
25468           $ ./src/ls --version | head -n2
25469           ls (GNU coreutils) 7.1-dirty
25470           Packaged by Gentoo (patchset 1.6)
25471         Note that the bug reporting info via --help doesn't show up because
25472         coreutils uses its own custom emit_bug_reporting_address() implementation
25473         in src/system.h.  If it didn't, it'd look like:
25474           $ ./src/ls --help | tail -n4
25475           Report bugs to <bug-coreutils@gnu.org>.
25476           Report Gentoo bugs to <http://bugs.gentoo.org/>.
25477           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
25478           General help using GNU software: <http://www.gnu.org/gethelp/>.
25479         * lib/version-etc.c: Print new information, if provided.
25480         * m4/version-etc.m4: New file.
25481         * modules/version-etc (Files): Add m4/version-etc.m4.
25482         (configure.ac): Add gl_VERSION_ETC.
25483
25484 2009-05-31  Bruno Haible  <bruno@clisp.org>
25485
25486         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
25487         and 'int64_t'.
25488         * modules/alignof-tests (Dependencies): Add stdint.
25489         Reported by Eric Blake.
25490
25491 2009-05-31  Bruno Haible  <bruno@clisp.org>
25492
25493         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
25494         restriction due to compiler bugs.
25495         Reported by Eric Blake.
25496
25497 2009-05-31  Simon Josefsson  <simon@josefsson.org>
25498             Bruno Haible  <bruno@clisp.org>
25499
25500         Fix test-alignof failure.
25501         * lib/alignof.h (alignof_slot): New macro.
25502         (alignof_type): New macro, with the same semantics as the previous
25503         'alignof'.
25504         (alignof): Alias to alignof_slot.
25505         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
25506         check that the results are usable as constant expressions.
25507
25508 2009-05-31  Bruno Haible  <bruno@clisp.org>
25509
25510         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
25511         * tests/test-memchr.c (main): Check that memchr does not read past the
25512         first occurrence of the byte.
25513         * tests/test-strstr.c (main): Update comment.
25514         Suggested by Eric Blake.
25515
25516 2009-05-30  Bruno Haible  <bruno@clisp.org>
25517
25518         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
25519         detail how to use dumpbin.
25520         Reported by David Byron <dbyron@dbyron.com>.
25521
25522 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25523
25524         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
25525
25526 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25527
25528         * m4/manywarnings.m4: Add GCC 4.4 warnings.
25529
25530 2009-05-28  Bruno Haible  <bruno@clisp.org>
25531
25532         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
25533         build-aux/ files.
25534
25535 2009-05-28  Simon Josefsson  <simon@josefsson.org>
25536
25537         * gnulib-tool (func_import): Transform license on build-aux/ files too.
25538
25539 2009-05-27  Simon Josefsson  <simon@josefsson.org>
25540
25541         * gnulib-tool (sed_transform_main_lib_file)
25542         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
25543         regexps.
25544
25545 2009-05-26  Simon Josefsson  <simon@josefsson.org>
25546
25547         * tests/test-strstr.c: Add another self-test.
25548         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
25549         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
25550
25551 2009-05-23  Bruno Haible  <bruno@clisp.org>
25552
25553         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
25554         change.
25555
25556 2009-05-21  Bruno Haible  <bruno@clisp.org>
25557
25558         Simplify use of mode_t varargs.
25559         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
25560         uses 'mode_t' or 'int'.
25561         * lib/openat.c (openat): Likewise.
25562         * lib/open-safer.c (open_safer): Likewise.
25563         * m4/mode_t.m4: New file.
25564         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
25565         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
25566         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
25567         * modules/open (Files): Add m4/mode_t.m4.
25568         * modules/openat (Files): Likewise.
25569         * modules/fcntl-safer (Files): Likewise.
25570         Suggested by Eric Blake.
25571
25572 2009-05-21  Pádraig Brady  <P@draigbrady.com>
25573
25574         * doc/glibc-functions/fallocate.texi: New file.
25575         * doc/gnulib.texi: Include it.
25576
25577 2009-05-21  Eric Blake  <ebb9@byu.net>
25578             Bruno Haible  <bruno@clisp.org>
25579
25580         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
25581         invocations.
25582         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25583
25584 2009-05-21  Eric Blake  <ebb9@byu.net>
25585             Bruno Haible  <bruno@clisp.org>
25586
25587         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
25588         include_next. Fix of 2008-11-20 commit.
25589         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
25590         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
25591         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
25592         NEXT_MATH_H.
25593         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
25594         instead of NEXT_MATH_H.
25595
25596 2009-05-21  Bruno Haible  <bruno@clisp.org>
25597
25598         Avoid redefinition warnings for SIZE_MAX.
25599         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
25600         Reported by Simon Josefsson.
25601
25602 2009-05-21  Bruno Haible  <bruno@clisp.org>
25603
25604         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
25605         AC_CACHE_VAL.
25606
25607 2009-05-20  Bruno Haible  <bruno@clisp.org>
25608
25609         Make zeroptr.h work on mingw.
25610         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
25611         mprotect.
25612         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
25613         * modules/memchr2-tests (configure.ac): Likewise.
25614         * modules/memcmp-tests (configure.ac): Likewise.
25615         * modules/memmem-tests (configure.ac): Likewise.
25616         * modules/memrchr-tests (configure.ac): Likewise.
25617         Reported by Simon Josefsson.
25618
25619 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25620
25621         * tests/test-glob.c: Include string.h for strcmp prototype.
25622
25623 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25624
25625         * modules/getdelim (Depends-on): Add explicit stdint, although it
25626         was implicitly already pulled in via realloc-posix.
25627         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
25628
25629 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25630
25631         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
25632         G. Christensen" <tgc@jupiterrise.com>.
25633         * m4/sys_socket_h.m4: Check for sa_family_t.
25634         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
25635         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
25636         * tests/test-sys_socket.c: Check that sa_family_t works.
25637
25638 2009-05-18  Eric Blake  <ebb9@byu.net>
25639
25640         maint.mk: allow gnulib_dir in VPATH build
25641         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
25642
25643 2009-05-15  Jim Meyering  <meyering@redhat.com>
25644
25645         maint.mk: Give gnulib_dir a default definition.
25646         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
25647         Thus, most packages no longer need to specify this variable in cfg.mk
25648
25649 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
25650
25651         rename.m4: fix typos that would make non-mingw cross-configure fail
25652         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
25653
25654 2009-05-13  Eric Blake  <ebb9@byu.net>
25655
25656         mmap-anon: avoid out-of-order autoconf expansion
25657         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
25658         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
25659         * modules/memchr-tests (Depends-on): Add extensions.
25660         * modules/memchr2-tests (Depends-on): Add extensions.
25661         * modules/memcmp-tests (Depends-on): Add extensions.
25662         * modules/memmem-tests (Depends-on): Add extensions.
25663         * modules/memrchr-tests (Depends-on): Add extensions.
25664
25665 2009-05-13  Bruno Haible  <bruno@clisp.org>
25666
25667         Make some tests ISO C 99 compliant.
25668         * tests/zerosize-ptr.h: New file.
25669         * tests/test-memchr.c: Include zerosize-ptr.h.
25670         (main): Use a zero-size object pointer instead of NULL.
25671         * tests/test-memchr2.c: Include zerosize-ptr.h.
25672         (main): Use a zero-size object pointer instead of NULL.
25673         * tests/test-memcmp.c: Include zerosize-ptr.h.
25674         (main): Use a zero-size object pointer instead of NULL.
25675         * tests/test-memmem.c: Include zerosize-ptr.h.
25676         (main): Use a zero-size object pointer instead of NULL.
25677         * tests/test-memrchr.c: Include zerosize-ptr.h.
25678         (main): Use a zero-size object pointer instead of NULL.
25679         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
25680         m4/mmap-anon.m4.
25681         (Depends-on): Add getpagesize.
25682         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25683         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
25684         m4/mmap-anon.m4.
25685         (Depends-on): Add getpagesize.
25686         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25687         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
25688         m4/mmap-anon.m4.
25689         (Depends-on): Add getpagesize.
25690         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25691         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
25692         m4/mmap-anon.m4.
25693         (Depends-on): Add getpagesize.
25694         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25695         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
25696         m4/mmap-anon.m4.
25697         (Depends-on): Add getpagesize.
25698         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25699
25700 2009-05-12  Bruno Haible  <bruno@clisp.org>
25701
25702         Tests for module 'alignof'.
25703         * modules/alignof-tests: New file.
25704         * tests/test-alignof.c: New file.
25705
25706 2009-05-12  Bruno Haible  <bruno@clisp.org>
25707
25708         Fix alignof macro.
25709         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
25710         vendor compilers that are always correct.
25711
25712 2009-05-12  Bruno Haible  <bruno@clisp.org>
25713
25714         Make the MAP_ANONYMOUS detection work on HP-UX 11.
25715         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
25716         not whether its fully works.
25717
25718 2009-05-12  Bruno Haible  <bruno@clisp.org>
25719
25720         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
25721
25722 2009-05-12  Jim Meyering  <meyering@redhat.com>
25723
25724         * top/maint.mk: Adjust backslash alignment.
25725
25726 2009-05-11  Simon Josefsson  <simon@josefsson.org>
25727
25728         * top/maint.mk: Make $(srcdir)/build-aux configurable.
25729
25730 2009-05-11  Eric Blake  <ebb9@byu.net>
25731
25732         argp: avoid undefined behavior
25733         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
25734         macros.
25735
25736 2009-05-08  Simon Josefsson  <simon@josefsson.org>
25737
25738         * tests/test-vc-list-files-git.sh: Do git config of user.email and
25739         user.name to prevent git commit from complaining.
25740
25741 2009-05-10  Bruno Haible  <bruno@clisp.org>
25742
25743         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
25744         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
25745         it rewrites every file name only once.
25746         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
25747
25748 2009-05-08  Bruno Haible  <bruno@clisp.org>
25749
25750         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
25751         instead of 'max'.
25752
25753 2009-05-08  Simon Josefsson  <simon@josefsson.org>
25754
25755         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
25756         sockaddr_storage test.
25757
25758 2009-05-07  Simon Josefsson  <simon@josefsson.org>
25759
25760         * modules/sys_socket (Makefile.am): Substitute
25761         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
25762         * m4/sys_socket_h.m4: Check for sockaddr_storage.
25763         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
25764         * tests/test-sys_socket.c: Check sockaddr_storage.
25765
25766 2009-05-08  Bruno Haible  <bruno@clisp.org>
25767
25768         New module 'alignof'.
25769         * lib/alignof.h: New file.
25770         * modules/alignof: New file.
25771
25772 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25773             Bruno Haible  <bruno@clisp.org>
25774
25775         Fix test-file-has-acl on FreeBSD.
25776         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
25777         mask is implicitly added.
25778         * tests/test-file-has-acl.c: Include <signal.h>.
25779         (main): Terminate the test after 5 seconds.
25780         * modules/acl-tests (configure.ac): Check for alarm function.
25781
25782 2009-05-04  Bruno Haible  <bruno@clisp.org>
25783
25784         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
25785         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
25786         * modules/errno (configure.ac): Drop AC_REQUIRE.
25787         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
25788         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
25789
25790 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25791
25792         * modules/glob-tests: New module.
25793         * tests/test-glob.c: Add.
25794
25795 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25796
25797         * modules/fnmatch-tests: New module.
25798         * tests/test-fnmatch.c: Add.
25799
25800 2009-05-04  Eric Blake  <ebb9@byu.net>
25801
25802         maint: make the new no-submodule-changes rule VPATH-safe
25803         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
25804
25805 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25806             Bruno Haible  <bruno@clisp.org>
25807
25808         acl: Fix infinite loop on FreeBSD.
25809         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
25810         of return value from acl_get_entry.
25811         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
25812         Likewise.
25813
25814 2009-05-03  Bruno Haible  <bruno@clisp.org>
25815
25816         * lib/acl-internal.h (acl_entries): Clarify return value.
25817         * lib/acl_entries.c (acl_entries): Likewise.
25818
25819 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25820
25821         Bug fix in acl module.
25822         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
25823
25824 2009-05-03  Bruno Haible  <bruno@clisp.org>
25825
25826         Create gperf-generated file in the source dir, not in the build dir.
25827         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
25828         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
25829         * modules/unicase/locale-language (unicase/locale-languages.h):
25830         Likewise.
25831         * modules/unicase/special-casing (unicase/special-casing-table.h):
25832         Likewise.
25833         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
25834         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
25835         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
25836         Reported by Ralf Wildenhues.
25837
25838 2009-05-03  Bruno Haible  <bruno@clisp.org>
25839
25840         * modules/fnmatch (Description, configure.ac): Taken from
25841         fnmatch-posix.
25842         * modules/fnmatch-posix: Turn into a symbolic reference to the
25843         'fnmatch' module, and deprecate.
25844         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
25845
25846 2009-05-03  Bruno Haible  <bruno@clisp.org>
25847
25848         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
25849         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
25850         Reported by Ralf Wildenhues.
25851
25852 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25853
25854         * m4/fnmatch.m4: Fix fnmatch re-define.
25855
25856 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25857
25858         priv-set: new module and tests; adapt write-any-file
25859         * lib/priv-set.c: New file.
25860         * lib/priv-set.h: New file.
25861         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
25862         * lib/write-any-file.c: Simplify by using priv-set module.
25863         * m4/priv-set.m4: New file.
25864         * modules/priv-set: New file.
25865         * modules/unlinkdir: Add dependency on priv-set module.
25866         * modules/write-any-file: Likewise.
25867
25868         Tests for module 'priv-set'.
25869         * modules/priv-set-tests: New file.
25870         * tests/test-priv-set.c: New file.
25871
25872 2009-05-03  Jim Meyering  <meyering@redhat.com>
25873             Bruno Haible  <bruno@clisp.org>
25874
25875         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
25876         use the converted UTF-8 variant of the name instead.
25877
25878 2009-05-03  Jim Meyering  <meyering@redhat.com>
25879
25880         tests: tighten some getdate tests
25881         * tests/test-getdate.c (main): Tighten tests: require equality,
25882         not just greater than.  Set TZ envvar to UTC0.
25883
25884 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25885
25886         getdate: correctly interpret "next monday" when run on a Monday
25887         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
25888         that e.g., "next tues" (when run on a tuesday) results in a date
25889         that is one week in the future, and not today's date.
25890         I.e., add a week when the wday is the same as the current one.
25891         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
25892         and earlier by Martin Bernreuther and Jan Minář.
25893         * tests/test-getdate.c (main): Check that "next DAY" is always in
25894         the future and that "last DAY" is always in the past.
25895
25896 2009-05-02  Jim Meyering  <meyering@redhat.com>
25897
25898         build: ensure that a release build fails when a submodule is unclean
25899         * top/maint.mk (no-submodule-changes): New rule.
25900         (alpha beta major): Depend on it.
25901
25902 2009-05-02  Bruno Haible  <bruno@clisp.org>
25903
25904         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
25905         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
25906         shell variable gl_fnmatch_required to detect which variant is
25907         requested.
25908         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
25909         gl_FUNC_FNMATCH_POSIX.
25910         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
25911         exclude fnmatch-posix.
25912
25913 2009-05-02  Bruno Haible  <bruno@clisp.org>
25914
25915         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
25916         * modules/mbsrtowcs (License): Change to LGPLv2+.
25917         * modules/strnlen1 (License): Likewise.
25918         Reported by Simon Josefsson.
25919
25920 2009-05-02  Bruno Haible  <bruno@clisp.org>
25921
25922         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
25923         "cross".
25924         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
25925         gnulib-tool was called with option --source-base=lib.
25926
25927 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25928
25929         Use automake *-local hooks without commands, for extensibility.
25930         * modules/localcharset (Makefile.am): Rename install-exec-local
25931         rule to install-exec-localcharset, and make it a prerequisite of
25932         install-exec-local.  Likewise, rename the uninstall-local rule to
25933         uninstall-localcharset, and make it a prerequisite of the former.
25934
25935 2009-05-01  Bruno Haible  <bruno@clisp.org>
25936
25937         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
25938         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
25939         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
25940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
25941         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
25942         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
25943         m4/locale-zh.m4, m4/codeset.m4.
25944
25945         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
25946         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
25947         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
25948         m4/locale-zh.m4.
25949
25950         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
25951         REPLACE_WCRTOMB if mbstate_t must be replaced.
25952         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
25953         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
25954
25955 2009-05-01  Bruno Haible  <bruno@clisp.org>
25956
25957         Avoid compiler warnings when redefining macros defined by <libintl.h>.
25958         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
25959         dngettext, dcngettext, textdomain, bindtextdomain,
25960         bind_textdomain_codeset): Undefine before redefining.
25961
25962 2009-04-30  Bruno Haible  <bruno@clisp.org>
25963
25964         Fix bug introduced on 2009-04-25.
25965         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
25966         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
25967         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
25968         is defined.
25969         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
25970         is defined.
25971         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
25972         is defined.
25973         Reported by Elbert_Pol <elbert.pol@gmail.com>.
25974
25975 2009-04-28  Bruno Haible  <bruno@clisp.org>
25976
25977         Comment tweaks.
25978         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
25979         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
25980         * lib/unicase.h (u*_casexfrm): Likewise.
25981         Reported by Paolo Bonzini.
25982
25983 2009-04-28  Bruno Haible  <bruno@clisp.org>
25984
25985         Fix a compilation error.
25986         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
25987         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
25988         Reported by Jim Meyering.
25989
25990 2009-04-27  Bruno Haible  <bruno@clisp.org>
25991
25992         New module 'libunistring'.
25993         * modules/libunistring: New file.
25994         * m4/libunistring.m4: New file.
25995         * MODULES.html.sh (Unicode string functions): Add it.
25996
25997 2009-04-27  Eric Blake  <ebb9@byu.net>
25998
25999         maint.mk: allow package-specific header to provide <config.h>
26000         * top/maint.mk (sc_require_config_h): New variable.
26001         (sc_require_config_h, sc_require_config_h_first): Use it.
26002
26003 2009-04-27  Simon Josefsson  <simon@josefsson.org>
26004
26005         * top/maint.mk (sc_avoid_if_before_free): Except
26006         useless-if-before-free script.
26007
26008 2009-04-27  Eric Blake  <ebb9@byu.net>
26009
26010         maintainer-makefile: depend on all required helper scripts
26011         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
26012         useless-if-before-free.
26013         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
26014         version, rather than assuming gnulib checkout is available.
26015         Reported by Simen Josefsson.
26016
26017 2009-04-26  Bruno Haible  <bruno@clisp.org>
26018
26019         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
26020         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
26021         "../" or "..".
26022
26023 2009-04-26  Bruno Haible  <bruno@clisp.org>
26024
26025         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
26026         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
26027         AC_LIB_HAVE_LINKFLAGS.
26028
26029 2009-04-26  Bruno Haible  <bruno@clisp.org>
26030
26031         Simplify calling convention of u*_conv_from_encoding.
26032         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
26033         u32_conv_from_encoding): Expect a resultbuf argument and return the
26034         result directly as a pointer.
26035         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
26036         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
26037         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
26038         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
26039         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
26040         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26041         Update.
26042         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
26043         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
26044         * lib/vasnprintf.c (VASNPRINTF): Update.
26045         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
26046         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
26047         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
26048         * NEWS: Mention the change.
26049
26050 2009-04-26  Bruno Haible  <bruno@clisp.org>
26051
26052         Simplify calling convention of u*_conv_to_encoding.
26053         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
26054         u32_conv_to_encoding): Expect a resultbuf argument and return the
26055         result directly as a pointer.
26056         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26057         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
26058         freeing scaled_offsets if mem_iconveha failed.
26059         * lib/unicase/u-casexfrm.h (FUNC): Update.
26060         * lib/uninorm/u-normxfrm.h (FUNC): Update.
26061         * lib/vasnprintf.c (VASNPRINTF): Update.
26062         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
26063         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
26064         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
26065         * NEWS: Mention the change.
26066
26067 2009-04-26  Bruno Haible  <bruno@clisp.org>
26068
26069         Avoid test failures on AIX and OSF/1.
26070         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
26071         malloc(0).
26072         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26073         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26074         Likewise.
26075         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
26076         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
26077         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
26078         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
26079         * doc/posix-functions/malloc.texi: Document the portability problem
26080         related to malloc(0).
26081
26082 2009-04-26  Bruno Haible  <bruno@clisp.org>
26083
26084         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
26085         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
26086         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
26087
26088 2009-04-25  Bruno Haible  <bruno@clisp.org>
26089
26090         Avoid link error when creating a namespace clean library.
26091         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
26092         as macro with arguments if already defined as an alias.
26093         * lib/signbitf.c (gl_signbitf): Don't undefine.
26094         * lib/signbitd.c (gl_signbitd): Don't undefine.
26095         * lib/signbitl.c (gl_signbitl): Don't undefine.
26096
26097 2009-04-25  Jim Meyering  <meyering@redhat.com>
26098
26099         vc-list-files: fix another quoting bug
26100         * build-aux/vc-list-files: Avoid sed backslash expansion
26101         of pathological directory names.
26102
26103 2009-04-25  Eric Blake  <ebb9@byu.net>
26104
26105         vc-list-files: fix shell quoting error
26106         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
26107         timestamp.
26108
26109 2009-04-25  Jim Meyering  <meyering@redhat.com>
26110
26111         vc-list-files: restore lost functionality with subdir argument
26112         * build-aux/vc-list-files: When given a non-"." sub-directory
26113         argument, substitute the $dir/ prefix back onto each resulting name.
26114         Otherwise, coreutils' root_tests check would fail.
26115
26116 2009-04-24  Eric Blake  <ebb9@byu.net>
26117
26118         vc-list-files: ignore git symlinks
26119         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
26120         than ls-files, to ignore git symlinks.
26121
26122         maint.mk: import improvements from m4
26123         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
26124         (move_if_change): Delete unused macro.
26125         (news-date-check, vc-diff-check): Support VPATH builds.
26126         (announcement): Likewise.  Split --bootstrap-tools list...
26127         (boostrap-tools): ...into separate list, which can be overridden
26128         in cfg.mk.
26129         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
26130         requiring dependency on useless-if-before-free module.
26131         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
26132         Support VPATH builds.
26133
26134 2009-04-24  Jim Meyering  <meyering@redhat.com>
26135
26136         maint.mk: remove coreutils-specific rules and variables
26137         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
26138         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
26139         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
26140
26141         maint.mk: remove obsolete rule
26142         * top/maint.mk (rel-check): Remove rule.
26143         (WGET, WGETFLAGS): Remove now-unused variables.
26144
26145 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26146
26147         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
26148         consistency.
26149
26150         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
26151         '$(PATH_SEPARATOR)' instead of ':'.
26152
26153 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26154
26155         * lib/getopt1.c (main): Use 'const' for static array.
26156
26157 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26158
26159         * top/maint.mk: Sync with coreutils.
26160         * NEWS: Explain incompatibilities.
26161
26162 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26163             Bruno Haible  <bruno@clisp.org>
26164
26165         Fix cross-compilation results.
26166         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
26167         statement, as third argument of AC_TRY_RUN.
26168         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26169         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26170         Likewise.
26171         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26172         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26173         Likewise.
26174         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26175         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
26176         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
26177
26178 2009-04-20  Bruno Haible  <bruno@clisp.org>
26179
26180         Avoid test failure on mingw.
26181         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
26182
26183 2009-04-20  Bruno Haible  <bruno@clisp.org>
26184
26185         Avoid compilation error on mingw.
26186         * modules/localename-tests (Depends-on): Add locale.
26187
26188 2009-04-19  Bruno Haible  <bruno@clisp.org>
26189
26190         Support for building a shared library on Windows platforms.
26191         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
26192         (main): Test the presence of UNINORM_NFC here.
26193         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
26194         (main): Test the presence of UNINORM_NFD here.
26195         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
26196         (main): Test the presence of UNINORM_NFKC here.
26197         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
26198         (main): Test the presence of UNINORM_NFKD here.
26199
26200 2009-04-19  Bruno Haible  <bruno@clisp.org>
26201
26202         Avoid a compiler warning.
26203         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
26204         Change type of variable 'sequence'.
26205
26206 2009-04-19  Bruno Haible  <bruno@clisp.org>
26207
26208         * modules/configmake (Makefile.am): When the contents of configmake.h
26209         does not change, arrange to preserve its modification time.
26210
26211 2009-04-17  Simon Josefsson  <simon@josefsson.org>
26212
26213         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
26214         gettext domain.
26215
26216 2009-04-16  Jim Meyering  <meyering@redhat.com>
26217
26218         useless-if-before-free: improve conversion code
26219         * build-aux/useless-if-before-free: Adjust code-in-comment to match
26220         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
26221
26222 2009-04-14  Bruno Haible  <bruno@clisp.org>
26223
26224         * modules/fcntl (Depends-on): Add extensions.
26225         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
26226
26227 2009-04-12  Ben Pfaff  <blp@gnu.org>
26228
26229         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
26230         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
26231
26232 2009-03-20  Ben Pfaff  <blp@gnu.org>
26233
26234         Make rename replace existing destinations on Windows.
26235         * m4/rename.m4: Add test for Mingw.
26236         * lib/rename.c: Add rename replacement that uses MoveFileEx with
26237         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
26238         * doc/posix-functions/rename.texi: Document.
26239
26240 2009-04-10  Bruno Haible  <bruno@clisp.org>
26241
26242         New include file "iconveh.h".
26243         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
26244         * lib/striconveh.h: Include it.
26245         (enum iconv_ilseq_handler): Remove definition.
26246         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
26247         striconveh.h.
26248         * lib/striconveha.c: Include striconveh.h.
26249         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
26250         * modules/striconveh (Files): Add lib/iconveh.h.
26251         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
26252         lib/striconveh.h.
26253
26254 2009-04-10  Bruno Haible  <bruno@clisp.org>
26255
26256         * lib/uniconv.h: Update comment.
26257
26258 2009-04-10  Bruno Haible  <bruno@clisp.org>
26259
26260         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
26261         always.
26262         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
26263         * lib/unistr/u16-mbtouc-aux.c: Likewise.
26264         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
26265         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
26266         "unistring-notinline.h", so that the function gets defined always.
26267         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
26268         * lib/unistr/u8-uctomb.c: Likewise.
26269         * lib/unistr/u16-mbtouc.c: Likewise.
26270         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
26271         * lib/unistr/u16-uctomb.c: Likewise.
26272         * lib/unistr/u32-mbtouc.c: Likewise.
26273         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
26274         * lib/unistr/u32-uctomb.c: Likewise.
26275
26276 2009-04-10  Bruno Haible  <bruno@clisp.org>
26277
26278         Mark 'utime' obsolete.
26279         * modules/utime (Status, Notice): New sections.
26280         Suggested by Jim Meyering.
26281
26282         Fix cross-compile guess for utime test.
26283         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
26284         autoconf.
26285         * doc/posix-functions/utime.texi: Give more precisions.
26286         Reported by Jan <ipif@ymail.com>.
26287
26288 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
26289
26290         filevercmp: correct today's change
26291         * lib/filevercmp.c: Also handle coreutils' test inputs.
26292         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
26293
26294         Fix regression in 'filevercmp' module. Thanks Sven Joachim
26295         for reporting it.
26296         * lib/filevercmp.c: Special handle for "", "." and "..".
26297         * tests/test-filevercmp.c: Enlarge the set suite.
26298
26299 2009-04-07  Jim Meyering  <meyering@redhat.com>
26300
26301         useless-if-before-free: show how to remove braced useless free, too
26302         * build-aux/useless-if-before-free: still only in a comment, though.
26303
26304 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
26305
26306         maint.mk: import changes to syntax-check macros from coreutils
26307         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
26308         Use them in the relevant macros.
26309
26310 2009-04-06  Bruno Haible  <bruno@clisp.org>
26311
26312         Fix unportable use of bit-fields.
26313         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
26314         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
26315         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
26316
26317 2009-04-06  Bruno Haible  <bruno@clisp.org>
26318
26319         Avoid test failures on AIX and OSF/1.
26320         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
26321         that malloc(0) = NULL.
26322         * tests/unicase/test-u8-tolower.c (check): Likewise.
26323         * tests/unicase/test-u8-totitle.c (check): Likewise.
26324         * tests/unicase/test-u8-toupper.c (check): Likewise.
26325         * tests/unicase/test-u16-casefold.c (check): Likewise.
26326         * tests/unicase/test-u16-tolower.c (check): Likewise.
26327         * tests/unicase/test-u16-totitle.c (check): Likewise.
26328         * tests/unicase/test-u16-toupper.c (check): Likewise.
26329         * tests/unicase/test-u32-casefold.c (check): Likewise.
26330         * tests/unicase/test-u32-tolower.c (check): Likewise.
26331         * tests/unicase/test-u32-totitle.c (check): Likewise.
26332         * tests/unicase/test-u32-toupper.c (check): Likewise.
26333         * tests/uninorm/test-u8-nfc.c (check): Likewise.
26334         * tests/uninorm/test-u8-nfd.c (check): Likewise.
26335         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
26336         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
26337         * tests/uninorm/test-u16-nfc.c (check): Likewise.
26338         * tests/uninorm/test-u16-nfd.c (check): Likewise.
26339         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
26340         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
26341         * tests/uninorm/test-u32-nfc.c (check): Likewise.
26342         * tests/uninorm/test-u32-nfd.c (check): Likewise.
26343         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
26344         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
26345
26346 2009-04-05  Bruno Haible  <bruno@clisp.org>
26347
26348         Work around an autoconf limitation.
26349         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
26350         comment line if it would be longer than 3 KB.
26351
26352 2009-04-05  Bruno Haible  <bruno@clisp.org>
26353
26354         Avoid test failure with libiconv-1.13.
26355         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
26356         of the expected test results.
26357
26358 2009-04-05  Bruno Haible  <bruno@clisp.org>
26359
26360         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
26361         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
26362         that it should be installed.
26363
26364 2009-04-05  Bruno Haible  <bruno@clisp.org>
26365
26366         * gnulib-tool: New option --copy-file.
26367         (func_usage): Document it.
26368         (func_dest_tmpfilename): Moved out of func_import.
26369         (func_add_file, func_update_file): New functions, extracted from
26370         func_import.
26371         (func_import): Update.
26372
26373 2009-04-05  Karl Berry  <karl@gnu.org>
26374
26375         * README: prominently mention gnulib-tool.
26376         Rearrange sections so getting the code is near the top.
26377
26378 2009-04-05  Bruno Haible  <bruno@clisp.org>
26379
26380         * lib/unicase.h: Mention u*_cmp2.
26381         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26382         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
26383         * lib/unicase/ulc-casecmp.c: Likewise.
26384         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
26385         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
26386         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
26387         unistr/u8-cmp.
26388         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
26389         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
26390         unistr/u16-cmp.
26391         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
26392         unistr/u32-cmp.
26393
26394         * lib/uninorm.h: Mention u*_cmp2.
26395         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26396         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
26397         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
26398         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
26399         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
26400         unistr/u8-cmp.
26401         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
26402         unistr/u16-cmp.
26403         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
26404         unistr/u32-cmp.
26405
26406         New module 'unistr/u32-cmp2'.
26407         * lib/unistr/u32-cmp2.c: New file.
26408         * modules/unistr/u32-cmp2: New file.
26409
26410         New module 'unistr/u16-cmp2'.
26411         * lib/unistr/u16-cmp2.c: New file.
26412         * modules/unistr/u16-cmp2: New file.
26413
26414         New module 'unistr/u8-cmp2'.
26415         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
26416         * lib/unistr/u8-cmp2.c: New file.
26417         * lib/unistr/u-cmp2.h: New file.
26418         * modules/unistr/u8-cmp2: New file.
26419
26420 2009-04-05  Bruno Haible  <bruno@clisp.org>
26421
26422         * lib/unictype.h (uc_property_is_valid): New macro.
26423         * tests/unictype/test-pr_byname.c (main): Use it.
26424
26425         * lib/unistr.h: Doc fixes.
26426         * lib/uniconv.h: Doc fixes.
26427         * lib/unictype.h: Doc fixes.
26428
26429 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
26430
26431         Port coreutils 7.2 to Solaris 8.
26432
26433         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
26434         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
26435         for Solaris 8.  This is a bit of a hack, as it means it's the
26436         caller's responsibility to add -lnsl if needed, but most likely it
26437         won't be needed since only getaddrinfo uses this and getaddrinfo
26438         isn't needed on Solaris 8.
26439
26440         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
26441         problem to Solaris 8 encountered with coreutils 7.2, which
26442         resulted in a message "fnmatch.c:292: warning: passing argument 4
26443         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
26444         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
26445
26446 2009-04-03  Simon Josefsson  <simon@josefsson.org>
26447
26448         * m4/ld-version-script.m4: Add FIXME comment.
26449
26450 2009-04-02  Simon Josefsson  <simon@josefsson.org>
26451
26452         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
26453         SOVERSION variable.
26454
26455 2009-04-02  Bruno Haible  <bruno@clisp.org>
26456
26457         * Makefile (info, html, dvi, pdf): Combine the rules.
26458         Suggested by Jim Meyering.
26459
26460 2009-04-01  Bruno Haible  <bruno@clisp.org>
26461
26462         * Makefile (info, html, dvi, pdf): New targets.
26463         Reported by Reuben Thomas <rrt@sc3d.org>.
26464
26465 2009-04-01  Bruno Haible  <bruno@clisp.org>
26466
26467         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
26468         can be put into PATH.
26469         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
26470
26471 2009-04-01  Bruno Haible  <bruno@clisp.org>
26472
26473         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
26474
26475 2009-04-01  Bruno Haible  <bruno@clisp.org>
26476
26477         Rename module 'visibility'.
26478         * modules/lib-symbol-visibility: Renamed from modules/visibility.
26479         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
26480         * doc/gnulib.texi: Update.
26481         * MODULES.html.sh (Misc): Update.
26482         * NEWS: Mention the change.
26483
26484 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26485
26486         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
26487         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
26488         Eric Blake <ebb9@byu.net> for review.
26489         * MODULES.html.sh: Add lib-msvc-compat.
26490         * doc/gnulib.texi: Link to new section.
26491         * m4/ld-output-def.m4: New file.
26492         * doc/ld-output-def.texi: New file.
26493
26494 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26495
26496         Rename ld-version-script to lib-symbol-versions.  Suggested by
26497         Bruno Haible <bruno@clisp.org>.
26498         * modules/ld-version-script: Renamed to lib-symbol-versions.
26499         * doc/ld-version-script.texi: Fix module name.
26500         * MODULES.html.sh: Add lib-symbol-versions.
26501
26502 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26503
26504         * modules/u64-tests: New file.
26505         * tests/test-u64.c: New file.
26506
26507 2009-03-04  Simon Josefsson  <simon@josefsson.org>
26508
26509         * MODULES.html.sh: Mention u64.
26510         * modules/u64: New module.
26511         * modules/crypto/sha512: Depend on u64 module instead of providing
26512         u64.h.
26513
26514 2009-03-27  Eric Blake  <ebb9@byu.net>
26515
26516         test-strerror: make debugging EAI_SYSTEM easier
26517         * modules/getaddrinfo-tests (Depends-on): Add strerror.
26518         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
26519         failure was EAI_SYSTEM.
26520
26521 2009-03-25  Bruno Haible  <bruno@clisp.org>
26522
26523         Fix a problem with --enable-relocatable on Solaris 7.
26524         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
26525         since 2008-02-24.
26526
26527 2009-03-25  Eric Blake  <ebb9@byu.net>
26528
26529         test-sockets: avoid gcc warning
26530         * tests/test-sockets.c (main): Silence compiler warning.
26531
26532 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26533
26534         New modules nproc, pthread, contributed by Glen Lenker.
26535
26536         * MODULES.html.sh: Add pthread, nproc.
26537         * lib/nproc.c: New file.
26538         * lib/nproc.h: New file.
26539         * lib/pthread.in.h: New file.
26540         * m4/pthread.m4: New file.
26541         * modules/nproc: New file.
26542         * modules/pthread: New file.
26543
26544 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26545
26546         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
26547         New variable.
26548
26549 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
26550
26551         filevercmp: handle simple~ and numbered.~3~ backup suffixes
26552         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
26553         * tests/test-filevercmp.c: Add tests for backup suffixes.
26554
26555 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26556
26557         * modules/stdlib (Depends-on): Add stdint, needed when defining
26558         struct random_data on, for example, HP-UX 10.20.  Reported by
26559         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26560
26561 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26562
26563         * lib/readline.c (readline): Call fflush on stdout after printing
26564         prompt.
26565
26566 2009-03-20  Bruno Haible  <bruno@clisp.org>
26567
26568         Remove dependency from 'close' module to -lws2_32 on native Windows.
26569         * lib/close-hook.h: New file.
26570         * lib/close-hook.c: New file.
26571         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
26572         w32sock.h.
26573         (_gl_close_fd_maybe_socket): Remove function.
26574         (rpl_close): Invoke execute_all_close_hooks instead of
26575         _gl_close_fd_maybe_socket.
26576         * lib/sockets.c: Include close-hook.h, w32sock.h.
26577         (close_fd_maybe_socket): New function, essentially from lib/close.c.
26578         (close_sockets_hook): New variable.
26579         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
26580         (gl_sockets_cleanup): Unregister it.
26581         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
26582         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
26583         * modules/close-hook: New file.
26584         * modules/close (Files): Remove lib/w32sock.h.
26585         (Depends-on): Add close-hook.
26586         (Link): Remove section.
26587         * modules/sockets (Files): Add lib/w32sock.h.
26588         (Depends-on): Add close-hook.
26589         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
26590         invocation.
26591         * NEWS: Mention that LIB_CLOSE is gone.
26592
26593 2009-03-23  Eric Blake  <ebb9@byu.net>
26594
26595         signal-tests: test previous patch
26596         * tests/test-signal.c: New file.
26597         * modules/signal-tests: Likewise.
26598
26599         signal.h: always support 'volatile sig_atomic_t'
26600         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
26601         (gl_SIGNAL_H_DEFAULTS): Add a default.
26602         * modules/signal (Makefile.am): Substitute if needed.
26603         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
26604         users can blindly add volatile.
26605         * doc/posix-headers/signal.texi (signal.h): Document it.
26606         Reported by Matthew Woehlke.
26607
26608 2009-03-23  Jim Meyering  <meyering@redhat.com>
26609
26610         pathmax: PATH_MAX: use pathconf only when available
26611         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
26612         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
26613         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
26614         This avoids a link failure in a PSP cross-compilation environment
26615         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
26616
26617         * lib/vasnprintf.c (divide): Fix typo in comment.
26618
26619 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26620
26621         * gnulib-tool (func_filter_filelist): Fix comment.
26622
26623 2009-03-20  Bruno Haible  <bruno@clisp.org>
26624
26625         Make sockets.h self-contained.
26626         * lib/sockets.c: Include sockets.h first.
26627         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
26628
26629 2009-03-19  Eric Blake  <ebb9@byu.net>
26630
26631         doc: mention more functions added in cygwin 1.7.0
26632         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
26633         addition.
26634         * doc/posix-functions/log2f.texi: Likewise.
26635
26636 2009-03-19  Jim Meyering  <meyering@redhat.com>
26637
26638         fsusage: avoid syntax error due to statement-before-declaration
26639         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
26640         after all declarations.  Reported by Matthew Woehlke in
26641         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
26642
26643 2009-03-18  Eric Blake  <ebb9@byu.net>
26644
26645         build-aux/compile: sync from automake
26646         * build-aux/compile: New file, from automake.
26647         * config/srclist.txt: Mention build-aux/compile.
26648
26649 2009-03-17  Bruno Haible  <bruno@clisp.org>
26650
26651         * lib/git-merge-changelog.c: Fix typo in comment.
26652         Reported by Reuben Thomas <rrt@sc3d.org>.
26653
26654 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
26655
26656         * m4/regex.m4: update and improve help for
26657         --without-included-regex.
26658
26659 2009-03-17  Simon Josefsson  <simon@josefsson.org>
26660
26661         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
26662         failure on missing include files.
26663
26664 2009-03-17  Eric Blake  <ebb9@byu.net>
26665
26666         doc: mention more functions added in cygwin 1.7.0
26667         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
26668         addition.
26669         * doc/posix-functions/fwscanf.texi: Likewise.
26670         * doc/posix-functions/swprintf.texi: Likewise.
26671         * doc/posix-functions/swscanf.texi: Likewise.
26672         * doc/posix-functions/vfwprintf.texi: Likewise.
26673         * doc/posix-functions/vfwscanf.texi: Likewise.
26674         * doc/posix-functions/vswprintf.texi: Likewise.
26675         * doc/posix-functions/vswscanf.texi: Likewise.
26676         * doc/posix-functions/vwprintf.texi: Likewise.
26677         * doc/posix-functions/vwscanf.texi: Likewise.
26678         * doc/posix-functions/wcscasecmp.texi: Likewise.
26679         * doc/posix-functions/wcsdup.texi: Likewise.
26680         * doc/posix-functions/wcsftime.texi: Likewise.
26681         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26682         * doc/posix-functions/wprintf.texi: Likewise.
26683         * doc/posix-functions/wscanf.texi: Likewise.
26684         * doc/glibc-functions/gethostbyname2.texi: Likewise.
26685
26686 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26687
26688         maint.mk: really add $(AM_MAKEFLAGS)
26689         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
26690         was inadvertently omitted in the last commit.
26691         Spotted by Bruno Haible.
26692
26693         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
26694         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
26695         $(AM_MAKEFLAGS)' rather than plain `make'.
26696
26697         gnulib-tool: execute $MAKE not make
26698         * gnulib-tool: Default $MAKE to 'make'.
26699         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
26700         than make.  Initialize $MAKE in the do-autobuild script.
26701
26702         gnulib-tool: use $MAKE not make in generated files
26703         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
26704         make, in generated files.  Initialize $MAKE in the do-autobuild
26705         script.
26706
26707         * top/GNUmakefile (_have-git-version-gen): Fix typo.
26708
26709         GNUmakefile: disable parallelism only for multiple, recursive targets
26710         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
26711         additions in the Makefile.
26712         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
26713         by Automake.
26714         (.NOTPARALLEL): Only disable parallel builds if multiple targets
26715         are listed on the command line and at least one of them is
26716         listed in $(ALL_RECURSIVE_TARGETS).
26717
26718 2009-03-14  Bruno Haible  <bruno@clisp.org>
26719
26720         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
26721         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
26722         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
26723         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
26724         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
26725         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
26726         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
26727         unistr/u8-uctomb.
26728         * modules/unistr/u8-strchr (Depends-on): Likewise.
26729         * modules/unistr/u8-strrchr (Depends-on): Likewise.
26730         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
26731         unistr/u16-uctomb.
26732         * modules/unistr/u16-strchr (Depends-on): Likewise.
26733         * modules/unistr/u16-strrchr (Depends-on): Likewise.
26734
26735 2009-03-12  Bruno Haible  <bruno@clisp.org>
26736
26737         Work around select() bug on Interix 3.5.
26738         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
26739         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
26740         * m4/select.m4: New file.
26741         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
26742         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
26743         * modules/select (Files): Add m4/select.m4.
26744         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
26745         * modules/nanosleep (Depends-on): Add select.
26746         * modules/poll (Depends-on): Likewise.
26747         * doc/posix-functions/select.texi: Mention the Interix bug.
26748         Reported by Markus Duft <mduft@gentoo.org>.
26749
26750         * lib/select.c: Renamed from lib/winsock-select.c.
26751         * modules/select (Files): Add lib/select.c, remove
26752         lib/winsock-select.c.
26753         (configure.ac): Update.
26754
26755 2009-03-12  Jim Meyering  <meyering@redhat.com>
26756
26757         avoid gcc warnings about unused macro definitions
26758         * lib/readtokens.c (STREQ): Remove unused definition.
26759         * lib/xmalloc.c (SIZE_MAX): Likewise.
26760         * lib/openat-die.c (N_): Likewise.
26761         * lib/mountlist.c (SIZE_MAX): Remove definition.
26762         Instead, include <stdint.h>.
26763         * lib/readutmp.c: Likewise.
26764         * modules/readutmp (Depends-on): Add stdint.
26765         * modules/mountlist (Depends-on): Add stdint.
26766         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
26767
26768 2009-03-10  Bruno Haible  <bruno@clisp.org>
26769
26770         Tests for module 'mbmemcasecoll'.
26771         * modules/mbmemcasecoll-tests: New file.
26772         * tests/test-mbmemcasecoll1.sh: New file.
26773         * tests/test-mbmemcasecoll2.sh: New file.
26774         * tests/test-mbmemcasecoll3.sh: New file.
26775         * tests/test-mbmemcasecoll.c: New file.
26776
26777         New module 'mbmemcasecoll'.
26778         * lib/mbmemcasecoll.h: New file.
26779         * lib/mbmemcasecoll.c: New file.
26780         * modules/mbmemcasecoll: New file.
26781
26782         * tests/test-mbmemcasecmp.h: New file, extracted from
26783         tests/test-mbmemcasecmp.c.
26784         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
26785         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
26786         (main): Update.
26787         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
26788
26789 2009-03-09  Bruno Haible  <bruno@clisp.org>
26790
26791         Tests for module 'mbmemcasecmp'.
26792         * modules/mbmemcasecmp-tests: New file.
26793         * tests/test-mbmemcasecmp1.sh: New file.
26794         * tests/test-mbmemcasecmp2.sh: New file.
26795         * tests/test-mbmemcasecmp3.sh: New file.
26796         * tests/test-mbmemcasecmp.c: New file.
26797
26798         New module 'mbmemcasecmp'.
26799         * lib/mbmemcasecmp.h: New file.
26800         * lib/mbmemcasecmp.c: New file.
26801         * modules/mbmemcasecmp: New file.
26802
26803 2009-03-09  Bruno Haible  <bruno@clisp.org>
26804
26805         Tests for module 'unicase/ulc-casecoll'.
26806         * modules/unicase/ulc-casecoll-tests: New file.
26807         * tests/unicase/test-ulc-casecoll1.sh: New file.
26808         * tests/unicase/test-ulc-casecoll2.sh: New file.
26809         * tests/unicase/test-ulc-casecoll.c: New file.
26810
26811         New module 'unicase/ulc-casecoll'.
26812         * lib/unicase.h (ulc_casecoll): New declaration.
26813         * lib/unicase/ulc-casecoll.c: New file.
26814         * modules/unicase/ulc-casecoll: New file.
26815
26816         New module 'unicase/ulc-casexfrm'.
26817         * lib/unicase.h (ulc_casexfrm): New declaration.
26818         * lib/unicase/ulc-casexfrm.c: New file.
26819         * modules/unicase/ulc-casexfrm: New file.
26820
26821 2009-03-09  Bruno Haible  <bruno@clisp.org>
26822
26823         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
26824         invocations.
26825
26826         * m4/mbscasecmp.m4: Remove file.
26827         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
26828         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
26829
26830         * m4/mbscasestr.m4: Remove file.
26831         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
26832         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
26833
26834         * m4/mbschr.m4: Remove file.
26835         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
26836         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
26837
26838         * m4/mbscspn.m4: Remove file.
26839         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
26840         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
26841
26842         * m4/mbslen.m4: Remove file.
26843         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
26844         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
26845
26846         * m4/mbsncasecmp.m4: Remove file.
26847         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
26848         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
26849
26850         * m4/mbsnlen.m4: Remove file.
26851         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
26852         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
26853
26854         * m4/mbspbrk.m4: Remove file.
26855         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
26856         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
26857
26858         * m4/mbspcasecmp.m4: Remove file.
26859         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
26860         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
26861
26862         * m4/mbsrchr.m4: Remove file.
26863         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
26864         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
26865
26866         * m4/mbssep.m4: Remove file.
26867         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
26868         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
26869
26870         * m4/mbsspn.m4: Remove file.
26871         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
26872         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
26873
26874         * m4/mbsstr.m4: Remove file.
26875         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
26876         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
26877
26878         * m4/mbstok_r.m4: Remove file.
26879         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
26880         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
26881
26882         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
26883
26884         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
26885         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
26886
26887         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
26888
26889 2009-03-08  Bruno Haible  <bruno@clisp.org>
26890
26891         Tests for module 'unicase/ulc-casecmp'.
26892         * modules/unicase/ulc-casecmp-tests: New file.
26893         * tests/unicase/test-ulc-casecmp1.sh: New file.
26894         * tests/unicase/test-ulc-casecmp2.sh: New file.
26895         * tests/unicase/test-ulc-casecmp.c: New file.
26896
26897         New module 'unicase/ulc-casecmp'.
26898         * lib/unicase.h (ulc_casecmp): New declaration.
26899         * lib/unicase/ulc-casecmp.c: New file.
26900         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
26901         'const SRC_UNIT *'.
26902         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
26903         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
26904         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
26905         * modules/unicase/ulc-casecmp: New file.
26906
26907         Tests for module 'unicase/u32-is-cased'.
26908         * modules/unicase/u32-is-cased-tests: New file.
26909         * tests/unicase/test-u32-is-cased.c: New file.
26910
26911         Tests for module 'unicase/u16-is-cased'.
26912         * modules/unicase/u16-is-cased-tests: New file.
26913         * tests/unicase/test-u16-is-cased.c: New file.
26914
26915         Tests for module 'unicase/u8-is-cased'.
26916         * modules/unicase/u8-is-cased-tests: New file.
26917         * tests/unicase/test-u8-is-cased.c: New file.
26918         * tests/unicase/test-is-cased.h: New file.
26919
26920         New module 'unicase/u32-is-cased'.
26921         * lib/unicase/u32-is-cased.c: New file.
26922         * modules/unicase/u32-is-cased: New file.
26923
26924         New module 'unicase/u16-is-cased'.
26925         * lib/unicase/u16-is-cased.c: New file.
26926         * modules/unicase/u16-is-cased: New file.
26927
26928         New module 'unicase/u8-is-cased'.
26929         * lib/unicase/u8-is-cased.c: New file.
26930         * lib/unicase/u-is-cased.h: New file.
26931         * modules/unicase/u8-is-cased: New file.
26932
26933         Tests for module 'unicase/u32-is-casefolded'.
26934         * modules/unicase/u32-is-casefolded-tests: New file.
26935         * tests/unicase/test-u32-is-casefolded.c: New file.
26936
26937         Tests for module 'unicase/u16-is-casefolded'.
26938         * modules/unicase/u16-is-casefolded-tests: New file.
26939         * tests/unicase/test-u16-is-casefolded.c: New file.
26940
26941         Tests for module 'unicase/u8-is-casefolded'.
26942         * modules/unicase/u8-is-casefolded-tests: New file.
26943         * tests/unicase/test-u8-is-casefolded.c: New file.
26944         * tests/unicase/test-is-casefolded.h: New file.
26945
26946         New module 'unicase/u32-is-casefolded'.
26947         * lib/unicase/u32-is-casefolded.c: New file.
26948         * modules/unicase/u32-is-casefolded: New file.
26949
26950         New module 'unicase/u16-is-casefolded'.
26951         * lib/unicase/u16-is-casefolded.c: New file.
26952         * modules/unicase/u16-is-casefolded: New file.
26953
26954         New module 'unicase/u8-is-casefolded'.
26955         * lib/unicase/u8-is-casefolded.c: New file.
26956         * modules/unicase/u8-is-casefolded: New file.
26957
26958         Tests for module 'unicase/u32-is-titlecase'.
26959         * modules/unicase/u32-is-titlecase-tests: New file.
26960         * tests/unicase/test-u32-is-titlecase.c: New file.
26961
26962         Tests for module 'unicase/u16-is-titlecase'.
26963         * modules/unicase/u16-is-titlecase-tests: New file.
26964         * tests/unicase/test-u16-is-titlecase.c: New file.
26965
26966         Tests for module 'unicase/u8-is-titlecase'.
26967         * modules/unicase/u8-is-titlecase-tests: New file.
26968         * tests/unicase/test-u8-is-titlecase.c: New file.
26969         * tests/unicase/test-is-titlecase.h: New file.
26970
26971         New module 'unicase/u32-is-titlecase'.
26972         * lib/unicase/u32-is-titlecase.c: New file.
26973         * modules/unicase/u32-is-titlecase: New file.
26974
26975         New module 'unicase/u16-is-titlecase'.
26976         * lib/unicase/u16-is-titlecase.c: New file.
26977         * modules/unicase/u16-is-titlecase: New file.
26978
26979         New module 'unicase/u8-is-titlecase'.
26980         * lib/unicase/u8-is-titlecase.c: New file.
26981         * modules/unicase/u8-is-titlecase: New file.
26982
26983         Tests for module 'unicase/u32-is-lowercase'.
26984         * modules/unicase/u32-is-lowercase-tests: New file.
26985         * tests/unicase/test-u32-is-lowercase.c: New file.
26986
26987         Tests for module 'unicase/u16-is-lowercase'.
26988         * modules/unicase/u16-is-lowercase-tests: New file.
26989         * tests/unicase/test-u16-is-lowercase.c: New file.
26990
26991         Tests for module 'unicase/u8-is-lowercase'.
26992         * modules/unicase/u8-is-lowercase-tests: New file.
26993         * tests/unicase/test-u8-is-lowercase.c: New file.
26994         * tests/unicase/test-is-lowercase.h: New file.
26995
26996         New module 'unicase/u32-is-lowercase'.
26997         * lib/unicase/u32-is-lowercase.c: New file.
26998         * modules/unicase/u32-is-lowercase: New file.
26999
27000         New module 'unicase/u16-is-lowercase'.
27001         * lib/unicase/u16-is-lowercase.c: New file.
27002         * modules/unicase/u16-is-lowercase: New file.
27003
27004         New module 'unicase/u8-is-lowercase'.
27005         * lib/unicase/u8-is-lowercase.c: New file.
27006         * modules/unicase/u8-is-lowercase: New file.
27007
27008         Tests for module 'unicase/u32-is-uppercase'.
27009         * modules/unicase/u32-is-uppercase-tests: New file.
27010         * tests/unicase/test-u32-is-uppercase.c: New file.
27011
27012         Tests for module 'unicase/u16-is-uppercase'.
27013         * modules/unicase/u16-is-uppercase-tests: New file.
27014         * tests/unicase/test-u16-is-uppercase.c: New file.
27015
27016         Tests for module 'unicase/u8-is-uppercase'.
27017         * modules/unicase/u8-is-uppercase-tests: New file.
27018         * tests/unicase/test-u8-is-uppercase.c: New file.
27019         * tests/unicase/test-is-uppercase.h: New file.
27020
27021         New module 'unicase/u32-is-uppercase'.
27022         * lib/unicase/u32-is-uppercase.c: New file.
27023         * modules/unicase/u32-is-uppercase: New file.
27024
27025         New module 'unicase/u16-is-uppercase'.
27026         * lib/unicase/u16-is-uppercase.c: New file.
27027         * modules/unicase/u16-is-uppercase: New file.
27028
27029         New module 'unicase/u8-is-uppercase'.
27030         * lib/unicase/u8-is-uppercase.c: New file.
27031         * modules/unicase/u8-is-uppercase: New file.
27032
27033         New module 'unicase/u32-is-invariant'.
27034         * lib/unicase/u32-is-invariant.c: New file.
27035         * modules/unicase/u32-is-invariant: New file.
27036
27037         New module 'unicase/u16-is-invariant'.
27038         * lib/unicase/u16-is-invariant.c: New file.
27039         * modules/unicase/u16-is-invariant: New file.
27040
27041         New module 'unicase/u8-is-invariant'.
27042         * lib/unicase/u8-is-invariant.c: New file.
27043         * lib/unicase/invariant.h: New file.
27044         * lib/unicase/u-is-invariant.h: New file.
27045         * modules/unicase/u8-is-invariant: New file.
27046
27047         Tests for module 'unicase/u32-casecoll'.
27048         * modules/unicase/u32-casecoll-tests: New file.
27049         * tests/unicase/test-u32-casecoll.c: New file.
27050
27051         Tests for module 'unicase/u16-casecoll'.
27052         * modules/unicase/u16-casecoll-tests: New file.
27053         * tests/unicase/test-u16-casecoll.c: New file.
27054
27055         Tests for module 'unicase/u8-casecoll'.
27056         * modules/unicase/u8-casecoll-tests: New file.
27057         * tests/unicase/test-u8-casecoll.c: New file.
27058
27059         New module 'unicase/u32-casecoll'.
27060         * lib/unicase/u32-casecoll.c: New file.
27061         * modules/unicase/u32-casecoll: New file.
27062
27063         New module 'unicase/u16-casecoll'.
27064         * lib/unicase/u16-casecoll.c: New file.
27065         * modules/unicase/u16-casecoll: New file.
27066
27067         New module 'unicase/u8-casecoll'.
27068         * lib/unicase/u8-casecoll.c: New file.
27069         * lib/unicase/u-casecoll.h: New file.
27070         * modules/unicase/u8-casecoll: New file.
27071
27072         New module 'unicase/u32-casexfrm'.
27073         * lib/unicase/u32-casexfrm.c: New file.
27074         * modules/unicase/u32-casexfrm: New file.
27075
27076         New module 'unicase/u16-casexfrm'.
27077         * lib/unicase/u16-casexfrm.c: New file.
27078         * modules/unicase/u16-casexfrm: New file.
27079
27080         New module 'unicase/u8-casexfrm'.
27081         * lib/unicase/u8-casexfrm.c: New file.
27082         * lib/unicase/u-casexfrm.h: New file.
27083         * modules/unicase/u8-casexfrm: New file.
27084
27085         Tests for module 'unicase/u32-casecmp'.
27086         * modules/unicase/u32-casecmp-tests: New file.
27087         * tests/unicase/test-u32-casecmp.c: New file.
27088
27089         Tests for module 'unicase/u16-casecmp'.
27090         * modules/unicase/u16-casecmp-tests: New file.
27091         * tests/unicase/test-u16-casecmp.c: New file.
27092
27093         Tests for module 'unicase/u8-casecmp'.
27094         * modules/unicase/u8-casecmp-tests: New file.
27095         * tests/unicase/test-u8-casecmp.c: New file.
27096         * tests/unicase/test-casecmp.h: New file.
27097
27098         New module 'unicase/u32-casecmp'.
27099         * lib/unicase/u32-casecmp.c: New file.
27100         * modules/unicase/u32-casecmp: New file.
27101
27102         New module 'unicase/u16-casecmp'.
27103         * lib/unicase/u16-casecmp.c: New file.
27104         * modules/unicase/u16-casecmp: New file.
27105
27106         New module 'unicase/u8-casecmp'.
27107         * lib/unicase/u8-casecmp.c: New file.
27108         * lib/unicase/u-casecmp.h: New file.
27109         * modules/unicase/u8-casecmp: New file.
27110
27111         Tests for module 'unicase/u32-casefold'.
27112         * modules/unicase/u32-casefold-tests: New file.
27113         * tests/unicase/test-u32-casefold.c: New file.
27114
27115         Tests for module 'unicase/u16-casefold'.
27116         * modules/unicase/u16-casefold-tests: New file.
27117         * tests/unicase/test-u16-casefold.c: New file.
27118
27119         Tests for module 'unicase/u8-casefold'.
27120         * modules/unicase/u8-casefold-tests: New file.
27121         * tests/unicase/test-u8-casefold.c: New file.
27122
27123         New module 'unicase/u32-casefold'.
27124         * lib/unicase/u32-casefold.c: New file.
27125         * modules/unicase/u32-casefold: New file.
27126
27127         New module 'unicase/u16-casefold'.
27128         * lib/unicase/u16-casefold.c: New file.
27129         * modules/unicase/u16-casefold: New file.
27130
27131         New module 'unicase/u8-casefold'.
27132         * lib/unicase/u8-casefold.c: New file.
27133         * lib/unicase/u-casefold.h: New file.
27134         * modules/unicase/u8-casefold: New file.
27135
27136         New module 'unicase/tocasefold'.
27137         * lib/unicase/casefold.h: New file.
27138         * lib/unicase/tocasefold.c: New file.
27139         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
27140         * modules/unicase/tocasefold: New file.
27141
27142         Tests for module 'unicase/u32-totitle'.
27143         * modules/unicase/u32-totitle-tests: New file.
27144         * tests/unicase/test-u32-totitle.c: New file.
27145
27146         Tests for module 'unicase/u16-totitle'.
27147         * modules/unicase/u16-totitle-tests: New file.
27148         * tests/unicase/test-u16-totitle.c: New file.
27149
27150         Tests for module 'unicase/u8-totitle'.
27151         * modules/unicase/u8-totitle-tests: New file.
27152         * tests/unicase/test-u8-totitle.c: New file.
27153
27154         New module 'unicase/u32-totitle'.
27155         * lib/unicase/u32-totitle.c: New file.
27156         * modules/unicase/u32-totitle: New file.
27157
27158         New module 'unicase/u16-totitle'.
27159         * lib/unicase/u16-totitle.c: New file.
27160         * modules/unicase/u16-totitle: New file.
27161
27162         New module 'unicase/u8-totitle'.
27163         * lib/unicase/u8-totitle.c: New file.
27164         * lib/unicase/u-totitle.h: New file.
27165         * modules/unicase/u8-totitle: New file.
27166
27167         Tests for module 'unicase/u32-tolower'.
27168         * modules/unicase/u32-tolower-tests: New file.
27169         * tests/unicase/test-u32-tolower.c: New file.
27170
27171         Tests for module 'unicase/u16-tolower'.
27172         * modules/unicase/u16-tolower-tests: New file.
27173         * tests/unicase/test-u16-tolower.c: New file.
27174
27175         Tests for module 'unicase/u8-tolower'.
27176         * modules/unicase/u8-tolower-tests: New file.
27177         * tests/unicase/test-u8-tolower.c: New file.
27178
27179         New module 'unicase/u32-tolower'.
27180         * lib/unicase/u32-tolower.c: New file.
27181         * modules/unicase/u32-tolower: New file.
27182
27183         New module 'unicase/u16-tolower'.
27184         * lib/unicase/u16-tolower.c: New file.
27185         * modules/unicase/u16-tolower: New file.
27186
27187         New module 'unicase/u8-tolower'.
27188         * lib/unicase/u8-tolower.c: New file.
27189         * modules/unicase/u8-tolower: New file.
27190
27191         Tests for module 'unicase/u32-toupper'.
27192         * modules/unicase/u32-toupper-tests: New file.
27193         * tests/unicase/test-u32-toupper.c: New file.
27194
27195         Tests for module 'unicase/u16-toupper'.
27196         * modules/unicase/u16-toupper-tests: New file.
27197         * tests/unicase/test-u16-toupper.c: New file.
27198
27199         Tests for module 'unicase/u8-toupper'.
27200         * modules/unicase/u8-toupper-tests: New file.
27201         * tests/unicase/test-u8-toupper.c: New file.
27202
27203         New module 'unicase/u32-toupper'.
27204         * lib/unicase/u32-toupper.c: New file.
27205         * modules/unicase/u32-toupper: New file.
27206
27207         New module 'unicase/u16-toupper'.
27208         * lib/unicase/u16-toupper.c: New file.
27209         * modules/unicase/u16-toupper: New file.
27210
27211         New module 'unicase/u8-toupper'.
27212         * lib/unicase/u8-toupper.c: New file.
27213         * modules/unicase/u8-toupper: New file.
27214
27215         New module 'unicase/u32-casemap'.
27216         * lib/unicase/u32-casemap.c: New file.
27217         * modules/unicase/u32-casemap: New file.
27218
27219         New module 'unicase/u16-casemap'.
27220         * lib/unicase/u16-casemap.c: New file.
27221         * modules/unicase/u16-casemap: New file.
27222
27223         New module 'unicase/u8-casemap'.
27224         * lib/unicase/unicasemap.h: New file.
27225         * lib/unicase/u8-casemap.c: New file.
27226         * lib/unicase/u-casemap.h: New file.
27227         * modules/unicase/u8-casemap: New file.
27228
27229         New module 'unicase/special-casing'.
27230         * lib/unicase/special-casing.h: New file.
27231         * lib/unicase/special-casing.c: New file.
27232         * lib/unicase/special-casing-table.gperf: New file, generated by
27233         gen-uni-tables.c.
27234         * modules/unicase/special-casing: New file.
27235
27236         Tests for module 'unicase/locale-language'.
27237         * modules/unicase/locale-language-tests: New file.
27238         * tests/unicase/test-locale-language.sh: New file.
27239         * tests/unicase/test-locale-language.c: New file.
27240
27241         New module 'unicase/locale-language'.
27242         * lib/unicase/locale-language.c: New file.
27243         * lib/unicase/locale-languages.gperf: New file.
27244         * modules/unicase/locale-language: New file.
27245
27246         Generate more tables for case conversion and case folding.
27247         * lib/gen-uni-tables.c (SCC_*): New enum items.
27248         (struct special_casing_rule): New type.
27249         (casing_rules, num_casing_rules, allocated_casing_rules): New
27250         variables.
27251         (add_casing_rule, fill_casing_rules): New functions.
27252         (struct casefold_rule): New type.
27253         (casefolding_rules, num_casefolding_rules,
27254         allocated_casefolding_rules): New variables.
27255         (fill_casefolding_rules): New function.
27256         (unicode_casefold): New variable.
27257         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
27258         sort_casing_rules, output_casing_rules): New functions.
27259         (main): Accept to more arguments: SpecialCasing.txt and
27260         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
27261         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
27262         Output mapping for casefolding.
27263
27264         * lib/unicase.h: Include stdbool.h, uninorm.h.
27265         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
27266         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
27267         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
27268         arguments.
27269         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
27270         resultp arguments.
27271         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
27272         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
27273         resultp arguments.
27274         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
27275         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
27276         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
27277         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
27278         declarations.
27279         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
27280
27281 2009-03-08  Bruno Haible  <bruno@clisp.org>
27282
27283         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27284         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
27285         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
27286         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27287
27288 2009-03-07  Bruno Haible  <bruno@clisp.org>
27289
27290         Adjust u*_normcmp, u*_normcoll API.
27291         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27292         u16_normcoll, u32_normcoll): Change failure conventions.
27293         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
27294         errno and return -1.
27295         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27296
27297 2009-03-07  Bruno Haible  <bruno@clisp.org>
27298
27299         Tests for module 'uninorm/u32-normcoll'.
27300         * modules/uninorm/u32-normcoll-tests: New file.
27301         * tests/uninorm/test-u32-normcoll.c: New file.
27302
27303         Tests for module 'uninorm/u16-normcoll'.
27304         * modules/uninorm/u16-normcoll-tests: New file.
27305         * tests/uninorm/test-u16-normcoll.c: New file.
27306
27307         Tests for module 'uninorm/u8-normcoll'.
27308         * modules/uninorm/u8-normcoll-tests: New file.
27309         * tests/uninorm/test-u8-normcoll.c: New file.
27310
27311 2009-03-07  Bruno Haible  <bruno@clisp.org>
27312
27313         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
27314         tests/uninorm/test-u32-normcmp.c.
27315         * tests/uninorm/test-u32-normcmp.c: Include it.
27316         (test_nonascii): New function, extracted from main. Add some more
27317         tests.
27318         (main): Invoke test_ascii and test_nonascii.
27319         * modules/uninorm/u32-normcmp-tests (Files): Add
27320         tests/uninorm/test-u32-normcmp.h.
27321         (Depends-on): Remove uninorm/u32-normcmp.
27322
27323         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
27324         tests/uninorm/test-u16-normcmp.c.
27325         * tests/uninorm/test-u16-normcmp.c: Include it.
27326         (test_nonascii): New function, extracted from main. Add some more
27327         tests.
27328         (main): Invoke test_ascii and test_nonascii.
27329         * modules/uninorm/u16-normcmp-tests (Files): Add
27330         tests/uninorm/test-u16-normcmp.h.
27331         (Depends-on): Remove uninorm/u16-normcmp.
27332
27333         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
27334         tests/uninorm/test-u8-normcmp.c.
27335         * tests/uninorm/test-u8-normcmp.c: Include it.
27336         (test_nonascii): New function, extracted from main. Add some more
27337         tests.
27338         (main): Invoke test_ascii and test_nonascii.
27339         * modules/uninorm/u8-normcmp-tests (Files): Add
27340         tests/uninorm/test-u8-normcmp.h.
27341         (Depends-on): Remove uninorm/u8-normcmp.
27342
27343 2009-03-07  Bruno Haible  <bruno@clisp.org>
27344
27345         New module 'uninorm/u32-normcoll'.
27346         * lib/uninorm/u32-normcoll.c: New file.
27347         * modules/uninorm/u32-normcoll: New file.
27348
27349         New module 'uninorm/u16-normcoll'.
27350         * lib/uninorm/u16-normcoll.c: New file.
27351         * modules/uninorm/u16-normcoll: New file.
27352
27353         New module 'uninorm/u8-normcoll'.
27354         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
27355         declarations.
27356         * lib/uninorm/u8-normcoll.c: New file.
27357         * lib/uninorm/u-normcoll.h: New file.
27358         * modules/uninorm/u8-normcoll: New file.
27359
27360         New module 'uninorm/u32-normxfrm'.
27361         * lib/uninorm/u32-normxfrm.c: New file.
27362         * modules/uninorm/u32-normxfrm: New file.
27363
27364         New module 'uninorm/u16-normxfrm'.
27365         * lib/uninorm/u16-normxfrm.c: New file.
27366         * modules/uninorm/u16-normxfrm: New file.
27367
27368         New module 'uninorm/u8-normxfrm'.
27369         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
27370         declarations.
27371         * lib/uninorm/u8-normxfrm.c: New file.
27372         * lib/uninorm/u-normxfrm.h: New file.
27373         * modules/uninorm/u8-normxfrm: New file.
27374
27375 2009-03-07  Bruno Haible  <bruno@clisp.org>
27376
27377         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
27378         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
27379         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
27380
27381 2009-03-07  Bruno Haible  <bruno@clisp.org>
27382
27383         New module 'memxfrm'.
27384         * lib/memxfrm.h: New file.
27385         * lib/memxfrm.c: New file.
27386         * modules/memxfrm: New file.
27387
27388 2009-03-07  Bruno Haible  <bruno@clisp.org>
27389
27390         New module 'memcmp2'.
27391         * lib/memcmp2.h: New file.
27392         * lib/memcmp2.c: New file.
27393         * modules/memcmp2: New file.
27394
27395 2009-03-07  Bruno Haible  <bruno@clisp.org>
27396
27397         Tests for module 'uninorm/decomposing-form'.
27398         * modules/uninorm/decomposing-form-tests: New file.
27399         * tests/uninorm/test-decomposing-form.c: New file.
27400
27401         New module 'uninorm/decomposing-form'.
27402         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
27403         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
27404         Add 'decomposing_variant' field.
27405         * lib/uninorm/decomposing-form.c: New file.
27406         * lib/uninorm/nfc.c (uninorm_nfc): Update.
27407         * lib/uninorm/nfd.c (uninorm_nfd): Update.
27408         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
27409         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
27410         * modules/uninorm/decomposing-form: New file.
27411         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
27412         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
27413
27414 2009-03-07  Bruno Haible  <bruno@clisp.org>
27415
27416         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
27417         strings.
27418
27419 2009-03-06  Bruno Haible  <bruno@clisp.org>
27420
27421         Tests for module 'uninorm/u32-normcmp'.
27422         * tests/uninorm/test-u32-normcmp.c: New file.
27423         * modules/uninorm/u32-normcmp-tests: New file.
27424
27425         Tests for module 'uninorm/u16-normcmp'.
27426         * tests/uninorm/test-u16-normcmp.c: New file.
27427         * modules/uninorm/u16-normcmp-tests: New file.
27428
27429         Tests for module 'uninorm/u8-normcmp'.
27430         * tests/uninorm/test-u8-normcmp.c: New file.
27431         * modules/uninorm/u8-normcmp-tests: New file.
27432
27433         New module 'uninorm/u32-normcmp'.
27434         * lib/uninorm/u32-normcmp.c: New file.
27435         * modules/uninorm/u32-normcmp: New file.
27436
27437         New module 'uninorm/u16-normcmp'.
27438         * lib/uninorm/u16-normcmp.c: New file.
27439         * modules/uninorm/u16-normcmp: New file.
27440
27441         New module 'uninorm/u8-normcmp'.
27442         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
27443         declarations.
27444         * lib/uninorm/u8-normcmp.c: New file.
27445         * lib/uninorm/u-normcmp.h: New file.
27446         * modules/uninorm/u8-normcmp: New file.
27447
27448 2009-03-06  Bruno Haible  <bruno@clisp.org>
27449
27450         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
27451         Reported by Eric Blake.
27452
27453 2009-03-06  Eric Blake  <ebb9@byu.net>
27454             Bruno Haible  <bruno@clisp.org>
27455
27456         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
27457         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
27458         condition.
27459         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27460         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
27461         condition.
27462         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27463
27464 2009-03-06  Eric Blake  <ebb9@byu.net>
27465
27466         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
27467         to avoid compiler warnings.
27468         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
27469
27470 2009-03-05  Bruno Haible  <bruno@clisp.org>
27471
27472         * tests/test-ftell.c (main): Disable test beyond end of file on
27473         FreeMiNT.
27474         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27475
27476 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
27477
27478         * lib/filevercmp.c: Move hidden files up in ordering.
27479         * tests/test-filevercmp.c: Add tests for hidden files.
27480
27481 2009-03-04  Bruno Haible  <bruno@clisp.org>
27482
27483         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
27484         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
27485         AM_CFLAGS.
27486         Reported by Simon Josefsson.
27487
27488 2009-03-03  Bruno Haible  <bruno@clisp.org>
27489
27490         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
27491         Reported by Simon Josefsson.
27492
27493         * doc/ld-version-script.texi: Update node reference.
27494
27495 2009-03-03  Bruno Haible  <bruno@clisp.org>
27496
27497         * modules/visibility (License): Change to 'unlimited'.
27498         Suggested by Simon Josefsson.
27499
27500 2009-03-03  Jim Meyering  <meyering@redhat.com>
27501
27502         unlinkdir: cannot_unlink_dir may modify process state
27503         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
27504         it's neither thread-safe nor appropriate for use in a library.
27505
27506 2009-03-03  Eric Blake  <ebb9@byu.net>
27507
27508         test-closein: silence test under Darwin
27509         * tests/test-closein.sh: Ignore stderr from cat, since we don't
27510         care if it dies from EPIPE or EBADF.
27511
27512 2009-03-03  Bruno Haible  <bruno@clisp.org>
27513
27514         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
27515         earlier.
27516         * doc/visibility.texi: Fix @node and @section.
27517
27518 2009-03-03  Simon Josefsson  <simon@josefsson.org>
27519
27520         * doc/gnulib.texi: Link to sections for ld version script and
27521         visibility.
27522         * doc/visibility.texi: Add @node and @section.
27523         * modules/ld-version-script: New module.
27524         * m4/ld-version-script.m4: New file.
27525         * doc/ld-version-script.texi: New file.
27526
27527 2009-03-02  David Lutterkort  <lutter@redhat.com>
27528
27529         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
27530         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27531
27532 2009-03-02  Bruno Haible  <bruno@clisp.org>
27533
27534         * doc/visibility.texi: Mention libtool's -export-symbols option.
27535
27536 2009-03-02  Jim Meyering  <meyering@redhat.com>
27537
27538         announce-gen: new option: --no-print-checksums
27539         * build-aux/announce-gen (usage): Describe it.
27540         (print_checksums): Print a newline here, not in the [*] footnote.
27541         (main): Honor it.
27542
27543 2009-03-01  Bruno Haible  <bruno@clisp.org>
27544
27545         Use socklen_t in the native Windows replacements prototypes.
27546         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
27547         instead of 'int'.
27548         * lib/getsockopt.c (rpl_getsockopt): Likewise.
27549         * lib/setsockopt.c (rpl_setsockopt): Likewise.
27550         * modules/getsockopt (Depends-on): Add socklen.
27551         * modules/setsockopt (Depends-on): Add socklen.
27552
27553 2009-03-01  Bruno Haible  <bruno@clisp.org>
27554
27555         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
27556         least 4.2.
27557
27558 2009-03-01  Eric Blake  <ebb9@byu.net>
27559             Bruno Haible  <bruno@clisp.org>
27560
27561         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
27562         error messages.
27563         * lib/wait-process.c (wait_subprocess): Omit error message about
27564         deadly signal sent to the child of termsigp != NULL.
27565
27566 2009-03-01  Eric Blake  <ebb9@byu.net>
27567
27568         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
27569
27570 2009-03-01  Bruno Haible  <bruno@clisp.org>
27571
27572         Avoid a gcc warning.
27573         * tests/test-sched.c (b): Make global.
27574         Reported by Eric Blake.
27575
27576 2009-01-19  Martin Lambers  <marlam@marlam.de>
27577
27578         Provide POSIX semantics for socket timeout options on W32.
27579         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
27580         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
27581         * modules/setsockopt: Depend on sys_time module for struct timeval.
27582         * modules/getsockopt: Depend on sys_time module for struct timeval.
27583
27584 2009-03-01  Simon Josefsson  <simon@josefsson.org>
27585
27586         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
27587         __USE_GNU, for consistency with netdb.in.h.
27588         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27589
27590 2009-03-01  Bruno Haible  <bruno@clisp.org>
27591
27592         More support for FreeMiNT.
27593         * lib/fseeko.c (rpl_fseeko): Complete last commit.
27594         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27595
27596 2009-03-01  Bruno Haible  <bruno@clisp.org>
27597
27598         More support for FreeMiNT.
27599         * lib/fpurge.c (fpurge): Correct last commit.
27600         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27601
27602 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27603
27604         Fix unportable awk script in vc-list-files.
27605         * build-aux/vc-list-files: In the replacement awk script, use
27606         substr with a second argument of 1, not zero.
27607         Report by Simon Josefsson.
27608
27609 2009-02-28  Bruno Haible  <bruno@clisp.org>
27610
27611         More support for FreeMiNT.
27612         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
27613         to FreeMiNT today.
27614         * lib/fwriting.c (fwriting): Likewise.
27615         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
27616
27617 2009-02-28  Bruno Haible  <bruno@clisp.org>
27618
27619         * tests/test-freadseek.c (main): Disable test beyond end of file on
27620         FreeMiNT.
27621         * tests/test-ftello.c (main): Likewise.
27622         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27623
27624 2009-02-28  Bruno Haible  <bruno@clisp.org>
27625
27626         Add tentative support for FreeMiNT.
27627         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
27628         * lib/fpurge.c (fpurge): Likewise.
27629         * lib/freadable.c (freadable): Likewise.
27630         * lib/freading.c (freading): Likewise.
27631         * lib/freadptr.c (freadptr): Likewise.
27632         * lib/freadseek.c (freadptrinc): Likewise.
27633         * lib/fseeko.c (rpl_fseeko): Likewise.
27634         * lib/fseterr.c (fseterr): Likewise.
27635         * lib/fwritable.c (fwritable): Likewise.
27636         * lib/fwriting.c (fwriting): Likewise.
27637         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
27638         Hourihane.
27639         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27640
27641 2009-02-28  Bruno Haible  <bruno@clisp.org>
27642
27643         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
27644         SIGCHLD.
27645         Reported by Jim Meyering.
27646
27647 2009-02-28  Bruno Haible  <bruno@clisp.org>
27648
27649         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
27650         Mention the results of these tests on various platforms.
27651         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
27652         order.
27653         * doc/posix-functions/printf.texi: Likewise.
27654         * doc/posix-functions/snprintf.texi: Likewise.
27655         * doc/posix-functions/sprintf.texi: Likewise.
27656         * doc/posix-functions/vfprintf.texi: Likewise.
27657         * doc/posix-functions/vprintf.texi: Likewise.
27658         * doc/posix-functions/vsnprintf.texi: Likewise.
27659         * doc/posix-functions/vsprintf.texi: Likewise.
27660         * doc/glibc-functions/obstack_printf.texi: Likewise.
27661         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27662
27663 2009-02-28  Bruno Haible  <bruno@clisp.org>
27664
27665         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
27666         Reported by Loïc Minier <lool@dooz.org>.
27667
27668 2009-02-27  Bruno Haible  <bruno@clisp.org>
27669
27670         * gnulib-tool (func_import): Make the sed expression used to create the
27671         sed script for updating the .gitignore file POSIX compliant.
27672         Reported by Eric Blake.
27673
27674 2009-02-27  Bruno Haible  <bruno@clisp.org>
27675
27676         * gnulib-tool (sed): Don't alias as "sed --posix".
27677         Reported by Eric Blake.
27678
27679 2009-02-27  Bruno Haible  <bruno@clisp.org>
27680
27681         Avoid test link errors.
27682         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
27683         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
27684         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
27685         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
27686         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27687
27688 2009-02-27  Bruno Haible  <bruno@clisp.org>
27689
27690         Avoid spurious "(cached)" in configure output.
27691         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
27692         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
27693         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27694         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27695         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27696         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27697         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27698         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27699         Reported by Eric Blake.
27700
27701 2009-02-27  Eric Blake  <ebb9@byu.net>
27702
27703         printf: fix regression in previous patch
27704         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
27705
27706 2009-02-27  Bruno Haible  <bruno@clisp.org>
27707
27708         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
27709         value.
27710         * lib/stdint.in.h: Likewise.
27711         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
27712
27713 2009-02-27  Eric Blake  <ebb9@byu.net>
27714
27715         doc: mention more functions added in cygwin 1.7.0
27716         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
27717         addition.
27718         * doc/posix-functions/open_wmemstream.texi: Likewise.
27719         * doc/posix-functions/wcsnlen.texi: Likewise.
27720         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27721         * doc/posix-functions/wcstod.texi: Likewise.
27722         * doc/posix-functions/wcstof.texi: Likewise.
27723         * doc/posix-functions/wcstoimax.texi: Likewise.
27724         * doc/posix-functions/wcstok.texi: Likewise.
27725         * doc/posix-functions/wcstoumax.texi: Likewise.
27726
27727         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
27728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
27729         * doc/posix-functions/fprintf.texi: Update.
27730         * doc/posix-functions/printf.texi: Update.
27731         * doc/posix-functions/snprintf.texi: Update.
27732         * doc/posix-functions/sprintf.texi: Update.
27733         * doc/posix-functions/vfprintf.texi: Update.
27734         * doc/posix-functions/vprintf.texi: Update.
27735         * doc/posix-functions/vsnprintf.texi: Update.
27736         * doc/posix-functions/vsprintf.texi: Update.
27737         * doc/glibc-functions/obstack_printf.texi: Update.
27738         * doc/glibc-functions/obstack_vprintf.texi: Update.
27739
27740 2009-02-26  Eric Blake  <ebb9@byu.net>
27741
27742         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
27743         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
27744         compilation bug by using runtime conversion.
27745         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27746         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
27747         * modules/ceill-tests (Files): Use nan.h.
27748         * modules/floorl-tests (Files): Likewise.
27749         * modules/frexpl-tests (Files): Likewise.
27750         * modules/isnanl-tests (Files): Likewise.
27751         * modules/ldexpl-tests (Files): Likewise.
27752         * modules/roundl-tests (Files): Likewise.
27753         * modules/truncl-tests (Files): Likewise.
27754         * tests/test-ceill.c (main): Use a working NaN.
27755         * tests/test-floorl.c (main): Likewise.
27756         * tests/test-frexpl.c (main): Likewise.
27757         * tests/test-isnan.c (test_long_double): Likewise.
27758         * tests/test-isnanl.h (main): Likewise.
27759         * tests/test-ldexpl.h (main): Likewise.
27760         * tests/test-roundl.h (main): Likewise.
27761         * tests/test-truncl.h (main): Likewise.
27762         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
27763
27764 2009-02-26  Eric Blake  <ebb9@byu.net>
27765             Bruno Haible  <bruno@clisp.org>
27766
27767         Work around a *printf bug with %ls on Solaris.
27768         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
27769         precision is specified, sprintf stops converting the wide string
27770         argument when the number of bytes that have been produced by this
27771         conversion equals or exceeds the precision.
27772         * doc/posix-functions/fprintf.texi: Update.
27773         * doc/posix-functions/printf.texi: Update.
27774         * doc/posix-functions/snprintf.texi: Update.
27775         * doc/posix-functions/sprintf.texi: Update.
27776         * doc/posix-functions/vfprintf.texi: Update.
27777         * doc/posix-functions/vprintf.texi: Update.
27778         * doc/posix-functions/vsnprintf.texi: Update.
27779         * doc/posix-functions/vsprintf.texi: Update.
27780         * doc/glibc-functions/obstack_printf.texi: Update.
27781         * doc/glibc-functions/obstack_vprintf.texi: Update.
27782
27783 2009-02-26  Eric Blake  <ebb9@byu.net>
27784
27785         stdlib: favor compiler check of random.h
27786         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
27787         to avoid an ObjC random.h installed by Swarm.
27788
27789 2009-02-26  Bruno Haible  <bruno@clisp.org>
27790
27791         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
27792         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
27793         Reported by Gary V. Vaughan <gary@gnu.org>.
27794
27795 2009-02-26  Bruno Haible  <bruno@clisp.org>
27796
27797         Fix *printf behaviour regarding the %ls directive.
27798         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
27799         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
27800         NEED_PRINTF_DIRECTIVE_LS.
27801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
27802         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27803         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27804         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
27805         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
27806         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
27807         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27808         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27809         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27810         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27811         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27812         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
27813         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27814         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27815         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27816         * doc/posix-functions/fprintf.texi: Update.
27817         * doc/posix-functions/printf.texi: Update.
27818         * doc/posix-functions/snprintf.texi: Update.
27819         * doc/posix-functions/sprintf.texi: Update.
27820         * doc/posix-functions/vfprintf.texi: Update.
27821         * doc/posix-functions/vprintf.texi: Update.
27822         * doc/posix-functions/vsnprintf.texi: Update.
27823         * doc/posix-functions/vsprintf.texi: Update.
27824         * doc/glibc-functions/obstack_printf.texi: Update.
27825         * doc/glibc-functions/obstack_vprintf.texi: Update.
27826         Reported by Eric Blake.
27827
27828 2009-02-25  Bruno Haible  <bruno@clisp.org>
27829
27830         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
27831         with known value.
27832         Reported by Gary V. Vaughan <gary@gnu.org>.
27833
27834 2009-02-25  Bruno Haible  <bruno@clisp.org>
27835
27836         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
27837         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
27838         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
27839         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
27840         Reported by Gary V. Vaughan <gary@gnu.org>.
27841
27842 2009-02-25  Bruno Haible  <bruno@clisp.org>
27843
27844         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
27845         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
27846         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
27847         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
27848         Reported by Gary V. Vaughan <gary@gnu.org>.
27849
27850 2009-02-25  Eric Blake  <ebb9@byu.net>
27851
27852         tests: skip fseek/ftell tests if ungetc is broken
27853         * m4/ungetc.m4: New file.
27854         * modules/fseek-tests: Split test, so ungetc dependency is
27855         separate from rest of test.
27856         * modules/fseeko-tests: Likewise.
27857         * modules/ftell-tests: Likewise.
27858         * modules/ftello-tests: Likewise.
27859         * tests/test-fseek.c (main): Isolate ungetc dependency.
27860         * tests/test-fseeko.c (main): Likewise.
27861         * tests/test-ftell.c (main): Likewise.
27862         * tests/test-ftello.c (main): Likewise.
27863         * tests/test-fseek2.sh: New file.
27864         * tests/test-fseeko2.sh: Likewise.
27865         * tests/test-ftell2.sh: Likewise.
27866         * tests/test-ftello2.sh: Likewise.
27867
27868 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
27869
27870         test-getaddrinfo: fix usage of skip return code 77
27871         * tests/test-gettaddrinfo.c: Return skip code 77 only
27872         for first occurance of skip (4x77 is not 77)
27873
27874 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
27875
27876         strtod: avoid C99 decl-after-statement
27877         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
27878
27879 2009-02-24  Eric Blake  <ebb9@byu.net>
27880
27881         strtod: detect HP-UX 11.31 bug
27882         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
27883         Reported by Gary V. Vaughan.
27884
27885 2009-02-23  Bruno Haible  <bruno@clisp.org>
27886
27887         Fix invalid read past end of memory block.
27888         * lib/vasnprintf.c (DCHAR_SET): Define.
27889         (local_wcslen): Define only when needed.
27890         (local_strnlen, local_wcsnlen): New functions.
27891         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
27892         directives that involve a conversion ourselves.
27893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
27894         wcsnlen, mbrtowc, wcrtomb.
27895         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
27896         * tests/test-vasprintf-posix.c (test_function): Likewise.
27897         * tests/test-snprintf-posix.h (test_function): Likewise.
27898         * tests/test-sprintf-posix.h (test_function): Likewise.
27899         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27900
27901 2009-02-22  Bruno Haible  <bruno@clisp.org>
27902
27903         Implement new clarified decomposition of Hangul syllables.
27904         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
27905         of type LTV, return only a pairwise decomposition.
27906         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
27907         Likewise.
27908         * tests/uninorm/test-decomposition.c (main): Updated expected result.
27909         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
27910         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
27911
27912 2009-02-22  Bruno Haible  <bruno@clisp.org>
27913
27914         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
27915         zero-length results and shrink excess allocated memory.
27916         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
27917         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
27918         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
27919         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
27920         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
27921         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
27922         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
27923         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
27924         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
27925         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
27926         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
27927         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
27928
27929 2009-02-21  Bruno Haible  <bruno@clisp.org>
27930
27931         * doc/gnulib.texi: Include safe-alloc.texi earlier.
27932         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
27933         spaces after a period. Put a space between a macro name and its
27934         argument list. Trivial rewordings.
27935         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
27936         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
27937         (main): Return 0 explicitly.
27938
27939 2009-02-21  Bruno Haible  <bruno@clisp.org>
27940
27941         Tests for module 'uninorm/filter'.
27942         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
27943         * modules/uninorm/filter-tests: New file.
27944
27945         New module 'uninorm/filter'.
27946         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
27947         uninorm_filter_flush, uninorm_filter_free): New declarations.
27948         * lib/uninorm/uninorm-filter.c: New file.
27949         * modules/uninorm/filter: New file.
27950
27951 2009-02-21  Bruno Haible  <bruno@clisp.org>
27952
27953         Tests for module 'uninorm/nfkc'.
27954         * tests/uninorm/test-nfkc.c: New file.
27955         * tests/uninorm/test-u8-nfkc.c: New file.
27956         * tests/uninorm/test-u16-nfkc.c: New file.
27957         * tests/uninorm/test-u32-nfkc.c: New file.
27958         * tests/uninorm/test-u32-nfkc-big.sh: New file.
27959         * tests/uninorm/test-u32-nfkc-big.c: New file.
27960         * modules/uninorm/nfkc-tests: New file.
27961
27962         New module 'uninorm/nfkc'.
27963         * lib/uninorm/nfkc.c: New file.
27964         * modules/uninorm/nfkc: New file.
27965
27966         Tests for module 'uninorm/nfkd'.
27967         * tests/uninorm/test-nfkd.c: New file.
27968         * tests/uninorm/test-u8-nfkd.c: New file.
27969         * tests/uninorm/test-u16-nfkd.c: New file.
27970         * tests/uninorm/test-u32-nfkd.c: New file.
27971         * tests/uninorm/test-u32-nfkd-big.sh: New file.
27972         * tests/uninorm/test-u32-nfkd-big.c: New file.
27973         * modules/uninorm/nfkd-tests: New file.
27974
27975         New module 'uninorm/nfkd'.
27976         * lib/uninorm/nfkd.c: New file.
27977         * modules/uninorm/nfkd: New file.
27978
27979         Tests for module 'uninorm/nfc'.
27980         * tests/uninorm/test-nfc.c: New file.
27981         * tests/uninorm/test-u8-nfc.c: New file.
27982         * tests/uninorm/test-u16-nfc.c: New file.
27983         * tests/uninorm/test-u32-nfc.c: New file.
27984         * tests/uninorm/test-u32-nfc-big.sh: New file.
27985         * tests/uninorm/test-u32-nfc-big.c: New file.
27986         * modules/uninorm/nfc-tests: New file.
27987
27988         New module 'uninorm/nfc'.
27989         * lib/uninorm/nfc.c: New file.
27990         * modules/uninorm/nfc: New file.
27991
27992         Tests for module 'uninorm/nfd'.
27993         * tests/uninorm/test-nfd.c: New file.
27994         * tests/uninorm/test-u8-nfd.c: New file.
27995         * tests/uninorm/test-u16-nfd.c: New file.
27996         * tests/uninorm/test-u32-nfd.c: New file.
27997         * tests/uninorm/test-u32-nfd-big.sh: New file.
27998         * tests/uninorm/test-u32-nfd-big.c: New file.
27999         * tests/uninorm/test-u32-normalize-big.h: New file.
28000         * tests/uninorm/test-u32-normalize-big.c: New file.
28001         * tests/uninorm/NormalizationTest.txt: New file, created from
28002         Unicode 5.1.0 NormalizationTest.txt.
28003         * modules/uninorm/nfd-tests: New file.
28004
28005         New module 'uninorm/nfd'.
28006         * lib/uninorm/nfd.c: New file.
28007         * modules/uninorm/nfd: New file.
28008
28009         New module 'uninorm/u32-normalize'.
28010         * lib/uninorm/u32-normalize.c: New file.
28011         * modules/uninorm/u32-normalize: New file.
28012
28013         New module 'uninorm/u16-normalize'.
28014         * lib/uninorm/u16-normalize.c: New file.
28015         * modules/uninorm/u16-normalize: New file.
28016
28017         New module 'uninorm/u8-normalize'.
28018         * lib/uninorm/u8-normalize.c: New file.
28019         * lib/uninorm/normalize-internal.h: New file.
28020         * lib/uninorm/u-normalize-internal.h: New file.
28021         * modules/uninorm/u8-normalize: New file.
28022
28023         New module 'uninorm/decompose-internal'.
28024         * lib/uninorm/decompose-internal.c: New file.
28025         * modules/uninorm/decompose-internal: New file.
28026
28027         Tests for module 'uninorm/composition'.
28028         * tests/uninorm/test-composition.c: New file.
28029         * modules/uninorm/composition-tests: New file.
28030
28031         New module 'uninorm/composition'.
28032         * lib/uninorm/composition.c: New file.
28033         * lib/uninorm/composition-table.gperf: New file, generated by
28034         gen-uni-tables.
28035         * modules/uninorm/composition: New file.
28036
28037         Tests for module 'uninorm/compat-decomposition'.
28038         * tests/uninorm/test-compat-decomposition.c: New file.
28039         * modules/uninorm/compat-decomposition-tests: New file.
28040
28041         New module 'uninorm/compat-decomposition'.
28042         * lib/uninorm/decompose-internal.h: New file.
28043         * lib/uninorm/compat-decomposition.c: New file.
28044         * modules/uninorm/compat-decomposition: New file.
28045
28046         Tests for module 'uninorm/canonical-decomposition'.
28047         * tests/uninorm/test-canonical-decomposition.c: New file.
28048         * modules/uninorm/canonical-decomposition-tests: New file.
28049
28050         New module 'uninorm/canonical-decomposition'.
28051         * lib/uninorm/canonical-decomposition.c: New file.
28052         * modules/uninorm/canonical-decomposition: New file.
28053
28054         Tests for module 'uninorm/decomposition'.
28055         * tests/uninorm/test-decomposition.c: New file.
28056         * modules/uninorm/decomposition-tests: New file.
28057
28058         New module 'uninorm/decomposition'.
28059         * lib/uninorm/decomposition.c: New file.
28060         * modules/uninorm/decomposition: New file.
28061
28062         New module 'uninorm/decomposition-table'.
28063         * lib/uninorm/decomposition-table.h: New file.
28064         * lib/uninorm/decomposition-table.c: New file.
28065         * lib/uninorm/decomposition-table1.h: New file, generated by
28066         gen-uni-tables.
28067         * lib/uninorm/decomposition-table2.h: New file, generated by
28068         gen-uni-tables.
28069         * modules/uninorm/decomposition-table: New file.
28070
28071         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
28072         (UC_DECOMP_*): New enumeration items.
28073         (get_decomposition): New function.
28074         (struct decomp_table): New type.
28075         (output_decomposition, output_decomposition_tables): New functions.
28076         (unicode_composition_exclusions): New variable.
28077         (fill_composition_exclusions, debug_output_composition_tables): New
28078         functions.
28079         (main): Accept one more argument. Invoke fill_composition_exclusions.
28080         Output decomposition and composition tables.
28081
28082         New module 'uninorm/base'.
28083         * lib/uninorm.h: New file.
28084         * lib/unictype.h: Update comment.
28085         * modules/uninorm/base: New file.
28086
28087 2009-02-21  David Lutterkort  <lutter@redhat.com>
28088
28089         Tests for module 'safe-alloc'.
28090         * tests/test-safe-alloc.c: New file.
28091         * modules/safe-alloc-tests: New file.
28092
28093         New module 'safe-alloc'.
28094         * lib/safe-alloc.h: New file.
28095         * lib/safe-alloc.c: New file.
28096         * m4/safe-alloc.m4: New file.
28097         * modules/safe-alloc: New file.
28098         * doc/safe-alloc.texi: New file.
28099         * doc/gnulib.texi: Include it.
28100         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28101         safe-alloc.
28102
28103 2009-02-18  Bruno Haible  <bruno@clisp.org>
28104
28105         Fix link error on non-glibc systems.
28106         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
28107         variable.
28108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28109
28110 2009-02-18  Jim Meyering  <meyering@redhat.com>
28111
28112         fts: avoid used-uninitialized error due to recent change
28113         * lib/fts.c (fts_read): Guard uses of the new member,
28114         parent->fts_n_dirs_remaining, since it's not relevant for
28115         the parent of a directory specified on the command-line.
28116
28117 2009-02-17  James Youngman  <jay@gnu.org>
28118             Bruno Haible  <bruno@clisp.org>
28119
28120         * m4/include_next.m4: Reformulate comment.
28121
28122 2009-02-16  Jim Meyering  <meyering@redhat.com>
28123
28124         fts: add #if guards so that the fts_lgpl module still builds
28125         * lib/fts.c: Guard just-added hash-table-using parts with
28126         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
28127         Reported by Simon Josefsson.
28128
28129 2009-02-15  Bruno Haible  <bruno@clisp.org>
28130
28131         * modules/array-mergesort-tests: New file.
28132         * tests/test-array-mergesort.c: New file.
28133
28134         New module 'array-mergesort'.
28135         * modules/array-mergesort: New file.
28136         * lib/array-mergesort.h: New file.
28137
28138 2009-02-15  Bruno Haible  <bruno@clisp.org>
28139
28140         Fix 2009-02-07 commit.
28141         * lib/gen-uni-tables.c (output_predicate, output_category,
28142         output_combclass, output_bidi_category, output_decimal_digit,
28143         output_digit, output_numeric, output_mirror, output_scripts,
28144         output_ident_category, output_simple_mapping): Fix format directives.
28145         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
28146
28147 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
28148
28149         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
28150         fixes are available from IBM.
28151
28152 2009-02-13  Jim Meyering  <meyering@redhat.com>
28153
28154         fts: arrange not to stat non-directories in more cases
28155         This makes GNU find (when it doesn't need to stat each file)
28156         *much* more efficient at traversing reiserfs file systems.
28157         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
28158         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
28159         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
28160         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
28161         (leaf_optimization_applies): New function.
28162         (LCO_hash, LCO_compare): New helper functions.
28163         (link_count_optimize_ok): New function.
28164         (fts_stat): Initialize new member (if dir).
28165         (fts_read): Decrement parent's fts_n_dirs_remaining count if
28166         we've just stat'ed a directory.  Skip the stat call when possible.
28167         ---
28168         Note this AFS-related exchange:
28169         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
28170         and note find's pioctl call in find/fstype.c.
28171         But that is necessary only if you want to enable the
28172         optimization for AFS, and for now, I don't.
28173
28174         fts: move a function definition "up" (no semantic change)
28175         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
28176         "up" to precede upcoming use of a related function.
28177
28178 2009-02-11  Jim Meyering  <meyering@redhat.com>
28179
28180         fts: correct internal computation of nlinks (optimization-related)
28181         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
28182         whether the current entry is a directory, so don't test it.
28183
28184 2009-02-10  Bruno Haible  <bruno@clisp.org>
28185
28186         Tests for module 'uniwbrk/ulc-wordbreaks'.
28187         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
28188         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
28189         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
28190
28191         Tests for module 'uniwbrk/u32-wordbreaks'.
28192         * modules/uniwbrk/u32-wordbreaks-tests: New file.
28193         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
28194
28195         Tests for module 'uniwbrk/u16-wordbreaks'.
28196         * modules/uniwbrk/u16-wordbreaks-tests: New file.
28197         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
28198
28199         Tests for module 'uniwbrk/u8-wordbreaks'.
28200         * modules/uniwbrk/u8-wordbreaks-tests: New file.
28201         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
28202
28203 2009-02-10  Bruno Haible  <bruno@clisp.org>
28204
28205         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
28206         property.
28207         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
28208         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
28209         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
28210
28211 2009-02-10  Simon Josefsson  <simon@josefsson.org>
28212
28213         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
28214         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
28215
28216 2009-02-10  Bruno Haible  <bruno@clisp.org>
28217
28218         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
28219         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
28220         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
28221         * lib/unilbrk/u8-possible-linebreaks.c: Update.
28222         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
28223         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
28224
28225 2009-02-09  Simon Josefsson  <simon@josefsson.org>
28226
28227         * lib/sockets.h (gl_fd_to_handle): New function.
28228
28229         * tests/test-sockets.c: Call gl_fd_to_handle.
28230
28231 2009-02-09  Bruno Haible  <bruno@clisp.org>
28232
28233         * doc/havelib.texi: Document the conventions on bi-arch systems.
28234
28235 2009-02-08  Bruno Haible  <bruno@clisp.org>
28236
28237         Document the AC_LIB_LINKFLAGS macro.
28238         * doc/havelib.texi: New file, mostly written on 2005-05-24.
28239         * doc/gnulib.texi: Include it.
28240
28241 2009-02-08  Bruno Haible  <bruno@clisp.org>
28242
28243         Fix wrong order of sections, compared to TOC.
28244         * doc/gnulib.texi: Include relocatable-maint.texi after the
28245         "Regular expressions" node, not before.
28246
28247 2009-02-08  Bruno Haible  <bruno@clisp.org>
28248
28249         Tests for module 'unicase/totitle'.
28250         * modules/unicase/totitle-tests: New file.
28251
28252         Tests for module 'unicase/tolower'.
28253         * modules/unicase/tolower-tests: New file.
28254
28255         Tests for module 'unicase/toupper'.
28256         * modules/unicase/toupper-tests: New file.
28257         * tests/unicase/test-mapping-part1.h: New file.
28258         * tests/unicase/test-mapping-part2.h: New file.
28259
28260         New module 'unicase/totitle'.
28261         * modules/unicase/totitle: New file.
28262         * lib/unicase/totitle.c: New file.
28263
28264         New module 'unicase/tolower'.
28265         * modules/unicase/tolower: New file.
28266         * lib/unicase/tolower.c: New file.
28267
28268         New module 'unicase/toupper'.
28269         * modules/unicase/toupper: New file.
28270         * lib/unicase/toupper.c: New file.
28271         * lib/unicase/simple-mapping.h: New file.
28272
28273         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
28274         (mapping_table): New structure.
28275         (output_simple_mapping): New function.
28276         (main): Invoke output_simple_mapping_test and output_simple_mapping.
28277         * modules/gen-uni-tables (Description): Update.
28278         * lib/unicase/toupper.h: New file, automatically generated by
28279         gen-uni-tables.
28280         * lib/unicase/tolower.h: New file, automatically generated by
28281         gen-uni-tables.
28282         * lib/unicase/totitle.h: New file, automatically generated by
28283         gen-uni-tables.
28284         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
28285         gen-uni-tables.
28286         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
28287         gen-uni-tables.
28288         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
28289         gen-uni-tables.
28290
28291         New module 'unicase/base'.
28292         * modules/unicase/base: New file.
28293         * lib/unicase.h: New file.
28294
28295 2009-02-08  Bruno Haible  <bruno@clisp.org>
28296
28297         New module 'uniwbrk/ulc-wordbreaks'.
28298         * modules/uniwbrk/ulc-wordbreaks: New file.
28299         * lib/uniwbrk/ulc-wordbreaks.c: New file.
28300
28301         New module 'uniwbrk/u32-wordbreaks'.
28302         * modules/uniwbrk/u32-wordbreaks: New file.
28303         * lib/uniwbrk/u32-wordbreaks.c: New file.
28304
28305         New module 'uniwbrk/u16-wordbreaks'.
28306         * modules/uniwbrk/u16-wordbreaks: New file.
28307         * lib/uniwbrk/u16-wordbreaks.c: New file.
28308
28309         New module 'uniwbrk/u8-wordbreaks'.
28310         * modules/uniwbrk/u8-wordbreaks: New file.
28311         * lib/uniwbrk/u8-wordbreaks.c: New file.
28312         * lib/uniwbrk/u-wordbreaks.h: New file.
28313
28314         New module 'uniwbrk/table'.
28315         * modules/uniwbrk/table: New file.
28316         * lib/uniwbrk/wbrktable.h: New file.
28317         * lib/uniwbrk/wbrktable.c: New file.
28318
28319         New module 'uniwbrk/wordbreak-property'.
28320         * modules/uniwbrk/wordbreak-property: New file.
28321         * lib/uniwbrk/wordbreak-property.c: New file.
28322
28323         * lib/gen-uni-tables.c (WBP_*): New enum items.
28324         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
28325         (unicode_org_wbp): New variable.
28326         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
28327         New functions.
28328         (wbp_table): New structure.
28329         (output_wbp, output_wbrk_tables): New functions.
28330         (main): Accept additional argument. Invoke fill_org_wbp,
28331         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
28332         output_wbrk_tables.
28333         * modules/gen-uni-tables (Description): Update.
28334         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
28335         gen-uni-tables.
28336
28337         New module 'uniwbrk/base'.
28338         * modules/uniwbrk/base: New file.
28339         * lib/uniwbrk.h: New file.
28340
28341 2009-02-08  Bruno Haible  <bruno@clisp.org>
28342
28343         Update to Unicode 5.1.0.
28344         * lib/gen-uni-tables.c (is_property_alphabetic): Include
28345         U+2185..U+2188.
28346         (is_property_default_ignorable_code_point): Don't include characters
28347         of category Cc or Cs and not-a-characters.
28348         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
28349         U+0D79, U+109E, U+109F, U+A60C.
28350         * lib/unictype/bidi_of.h: Regenerated.
28351         * lib/unictype/blocks.h: Regenerated.
28352         * lib/unictype/categ_C.h: Regenerated.
28353         * lib/unictype/categ_Cf.h: Regenerated.
28354         * lib/unictype/categ_Cn.h: Regenerated.
28355         * lib/unictype/categ_L.h: Regenerated.
28356         * lib/unictype/categ_Ll.h: Regenerated.
28357         * lib/unictype/categ_Lm.h: Regenerated.
28358         * lib/unictype/categ_Lo.h: Regenerated.
28359         * lib/unictype/categ_Lu.h: Regenerated.
28360         * lib/unictype/categ_M.h: Regenerated.
28361         * lib/unictype/categ_Mc.h: Regenerated.
28362         * lib/unictype/categ_Me.h: Regenerated.
28363         * lib/unictype/categ_Mn.h: Regenerated.
28364         * lib/unictype/categ_N.h: Regenerated.
28365         * lib/unictype/categ_Nd.h: Regenerated.
28366         * lib/unictype/categ_Nl.h: Regenerated.
28367         * lib/unictype/categ_No.h: Regenerated.
28368         * lib/unictype/categ_P.h: Regenerated.
28369         * lib/unictype/categ_Pd.h: Regenerated.
28370         * lib/unictype/categ_Pe.h: Regenerated.
28371         * lib/unictype/categ_Pf.h: Regenerated.
28372         * lib/unictype/categ_Pi.h: Regenerated.
28373         * lib/unictype/categ_Po.h: Regenerated.
28374         * lib/unictype/categ_Ps.h: Regenerated.
28375         * lib/unictype/categ_S.h: Regenerated.
28376         * lib/unictype/categ_Sk.h: Regenerated.
28377         * lib/unictype/categ_Sm.h: Regenerated.
28378         * lib/unictype/categ_So.h: Regenerated.
28379         * lib/unictype/categ_of.h: Regenerated.
28380         * lib/unictype/combining.h: Regenerated.
28381         * lib/unictype/ctype_alnum.h: Regenerated.
28382         * lib/unictype/ctype_alpha.h: Regenerated.
28383         * lib/unictype/ctype_graph.h: Regenerated.
28384         * lib/unictype/ctype_lower.h: Regenerated.
28385         * lib/unictype/ctype_print.h: Regenerated.
28386         * lib/unictype/ctype_punct.h: Regenerated.
28387         * lib/unictype/ctype_upper.h: Regenerated.
28388         * lib/unictype/decdigit.h: Regenerated.
28389         * lib/unictype/digit.h: Regenerated.
28390         * lib/unictype/mirror.h: Regenerated.
28391         * lib/unictype/numeric.h: Regenerated.
28392         * lib/unictype/pr_alphabetic.h: Regenerated.
28393         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
28394         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
28395         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
28396         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
28397         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
28398         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
28399         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
28400         * lib/unictype/pr_combining.h: Regenerated.
28401         * lib/unictype/pr_dash.h: Regenerated.
28402         * lib/unictype/pr_decimal_digit.h: Regenerated.
28403         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
28404         * lib/unictype/pr_deprecated.h: Regenerated.
28405         * lib/unictype/pr_diacritic.h: Regenerated.
28406         * lib/unictype/pr_extender.h: Regenerated.
28407         * lib/unictype/pr_format_control.h: Regenerated.
28408         * lib/unictype/pr_grapheme_base.h: Regenerated.
28409         * lib/unictype/pr_grapheme_extend.h: Regenerated.
28410         * lib/unictype/pr_grapheme_link.h: Regenerated.
28411         * lib/unictype/pr_id_continue.h: Regenerated.
28412         * lib/unictype/pr_id_start.h: Regenerated.
28413         * lib/unictype/pr_ideographic.h: Regenerated.
28414         * lib/unictype/pr_ignorable_control.h: Regenerated.
28415         * lib/unictype/pr_lowercase.h: Regenerated.
28416         * lib/unictype/pr_math.h: Regenerated.
28417         * lib/unictype/pr_numeric.h: Regenerated.
28418         * lib/unictype/pr_other_alphabetic.h: Regenerated.
28419         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
28420         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
28421         * lib/unictype/pr_other_id_continue.h: Regenerated.
28422         * lib/unictype/pr_other_lowercase.h: Regenerated.
28423         * lib/unictype/pr_other_math.h: Regenerated.
28424         * lib/unictype/pr_punctuation.h: Regenerated.
28425         * lib/unictype/pr_sentence_terminal.h: Regenerated.
28426         * lib/unictype/pr_soft_dotted.h: Regenerated.
28427         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
28428         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
28429         * lib/unictype/pr_unified_ideograph.h: Regenerated.
28430         * lib/unictype/pr_uppercase.h: Regenerated.
28431         * lib/unictype/pr_xid_continue.h: Regenerated.
28432         * lib/unictype/pr_xid_start.h: Regenerated.
28433         * lib/unictype/pr_zero_width.h: Regenerated.
28434         * lib/unictype/scripts.h: Regenerated.
28435         * lib/unictype/scripts_byname.gperf: Regenerated.
28436         * lib/unictype/sy_java_ident.h: Regenerated.
28437         * lib/unilbrk/lbrkprop1.h: Regenerated.
28438         * lib/unilbrk/lbrkprop2.h: Regenerated.
28439         * tests/unictype/test-categ_C.c: Regenerated.
28440         * tests/unictype/test-categ_Cf.c: Regenerated.
28441         * tests/unictype/test-categ_Cn.c: Regenerated.
28442         * tests/unictype/test-categ_L.c: Regenerated.
28443         * tests/unictype/test-categ_Ll.c: Regenerated.
28444         * tests/unictype/test-categ_Lm.c: Regenerated.
28445         * tests/unictype/test-categ_Lo.c: Regenerated.
28446         * tests/unictype/test-categ_Lu.c: Regenerated.
28447         * tests/unictype/test-categ_M.c: Regenerated.
28448         * tests/unictype/test-categ_Mc.c: Regenerated.
28449         * tests/unictype/test-categ_Me.c: Regenerated.
28450         * tests/unictype/test-categ_Mn.c: Regenerated.
28451         * tests/unictype/test-categ_N.c: Regenerated.
28452         * tests/unictype/test-categ_Nd.c: Regenerated.
28453         * tests/unictype/test-categ_Nl.c: Regenerated.
28454         * tests/unictype/test-categ_No.c: Regenerated.
28455         * tests/unictype/test-categ_P.c: Regenerated.
28456         * tests/unictype/test-categ_Pd.c: Regenerated.
28457         * tests/unictype/test-categ_Pe.c: Regenerated.
28458         * tests/unictype/test-categ_Pf.c: Regenerated.
28459         * tests/unictype/test-categ_Pi.c: Regenerated.
28460         * tests/unictype/test-categ_Po.c: Regenerated.
28461         * tests/unictype/test-categ_Ps.c: Regenerated.
28462         * tests/unictype/test-categ_S.c: Regenerated.
28463         * tests/unictype/test-categ_Sk.c: Regenerated.
28464         * tests/unictype/test-categ_Sm.c: Regenerated.
28465         * tests/unictype/test-categ_So.c: Regenerated.
28466         * tests/unictype/test-ctype_alnum.c: Regenerated.
28467         * tests/unictype/test-ctype_alpha.c: Regenerated.
28468         * tests/unictype/test-ctype_graph.c: Regenerated.
28469         * tests/unictype/test-ctype_lower.c: Regenerated.
28470         * tests/unictype/test-ctype_print.c: Regenerated.
28471         * tests/unictype/test-ctype_punct.c: Regenerated.
28472         * tests/unictype/test-ctype_upper.c: Regenerated.
28473         * tests/unictype/test-decdigit.h: Regenerated.
28474         * tests/unictype/test-digit.h: Regenerated.
28475         * tests/unictype/test-numeric.h: Regenerated.
28476         * tests/unictype/test-pr_alphabetic.c: Regenerated.
28477         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
28478         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
28479         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
28480         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
28481         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
28482         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
28483         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
28484         * tests/unictype/test-pr_combining.c: Regenerated.
28485         * tests/unictype/test-pr_dash.c: Regenerated.
28486         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
28487         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
28488         * tests/unictype/test-pr_deprecated.c: Regenerated.
28489         * tests/unictype/test-pr_diacritic.c: Regenerated.
28490         * tests/unictype/test-pr_extender.c: Regenerated.
28491         * tests/unictype/test-pr_format_control.c: Regenerated.
28492         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
28493         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
28494         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
28495         * tests/unictype/test-pr_id_continue.c: Regenerated.
28496         * tests/unictype/test-pr_id_start.c: Regenerated.
28497         * tests/unictype/test-pr_ideographic.c: Regenerated.
28498         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
28499         * tests/unictype/test-pr_lowercase.c: Regenerated.
28500         * tests/unictype/test-pr_math.c: Regenerated.
28501         * tests/unictype/test-pr_numeric.c: Regenerated.
28502         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
28503         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
28504         Regenerated.
28505         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
28506         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
28507         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
28508         * tests/unictype/test-pr_other_math.c: Regenerated.
28509         * tests/unictype/test-pr_punctuation.c: Regenerated.
28510         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
28511         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
28512         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
28513         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
28514         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
28515         * tests/unictype/test-pr_uppercase.c: Regenerated.
28516         * tests/unictype/test-pr_xid_continue.c: Regenerated.
28517         * tests/unictype/test-pr_xid_start.c: Regenerated.
28518         * tests/unictype/test-pr_zero_width.c: Regenerated.
28519
28520         Update to Unicode 5.1.0.
28521         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
28522         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
28523         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
28524         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
28525         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
28526         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
28527         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
28528         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
28529         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
28530         (nonspacing_table_ind): Update.
28531         * tests/uniwidth/test-uc_width2.sh: Update expected result.
28532
28533         Update to Unicode 5.1.0.
28534         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
28535         code transform.
28536         * lib/uniname/uniname.c (unicode_character_name,
28537         unicode_name_character): Add the range 0x1Fxxx to the code transform.
28538         * lib/uniname/uninames.h: Regenerated.
28539         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
28540
28541 2009-02-07  Bruno Haible  <bruno@clisp.org>
28542
28543         Merge gen-ctype and gen-lbrk into a single program.
28544         * lib/gen-uni-tables.c: New file, incorporating
28545         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
28546         Add directory prefixes to the names of the generated files.
28547         * lib/unictype/gen-ctype.c: Remove file.
28548         * lib/unilbrk/gen-lbrk.c: Remove file.
28549         * modules/gen-uni-tables: New file.
28550         * modules/unictype/gen-ctype: Remove file.
28551         * modules/unilbrk/gen-lbrk: Remove file.
28552
28553 2009-02-07  Bruno Haible  <bruno@clisp.org>
28554
28555         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
28556
28557         New module 'unistr/u32-strcoll'.
28558         * modules/unistr/u32-strcoll: New file.
28559         * lib/unistr/u32-strcoll.c: New file.
28560
28561         New module 'unistr/u16-strcoll'.
28562         * modules/unistr/u16-strcoll: New file.
28563         * lib/unistr/u16-strcoll.c: New file.
28564
28565         New module 'unistr/u8-strcoll'.
28566         * modules/unistr/u8-strcoll: New file.
28567         * lib/unistr/u8-strcoll.c: New file.
28568         * lib/unistr/u-strcoll.h: New file.
28569
28570 2009-02-07  Bruno Haible  <bruno@clisp.org>
28571
28572         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
28573         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28574         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28575         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
28576         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
28577         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
28578
28579 2009-02-07  Bruno Haible  <bruno@clisp.org>
28580
28581         Make 64-bit clean.
28582         * lib/unictype/gen-ctype.c (output_predicate, output_category,
28583         output_combclass, output_bidi_category, output_decimal_digit,
28584         output_digit, output_numeric, output_mirror, output_scripts,
28585         output_ident_category): Use proper width specifier in format strings.
28586
28587 2009-02-07  Bruno Haible  <bruno@clisp.org>
28588
28589         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
28590         failure behaviour.
28591
28592 2009-02-07  Jim Meyering  <meyering@redhat.com>
28593
28594         regex: avoid compilation failure with upcoming gcc-4.4
28595         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
28596         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
28597         "... error: integer overflow in preprocessor expression".
28598
28599 2009-02-05  Ben Pfaff  <blp@gnu.org>
28600
28601         Fix link errors on Windows when close module is used.
28602         * modules/close: Add $(LIB_CLOSE) to Link section.
28603         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
28604         $(LIB_CLOSE) on Windows.
28605
28606 2009-02-05  Jim Meyering  <meyering@redhat.com>
28607
28608         still avoid unused-parameter warnings, but do it cleanly
28609         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
28610         (get_fs_usage): Cast to void instead.
28611         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
28612         (dev_from_mount_options, read_file_system_list): Cast to void.
28613         Prompted by Bruno Haible.
28614
28615 2009-02-04  Jim Meyering  <meyering@redhat.com>
28616
28617         fsusage.c: correct copyright year
28618         * lib/fsusage.c: Reflect year in which the change is pushed into
28619
28620         avoid misc. warnings
28621         * lib/fsusage.c (UNUSED_PARAM): Define.
28622         (get_fs_usage): Mark parameter "disk" as unused.
28623         * lib/getugroups.c (getgrent): Use "void" in prototype.
28624         * lib/mountlist.c: Mark unused parameters.
28625         (read_file_system_list): Declare a local with "const".
28626         * lib/nanosleep.c (getnow): Declare static.
28627         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
28628
28629         dirfd: set errno upon failure
28630         * lib/dirfd.c: Include <errno.h>.
28631         Set errno to ENOTSUP when returning -1.
28632         * modules/dirfd (Depends-on): Add errno.
28633         Suggested by John Kodis <kodis@comcast.net>.
28634
28635 2009-02-01  Bruno Haible  <bruno@clisp.org>
28636
28637         Don't assume sizeof (long) >= sizeof (void *).
28638         * lib/memcmp.c: Include stdint.h.
28639         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
28640         srcp2 to 'const byte *'.
28641         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
28642         types to uintptr_t.
28643         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
28644         * modules/memcmp (Depends-on): Add stdint.
28645         Reported by Ozkan Sezer <sezeroz@gmail.com>.
28646
28647 2009-01-30  Eric Blake  <ebb9@byu.net>
28648
28649         fix more require-before-expand issues
28650         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
28651         expand, AC_PROG_AWK.
28652         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
28653
28654 2009-01-28  Eric Blake  <ebb9@byu.net>
28655
28656         version-etc: use consistent URL formatting
28657         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
28658         Improve formatting.  Use fputs for string without %.
28659
28660 2009-01-28  Jim Meyering  <meyering@redhat.com>
28661
28662         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
28663         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
28664         "underquoted definition of NAME" from autoconf-2.59.
28665
28666 2009-01-28  Bruno Haible  <bruno@clisp.org>
28667
28668         * doc/gnulib.texi: Add "Obsolete modules" to index.
28669
28670 2009-01-28  Jim Meyering  <meyering@redhat.com>
28671
28672         useless-if-before-free: recognize more variants
28673         * build-aux/useless-if-before-free: Also recognize e.g.,
28674         if (NULL != p) free (p);
28675
28676 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
28677
28678         test-getaddrinfo: skip (don't fail) this test when there's no network
28679         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
28680         on the presumption that it means you lack network access.
28681
28682 2009-01-26  Jim Meyering  <meyering@redhat.com>
28683
28684         fflush: avoid warnings on modern systems
28685         * lib/fflush.c (rpl_fflush): Move declarations of locals,
28686         pos and result, into scopes where they're used.
28687
28688 2009-01-26  Eric Blake  <ebb9@byu.net>
28689
28690         Silence warning reintroduced by recent extensions patch.
28691         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
28692         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
28693         autoconf.
28694
28695         Backport improved autoconf semantics of AC_DEFUN_ONCE.
28696         * m4/00gnulib.m4: New file.
28697         * gnulib-tool (func_get_filelist): Always use it.
28698         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
28699         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
28700
28701 2009-01-25  Bruno Haible  <bruno@clisp.org>
28702
28703         Make test-quotearg work on MacOS X and AIX.
28704         * tests/test-quotearg.sh: New file.
28705         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
28706         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
28707         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
28708         include <libintl.h>.
28709         (fake_locale): Remove variable.
28710         (gettext, dgettext, dcgettext): Remove functions.
28711         (main): Instead of setting a fake locale, set a real locale. Call
28712         textdomain and bindtextdomain.
28713         * modules/quotearg-tests (Files): Add the new files.
28714         (Depends-on): Add gettext, setenv, unsetenv.
28715         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
28716         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
28717         Augment TESTS_ENVIRONMENT.
28718
28719 2009-01-25  Bruno Haible  <bruno@clisp.org>
28720
28721         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
28722         fr_FR.ISO8859-1 locale on MacOS X.
28723         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
28724         ja_JP.eucJP locale on MacOS X.
28725         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
28726         zh_CN.GB18030 locale on MacOS X.
28727
28728 2009-01-25  Bruno Haible  <bruno@clisp.org>
28729
28730         Avoid link errors on MacOS X 10.3.
28731         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
28732         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28733
28734 2009-01-25  Bruno Haible  <bruno@clisp.org>
28735
28736         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
28737         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
28738         * modules/pipe (Files): Remove m4/posix_spawn.m4.
28739         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
28740         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
28741         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
28742         posix_spawnattr_init, posix_spawnattr_setsigmask,
28743         posix_spawnattr_setflags, posix_spawnattr_destroy.
28744
28745         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
28746         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
28747         * modules/execute (Files): Remove m4/posix_spawn.m4.
28748         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
28749         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
28750         posix_spawnattr_init, posix_spawnattr_setsigmask,
28751         posix_spawnattr_setflags, posix_spawnattr_destroy.
28752
28753 2009-01-25  Bruno Haible  <bruno@clisp.org>
28754
28755         * lib/glthread/threadlib.c: Include <stdlib.h>.
28756
28757 2009-01-25  Bruno Haible  <bruno@clisp.org>
28758
28759         * lib/glthread/threadlib.c (dummy): New declaration.
28760
28761 2009-01-25  Bruno Haible  <bruno@clisp.org>
28762
28763         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
28764         multibyte characters also for the GB18030 encoding. Don't crash when
28765         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
28766
28767 2009-01-25  Bruno Haible  <bruno@clisp.org>
28768
28769         Avoid redefining 'struct random_data' on OSF/1 5.1.
28770         * lib/stdlib.in.h: Include <random.h> if it exists.
28771         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
28772         HAVE_RANDOM_H. Include <random.h> when testing whether
28773         'struct random_data' exists.
28774         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
28775
28776 2009-01-25  Bruno Haible  <bruno@clisp.org>
28777
28778         Don't install charset.alias on MacOS X >= 10.3.
28779         * lib/localcharset.c (DARWIN7): New macro.
28780         (get_charset_aliases): Hardcode the result for Darwin7.
28781         * modules/localcharset (install-exec-local): Don't install
28782         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
28783
28784 2009-01-25  Bruno Haible  <bruno@clisp.org>
28785
28786         Don't install charset.alias on mingw and Cygwin.
28787         * modules/localcharset (install-exec-local): Don't install
28788         charset.alias on mingw and Cygwin, if the file does not yet exist.
28789         The result for these platforms is hardcoded in localcharset.c.
28790
28791 2009-01-25  Bruno Haible  <bruno@clisp.org>
28792
28793         Make it possible again to use AC_GNU_SOURCE together with gnulib.
28794         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
28795         before requiring AC_USE_SYSTEM_EXTENSIONS.
28796
28797 2009-01-25  Jim Meyering  <meyering@redhat.com>
28798
28799         c-strtod: avoid warnings
28800         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
28801         "assignment discards qualifiers from pointer target type" warnings.
28802
28803 2009-01-24  Bruno Haible  <bruno@clisp.org>
28804
28805         Add support for non-UTF-8 locales on MacOS X.
28806         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
28807         canonical encodings. For Darwin 7 and newer, don't map traditional
28808         encodings to UTF-8.
28809         Reported by Vincent Lefevre <vincent@vinc17.org>
28810         at <http://savannah.gnu.org/bugs/?25235>.
28811
28812 2009-01-24  Bruno Haible  <bruno@clisp.org>
28813
28814         * doc/gnulib.texi (Obsolete modules): New section.
28815         Reported by Mike Frysinger <vapier@gentoo.org>.
28816
28817 2009-01-24  Bruno Haible  <bruno@clisp.org>
28818
28819         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
28820         (%.dvi): New rule.
28821
28822 2009-01-24  Bruno Haible  <bruno@clisp.org>
28823
28824         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
28825         Reported by Eric Blake.
28826
28827 2009-01-24  Bruno Haible  <bruno@clisp.org>
28828
28829         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
28830         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
28831         Reported by Gary V. Vaughan <gary@gnu.org>.
28832
28833 2009-01-24  Bruno Haible  <bruno@clisp.org>
28834
28835         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
28836
28837 2009-01-23  Bruno Haible  <bruno@clisp.org>
28838
28839         Make c-strtod, c-strtold usable in libraries.
28840         * lib/c-strtod.c: Include string.h instead of xalloc.h.
28841         (C_STRTOD): Call strdup instead of xstrdup.
28842         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
28843         * modules/c-strtold (Depends-on): Likewise.
28844         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
28845         * NEWS: Mention the change.
28846         Reported by Michael Gold <mgold@ncf.ca>.
28847
28848 2009-01-23  Jim Meyering  <meyering@redhat.com>
28849
28850         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
28851         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
28852         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
28853
28854 2009-01-23  Simon Josefsson  <simon@josefsson.org>
28855
28856         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
28857         GNU CoreUtils.
28858         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
28859         * modules/version-etc (Description): Update.
28860
28861 2009-01-22  Bruno Haible  <bruno@clisp.org>
28862
28863         Cache the C locale object.
28864         * lib/c-strtod.c (c_locale_cache): New variable.
28865         (c_locale): New function.
28866         (C_STRTOD): Use it, and don't call freelocale.
28867         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
28868         Suggested by Paolo Bonzini.
28869
28870 2009-01-21  Bruno Haible  <bruno@clisp.org>
28871
28872         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
28873         conditions other than overflow.
28874
28875 2009-01-21  Bruno Haible  <bruno@clisp.org>
28876
28877         * lib/c-strtod.c: Include errno.h.
28878         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
28879         value from STRTOD_L and STRTOD.
28880
28881 2009-01-21  Bruno Haible  <bruno@clisp.org>
28882         and Jim Meyering  <meyering@redhat.com>
28883
28884         nanosleep: skip configure test (fail it) for apple universal builds
28885         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
28886         universal builds, assume that nanosleep does not work.
28887         * modules/nanosleep (Depends-on): Add multiarch.
28888
28889         mktime: skip configure test (fail it) for apple universal builds
28890         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
28891         universal builds, assume that mktime does not work.
28892         * modules/mktime (Depends-on): Add multiarch.
28893
28894 2009-01-21  Eric Blake  <ebb9@byu.net>
28895
28896         multiarch: avoid expand-before-require warning
28897         * modules/multiarch (configure.ac): Require, rather than expand,
28898         gl_MULTIARCH.
28899         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
28900         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
28901         enforce that all clients require it.  Partial reversion of
28902         2008-12-29 patch.
28903
28904         error: avoid expand-before-require warning
28905         * modules/errno (configure.ac): Require, rather than expand,
28906         gl_HEADER_ERRNO_H.
28907         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
28908         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
28909         enforce that all clients require it.
28910
28911         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
28912         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
28913         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
28914         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
28915
28916 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
28917
28918         Revert:
28919         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28920
28921         regex: do not depend on obsolete modules.
28922         * modules/regex: Remove memcmp and memmove.
28923
28924 2009-01-20  Bruno Haible  <bruno@clisp.org>
28925
28926         Make the 'link' module link on Windows NT 4.
28927         * lib/link.c (_WIN32_WINNT): Don't define.
28928         (CreateHardLinkFuncType): New type.
28929         (CreateHardLinkFunc, initialized): New variables.
28930         (initialize): New function.
28931         (link): Invoke CreateHardLink indirectly through the function pointer.
28932
28933 2009-01-20  Bruno Haible  <bruno@clisp.org>
28934
28935         Fix compilation failure on mingw.
28936         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
28937
28938 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
28939
28940         * doc/c-strtod.texi: Mention a couple of restrictions.
28941
28942 2009-01-20  Jim Meyering  <meyering@redhat.com>
28943
28944         gettimeofday: move more declarations out of functions
28945         * lib/gettimeofday.c: Move extern declarations of tzset and
28946         gmtime out of containing functions.  Prompted by Bruno Haible.
28947
28948 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28949
28950         regex: do not depend on obsolete modules.
28951         * modules/regex: Remove memcmp and memmove.
28952
28953 2009-01-19  Bruno Haible  <bruno@clisp.org>
28954
28955         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
28956         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
28957         gl_BIGENDIAN, not AC_C_BIGENDIAN.
28958         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
28959         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
28960
28961 2009-01-19  Bruno Haible  <bruno@clisp.org>
28962
28963         * tests/test-link.c: Include <errno.h>.
28964         (main): Exit with code 77 when a hard link cannot be created due to
28965         the file system.
28966         * tests/test-link.sh: Skip test when a hard link cannot be created due
28967         to the file system.
28968         Suggested by Eric Blake.
28969
28970 2009-01-19  Martin Lambers  <marlam@marlam.de>
28971
28972         * modules/link-tests: New file.
28973         * tests/test-link.sh: New file.
28974         * tests/test-link.c: New file.
28975
28976 2009-01-19  Eric Blake  <ebb9@byu.net>
28977
28978         doc: mention another function added in cygwin 1.7.0
28979         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
28980         Another new function in cygwin 1.7.
28981
28982 2009-01-19  Bruno Haible  <bruno@clisp.org>
28983
28984         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
28985         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
28986         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
28987         gl_BIGENDIAN, not AC_C_BIGENDIAN.
28988         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28989         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28990         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28991         * m4/md4.m4 (gl_MD4): Likewise.
28992         * m4/md5.m4 (gl_MD5): Likewise.
28993         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
28994         * m4/sha1.m4 (gl_SHA1): Likewise.
28995         * m4/sha256.m4 (gl_SHA256): Likewise.
28996         * m4/sha512.m4 (gl_SHA512): Likewise.
28997
28998 2009-01-19  Bruno Haible  <bruno@clisp.org>
28999
29000         * modules/uniname/uniname-tests (Depends-on): Add progname.
29001         * tests/uniname/test-uninames.c: Include progname.h.
29002         (main): Call set_program_name.
29003
29004         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
29005         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
29006         (main): Call set_program_name.
29007
29008         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
29009         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
29010         (main): Call set_program_name.
29011
29012         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
29013         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
29014         (main): Call set_program_name.
29015
29016         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
29017         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
29018         (main): Call set_program_name.
29019
29020         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
29021         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
29022         (main): Call set_program_name.
29023
29024         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
29025         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
29026         (main): Call set_program_name.
29027
29028         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
29029         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
29030         (main): Call set_program_name.
29031
29032         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
29033         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
29034         (main): Call set_program_name.
29035
29036 2009-01-19  Eric Blake  <ebb9@byu.net>
29037
29038         test-unistd: test previous patch
29039         * tests/test-unistd.c: Test *_FILENO macros.
29040
29041         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
29042         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29043         Guarantee a definition.
29044         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
29045         * modules/unistd-safer (Depends-on): Add dependency on unistd.
29046         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
29047         * lib/dup-safer.c (STDERR_FILENO): Likewise.
29048         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29049         Likewise.
29050         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
29051         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
29052         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29053         Likewise.
29054         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
29055         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
29056         (STDERR_FILENO): Likewise.
29057         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
29058         (STDERR_FILENO): Likewise.
29059         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
29060         (STDERR_FILENO): Likewise.
29061         Reported by Elbert Pol.
29062
29063 2009-01-19  Eric Blake  <ebb9@byu.net>
29064
29065         doc: mention more functions added in cygwin 1.7.0
29066         * doc/posix-functions/abort.texi (abort): Update wording related
29067         to cygwin.
29068         * doc/posix-functions/daylight.texi (daylight): Likewise.
29069         * doc/posix-functions/optarg.texi (optarg): Likewise.
29070         * doc/posix-functions/optarg.texi (opterr): Likewise.
29071         * doc/posix-functions/optarg.texi (optind): Likewise.
29072         * doc/posix-functions/optarg.texi (optopt): Likewise.
29073         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
29074         worked in 1.5.x, and was withdrawn in 1.7.
29075         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
29076         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
29077         cygwin versions.
29078         * doc/posix-functions/perror.texi (perror): Likewise.
29079         * doc/posix-functions/printf.texi (printf): Likewise.
29080         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
29081         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
29082         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29083         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29084         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29085         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
29086         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29087         Likewise.
29088         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29089         Likewise.
29090         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
29091         this function.
29092         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
29093         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
29094         Likewise.
29095         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
29096         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
29097         * doc/posix-functions/confstr.texi (confstr): Likewise.
29098         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
29099         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
29100         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
29101         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
29102         * doc/posix-functions/fputws.texi (fputws): Likewise.
29103         * doc/posix-functions/fwide.texi (fwide): Likewise.
29104         * doc/posix-functions/getwc.texi (getwc): Likewise.
29105         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
29106         * doc/posix-functions/putwc.texi (putwc): Likewise.
29107         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
29108         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
29109         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
29110         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
29111         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
29112         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
29113         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
29114         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
29115         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
29116         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
29117         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
29118
29119 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29120
29121         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
29122         * lib/ioctl.c: Include <sys/ioctl.h>.
29123
29124 2009-01-19  Simon Josefsson  <simon@josefsson.org>
29125
29126         * modules/getdate-tests (Depends-on): Add progname.
29127         * tests/test-getdate.c: Use progname module, to avoid link errors
29128         on non-glibc systems.
29129
29130 2009-01-18  Simon Josefsson  <simon@josefsson.org>
29131
29132         * modules/filenamecat-tests (Depends-on): Add progname.
29133         * modules/fstrcmp-tests (Depends-on): Likewise.
29134
29135         * tests/test-filenamecat.c: Use progname module, to avoid link
29136         errors on non-glibc systems.
29137         * tests/test-fstrcmp.c: Likewise.
29138
29139 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29140
29141         gettimeofday: avoid warning: nested extern declaration of 'localtime'
29142         * lib/gettimeofday.c: Move extern declaration out of function.
29143
29144 2009-01-18  Bruno Haible  <bruno@clisp.org>
29145
29146         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
29147         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
29148         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
29149
29150 2009-01-18  Bruno Haible  <bruno@clisp.org>
29151
29152         * lib/strftime.c (MEMPCPY): Remove unused macro.
29153         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
29154
29155 2009-01-18  Martin Lambers  <marlam@marlam.de>
29156
29157         New module 'link'.
29158         * lib/unistd.in.h (link): New declaration.
29159         * lib/link.c: New file.
29160         * m4/link.m4: New file.
29161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
29162         HAVE_LINK.
29163         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
29164         * modules/link: New file.
29165         * doc/posix-functions/link.texi: Mention the new module.
29166
29167 2009-01-18  Bruno Haible  <bruno@clisp.org>
29168
29169         * tests/test-avltree_list.c (main): Call set_program_name.
29170         * tests/test-avltree_oset.c (main): Likewise.
29171         * tests/test-obstack-printf.c: Include progname.h.
29172         (main): Call set_program_name.
29173         * tests/test-quotearg.c: Include progname.h.
29174         (main): Call set_program_name.
29175         * tests/test-xmemdup0.c: Include progname.h.
29176         (main): Call set_program_name.
29177
29178 2009-01-18  Bruno Haible  <bruno@clisp.org>
29179
29180         New module 'alphasort'.
29181         * lib/dirent.in.h (alphasort): New declaration.
29182         * lib/alphasort.c: New file, from glibc with modifications.
29183         * m4/alphasort.m4: New file.
29184         * modules/alphasort: New file.
29185         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
29186         HAVE_ALPHASORT.
29187         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
29188         HAVE_ALPHASORT.
29189         * doc/posix-functions/alphasort.texi: Mention the new module and the
29190         portability problems.
29191
29192 2009-01-18  Bruno Haible  <bruno@clisp.org>
29193
29194         New module 'scandir'.
29195         * lib/dirent.in.h (scandir): New declaration.
29196         * lib/scandir.c: New file, from glibc with modifications.
29197         * m4/scandir.m4: New file.
29198         * modules/scandir: New file.
29199         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
29200         HAVE_SCANDIR.
29201         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
29202         HAVE_SCANDIR.
29203         * doc/posix-functions/scandir.texi: Mention the new module and the
29204         portability problems.
29205
29206 2009-01-17  Bruno Haible  <bruno@clisp.org>
29207
29208         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
29209         Update documentation.
29210         (func_remove_suffix): Escape all dots in the suffix. Update
29211         documentation.
29212         (func_filter_filelist): Update documentation.
29213         Reported by Ralf Wildenhues.
29214
29215 2009-01-17  Bruno Haible  <bruno@clisp.org>
29216
29217         * modules/dprintf-posix-tests: New file.
29218         * tests/test-dprintf-posix.sh: New file.
29219         * tests/test-dprintf-posix.c: New file.
29220
29221         New modules 'dprintf', 'dprintf-posix'.
29222         * lib/stdio.in.h (dprintf): New declaration.
29223         * lib/dprintf.c: New file.
29224         * m4/dprintf.m4: New file.
29225         * m4/dprintf-posix.m4: New file.
29226         * modules/dprintf: New file.
29227         * modules/dprintf-posix: New file.
29228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
29229         HAVE_DPRINTF, REPLACE_DPRINTF.
29230         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
29231         HAVE_DPRINTF, REPLACE_DPRINTF.
29232         * doc/posix-functions/dprintf.texi: Mention the new modules.
29233
29234 2009-01-17  Bruno Haible  <bruno@clisp.org>
29235
29236         * modules/vdprintf-posix-tests: New file.
29237         * tests/test-vdprintf-posix.sh: New file.
29238         * tests/test-vdprintf-posix.c: New file.
29239
29240         New modules 'vdprintf', 'vdprintf-posix'.
29241         * lib/stdio.in.h (vdprintf): New declaration.
29242         * lib/vdprintf.c: New file.
29243         * m4/vdprintf.m4: New file.
29244         * m4/vdprintf-posix.m4: New file.
29245         * modules/vdprintf: New file.
29246         * modules/vdprintf-posix: New file.
29247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
29248         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29249         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
29250         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29251         * doc/posix-functions/vdprintf.texi: Mention the new modules.
29252
29253 2009-01-17  Bruno Haible  <bruno@clisp.org>
29254
29255         Fix replacement of fopen on mingw.
29256         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
29257         mingw.
29258
29259 2009-01-17  Bruno Haible  <bruno@clisp.org>
29260
29261         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
29262         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
29263
29264 2009-01-17  Bruno Haible  <bruno@clisp.org>
29265
29266         Avoid test-fflush2.sh failure on mingw.
29267         * tests/test-fflush2.c: Include binary-io.h.
29268         (main): Put standard input into binary mode.
29269         * modules/fflush-tests (Depends-on): Add binary-io.
29270
29271 2009-01-17  Bruno Haible  <bruno@clisp.org>
29272
29273         * lib/wchar.in.h: In another particular situation, include only the
29274         system's <wchar.h> file.
29275         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
29276         Reported by Albert Chin-A-Young <china@thewrittenword.com>
29277         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
29278
29279 2009-01-17  Bruno Haible  <bruno@clisp.org>
29280
29281         Support for stripping executables in --enable-relocatable.
29282         * build-aux/install-reloc: Expect one more argument, or an environment
29283         variable RELOC_STRIP_PROG. If set, strip the destination program and
29284         its wrapper.
29285         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
29286         RELOC_STRIP_PROG.
29287         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
29288         to set RELOCATABLE_STRIP.
29289         * NEWS: Mention the new Makefile requirement.
29290
29291 2009-01-17  Bruno Haible  <bruno@clisp.org>
29292
29293         * build-aux/install-reloc: Remove debugging information left over by
29294         C compiler on MacOS X.
29295
29296 2009-01-17  Bruno Haible  <bruno@clisp.org>
29297
29298         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
29299         * lib/progreloc.c (find_executable): Fix type of pointer passed to
29300         _NSGetExecutablePath.
29301
29302 2009-01-16  Jim Meyering  <meyering@redhat.com>
29303
29304         strerror: avoid warnings about discarding "const"
29305         * lib/strerror.c (rpl_strerror): Instead of returning a const
29306         string from each and every "case", use a variable, and add a single
29307         cast after the switch.
29308
29309 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
29310
29311         * lib/arpa_inet.in.h: Add extern "C" block for C++.
29312
29313 2009-01-16  Bruno Haible  <bruno@clisp.org>
29314
29315         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
29316         array initializer syntax that also works in C++ mode.
29317         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29318
29319 2009-01-16  Jim Meyering  <meyering@redhat.com>
29320
29321         poll: suppress a warning
29322         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
29323         to ignore "...unsigned expression < 0 is always false" warnings.
29324
29325 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
29326
29327         poll: remove declarations of unused variables
29328         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
29329         sockbuf and optlen.
29330
29331 2009-01-15  Bruno Haible  <bruno@clisp.org>
29332
29333         Make fflush-after-ungetc POSIX compliant on BSD systems.
29334         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
29335         (clear_ungetc_buffer): Implement also for other systems.
29336         (rpl_fflush): On glibc systems, invoke
29337         clear_ungetc_buffer_preserving_position. Otherwise, invoke
29338         clear_ungetc_buffer after fetching the stream's position, not before.
29339
29340 2009-01-15  Bruno Haible  <bruno@clisp.org>
29341
29342         Make fflush-after-ungetc POSIX compliant on glibc systems.
29343         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
29344         after ungetc.
29345         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
29346         (rpl_fflush): On glibc systems, simply call the system's fflush
29347         function after clearing the ungetc buffer.
29348         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
29349         Instead, lseek only to the end of file, then use the system's fseeko
29350         for the rest. On glibc systems, reset the EOF indicator bit.
29351
29352 2009-01-15  Jim Meyering  <meyering@redhat.com>
29353
29354         openmp.m4: revert quote-adding change, for portability to older autoconf
29355         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
29356         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
29357         Simon Josefsson noticed the problem when using autoconf-2.61.
29358
29359 2009-01-15  Bruno Haible  <bruno@clisp.org>
29360
29361         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
29362         * tests/test-fflush2.c (ASSERT): Always fail.
29363         (main): Add two tests for fflush() after ungetc(), taking into account
29364         the Austin Group's clarification.
29365         Suggested by Eric Blake.
29366
29367 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
29368
29369         mktime.m4: remove K&R-style function prototypes
29370         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
29371         for the Sun C++ compiler.
29372
29373 2009-01-14  Bruno Haible  <bruno@clisp.org>
29374
29375         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
29376         while including <wchar.h>.
29377         * lib/wchar.in.h: In two particular situations on HP-UX, include only
29378         the system's <wchar.h> file.
29379         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29380
29381 2009-01-14  Bruno Haible  <bruno@clisp.org>
29382
29383         * m4/csharp.m4: Don't mention gettext on the serial number line.
29384         * m4/csharpexec.m4: Likewise.
29385         * m4/eaccess.m4: Likewise.
29386         * m4/javaexec.m4: Likewise.
29387         * m4/sig_atomic_t.m4: Likewise.
29388         * m4/tmpdir.m4: Likewise.
29389         * m4/intldir.m4: Bump gettext version.
29390         * m4/lib-ld.m4: Likewise.
29391
29392 2009-01-14  Bruno Haible  <bruno@clisp.org>
29393
29394         * lib/progname.c (set_program_name): Add more comments.
29395         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29396
29397 2009-01-14  Simon Josefsson  <simon@josefsson.org>
29398
29399         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
29400         were sys/stat.h does not define it.
29401
29402 2009-01-14  Jim Meyering  <meyering@redhat.com>
29403
29404         many *.m4 files: improve m4 quoting
29405         99% of this change was performed by running the following commands:
29406         git ls-files | grep '\.m4$' | xargs perl -pi \
29407           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
29408           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29409           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29410           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
29411         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
29412         The remainder were to add Copyright dates, increment serial numbers,
29413         undo some changes in comments, exclude m4/intl.m4, and add quotes
29414         around the "1" in ",1" where the unusual spacing prohibited the
29415         above regexps from doing the job.  For more details, see
29416         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
29417         * m4/acl.m4: Modified.
29418         * m4/afs.m4: Likewise.
29419         * m4/alloca.m4: Likewise.
29420         * m4/argp.m4: Likewise.
29421         * m4/argz.m4: Likewise.
29422         * m4/atexit.m4: Likewise.
29423         * m4/bison-i18n.m4: Likewise.
29424         * m4/bison.m4: Likewise.
29425         * m4/byteswap.m4: Likewise.
29426         * m4/c-stack.m4: Likewise.
29427         * m4/c-strtod.m4: Likewise.
29428         * m4/calloc.m4: Likewise.
29429         * m4/canonicalize-lgpl.m4: Likewise.
29430         * m4/chown.m4: Likewise.
29431         * m4/clock_time.m4: Likewise.
29432         * m4/codeset.m4: Likewise.
29433         * m4/copy-file.m4: Likewise.
29434         * m4/csharp.m4: Likewise.
29435         * m4/csharpcomp.m4: Likewise.
29436         * m4/csharpexec.m4: Likewise.
29437         * m4/d-ino.m4: Likewise.
29438         * m4/d-type.m4: Likewise.
29439         * m4/dirfd.m4: Likewise.
29440         * m4/double-slash-root.m4: Likewise.
29441         * m4/eaccess.m4: Likewise.
29442         * m4/eealloc.m4: Likewise.
29443         * m4/environ.m4: Likewise.
29444         * m4/errno_h.m4: Likewise.
29445         * m4/euidaccess.m4: Likewise.
29446         * m4/execute.m4: Likewise.
29447         * m4/fatal-signal.m4: Likewise.
29448         * m4/fchdir.m4: Likewise.
29449         * m4/fcntl_h.m4: Likewise.
29450         * m4/fileblocks.m4: Likewise.
29451         * m4/filenamecat.m4: Likewise.
29452         * m4/findprog.m4: Likewise.
29453         * m4/flexmember.m4: Likewise.
29454         * m4/fnmatch.m4: Likewise.
29455         * m4/fopen.m4: Likewise.
29456         * m4/fpending.m4: Likewise.
29457         * m4/fprintf-posix.m4: Likewise.
29458         * m4/free.m4: Likewise.
29459         * m4/frexp.m4: Likewise.
29460         * m4/frexpl.m4: Likewise.
29461         * m4/fsusage.m4: Likewise.
29462         * m4/ftruncate.m4: Likewise.
29463         * m4/gc-camellia.m4: Likewise.
29464         * m4/gc-random.m4: Likewise.
29465         * m4/gc.m4: Likewise.
29466         * m4/getaddrinfo.m4: Likewise.
29467         * m4/getcwd-abort-bug.m4: Likewise.
29468         * m4/getcwd-path-max.m4: Likewise.
29469         * m4/getdate.m4: Likewise.
29470         * m4/getdomainname.m4: Likewise.
29471         * m4/getgroups.m4: Likewise.
29472         * m4/gethostname.m4: Likewise.
29473         * m4/gethrxtime.m4: Likewise.
29474         * m4/getline.m4: Likewise.
29475         * m4/getloadavg.m4: Likewise.
29476         * m4/getndelim2.m4: Likewise.
29477         * m4/getpass.m4: Likewise.
29478         * m4/gettext.m4: Likewise.
29479         * m4/gettime.m4: Likewise.
29480         * m4/gettimeofday.m4: Likewise.
29481         * m4/gnulib-common.m4: Likewise.
29482         * m4/group-member.m4: Likewise.
29483         * m4/host-os.m4: Likewise.
29484         * m4/iconv.m4: Likewise.
29485         * m4/iconv_open.m4: Likewise.
29486         * m4/inet_ntop.m4: Likewise.
29487         * m4/inet_pton.m4: Likewise.
29488         * m4/inline.m4: Likewise.
29489         * m4/intldir.m4: Likewise.
29490         * m4/intlmacosx.m4: Likewise.
29491         * m4/intmax.m4: Likewise.
29492         * m4/intmax_t.m4: Likewise.
29493         * m4/inttypes.m4: Likewise.
29494         * m4/inttypes_h.m4: Likewise.
29495         * m4/inttypes-pri.m4: Likewise.
29496         * m4/isapipe.m4: Likewise.
29497         * m4/isnand.m4: Likewise.
29498         * m4/isnanf.m4: Likewise.
29499         * m4/isnanl.m4: Likewise.
29500         * m4/javacomp.m4: Likewise.
29501         * m4/javaexec.m4: Likewise.
29502         * m4/jm-winsz1.m4: Likewise.
29503         * m4/jm-winsz2.m4: Likewise.
29504         * m4/lchown.m4: Likewise.
29505         * m4/lcmessage.m4: Likewise.
29506         * m4/ldexpl.m4: Likewise.
29507         * m4/lib-ld.m4: Likewise.
29508         * m4/lib-link.m4: Likewise.
29509         * m4/libsigsegv.m4: Likewise.
29510         * m4/link-follow.m4: Likewise.
29511         * m4/localcharset.m4: Likewise.
29512         * m4/locale-fr.m4: Likewise.
29513         * m4/locale-ja.m4: Likewise.
29514         * m4/locale-tr.m4: Likewise.
29515         * m4/locale-zh.m4: Likewise.
29516         * m4/lock.m4: Likewise.
29517         * m4/longlong.m4: Likewise.
29518         * m4/ls-mntd-fs.m4: Likewise.
29519         * m4/lstat.m4: Likewise.
29520         * m4/malloc.m4: Likewise.
29521         * m4/mathl.m4: Likewise.
29522         * m4/mbrtowc.m4: Likewise.
29523         * m4/mbstate_t.m4: Likewise.
29524         * m4/mbswidth.m4: Likewise.
29525         * m4/memchr.m4: Likewise.
29526         * m4/memcmp.m4: Likewise.
29527         * m4/memcpy.m4: Likewise.
29528         * m4/memmem.m4: Likewise.
29529         * m4/memmove.m4: Likewise.
29530         * m4/mempcpy.m4: Likewise.
29531         * m4/memrchr.m4: Likewise.
29532         * m4/memset.m4: Likewise.
29533         * m4/minmax.m4: Likewise.
29534         * m4/mkdir-slash.m4: Likewise.
29535         * m4/mkdtemp.m4: Likewise.
29536         * m4/mktime.m4: Likewise.
29537         * m4/mmap-anon.m4: Likewise.
29538         * m4/mountlist.m4: Likewise.
29539         * m4/nanosleep.m4: Likewise.
29540         * m4/nls.m4: Likewise.
29541         * m4/nocrash.m4: Likewise.
29542         * m4/open.m4: Likewise.
29543         * m4/openat.m4: Likewise.
29544         * m4/openmp.m4: Likewise.
29545         * m4/pathmax.m4: Likewise.
29546         * m4/perl.m4: Likewise.
29547         * m4/physmem.m4: Likewise.
29548         * m4/pipe.m4: Likewise.
29549         * m4/po.m4: Likewise.
29550         * m4/poll.m4: Likewise.
29551         * m4/posixtm.m4: Likewise.
29552         * m4/posixver.m4: Likewise.
29553         * m4/printf-frexp.m4: Likewise.
29554         * m4/printf-frexpl.m4: Likewise.
29555         * m4/printf-posix.m4: Likewise.
29556         * m4/printf-posix-rpl.m4: Likewise.
29557         * m4/printf.m4: Likewise.
29558         * m4/progtest.m4: Likewise.
29559         * m4/putenv.m4: Likewise.
29560         * m4/readline.m4: Likewise.
29561         * m4/readlink.m4: Likewise.
29562         * m4/readutmp.m4: Likewise.
29563         * m4/realloc.m4: Likewise.
29564         * m4/regex.m4: Likewise.
29565         * m4/relocatable.m4: Likewise.
29566         * m4/relocatable-lib.m4: Likewise.
29567         * m4/rename-dest-slash.m4: Likewise.
29568         * m4/rename.m4: Likewise.
29569         * m4/rmdir-errno.m4: Likewise.
29570         * m4/rmdir.m4: Likewise.
29571         * m4/roundf.m4: Likewise.
29572         * m4/roundl.m4: Likewise.
29573         * m4/rpmatch.m4: Likewise.
29574         * m4/save-cwd.m4: Likewise.
29575         * m4/selinux-selinux-h.m4: Likewise.
29576         * m4/setenv.m4: Likewise.
29577         * m4/settime.m4: Likewise.
29578         * m4/sig2str.m4: Likewise.
29579         * m4/sig_atomic_t.m4: Likewise.
29580         * m4/signalblocking.m4: Likewise.
29581         * m4/signbit.m4: Likewise.
29582         * m4/sigpipe.m4: Likewise.
29583         * m4/sockets.m4: Likewise.
29584         * m4/sockpfaf.m4: Likewise.
29585         * m4/st_dm_mode.m4: Likewise.
29586         * m4/stat-time.m4: Likewise.
29587         * m4/stdbool.m4: Likewise.
29588         * m4/stdint.m4: Likewise.
29589         * m4/stdint_h.m4: Likewise.
29590         * m4/stpcpy.m4: Likewise.
29591         * m4/stpncpy.m4: Likewise.
29592         * m4/strcase.m4: Likewise.
29593         * m4/strchrnul.m4: Likewise.
29594         * m4/strcspn.m4: Likewise.
29595         * m4/strdup.m4: Likewise.
29596         * m4/strftime.m4: Likewise.
29597         * m4/strndup.m4: Likewise.
29598         * m4/strnlen.m4: Likewise.
29599         * m4/strpbrk.m4: Likewise.
29600         * m4/strptime.m4: Likewise.
29601         * m4/strsep.m4: Likewise.
29602         * m4/strtod.m4: Likewise.
29603         * m4/strtoimax.m4: Likewise.
29604         * m4/strtok_r.m4: Likewise.
29605         * m4/strtol.m4: Likewise.
29606         * m4/strtoll.m4: Likewise.
29607         * m4/strtoul.m4: Likewise.
29608         * m4/strtoull.m4: Likewise.
29609         * m4/strtoumax.m4: Likewise.
29610         * m4/strverscmp.m4: Likewise.
29611         * m4/threadlib.m4: Likewise.
29612         * m4/timegm.m4: Likewise.
29613         * m4/tm_gmtoff.m4: Likewise.
29614         * m4/tmpdir.m4: Likewise.
29615         * m4/tmpfile.m4: Likewise.
29616         * m4/tzset.m4: Likewise.
29617         * m4/uintmax_t.m4: Likewise.
29618         * m4/unlinkdir.m4: Likewise.
29619         * m4/unlocked-io.m4: Likewise.
29620         * m4/uptime.m4: Likewise.
29621         * m4/userspec.m4: Likewise.
29622         * m4/utimbuf.m4: Likewise.
29623         * m4/utime.m4: Likewise.
29624         * m4/utimes-null.m4: Likewise.
29625         * m4/utimes.m4: Likewise.
29626         * m4/vararrays.m4: Likewise.
29627         * m4/vasnprintf.m4: Likewise.
29628         * m4/vfprintf-posix.m4: Likewise.
29629         * m4/vprintf-posix.m4: Likewise.
29630         * m4/wait-process.m4: Likewise.
29631         * m4/wchar_t.m4: Likewise.
29632         * m4/wint_t.m4: Likewise.
29633         * m4/write-any-file.m4: Likewise.
29634         * m4/yield.m4: Likewise.
29635
29636 2009-01-13  Bruno Haible  <bruno@clisp.org>
29637
29638         Avoid test-copy-file.sh failures when ACL support insufficient.
29639         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
29640         TESTS_ENVIRONMENT.
29641         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
29642         Reported by Jim Meyering.
29643
29644 2009-01-13  Bruno Haible  <bruno@clisp.org>
29645
29646         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
29647         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
29648         * modules/unistdio/u8-printf-parse (Files): Likewise.
29649         * modules/unistdio/u32-printf-parse (Files): Likewise.
29650         * modules/unistdio/ulc-printf-parse (Files): Likewise.
29651
29652 2009-01-13  Simon Josefsson  <simon@josefsson.org>
29653
29654         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
29655         and m4/inttypes_h.m4 too.
29656
29657 2009-01-12  Eric Blake  <ebb9@byu.net>
29658
29659         tests: IRIX 6.2 cc can't compile -0.0 into .data
29660         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
29661         rather than at compile-time.
29662         * tests/test-floorl.c (minus_zero): Likewise.
29663         * tests/test-frexpl.c (minus_zero): Likewise.
29664         * tests/test-isnan.c (minus_zerol): Likewise.
29665         * tests/test-isnanl.h (minus_zero): Likewise.
29666         * tests/test-ldexpl.c (minus_zero): Likewise.
29667         * tests/test-roundl.c (minus_zero): Likewise.
29668         * tests/test-signbit.c (minus_zerol): Likewise.
29669         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29670         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29671         * tests/test-truncl.c (minus_zero): Likewise.
29672         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29673         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29674         Reported by Tom G. Christensen and Nelson H. F. Beebe.
29675
29676 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29677
29678         regex: fix glibc bug 9697
29679         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
29680         handling.
29681
29682 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29683
29684         regex: fix glibc bug 697
29685         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
29686         being NULL also if there are no backreferences.
29687
29688 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29689
29690         regex: merge glibc changes
29691         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
29692         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
29693         re_string_skip_chars, re_string_reconstruct): Likewise.
29694         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
29695
29696 2009-01-07  Jim Meyering  <meyering@redhat.com>
29697
29698         poll: filter through cppi
29699         * lib/poll.c: Indent cpp directives to reflect nesting.
29700
29701 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
29702
29703         poll: don't return uninitialized
29704         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
29705
29706 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
29707
29708         avoid compile failure on AIX 6.1
29709         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
29710         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
29711
29712 2009-01-04  Jim Meyering  <meyering@redhat.com>
29713
29714         remove duplicate inclusion of <stdio.h>
29715         * tests/test-fprintf-posix.c: Likewise.
29716         * tests/test-printf-posix.c: Likewise.
29717         * tests/test-snprintf-posix.c: Likewise.
29718         * tests/test-sprintf-posix.c: Likewise.
29719         * tests/test-vasprintf-posix.c: Likewise.
29720         * tests/test-vfprintf-posix.c: Likewise.
29721         * tests/test-vprintf-posix.c: Likewise.
29722         * tests/test-vsnprintf-posix.c: Likewise.
29723         * tests/test-vsprintf-posix.c: Likewise.
29724
29725 2009-01-03  Jim Meyering  <meyering@redhat.com>
29726
29727         gnulib-tool: fix sed-based filtering
29728         * gnulib-tool (func_filter_filelist): Remove extra backslash
29729         in sed_fff_filter definition.
29730
29731 2009-01-02  Jim Meyering  <meyering@redhat.com>
29732
29733         strftime: avoid compilation failure on Solaris 2.6
29734         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
29735         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
29736         Don't #define mbrlen or mbsinit, since now they're guaranteed to
29737         be available.  Reported by Tom G. Christensen.  Details in
29738         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
29739
29740 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29741             Bruno Haible  <bruno@clisp.org>
29742
29743         Speed up gnulib-tool by doing more string processing through shell
29744         built-ins.
29745         * gnulib-tool (fast_func_append): New variable.
29746         (func_remove_prefix, func_remove_suffix): New functions.
29747         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
29748         (func_filter_filelist): New function.
29749         (func_get_dependencies): Use func_remove_suffix instead of sed.
29750         (func_get_automake_snippet): Use func_filter_filelist instead of a
29751         subshell and sed invocation.
29752
29753 2009-01-01  Bruno Haible  <bruno@clisp.org>
29754
29755         Fix a security bug.
29756         * gnulib-tool (func_import, import, update): Don't allow the characters
29757         '"', '$', '`', '\' in macro arguments that become part of commands that
29758         are evaluated.
29759
29760 2009-01-01  Bruno Haible  <bruno@clisp.org>
29761
29762         * gnulib-tool (func_reset_sigpipe): Add more comments.
29763
29764 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29765
29766         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
29767         func_emit_tests_Makefile_am, func_import): Abort loops early if we
29768         already know the answer.
29769
29770 2009-01-01  Jim Meyering  <meyering@redhat.com>
29771
29772         * lib/version-etc.c (version_etc_va): Update copyright year.
29773
29774 2008-12-30  Bruno Haible  <bruno@clisp.org>
29775
29776         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
29777         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
29778         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
29779
29780 2008-12-29  Eric Blake  <ebb9@byu.net>
29781
29782         multiarch: avoid autoconf AC_REQUIRE bug
29783         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
29784         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
29785         2.63 and older.
29786         Reported by Bruno Haible, and analyzed in
29787         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
29788
29789 2008-12-29  Bruno Haible  <bruno@clisp.org>
29790
29791         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
29792         files in subdirectories correctly.
29793         Reported by Ralf Wildenhues.
29794
29795 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29796
29797         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
29798         rather than 'join FILE -', for Solaris join.
29799
29800 2008-12-29  Bruno Haible  <bruno@clisp.org>
29801
29802         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
29803         quoting.
29804         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29805         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29806         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29807         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
29808         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29809         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29810         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29811         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29812         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29813         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29814         * m4/nls.m4 (AM_NLS): Likewise.
29815         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
29816         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29817         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29818         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29819         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29820         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29821         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
29822         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29823         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29824         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29825         * m4/xsize.m4 (gl_XSIZE): Likewise.
29826         Suggested by Jim Meyering.
29827
29828 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29829
29830         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
29831         * lib/parse-duration.c: use a switch instead of cascading if's.
29832
29833 2008-12-29  Eric Blake  <ebb9@byu.net>
29834
29835         wchar.h: supply WEOF on Irix 5.3
29836         * lib/wchar.in.h (wint_t): Also supply WEOF.
29837         * lib/wctype.in.h (wint_t): Likewise.
29838         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
29839         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
29840         Reported by Tom G. Christensen.
29841
29842 2008-12-26  Bruno Haible  <bruno@clisp.org>
29843
29844         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
29845         i486, i586, i686.
29846
29847 2008-12-26  Bruno Haible  <bruno@clisp.org>
29848
29849         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
29850
29851 2008-12-26  Bruno Haible  <bruno@clisp.org>
29852
29853         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
29854         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
29855         not __STDC_CONSTANT_MACROS.
29856         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29857
29858 2008-12-25  Bruno Haible  <bruno@clisp.org>
29859
29860         Add support for universal builds to vasnprintf.
29861         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
29862         universal builds, guess no.
29863         * modules/vasnprintf-posix (Depends-on): Add multiarch.
29864         * modules/vasprintf-posix (Depends-on): Likewise.
29865         * modules/fprintf-posix (Depends-on): Likewise.
29866         * modules/vfprintf-posix (Depends-on): Likewise.
29867         * modules/snprintf-posix (Depends-on): Likewise.
29868         * modules/vsnprintf-posix (Depends-on): Likewise.
29869         * modules/sprintf-posix (Depends-on): Likewise.
29870         * modules/vsprintf-posix (Depends-on): Likewise.
29871         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29872         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29873         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29874         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29875         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29876         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29877         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29878
29879         Add support for universal builds to <inttypes.h>.
29880         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
29881         _SCNu64_PREFIX): In Apple
29882         universal builds, define directly, using _LP64.
29883         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
29884         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
29885         * modules/inttypes (Depends-on): Add multiarch.
29886         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
29887
29888         Add support for universal builds to <stdint.h>.
29889         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
29890         universal builds, define directly, using _LP64.
29891         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
29892         Apple universal builds, don't test for the size and suffix of ptrdiff_t
29893         and size_t.
29894         * modules/stdint (Depends-on): Add multiarch.
29895         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
29896
29897         New module 'multiarch'.
29898         * modules/multiarch: New file.
29899         * m4/multiarch.m4: New file.
29900
29901 2008-12-25  Bruno Haible  <bruno@clisp.org>
29902
29903         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
29904
29905 2008-12-25  Bruno Haible  <bruno@clisp.org>
29906
29907         * modules/btowc (License): Relicense under LGPLv2+.
29908         * modules/mbsinit (License): Likewise.
29909         * modules/mbrtowc (License): Likewise.
29910         * modules/wcrtomb (License): Likewise.
29911         * modules/streq (License): Likewise.
29912         Reported by David Lutterkort <lutter@redhat.com>.
29913
29914 2008-12-23  Bruno Haible  <bruno@clisp.org>
29915
29916         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
29917
29918 2008-12-23  Bruno Haible  <bruno@clisp.org>
29919
29920         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
29921         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
29922         GETADDRINFO_LIB, not in LIBS.
29923         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
29924         * modules/canon-host (Link): Likewise.
29925         * NEWS: Mention the change.
29926         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
29927         GETADDRINFO_LIB.
29928
29929 2008-12-22  Bruno Haible  <bruno@clisp.org>
29930
29931         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
29932         * doc/posix-functions/iswalpha_l.texi: Likewise.
29933         * doc/posix-functions/iswblank_l.texi: Likewise.
29934         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29935         * doc/posix-functions/iswctype_l.texi: Likewise.
29936         * doc/posix-functions/iswdigit_l.texi: Likewise.
29937         * doc/posix-functions/iswgraph_l.texi: Likewise.
29938         * doc/posix-functions/iswlower_l.texi: Likewise.
29939         * doc/posix-functions/iswprint_l.texi: Likewise.
29940         * doc/posix-functions/iswpunct_l.texi: Likewise.
29941         * doc/posix-functions/iswspace_l.texi: Likewise.
29942         * doc/posix-functions/iswupper_l.texi: Likewise.
29943         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29944         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
29945         * doc/posix-functions/open_wmemstream.texi: Likewise.
29946         * doc/posix-functions/swscanf.texi: Likewise.
29947         * doc/posix-functions/towctrans_l.texi: Likewise.
29948         * doc/posix-functions/towlower.texi: Likewise.
29949         * doc/posix-functions/towlower_l.texi: Likewise.
29950         * doc/posix-functions/towupper.texi: Likewise.
29951         * doc/posix-functions/towupper_l.texi: Likewise.
29952         * doc/posix-functions/vfwprintf.texi: Likewise.
29953         * doc/posix-functions/vfwscanf.texi: Likewise.
29954         * doc/posix-functions/vswscanf.texi: Likewise.
29955         * doc/posix-functions/vwprintf.texi: Likewise.
29956         * doc/posix-functions/vwscanf.texi: Likewise.
29957         * doc/posix-functions/wcpcpy.texi: Likewise.
29958         * doc/posix-functions/wcpncpy.texi: Likewise.
29959         * doc/posix-functions/wcscasecmp.texi: Likewise.
29960         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
29961         * doc/posix-functions/wcscoll_l.texi: Likewise.
29962         * doc/posix-functions/wcsdup.texi: Likewise.
29963         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29964         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
29965         * doc/posix-functions/wcsnlen.texi: Likewise.
29966         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29967         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29968         * doc/posix-functions/wctrans_l.texi: Likewise.
29969         * doc/posix-functions/wctype_l.texi: Likewise.
29970         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
29971         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
29972         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
29973         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
29974         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
29975         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
29976         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
29977         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
29978         * doc/glibc-functions/wcschrnul.texi: Likewise.
29979         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29980         * doc/glibc-functions/wcstod_l.texi: Likewise.
29981         * doc/glibc-functions/wcstof_l.texi: Likewise.
29982         * doc/glibc-functions/wcstol_l.texi: Likewise.
29983         * doc/glibc-functions/wcstold_l.texi: Likewise.
29984         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29985         * doc/glibc-functions/wcstoq.texi: Likewise.
29986         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29987         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29988         * doc/glibc-functions/wcstouq.texi: Likewise.
29989         * doc/glibc-functions/wmempcpy.texi: Likewise.
29990
29991 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
29992             Eric Blake  <ebb9@byu.net>
29993             Paolo Bonzini  <bonzini@gnu.org>
29994             Bruno Haible  <bruno@clisp.org>
29995
29996         Make c-stack work on Haiku.
29997         * lib/c-stack.c (SA_ONSTACK): Define fallback.
29998         (c_stack_action): Use SA_ONSTACK flag.
29999
30000 2008-12-22  Bruno Haible  <bruno@clisp.org>
30001
30002         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
30003
30004 2008-12-22  Bruno Haible  <bruno@clisp.org>
30005
30006         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
30007         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
30008         being overridden.
30009         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
30010         New macros.
30011         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
30012         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
30013         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
30014         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
30015
30016 2008-12-22  Bruno Haible  <bruno@clisp.org>
30017
30018         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
30019         from test code.
30020
30021 2008-12-22  Eric Blake  <ebb9@byu.net>
30022
30023         Avoid gcc warnings on cygwin.
30024         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
30025         Avoid unused variable.
30026         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
30027         Likewise.
30028
30029 2008-12-22  Bruno Haible  <bruno@clisp.org>
30030
30031         Remove HAVE_MBRTOWC conditionals.
30032         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
30033         (mbscasecmp): Assume mbrtowc function.
30034         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
30035         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
30036         * lib/mbschr.c: Include mbuiter.h unconditionally.
30037         (mbschr): Assume mbrtowc function.
30038         * lib/mbscspn.c: Include mbuiter.h unconditionally.
30039         (mbscspn): Assume mbrtowc function.
30040         * lib/mbslen.c: Include mbuiter.h unconditionally.
30041         (mbslen): Assume mbrtowc function.
30042         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
30043         (mbsncasecmp): Assume mbrtowc function.
30044         * lib/mbsnlen.c: Include mbiter.h unconditionally.
30045         (mbsnlen): Assume mbrtowc function.
30046         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
30047         (mbspbrk): Assume mbrtowc function.
30048         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
30049         (mbspcasecmp): Assume mbrtowc function.
30050         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
30051         (mbsrchr): Assume mbrtowc function.
30052         * lib/mbssep.c: Include mbuiter.h unconditionally.
30053         (mbssep): Assume mbrtowc function.
30054         * lib/mbsspn.c: Include mbuiter.h unconditionally.
30055         (mbsspn): Assume mbrtowc function.
30056         * lib/mbsstr.c: Include mbuiter.h unconditionally.
30057         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
30058         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
30059         (mbstok_r): Assume mbrtowc function.
30060         * lib/propername.c: Include mbuiter.h unconditionally.
30061         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
30062         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
30063         (trim2): Assume mbrtowc function.
30064         * lib/mbswidth.c (mbsinit): Remove fallback definition.
30065         (mbsnwidth): Assume mbrtowc function.
30066         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
30067         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
30068         fallback definitions.
30069         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
30070
30071 2008-12-22  Bruno Haible  <bruno@clisp.org>
30072
30073         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
30074
30075 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
30076
30077         * modules/regex: Request emulations for the mb*/wc* functions we need.
30078         * m4/regex.m4: Don't look for those functions here.
30079         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
30080
30081 2008-12-22  Bruno Haible  <bruno@clisp.org>
30082
30083         * modules/fnmatch (Depends-on): Remove duplicated dependency.
30084
30085 2008-12-21  Bruno Haible  <bruno@clisp.org>
30086
30087         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
30088         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
30089         (Include): Remove conditionalization.
30090         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
30091         (Include): Remove conditionalization.
30092         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
30093         (Include): Remove conditionalization.
30094         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
30095         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30096         * NEWS: Mention the change.
30097         Reported by Alan Hourihane <alanh@fairlite.co.uk>
30098         via Sergey Poznyakoff <gray@gnu.org.ua>.
30099
30100 2008-12-21  Bruno Haible  <bruno@clisp.org>
30101
30102         * MODULES.html.sh (Extended multibyte and wide character utilities
30103         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
30104         wcrtomb, wcsrtombs.
30105         (Support for systems lacking POSIX:2008): Add accept, bind, close,
30106         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
30107         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
30108         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
30109
30110 2008-12-21  Bruno Haible  <bruno@clisp.org>
30111
30112         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
30113
30114 2008-12-21  Bruno Haible  <bruno@clisp.org>
30115
30116         * modules/wcsnrtombs-tests: New file.
30117         * tests/test-wcsnrtombs1.sh: New file.
30118         * tests/test-wcsnrtombs2.sh: New file.
30119         * tests/test-wcsnrtombs3.sh: New file.
30120         * tests/test-wcsnrtombs4.sh: New file.
30121         * tests/test-wcsnrtombs.c: New file.
30122
30123         New module 'wcsnrtombs'.
30124         * lib/wchar.in.h (wcsnrtombs): New declaration.
30125         * lib/wcsnrtombs.c: New file.
30126         * lib/wcsrtombs-state.c: New file.
30127         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
30128         (internal_state): Remove variable.
30129         * m4/wcsnrtombs.m4: New file.
30130         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
30131         compilation units.
30132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
30133         HAVE_WCSNRTOMBS.
30134         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
30135         HAVE_WCSNRTOMBS.
30136         * modules/wcsnrtombs: New file.
30137         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
30138         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
30139
30140 2008-12-21  Bruno Haible  <bruno@clisp.org>
30141
30142         * modules/wcsrtombs-tests: New file.
30143         * tests/test-wcsrtombs1.sh: New file.
30144         * tests/test-wcsrtombs2.sh: New file.
30145         * tests/test-wcsrtombs3.sh: New file.
30146         * tests/test-wcsrtombs4.sh: New file.
30147         * tests/test-wcsrtombs.c: New file.
30148
30149         New module 'wcsrtombs'.
30150         * lib/wchar.in.h (wcsrtombs): New declaration.
30151         * lib/wcsrtombs.c: New file.
30152         * m4/wcsrtombs.m4: New file.
30153         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
30154         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30155         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
30156         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30157         * modules/wcsrtombs: New file.
30158         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
30159         bugs.
30160
30161 2008-12-21  Bruno Haible  <bruno@clisp.org>
30162
30163         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
30164         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
30165         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
30166         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
30167         if not correct.
30168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
30169         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
30170         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30171         m4/locale-zh.m4, m4/codeset.m4.
30172         * doc/posix-functions/wcrtomb.texi: Document the bug.
30173
30174 2008-12-21  Bruno Haible  <bruno@clisp.org>
30175
30176         Work around a btowc() bug on IRIX 6.5.
30177         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
30178         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
30179         REPLACE_WTOBC if not.
30180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
30181         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
30182         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
30183
30184 2008-12-21  Bruno Haible  <bruno@clisp.org>
30185
30186         * modules/wcrtomb-tests: New file.
30187         * tests/test-wcrtomb.sh: New file.
30188         * tests/test-wcrtomb.c: New file.
30189
30190         New module 'wcrtomb'.
30191         * lib/wchar.in.h (wcrtomb): New declaration.
30192         * lib/wcrtomb.c: New file.
30193         * m4/wcrtomb.m4: New file.
30194         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
30195         HAVE_WCRTOMB.
30196         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
30197         HAVE_WCRTOMB.
30198         * modules/wcrtomb: New file.
30199         * doc/posix-functions/wcrtomb.texi: Mention the new module.
30200
30201 2008-12-21  Bruno Haible  <bruno@clisp.org>
30202
30203         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
30204         * modules/mbsrtowcs (Files): Likewise.
30205         * modules/wctob (Files): Likewise.
30206         * modules/c-strcase-tests (Files): Likewise.
30207         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30208         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30209         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30210         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30211         * modules/vasnprintf-posix-tests (Files): Likewise.
30212
30213 2008-12-21  William Pursell  <bill.pursell@gmail.com>
30214
30215         gitlog-to-changelog: pass all command-line arguments to git-log
30216         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
30217         it is sometimes convenient to filter the commits in various ways.
30218         gitlog-to-changelog only allows --since to specify a start date,
30219         but git-log itself supports many other filtering mechanisms.
30220         At the moment, I want to filter by branch name.  Rather than
30221         adding a --branch option to gitlog-to-changelog, it seems more
30222         flexible to simply pass all options directly to git-log and let
30223         git do the work.  Notice that this effectively makes --since a
30224         redundant option for gitlog-to-changelog, but removing it would
30225         require current usage to change since calls would then require
30226         an additional '--'.
30227
30228 2008-12-21  Bruno Haible  <bruno@clisp.org>
30229
30230         * modules/mbsnrtowcs-tests: New file.
30231         * tests/test-mbsnrtowcs1.sh: New file.
30232         * tests/test-mbsnrtowcs2.sh: New file.
30233         * tests/test-mbsnrtowcs3.sh: New file.
30234         * tests/test-mbsnrtowcs4.sh: New file.
30235         * tests/test-mbsnrtowcs.c: New file.
30236
30237         New module 'mbsnrtowcs'.
30238         * lib/wchar.in.h (mbsnrtowcs): New declaration.
30239         * lib/mbsnrtowcs.c: New file.
30240         * lib/mbsrtowcs-state.c: New file.
30241         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
30242         (internal_state): Remove variable.
30243         * m4/mbsnrtowcs.m4: New file.
30244         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
30245         compilation units.
30246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
30247         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30248         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
30249         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30250         * modules/mbsnrtowcs: New file.
30251         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
30252         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
30253         portability problem.
30254
30255 2008-12-21  Bruno Haible  <bruno@clisp.org>
30256
30257         Work around mbsrtowcs bug.
30258         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
30259         (gl_FUNC_MBSRTOWCS): Invoke it.
30260         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30261         m4/locale-zh.m4.
30262         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
30263
30264 2008-12-21  Bruno Haible  <bruno@clisp.org>
30265
30266         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
30267
30268 2008-12-21  Bruno Haible  <bruno@clisp.org>
30269
30270         Update doc for AIX.
30271         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
30272         16-bit wchar_t type.
30273         * doc/posix-functions/btowc.texi: Likewise.
30274         * doc/posix-functions/fgetwc.texi: Likewise.
30275         * doc/posix-functions/fgetws.texi: Likewise.
30276         * doc/posix-functions/fputwc.texi: Likewise.
30277         * doc/posix-functions/fputws.texi: Likewise.
30278         * doc/posix-functions/fwide.texi: Likewise.
30279         * doc/posix-functions/fwprintf.texi: Likewise.
30280         * doc/posix-functions/fwscanf.texi: Likewise.
30281         * doc/posix-functions/getwchar.texi: Likewise.
30282         * doc/posix-functions/getwc.texi: Likewise.
30283         * doc/posix-functions/iswalnum.texi: Likewise.
30284         * doc/posix-functions/iswalpha.texi: Likewise.
30285         * doc/posix-functions/iswblank.texi: Likewise.
30286         * doc/posix-functions/iswcntrl.texi: Likewise.
30287         * doc/posix-functions/iswctype.texi: Likewise.
30288         * doc/posix-functions/iswdigit.texi: Likewise.
30289         * doc/posix-functions/iswgraph.texi: Likewise.
30290         * doc/posix-functions/iswlower.texi: Likewise.
30291         * doc/posix-functions/iswprint.texi: Likewise.
30292         * doc/posix-functions/iswpunct.texi: Likewise.
30293         * doc/posix-functions/iswspace.texi: Likewise.
30294         * doc/posix-functions/iswupper.texi: Likewise.
30295         * doc/posix-functions/iswxdigit.texi: Likewise.
30296         * doc/posix-functions/mbrtowc.texi: Likewise.
30297         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30298         * doc/posix-functions/mbstowcs.texi: Likewise.
30299         * doc/posix-functions/mbtowc.texi: Likewise.
30300         * doc/posix-functions/putwchar.texi: Likewise.
30301         * doc/posix-functions/putwc.texi: Likewise.
30302         * doc/posix-functions/swprintf.texi: Likewise.
30303         * doc/posix-functions/tolower.texi: Likewise.
30304         * doc/posix-functions/toupper.texi: Likewise.
30305         * doc/posix-functions/towctrans.texi: Likewise.
30306         * doc/posix-functions/ungetwc.texi: Likewise.
30307         * doc/posix-functions/vswprintf.texi: Likewise.
30308         * doc/posix-functions/wcrtomb.texi: Likewise.
30309         * doc/posix-functions/wcscat.texi: Likewise.
30310         * doc/posix-functions/wcschr.texi: Likewise.
30311         * doc/posix-functions/wcscmp.texi: Likewise.
30312         * doc/posix-functions/wcscoll.texi: Likewise.
30313         * doc/posix-functions/wcscpy.texi: Likewise.
30314         * doc/posix-functions/wcscspn.texi: Likewise.
30315         * doc/posix-functions/wcsftime.texi: Likewise.
30316         * doc/posix-functions/wcslen.texi: Likewise.
30317         * doc/posix-functions/wcsncat.texi: Likewise.
30318         * doc/posix-functions/wcsncmp.texi: Likewise.
30319         * doc/posix-functions/wcsncpy.texi: Likewise.
30320         * doc/posix-functions/wcspbrk.texi: Likewise.
30321         * doc/posix-functions/wcsrchr.texi: Likewise.
30322         * doc/posix-functions/wcsrtombs.texi: Likewise.
30323         * doc/posix-functions/wcsspn.texi: Likewise.
30324         * doc/posix-functions/wcsstr.texi: Likewise.
30325         * doc/posix-functions/wcstod.texi: Likewise.
30326         * doc/posix-functions/wcstof.texi: Likewise.
30327         * doc/posix-functions/wcstoimax.texi: Likewise.
30328         * doc/posix-functions/wcstok.texi: Likewise.
30329         * doc/posix-functions/wcstold.texi: Likewise.
30330         * doc/posix-functions/wcstoll.texi: Likewise.
30331         * doc/posix-functions/wcstol.texi: Likewise.
30332         * doc/posix-functions/wcstombs.texi: Likewise.
30333         * doc/posix-functions/wcstoull.texi: Likewise.
30334         * doc/posix-functions/wcstoul.texi: Likewise.
30335         * doc/posix-functions/wcstoumax.texi: Likewise.
30336         * doc/posix-functions/wcswidth.texi: Likewise.
30337         * doc/posix-functions/wcsxfrm.texi: Likewise.
30338         * doc/posix-functions/wctob.texi: Likewise.
30339         * doc/posix-functions/wctomb.texi: Likewise.
30340         * doc/posix-functions/wctrans.texi: Likewise.
30341         * doc/posix-functions/wctype.texi: Likewise.
30342         * doc/posix-functions/wcwidth.texi: Likewise.
30343         * doc/posix-functions/wmemchr.texi: Likewise.
30344         * doc/posix-functions/wmemcmp.texi: Likewise.
30345         * doc/posix-functions/wmemcpy.texi: Likewise.
30346         * doc/posix-functions/wmemmove.texi: Likewise.
30347         * doc/posix-functions/wmemset.texi: Likewise.
30348         * doc/posix-functions/wprintf.texi: Likewise.
30349         * doc/posix-functions/wscanf.texi: Likewise.
30350
30351 2008-12-21  Bruno Haible  <bruno@clisp.org>
30352
30353         Update doc for HP-UX 11.11.
30354         * doc/posix-functions/btowc.texi: Clarify that the function is missing
30355         in HP-UX version 11.00, not in all versions of HP-UX 11.
30356         * doc/posix-functions/fwide.texi: Likewise.
30357         * doc/posix-functions/fwprintf.texi: Likewise.
30358         * doc/posix-functions/fwscanf.texi: Likewise.
30359         * doc/posix-functions/inet_ntop.texi: Likewise.
30360         * doc/posix-functions/inet_pton.texi: Likewise.
30361         * doc/posix-functions/mbrlen.texi: Likewise.
30362         * doc/posix-functions/mbrtowc.texi: Likewise.
30363         * doc/posix-functions/mbsinit.texi: Likewise.
30364         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30365         * doc/posix-functions/swprintf.texi: Likewise.
30366         * doc/posix-functions/swscanf.texi: Likewise.
30367         * doc/posix-functions/towctrans.texi: Likewise.
30368         * doc/posix-functions/vfwprintf.texi: Likewise.
30369         * doc/posix-functions/vswprintf.texi: Likewise.
30370         * doc/posix-functions/vwprintf.texi: Likewise.
30371         * doc/posix-functions/wcrtomb.texi: Likewise.
30372         * doc/posix-functions/wcsrtombs.texi: Likewise.
30373         * doc/posix-functions/wcsstr.texi: Likewise.
30374         * doc/posix-functions/wctob.texi: Likewise.
30375         * doc/posix-functions/wctrans.texi: Likewise.
30376         * doc/posix-functions/wmemchr.texi: Likewise.
30377         * doc/posix-functions/wmemcmp.texi: Likewise.
30378         * doc/posix-functions/wmemcpy.texi: Likewise.
30379         * doc/posix-functions/wmemmove.texi: Likewise.
30380         * doc/posix-functions/wmemset.texi: Likewise.
30381         * doc/posix-functions/wprintf.texi: Likewise.
30382         * doc/posix-functions/wscanf.texi: Likewise.
30383
30384 2008-12-21  Bruno Haible  <bruno@clisp.org>
30385
30386         Work around a portability problem.
30387         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
30388         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
30389
30390 2008-12-20  Bruno Haible  <bruno@clisp.org>
30391
30392         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
30393         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
30394         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
30395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
30396         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
30397
30398         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
30399         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
30400         set.
30401         (GNULIB_defined_mbstate_t): New macro.
30402         (mbsinit): Redefine if REPLACE_MBSINIT is set.
30403         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
30404         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
30405         reuses the system's mbrtowc function but works around the bugs.
30406         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
30407         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
30408         macros.
30409         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
30410         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
30411         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
30412         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
30413         REPLACE_MBSINIT if mbsinit needs to be overridden.
30414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
30415         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30416         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
30417         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30418         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30419         m4/locale-zh.m4.
30420         (Depends): Add mbsinit.
30421         * modules/mbsinit (Depends): Add mbrtowc.
30422         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
30423
30424 2008-12-20  Bruno Haible  <bruno@clisp.org>
30425
30426         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
30427         so that there are no conversion errors on AIX.
30428         * tests/test-mbsrtowcs.c (main): LIkewise.
30429
30430 2008-12-20  Bruno Haible  <bruno@clisp.org>
30431
30432         Work around wctob bug on Solaris <= 9.
30433         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
30434         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
30435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
30436         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
30437         * modules/wctob (Files): Add m4/locale-fr.m4.
30438         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
30439
30440 2008-12-20  Bruno Haible  <bruno@clisp.org>
30441
30442         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
30443         /dev/null.
30444         * tests/test-select-in.sh: Likewise.
30445         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30446
30447 2008-12-20  Bruno Haible  <bruno@clisp.org>
30448
30449         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
30450         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
30451         Cygwin 1.5.x.
30452
30453 2008-12-20  Bruno Haible  <bruno@clisp.org>
30454
30455         Ensure mbstate_t is defined on HP-UX 11.11.
30456         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
30457         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
30458         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
30459         AC_USE_SYSTEM_EXTENSIONS.
30460         * modules/fnmatch (Depends-on): Add extensions.
30461         * modules/mbrlen (Depends-on): Likewise.
30462         * modules/mbrtowc (Depends-on): Likewise.
30463         * modules/mbsinit (Depends-on): Likewise.
30464         * modules/mbsrtowcs (Depends-on): Likewise.
30465         * modules/mbswidth (Depends-on): Likewise.
30466         * modules/quotearg (Depends-on): Likewise.
30467         * modules/strftime (Depends-on): Likewise.
30468
30469 2008-12-20  Bruno Haible  <bruno@clisp.org>
30470
30471         Ensure wctob is declared on IRIX 6.5.
30472         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
30473         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
30474         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
30475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
30476         of HAVE_WCTOB.
30477         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
30478         HAVE_WCTOB.
30479         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
30480
30481 2008-12-19  Bruno Haible  <bruno@clisp.org>
30482
30483         * modules/mbsrtowcs-tests: New file.
30484         * tests/test-mbsrtowcs1.sh: New file.
30485         * tests/test-mbsrtowcs2.sh: New file.
30486         * tests/test-mbsrtowcs3.sh: New file.
30487         * tests/test-mbsrtowcs4.sh: New file.
30488         * tests/test-mbsrtowcs.c: New file.
30489
30490         New module 'mbsrtowcs'.
30491         * lib/wchar.in.h (mbsrtowcs): New declaration.
30492         * lib/mbsrtowcs.c: New file.
30493         * m4/mbsrtowcs.m4: New file.
30494         * modules/mbsrtowcs: New file.
30495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
30496         HAVE_MBSRTOWCS.
30497         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
30498         HAVE_MBSRTOWCS.
30499         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
30500
30501 2008-12-19  Bruno Haible  <bruno@clisp.org>
30502
30503         New module 'mbrlen'.
30504         * lib/wchar.in.h (mbrlen): New declaration.
30505         * lib/mbrlen.c: New file.
30506         * m4/mbrlen.m4: New file.
30507         * modules/mbrlen: New file.
30508         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
30509         HAVE_MBRLEN.
30510         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
30511         HAVE_MBRLEN.
30512         * doc/posix-functions/mbrlen.texi: Document the new module.
30513
30514 2008-12-19  Bruno Haible  <bruno@clisp.org>
30515
30516         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
30517         * modules/mbrtowc (Depends-on): Add verify.
30518         Suggested by Paul Eggert.
30519
30520 2008-12-18  Bruno Haible  <bruno@clisp.org>
30521
30522         * modules/mbsinit-tests: New file.
30523         * tests/test-mbsinit.sh: New file.
30524         * tests/test-mbsinit.c: New file.
30525
30526 2008-12-18  Bruno Haible  <bruno@clisp.org>
30527
30528         * modules/mbrtowc-tests: New file.
30529         * tests/test-mbrtowc1.sh: New file.
30530         * tests/test-mbrtowc2.sh: New file.
30531         * tests/test-mbrtowc3.sh: New file.
30532         * tests/test-mbrtowc4.sh: New file.
30533         * tests/test-mbrtowc.c: New file.
30534
30535         New module 'mbrtowc'.
30536         * lib/wchar.in.h (mbstate_t): Override when the system does not have
30537         mbsinit and mbrtowc.
30538         (mbrtowc): New declaration.
30539         * lib/mbrtowc.c: New file.
30540         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
30541         * modules/mbrtowc: New file.
30542         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
30543         HAVE_MBRTOWC.
30544         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
30545         HAVE_MBRTOWC.
30546         * doc/posix-functions/mbrtowc.texi: Document the new module.
30547
30548 2008-12-18  Bruno Haible  <bruno@clisp.org>
30549
30550         New module 'wctob'.
30551         * lib/wchar.in.h (wctob): New declaration.
30552         * lib/wctob.c: New file.
30553         * m4/wctob.m4: New file.
30554         * modules/wctob: New file.
30555         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
30556         HAVE_WCTOB.
30557         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
30558         * doc/posix-functions/wctob.texi: Document the new module.
30559
30560 2008-12-18  Bruno Haible  <bruno@clisp.org>
30561
30562         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
30563         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
30564
30565 2008-12-18  Simon Josefsson  <simon@josefsson.org>
30566
30567         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
30568         G. Christensen" <tgc@jupiterrise.com>.
30569
30570         * lib/flock.c: Need to include errno.h.  Reported by "Tom
30571         G. Christensen" <tgc@jupiterrise.com>.
30572
30573         * lib/flock.c: Need to include string.h.  Reported by "Tom
30574         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
30575         <ebb9@byu.net>.
30576
30577 2008-12-18  Bruno Haible  <bruno@clisp.org>
30578
30579         * m4/locale-ja.m4: New file, from GNU gettext.
30580
30581 2008-12-17  Bruno Haible  <bruno@clisp.org>
30582
30583         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
30584         Suggested by Eric Blake.
30585
30586 2008-12-17  Bruno Haible  <bruno@clisp.org>
30587
30588         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
30589
30590 2008-12-17  Bruno Haible  <bruno@clisp.org>
30591
30592         * lib/mbsinit.c: Include verify.h. Verify an assumption.
30593         * modules/mbsinit (Depends-on): Add verify.
30594         Suggested by Paul Eggert.
30595
30596 2008-12-17  Bruno Haible  <bruno@clisp.org>
30597
30598         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
30599         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
30600         gl_FUNC_MBRTOWC.
30601         * m4/mbiter.m4 (gl_MBITER): LIkewise.
30602         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
30603         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
30604         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
30605         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
30606         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
30607         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
30608         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
30609         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
30610         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
30611         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
30612         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
30613         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
30614         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
30615         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
30616         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30617         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
30618         * modules/trim (configure.ac): Likewise.
30619
30620 2008-12-17  Bruno Haible  <bruno@clisp.org>
30621
30622         * modules/btowc-tests: New file.
30623         * tests/test-btowc1.sh: New file.
30624         * tests/test-btowc2.sh: New file.
30625         * tests/test-btowc.c: New file.
30626
30627         New module 'btowc'.
30628         * lib/wchar.in.h (btowc): New declaration.
30629         * lib/btowc.c: New file.
30630         * m4/btowc.m4: New file.
30631         * modules/btowc: New file.
30632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
30633         HAVE_BTOWC.
30634         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
30635         * doc/posix-functions/btowc.texi: Document the new module.
30636
30637 2008-12-17  Bruno Haible  <bruno@clisp.org>
30638
30639         New module 'mbsinit'.
30640         * lib/wchar.in.h (mbsinit): New declaration.
30641         * lib/mbsinit.c: New file.
30642         * m4/mbsinit.m4: New file.
30643         * modules/mbsinit: New file.
30644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
30645         HAVE_MBSINIT.
30646         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
30647         HAVE_MBSINIT.
30648         * doc/posix-functions/mbsinit.texi: Document the new module.
30649
30650 2008-12-16  Bruno Haible  <bruno@clisp.org>
30651
30652         * lib/unistd.in.h: Add comment.
30653         * tests/test-environ.c: Don't include <stdlib.h>.
30654
30655 2008-12-16  Bruno Haible  <bruno@clisp.org>
30656
30657         * lib/parse-duration.h (parse_duration): Document return value
30658         convention.
30659         * lib/parse-duration.c: Include specification header first. Add
30660         comments.
30661         (_): Remove macro.
30662         (parse_year_month_day, parse_hour_minute_second): Move side effects
30663         outside of strchr call.
30664         (parse_non_iso8601): Move side effects outside of isspace call.
30665         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
30666         call.
30667
30668 2008-12-16  Bruno Haible  <bruno@clisp.org>
30669
30670         * tests/test-parse-duration.sh: Produce no output when the test
30671         succeeds.
30672
30673 2008-12-16  Bruno Haible  <bruno@clisp.org>
30674
30675         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
30676         expressions.
30677
30678 2008-12-15  Bruno Haible  <bruno@clisp.org>
30679
30680         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
30681         * doc/glibc-functions/flistxattr.texi: Likewise.
30682         * doc/glibc-functions/fopencookie.texi: Likewise.
30683         * doc/glibc-functions/fremovexattr.texi: Likewise.
30684         * doc/glibc-functions/fsetxattr.texi: Likewise.
30685         * doc/glibc-functions/getxattr.texi: Likewise.
30686         * doc/glibc-functions/lgetxattr.texi: Likewise.
30687         * doc/glibc-functions/listxattr.texi: Likewise.
30688         * doc/glibc-functions/llistxattr.texi: Likewise.
30689         * doc/glibc-functions/lremovexattr.texi: Likewise.
30690         * doc/glibc-functions/lsetxattr.texi: Likewise.
30691         * doc/glibc-functions/removexattr.texi: Likewise.
30692         * doc/glibc-functions/setxattr.texi: Likewise.
30693         * doc/posix-functions/open_memstream.texi: Likewise.
30694
30695 2008-12-15  Eric Blake  <ebb9@byu.net>
30696
30697         Update doc for cygwin 1.7.
30698         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
30699         functions.
30700         * doc/posix-functions/fchmodat.texi: Likewise.
30701         * doc/posix-functions/fchownat.texi: Likewise.
30702         * doc/posix-functions/fdopendir.texi: Likewise.
30703         * doc/posix-functions/fmemopen.texi: Likewise.
30704         * doc/posix-functions/freeaddrinfo.texi: Likewise.
30705         * doc/posix-functions/fstatat.texi: Likewise.
30706         * doc/posix-functions/futimens.texi: Likewise.
30707         * doc/posix-functions/gai_strerror.texi: Likewise.
30708         * doc/posix-functions/getaddrinfo.texi: Likewise.
30709         * doc/posix-functions/getnameinfo.texi: Likewise.
30710         * doc/posix-functions/if_freenameindex.texi: Likewise.
30711         * doc/posix-functions/if_indextoname.texi: Likewise.
30712         * doc/posix-functions/if_nameindex.texi: Likewise.
30713         * doc/posix-functions/if_nametoindex.texi: Likewise.
30714         * doc/posix-functions/insque.texi: Likewise.
30715         * doc/posix-functions/linkat.texi: Likewise.
30716         * doc/posix-functions/llrint.texi: Likewise.
30717         * doc/posix-functions/llrintf.texi: Likewise.
30718         * doc/posix-functions/llrintl.texi: Likewise.
30719         * doc/posix-functions/lockf.texi: Likewise.
30720         * doc/posix-functions/lrintl.texi: Likewise.
30721         * doc/posix-functions/mkdirat.texi: Likewise.
30722         * doc/posix-functions/mkfifoat.texi: Likewise.
30723         * doc/posix-functions/mknodat.texi: Likewise.
30724         * doc/posix-functions/mq_close.texi: Likewise.
30725         * doc/posix-functions/mq_getattr.texi: Likewise.
30726         * doc/posix-functions/mq_notify.texi: Likewise.
30727         * doc/posix-functions/mq_open.texi: Likewise.
30728         * doc/posix-functions/mq_receive.texi: Likewise.
30729         * doc/posix-functions/mq_send.texi: Likewise.
30730         * doc/posix-functions/mq_setattr.texi: Likewise.
30731         * doc/posix-functions/mq_timedreceive.texi: Likewise.
30732         * doc/posix-functions/mq_timedsend.texi: Likewise.
30733         * doc/posix-functions/mq_unlink.texi: Likewise.
30734         * doc/posix-functions/open_memstream.texi: Likewise.
30735         * doc/posix-functions/openat.texi: Likewise.
30736         * doc/posix-functions/posix_fadvise.texi: Likewise.
30737         * doc/posix-functions/posix_fallocate.texi: Likewise.
30738         * doc/posix-functions/posix_madvise.texi: Likewise.
30739         * doc/posix-functions/posix_memalign.texi: Likewise.
30740         * doc/posix-functions/posix_openpt.texi: Likewise.
30741         * doc/posix-functions/readlinkat.texi: Likewise.
30742         * doc/posix-functions/remque.texi: Likewise.
30743         * doc/posix-functions/renameat.texi: Likewise.
30744         * doc/posix-functions/rintl.texi: Likewise.
30745         * doc/posix-functions/sem_unlink.texi: Likewise.
30746         * doc/posix-functions/shm_open.texi: Likewise.
30747         * doc/posix-functions/shm_unlink.texi: Likewise.
30748         * doc/posix-functions/signgam.texi: Likewise.
30749         * doc/posix-functions/sigset.texi: Likewise.
30750         * doc/posix-functions/stpcpy.texi: Likewise.
30751         * doc/posix-functions/stpncpy.texi: Likewise.
30752         * doc/posix-functions/strerror.texi: Likewise.
30753         * doc/posix-functions/strtod.texi: Likewise.
30754         * doc/posix-functions/symlinkat.texi: Likewise.
30755         * doc/posix-functions/unlinkat.texi: Likewise.
30756         * doc/posix-functions/utimensat.texi: Likewise.
30757         * doc/glibc-functions/bindresvport.texi: Likewise.
30758         * doc/glibc-functions/dn_expand.texi: Likewise.
30759         * doc/glibc-functions/exp10.texi: Likewise.
30760         * doc/glibc-functions/exp10f.texi: Likewise.
30761         * doc/glibc-functions/fgetxattr.texi: Likewise.
30762         * doc/glibc-functions/flistxattr.texi: Likewise.
30763         * doc/glibc-functions/fopencookie.texi: Likewise.
30764         * doc/glibc-functions/freeifaddrs.texi: Likewise.
30765         * doc/glibc-functions/fremovexattr.texi: Likewise.
30766         * doc/glibc-functions/fsetxattr.texi: Likewise.
30767         * doc/glibc-functions/getifaddrs.texi: Likewise.
30768         * doc/glibc-functions/getxattr.texi: Likewise.
30769         * doc/glibc-functions/lgetxattr.texi: Likewise.
30770         * doc/glibc-functions/listxattr.texi: Likewise.
30771         * doc/glibc-functions/llistxattr.texi: Likewise.
30772         * doc/glibc-functions/lremovexattr.texi: Likewise.
30773         * doc/glibc-functions/lsetxattr.texi: Likewise.
30774         * doc/glibc-functions/pow10.texi: Likewise.
30775         * doc/glibc-functions/pow10f.texi: Likewise.
30776         * doc/glibc-functions/rcmd_af.texi: Likewise.
30777         * doc/glibc-functions/removexattr.texi: Likewise.
30778         * doc/glibc-functions/res_init.texi: Likewise.
30779         * doc/glibc-functions/res_mkquery.texi: Likewise.
30780         * doc/glibc-functions/res_query.texi: Likewise.
30781         * doc/glibc-functions/res_querydomain.texi: Likewise.
30782         * doc/glibc-functions/res_send.texi: Likewise.
30783         * doc/glibc-functions/rresvport_af.texi: Likewise.
30784         * doc/glibc-functions/setxattr.texi: Likewise.
30785         * doc/glibc-functions/strcasestr.texi: Likewise.
30786
30787 2008-12-15  Bruno Haible  <bruno@clisp.org>
30788
30789         Fix compilation error on OSF/1 4.0.
30790         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
30791         <sys/time.h>, simply delegate to the system header.
30792         Reported by Daniel Richard G. <oss@teragram.com>.
30793
30794 2008-12-15  Bruno Haible  <bruno@clisp.org>
30795
30796         * doc/posix-functions/openat.texi: Mention the 'openat' module.
30797         * doc/posix-functions/fchmodat.texi: Likewise.
30798         * doc/posix-functions/fchownat.texi: Likewise.
30799         * doc/posix-functions/fdopendir.texi: Likewise.
30800         * doc/posix-functions/fstatat.texi: Likewise.
30801         * doc/posix-functions/mkdirat.texi: Likewise.
30802         * doc/posix-functions/unlinkat.texi: Likewise.
30803
30804 2008-12-14  Bruno Haible  <bruno@clisp.org>
30805
30806         Update doc for POSIX:2008.
30807         * doc/posix-functions/faccessat.texi: New file.
30808         * doc/posix-functions/fchmodat.texi: New file.
30809         * doc/posix-functions/fchownat.texi: New file.
30810         * doc/posix-functions/fdopendir.texi: New file.
30811         * doc/posix-functions/fstatat.texi: New file.
30812         * doc/posix-functions/futimens.texi: New file.
30813         * doc/posix-functions/linkat.texi: New file.
30814         * doc/posix-functions/mkdirat.texi: New file.
30815         * doc/posix-functions/mkfifoat.texi: New file.
30816         * doc/posix-functions/mknodat.texi: New file.
30817         * doc/posix-functions/open_wmemstream.texi: New file.
30818         * doc/posix-functions/openat.texi: New file.
30819         * doc/posix-functions/psiginfo.texi: New file.
30820         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
30821         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
30822         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
30823         * doc/posix-functions/readlinkat.texi: New file.
30824         * doc/posix-functions/renameat.texi: New file.
30825         * doc/posix-functions/strerror_l.texi: New file.
30826         * doc/posix-functions/symlinkat.texi: New file.
30827         * doc/posix-functions/unlinkat.texi: New file.
30828         * doc/posix-functions/utimensat.texi: New file.
30829         * doc/gnulib.texi (Function Substitutes): Add these subsections.
30830
30831 2008-12-14  Bruno Haible  <bruno@clisp.org>
30832
30833         Update doc for POSIX:2008.
30834         * doc/posix-functions/alphasort.texi: Renamed from
30835         doc/glibc-functions/alphasort.texi.
30836         * doc/posix-functions/dirfd.texi: Renamed from
30837         doc/glibc-functions/dirfd.texi.
30838         * doc/posix-functions/dprintf.texi: Renamed from
30839         doc/glibc-functions/dprintf.texi.
30840         * doc/posix-functions/duplocale.texi: Renamed from
30841         doc/glibc-functions/duplocale.texi.
30842         * doc/posix-functions/fexecve.texi: Renamed from
30843         doc/glibc-functions/fexecve.texi.
30844         * doc/posix-functions/fmemopen.texi: Renamed from
30845         doc/glibc-functions/fmemopen.texi.
30846         * doc/posix-functions/freelocale.texi: Renamed from
30847         doc/glibc-functions/freelocale.texi.
30848         * doc/posix-functions/getdate_err.texi: Renamed from
30849         doc/glibc-functions/getdate_err.texi.
30850         * doc/posix-functions/isalnum_l.texi: Renamed from
30851         doc/glibc-functions/isalnum_l.texi.
30852         * doc/posix-functions/isalpha_l.texi: Renamed from
30853         doc/glibc-functions/isalpha_l.texi.
30854         * doc/posix-functions/isblank_l.texi: Renamed from
30855         doc/glibc-functions/isblank_l.texi.
30856         * doc/posix-functions/iscntrl_l.texi: Renamed from
30857         doc/glibc-functions/iscntrl_l.texi.
30858         * doc/posix-functions/isdigit_l.texi: Renamed from
30859         doc/glibc-functions/isdigit_l.texi.
30860         * doc/posix-functions/isgraph_l.texi: Renamed from
30861         doc/glibc-functions/isgraph_l.texi.
30862         * doc/posix-functions/islower_l.texi: Renamed from
30863         doc/glibc-functions/islower_l.texi.
30864         * doc/posix-functions/isprint_l.texi: Renamed from
30865         doc/glibc-functions/isprint_l.texi.
30866         * doc/posix-functions/ispunct_l.texi: Renamed from
30867         doc/glibc-functions/ispunct_l.texi.
30868         * doc/posix-functions/isspace_l.texi: Renamed from
30869         doc/glibc-functions/isspace_l.texi.
30870         * doc/posix-functions/isupper_l.texi: Renamed from
30871         doc/glibc-functions/isupper_l.texi.
30872         * doc/posix-functions/iswalnum_l.texi: Renamed from
30873         doc/glibc-functions/iswalnum_l.texi.
30874         * doc/posix-functions/iswalpha_l.texi: Renamed from
30875         doc/glibc-functions/iswalpha_l.texi.
30876         * doc/posix-functions/iswblank_l.texi: Renamed from
30877         doc/glibc-functions/iswblank_l.texi.
30878         * doc/posix-functions/iswcntrl_l.texi: Renamed from
30879         doc/glibc-functions/iswcntrl_l.texi.
30880         * doc/posix-functions/iswctype_l.texi: Renamed from
30881         doc/glibc-functions/iswctype_l.texi.
30882         * doc/posix-functions/iswdigit_l.texi: Renamed from
30883         doc/glibc-functions/iswdigit_l.texi.
30884         * doc/posix-functions/iswgraph_l.texi: Renamed from
30885         doc/glibc-functions/iswgraph_l.texi.
30886         * doc/posix-functions/iswlower_l.texi: Renamed from
30887         doc/glibc-functions/iswlower_l.texi.
30888         * doc/posix-functions/iswprint_l.texi: Renamed from
30889         doc/glibc-functions/iswprint_l.texi.
30890         * doc/posix-functions/iswpunct_l.texi: Renamed from
30891         doc/glibc-functions/iswpunct_l.texi.
30892         * doc/posix-functions/iswspace_l.texi: Renamed from
30893         doc/glibc-functions/iswspace_l.texi.
30894         * doc/posix-functions/iswupper_l.texi: Renamed from
30895         doc/glibc-functions/iswupper_l.texi.
30896         * doc/posix-functions/iswxdigit_l.texi: Renamed from
30897         doc/glibc-functions/iswxdigit_l.texi.
30898         * doc/posix-functions/isxdigit_l.texi: Renamed from
30899         doc/glibc-functions/isxdigit_l.texi.
30900         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
30901         doc/glibc-functions/mbsnrtowcs.texi.
30902         * doc/posix-functions/mkdtemp.texi: Renamed from
30903         doc/glibc-functions/mkdtemp.texi.
30904         * doc/posix-functions/newlocale.texi: Renamed from
30905         doc/glibc-functions/newlocale.texi.
30906         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
30907         doc/glibc-functions/nl_langinfo_l.texi.
30908         * doc/posix-functions/open_memstream.texi: Renamed from
30909         doc/glibc-functions/open_memstream.texi.
30910         * doc/posix-functions/opterr.texi: Renamed from
30911         doc/glibc-functions/opterr.texi.
30912         * doc/posix-functions/optind.texi: Renamed from
30913         doc/glibc-functions/optind.texi.
30914         * doc/posix-functions/optopt.texi: Renamed from
30915         doc/glibc-functions/optopt.texi.
30916         * doc/posix-functions/psignal.texi: Renamed from
30917         doc/glibc-functions/psignal.texi.
30918         * doc/posix-functions/scandir.texi: Renamed from
30919         doc/glibc-functions/scandir.texi.
30920         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
30921         doc/glibc-functions/sched_get_priority_min.texi.
30922         * doc/posix-functions/signgam.texi: Renamed from
30923         doc/glibc-functions/signgam.texi.
30924         * doc/posix-functions/stpcpy.texi: Renamed from
30925         doc/glibc-functions/stpcpy.texi.
30926         * doc/posix-functions/stpncpy.texi: Renamed from
30927         doc/glibc-functions/stpncpy.texi.
30928         * doc/posix-functions/strcasecmp_l.texi: Renamed from
30929         doc/glibc-functions/strcasecmp_l.texi.
30930         * doc/posix-functions/strcoll_l.texi: Renamed from
30931         doc/glibc-functions/strcoll_l.texi.
30932         * doc/posix-functions/strfmon_l.texi: Renamed from
30933         doc/glibc-functions/strfmon_l.texi.
30934         * doc/posix-functions/strftime_l.texi: Renamed from
30935         doc/glibc-functions/strftime_l.texi.
30936         * doc/posix-functions/strncasecmp_l.texi: Renamed from
30937         doc/glibc-functions/strncasecmp_l.texi.
30938         * doc/posix-functions/strndup.texi: Renamed from
30939         doc/glibc-functions/strndup.texi.
30940         * doc/posix-functions/strnlen.texi: Renamed from
30941         doc/glibc-functions/strnlen.texi.
30942         * doc/posix-functions/strsignal.texi: Renamed from
30943         doc/glibc-functions/strsignal.texi.
30944         * doc/posix-functions/strxfrm_l.texi: Renamed from
30945         doc/glibc-functions/strxfrm_l.texi.
30946         * doc/posix-functions/timer_gettime.texi: Renamed from
30947         doc/glibc-functions/timer_gettime.texi.
30948         * doc/posix-functions/tolower_l.texi: Renamed from
30949         doc/glibc-functions/tolower_l.texi.
30950         * doc/posix-functions/toupper_l.texi: Renamed from
30951         doc/glibc-functions/toupper_l.texi.
30952         * doc/posix-functions/towctrans_l.texi: Renamed from
30953         doc/glibc-functions/towctrans_l.texi.
30954         * doc/posix-functions/towlower_l.texi: Renamed from
30955         doc/glibc-functions/towlower_l.texi.
30956         * doc/posix-functions/towupper_l.texi: Renamed from
30957         doc/glibc-functions/towupper_l.texi.
30958         * doc/posix-functions/uselocale.texi: Renamed from
30959         doc/glibc-functions/uselocale.texi.
30960         * doc/posix-functions/vdprintf.texi: Renamed from
30961         doc/glibc-functions/vdprintf.texi.
30962         * doc/posix-functions/wcpcpy.texi:
30963         Renamed from doc/glibc-functions/wcpcpy.texi.
30964         * doc/posix-functions/wcpncpy.texi: Renamed from
30965         doc/glibc-functions/wcpncpy.texi.
30966         * doc/posix-functions/wcscasecmp.texi: Renamed from
30967         doc/glibc-functions/wcscasecmp.texi.
30968         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
30969         doc/glibc-functions/wcscasecmp_l.texi.
30970         * doc/posix-functions/wcscoll_l.texi: Renamed from
30971         doc/glibc-functions/wcscoll_l.texi.
30972         * doc/posix-functions/wcsdup.texi: Renamed from
30973         doc/glibc-functions/wcsdup.texi.
30974         * doc/posix-functions/wcsncasecmp.texi: Renamed from
30975         doc/glibc-functions/wcsncasecmp.texi.
30976         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
30977         doc/glibc-functions/wcsncasecmp_l.texi.
30978         * doc/posix-functions/wcsnlen.texi: Renamed from
30979         doc/glibc-functions/wcsnlen.texi.
30980         * doc/posix-functions/wcsnrtombs.texi: Renamed from
30981         doc/glibc-functions/wcsnrtombs.texi.
30982         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
30983         doc/glibc-functions/wcsxfrm_l.texi.
30984         * doc/posix-functions/wctrans_l.texi: Renamed from
30985         doc/glibc-functions/wctrans_l.texi.
30986         * doc/posix-functions/wctype_l.texi: Renamed from
30987         doc/glibc-functions/wctype_l.texi.
30988         * doc/gnulib.texi (Function Substitutes): Add these subsections.
30989         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
30990         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
30991         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
30992         these subsections.
30993         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
30994         Remove sections.
30995
30996 2008-12-14  Bruno Haible  <bruno@clisp.org>
30997
30998         Update doc for POSIX:2008.
30999         * doc/posix-functions/*.texi: Update URL of POSIX specification.
31000
31001 2008-12-14  Bruno Haible  <bruno@clisp.org>
31002
31003         Update doc for POSIX:2008.
31004         * doc/pastposix-functions/bcmp.texi: Renamed from
31005         doc/posix-functions/bcmp.texi.
31006         * doc/pastposix-functions/bcopy.texi: Renamed from
31007         doc/posix-functions/bcopy.texi.
31008         * doc/pastposix-functions/bsd_signal.texi: Renamed from
31009         doc/posix-functions/bsd_signal.texi.
31010         * doc/pastposix-functions/bzero.texi: Renamed from
31011         doc/posix-functions/bzero.texi.
31012         * doc/pastposix-functions/ecvt.texi: Renamed from
31013         doc/posix-functions/ecvt.texi.
31014         * doc/pastposix-functions/fcvt.texi: Renamed from
31015         doc/posix-functions/fcvt.texi.
31016         * doc/pastposix-functions/ftime.texi: Renamed from
31017         doc/posix-functions/ftime.texi.
31018         * doc/pastposix-functions/gcvt.texi: Renamed from
31019         doc/posix-functions/gcvt.texi.
31020         * doc/pastposix-functions/getcontext.texi: Renamed from
31021         doc/posix-functions/getcontext.texi.
31022         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
31023         doc/posix-functions/gethostbyaddr.texi.
31024         * doc/pastposix-functions/gethostbyname.texi: Renamed from
31025         doc/posix-functions/gethostbyname.texi.
31026         * doc/pastposix-functions/getwd.texi: Renamed from
31027         doc/posix-functions/getwd.texi.
31028         * doc/pastposix-functions/h_errno.texi: Renamed from
31029         doc/posix-functions/h_errno.texi.
31030         * doc/pastposix-functions/index.texi: Renamed from
31031         doc/posix-functions/index.texi.
31032         * doc/pastposix-functions/makecontext.texi: Renamed from
31033         doc/posix-functions/makecontext.texi.
31034         * doc/pastposix-functions/mktemp.texi: Renamed from
31035         doc/posix-functions/mktemp.texi.
31036         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
31037         doc/posix-functions/pthread_attr_getstackaddr.texi.
31038         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
31039         doc/posix-functions/pthread_attr_setstackaddr.texi.
31040         * doc/pastposix-functions/rindex.texi: Renamed from
31041         doc/posix-functions/rindex.texi.
31042         * doc/pastposix-functions/scalb.texi: Renamed from
31043         doc/posix-functions/scalb.texi.
31044         * doc/pastposix-functions/setcontext.texi: Renamed from
31045         doc/posix-functions/setcontext.texi.
31046         * doc/pastposix-functions/swapcontext.texi: Renamed from
31047         doc/posix-functions/swapcontext.texi.
31048         * doc/pastposix-functions/ualarm.texi: Renamed from
31049         doc/posix-functions/ualarm.texi.
31050         * doc/pastposix-functions/usleep.texi: Renamed from
31051         doc/posix-functions/usleep.texi.
31052         * doc/pastposix-functions/vfork.texi: Renamed from
31053         doc/posix-functions/vfork.texi.
31054         * doc/pastposix-functions/wcswcs.texi: Renamed from
31055         doc/posix-functions/wcswcs.texi.
31056         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
31057         (Function Substitutes): Update.
31058
31059 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31060
31061         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
31062         m4/strerror.m4.
31063
31064 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31065             Bruno Haible  <bruno@clisp.org>
31066
31067         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
31068
31069 2008-12-13  Bruno Haible  <bruno@clisp.org>
31070
31071         * modules/strtoull (Depends-on): Remove unistd.
31072
31073 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31074
31075         * modules/strtoull (Depends-on): Add stdlib.
31076
31077 2008-12-11  Simon Josefsson  <simon@josefsson.org>
31078
31079         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
31080
31081 2008-12-10  Jim Meyering  <meyering@redhat.com>
31082
31083         gl_ASSERT: don't say assertions are disabled when they're not
31084         * m4/assert.m4 (gl_ASSERT): Do not make configure report
31085         "checking whether to enable assertions... no", when they are in
31086         fact enabled.  This is solely a bug in the output of configure.
31087         In spite of saying "no", NDEBUG was not defined in that case.
31088         Also, as noted by Eric Blake, leave assertions enabled upon
31089         --enable-assert=INVALID.
31090
31091 2008-12-10  Bruno Haible  <bruno@clisp.org>
31092
31093         Change MODULES.html to refer to POSIX:2008 where possible.
31094         * MODULES.html.sh (POSIX2008_URL): New variable.
31095         (posix_headers): Remove sys/timeb, ucontext.
31096         (posix2001_headers): New variable.
31097         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
31098         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
31099         index, makecontext, mktemp, pthread_attr_getstackaddr,
31100         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
31101         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
31102         (posix2001_functions): New variable.
31103         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
31104         otherwise.
31105
31106 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31107
31108         add missing include to parse-duration.c
31109         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
31110         * modules/parse-duration (Depends-on): Add xalloc.
31111
31112         fix sed script reading maint.mk
31113         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
31114         (syntax-check-rules): Use it.
31115
31116 2008-12-09  Bruno Haible  <bruno@clisp.org>
31117
31118         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
31119         MacOS X 10.4/PowerPC.
31120         Reported by Simon Josefsson.
31121
31122 2008-12-08  Jim Meyering  <meyering@redhat.com>
31123
31124         work around mingw's lack of some S_IF definitions
31125         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
31126         Reported by Simon Josefsson.
31127
31128 2008-12-08  Bruno Haible  <bruno@clisp.org>
31129
31130         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
31131         applied to variables. Needed on MacOS X 10.4/PowerPC.
31132         Reported by Simon Josefsson.
31133
31134 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
31135         and Eric Blake  <ebb9@byu.net>
31136
31137         assert: honor --enable-assert
31138         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
31139         order to honor --enable-assert, rather than treating it as a
31140         synonym for --disable-assert.
31141
31142 2008-12-08  Jim Meyering  <meyering@redhat.com>
31143
31144         * lib/posixtm.c: Remove now-useless declaration of mktime.
31145
31146         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
31147
31148 2008-12-07  Bruno Haible  <bruno@clisp.org>
31149
31150         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
31151         test_once): Mark functions as static.
31152         * tests/test-tls.c (test_tls): Likewise.
31153
31154 2008-12-07  Bruno Haible  <bruno@clisp.org>
31155
31156         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
31157         iconv_register_autodetect.
31158
31159 2008-12-07  Jim Meyering  <meyering@redhat.com>
31160
31161         posixtm.c: avoid a warning
31162         * lib/posixtm.c (posixtime): Don't initialize tm0.
31163         It's no longer needed to placate gcc4's -Wuninitialized,
31164         and the attempt to placate would elicit a new warning.
31165
31166         unicodeio.c: mark unused parameters
31167         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31168         (fallback_failure_callback): Likewise.
31169
31170 2008-12-07  Bruno Haible  <bruno@clisp.org>
31171
31172         * gnulib-tool (func_create_testdir): When building the tests
31173         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
31174         Reported by Simon Josefsson.
31175
31176 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31177
31178         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
31179
31180 2008-12-06  Bruno Haible  <bruno@clisp.org>
31181
31182         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
31183         Suggested by Eric Blake.
31184
31185 2008-12-06  Bruno Haible  <bruno@clisp.org>
31186
31187         Fix a c-stack test failure on MacOS X.
31188         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
31189         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
31190         handler for SIGBUS as well.
31191         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
31192         install a signal handler for SIGBUS as well.
31193         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
31194
31195 2008-12-06  Bruno Haible  <bruno@clisp.org>
31196
31197         Advocacy documentation.
31198         * doc/gnulib-intro.texi (Benefits): New section.
31199         * doc/gnulib.texi: Update.
31200
31201 2008-12-06  Bruno Haible  <bruno@clisp.org>
31202
31203         Document the 'manywarnings' module.
31204         * doc/manywarnings.texi: New file.
31205         * doc/gnulib.texi: Include it.
31206
31207 2008-12-05  Eric Blake  <ebb9@byu.net>
31208
31209         tests: silence some gcc warnings
31210         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
31211         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
31212         type mismatches.
31213
31214 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31215             Bruno Haible  <bruno@clisp.org>
31216
31217         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
31218
31219 2008-11-29  Jim Meyering  <meyering@redhat.com>
31220
31221         unicodeio.c: mark unused parameters
31222         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31223         (fallback_failure_callback): Likewise.
31224
31225         fts: fix a thinko
31226         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
31227         (set_stat_type): Return S_IF*-valued "type" directly.
31228         Prompted by James Youngman's spotting a related bug.
31229         Confirmed by further testing through find.
31230
31231         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
31232         * lib/fts.c (D_TYPE): Define.
31233         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
31234         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
31235         (s_ifmt_shift_bits): New function.
31236         (set_stat_type): New function.
31237         (fts_build): When not calling fts_stat, call set_stat_type
31238         to propagate dirent.d_type info to fts_read caller.
31239         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
31240         fts_statp->st_mode type information may be valid.
31241
31242 2008-11-28  Simon Josefsson  <simon@josefsson.org>
31243
31244         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
31245         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
31246         <sds@gnu.org>.
31247
31248 2008-11-20  Bruno Haible  <bruno@clisp.org>
31249
31250         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
31251         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
31252         INCLUDE_NEXT.
31253         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
31254         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
31255         * modules/math (Makefile.am): Substitute
31256         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
31257         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31258
31259 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31260             Bruno Haible  <bruno@clisp.org>
31261
31262         * lib/stdint.in.h: Define all type macros so that their expansion is
31263         a single typedef'ed token. Fixes a compilation failure in Boost which
31264         does "using ::int8_t;".
31265
31266 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31267
31268         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
31269         gl_MANYWARN_ALL_GCC.
31270         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
31271         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
31272         * modules/manywarnings: New file.
31273         * MODULES.html.sh: Mention manywarnings module.
31274
31275 2008-11-18  Bruno Haible  <bruno@clisp.org>
31276
31277         * doc/gnulib-tool.texi (Unit tests): New section.
31278
31279 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31280
31281         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
31282         paths like 'lib/po/foo.po'.
31283
31284 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31285
31286         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
31287         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
31288
31289 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31290
31291         * m4/warnings.m4: Use CPPFLAGS to really check whether the
31292         parameter works.
31293
31294 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31295
31296         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
31297
31298 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31299
31300         * modules/parse-duration-tests: New file.
31301         * tests/test-parse-duration.sh: New file.
31302         * tests/test-parse-duration.c: New file.
31303
31304         New module 'parse-duration'.
31305         * lib/parse-duration.h: New file.
31306         * lib/parse-duration.c: New file.
31307         * modules/parse-duration: New file.
31308
31309 2008-11-17  Bruno Haible  <bruno@clisp.org>
31310
31311         * tests/test-select-out.sh: Comment out the first pipe test.
31312         Reported by Simon Josefsson.
31313
31314 2008-11-17  Bruno Haible  <bruno@clisp.org>
31315
31316         * modules/getaddrinfo (Depends-on): Add servent, hostent.
31317         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
31318         gl_HOSTENT.
31319
31320 2008-11-17  Bruno Haible  <bruno@clisp.org>
31321
31322         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
31323         -lnetwork and -lnet. Needed for Haiku and BeOS.
31324
31325 2008-11-16  Bruno Haible  <bruno@clisp.org>
31326
31327         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
31328
31329 2008-11-16  Bruno Haible  <bruno@clisp.org>
31330
31331         Avoid test failure on Haiku.
31332         * tests/test-fsync.c: Include <errno.h>.
31333         (main): Don't require that fsync (0) fails.
31334
31335 2008-11-15  Bruno Haible  <bruno@clisp.org>
31336
31337         New module 'hostent'.
31338         * modules/hostent: New file.
31339         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
31340
31341 2008-11-15  Bruno Haible  <bruno@clisp.org>
31342
31343         New module 'servent'.
31344         * modules/servent: New file.
31345         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
31346
31347 2008-11-15  Bruno Haible  <bruno@clisp.org>
31348
31349         Avoid generating same test program with two different rules.
31350         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
31351         test-frexp to test-frexp-nolibm.
31352         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
31353         test-frexpl to test-frexpl-nolibm.
31354
31355 2008-11-15  Bruno Haible  <bruno@clisp.org>
31356
31357         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
31358         $(FREXPL_LIBM).
31359
31360 2008-11-15  Bruno Haible  <bruno@clisp.org>
31361
31362         * lib/netdb.in.h: Activate the definitions also when the system's
31363         <netdb.h> has 'struct addrinfo'.
31364         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
31365         EAI_OVERFLOW or AI_NUMERICSERV.
31366         * doc/posix-headers/netdb.texi: Document the problem.
31367
31368 2008-11-15  Bruno Haible  <bruno@clisp.org>
31369
31370         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
31371
31372         Make the 'sched' module work on platforms where <sched.h> exists but
31373         is incomplete (such as Haiku).
31374         * lib/sched.in.h; Include the system's <sched.h> if it exists.
31375         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
31376         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
31377         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
31378         HAVE_STRUCT_SCHED_PARAM.
31379         * modules/sched (Depends-on): Add include_next.
31380         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
31381         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
31382         * doc/posix-headers/sched.texi: Document the issue.
31383
31384 2008-11-13  Jim Meyering  <meyering@redhat.com>
31385
31386         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
31387         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
31388         test would fail due to the difference in the Report bugs to ...
31389         line.  The expected address is empty, "<>", while the actual
31390         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
31391
31392 2008-11-12  Bruno Haible  <bruno@clisp.org>
31393
31394         lstat: don't compile lstat.c on systems lacking lstat
31395         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
31396         which don't have lstat; this is handled by lib/sys_stat.in.h already.
31397         Reported by Daniel P. Berrange via Jim Meyering.
31398
31399 2008-11-12  Jim Meyering  <meyering@redhat.com>
31400
31401         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
31402
31403 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31404
31405         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
31406         instead.
31407
31408 2008-11-12  Bruno Haible  <bruno@clisp.org>
31409
31410         * lib/unicodeio.c: Include unistr.h.
31411         (utf8_wctomb): Remove function.
31412         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
31413
31414 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31415
31416         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
31417         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
31418         <bruno@clisp.org>.
31419         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
31420
31421 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31422
31423         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
31424         * doc/gnulib.texi: Add section for warnings.
31425
31426 2008-11-11  Bruno Haible  <bruno@clisp.org>
31427
31428         * lib/sockets.h: Add a comment.
31429
31430 2008-11-11  Karl Berry  <karl@gnu.org>
31431
31432         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
31433
31434 2008-11-11  Eric Blake  <ebb9@byu.net>
31435
31436         fdl.texi: avoid git symlinks
31437         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
31438
31439 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31440
31441         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
31442
31443 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31444
31445         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
31446         (gl_WARN_ADD): Substitute $2 if literal.
31447
31448 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31449
31450         * m4/warning.m4: Remove.
31451
31452 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31453
31454         * m4/warnings.m4: Almost complete rewrite. :-)
31455
31456 2008-11-10  Simon Josefsson  <simon@josefsson.org>
31457
31458         * modules/warnings: New module.
31459         * m4/warnings.m4: New file.
31460         * MODULES.html.sh: Mention warnings module.
31461         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
31462         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31463
31464 2008-11-10  Eric Blake  <ebb9@byu.net>
31465
31466         fdl.texi: make a symlink to the latest version
31467         * doc/standards.texi: Revert today's earlier change.
31468         * doc/fdl-1.2.texi: Rename from old fdl.texi...
31469         * doc/fdl.texi: ...and replace this with a symlink to the newer
31470         fdl-1.3.texi.
31471
31472 2008-11-10  Bruno Haible  <bruno@clisp.org>
31473
31474         * tests/test-select-fd.c (main): Accept the result file name as fourth
31475         argument.
31476         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
31477         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
31478
31479 2008-11-10  Bruno Haible  <bruno@clisp.org>
31480
31481         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
31482         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
31483         as autoconf-substituted macros.
31484         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
31485         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
31486         gl_NETDB_H_DEFAULTS. Set these variables.
31487         * modules/netdb (Makefile.am): Substitute these variables.
31488
31489 2008-11-10  Eric Blake  <ebb9@byu.net>
31490
31491         standards.texi: include correct file for FDL 1.3
31492         * doc/standards.texi (GNU Free Documentation License): Change
31493         include file to pull in FDL 1.3, not 1.2.
31494
31495         fdl.texi: revert accidental change to license
31496         * doc/fdl.texi: This is FDL 1.2, not 1.3.
31497
31498 2008-11-10  Bruno Haible  <bruno@clisp.org>
31499
31500         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
31501         cross-compiling guesses also when the native compile gives no result.
31502
31503 2008-11-10  Bruno Haible  <bruno@clisp.org>
31504
31505         * lib/spawni.c (__spawni): Force variable into the stack.
31506
31507 2008-11-10  Bruno Haible  <bruno@clisp.org>
31508
31509         Add support for Haiku.
31510         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
31511         glibc and BeOS, but also on Haiku.
31512         * lib/fpurge.c (fpurge): Likewise.
31513         * lib/freadable.c (freadable): Likewise.
31514         * lib/freadahead.c (freadahead): Likewise.
31515         * lib/freading.c (freading): Likewise.
31516         * lib/freadptr.c (freadptr): Likewise.
31517         * lib/freadseek.c (freadptrinc): Likewise.
31518         * lib/fseeko.c (rpl_fseeko): Likewise.
31519         * lib/fseterr.c (fseterr): Likewise.
31520         * lib/fwritable.c (fwritable): Likewise.
31521         * lib/fwriting.c (fwriting): Likewise.
31522         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
31523
31524 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31525
31526         * lib/config.charset: Treat Haiku like BeOS.
31527
31528 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31529
31530         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
31531         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
31532
31533 2008-11-08  Bruno Haible  <bruno@clisp.org>
31534
31535         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
31536         AC_CACHE_CHECK.
31537
31538 2008-11-08  Bruno Haible  <bruno@clisp.org>
31539
31540         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
31541
31542 2008-11-08  Bruno Haible  <bruno@clisp.org>
31543
31544         * tests/test-select-fd.c: New file.
31545         * tests/test-select-in.sh: New file.
31546         * tests/test-select-out.sh: New file.
31547         * tests/test-select-stdin.c: New file.
31548         * modules/select-tests (Files): Add the new files.
31549         (Depends-on): Add gettimeofday.
31550         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
31551         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
31552         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
31553
31554 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
31555             Bruno Haible  <bruno@clisp.org>
31556
31557         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
31558
31559 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
31560
31561         * build-aux/pmccabe2html: Added support for C++ source files.
31562
31563 2008-11-05  Ben Pfaff  <blp@gnu.org>
31564
31565         Fix lib/close.c build on Windows.
31566         * modules/close (Files): Add lib/w32sock.h.
31567
31568 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
31569
31570         Accept Bison's NEWS format.
31571         * build-aux/announce-gen (print_news_deltas): Tweak
31572         $re_prefix.
31573
31574 2008-11-04  Bruno Haible  <bruno@clisp.org>
31575
31576         * modules/random_r (Maintainer): Add glibc.
31577
31578 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31579
31580         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
31581         by karl@freefriends.org (Karl Berry).
31582         * doc/alloca.texi: Likewise.
31583         * doc/c-ctype.texi: Likewise.
31584         * doc/c-strcase.texi: Likewise.
31585         * doc/c-strcaseeq.texi: Likewise.
31586         * doc/c-strcasestr.texi: Likewise.
31587         * doc/c-strstr.texi: Likewise.
31588         * doc/c-strtod.texi: Likewise.
31589         * doc/c-strtold.texi: Likewise.
31590         * doc/ctime.texi: Likewise.
31591         * doc/error.texi: Likewise.
31592         * doc/fdl.texi: Likewise.
31593         * doc/gcd.texi: Likewise.
31594         * doc/getdate.texi: Likewise.
31595         * doc/gnulib-intro.texi: Likewise.
31596         * doc/gnulib-tool.texi: Likewise.
31597         * doc/gnulib.texi: Likewise.
31598         * doc/inet_ntoa.texi: Likewise.
31599         * doc/maintain.texi: Likewise.
31600         * doc/make-stds.texi: Likewise.
31601         * doc/quote.texi: Likewise.
31602         * doc/regexprops-generic.texi: Likewise.
31603         * doc/standards.texi: Likewise.
31604         * doc/verify.texi: Likewise.
31605         * doc/visibility.texi: Likewise.
31606         * doc/gnulib.texi (GNU Free Documentation License): Include
31607         fdl-1.3.texi instead of fdl.texi.
31608
31609 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31610
31611         * doc/fdl-1.3.texi: New file, from
31612         <http://www.gnu.org/licenses/fdl-1.3.texi>.
31613         * modules/fdl-1.3: Add.
31614         * MODULES.html.sh: Add fdl-1.3.
31615
31616 2008-11-03  Bruno Haible  <bruno@clisp.org>
31617
31618         Make determination of absolute name of header file work with AIX xlc.
31619         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
31620         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
31621         preprocessing.
31622         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31623         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31624
31625 2008-11-03  Simon Josefsson  <simon@josefsson.org>
31626
31627         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
31628         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
31629         <ludo@gnu.org>.
31630
31631 2008-11-02  Bruno Haible  <bruno@clisp.org>
31632
31633         Mark 'strpbrk' obsolete.
31634         * modules/strpbrk (Status, Notice): New sections.
31635         * modules/strtok_r (Depends-on): Add strpbrk.
31636
31637 2008-11-02  Bruno Haible  <bruno@clisp.org>
31638
31639         Mark 'strdup' obsolete.
31640         * modules/strdup (Status, Notice): New sections.
31641         * modules/findprog (Depends-on): Add strdup.
31642         * modules/getaddrinfo (Depends-on): Likewise.
31643         * modules/localename (Depends-on): Likewise.
31644         * modules/relocatable-lib (Depends-on): Likewise.
31645         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
31646         * modules/relocatable-prog (Depends-on): Likewise.
31647         * modules/trim (Depends-on): Likewise.
31648         * modules/unictype/gen-ctype (Depends-on): Likewise.
31649         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
31650
31651 2008-11-02  Bruno Haible  <bruno@clisp.org>
31652
31653         Mark 'strcspn' obsolete.
31654         * modules/strcspn (Status, Notice): New sections.
31655
31656 2008-11-02  Bruno Haible  <bruno@clisp.org>
31657
31658         Mark 'rmdir' obsolete.
31659         * modules/rmdir (Status, Notice): New sections.
31660         * modules/clean-temp (Depends-on): Add rmdir.
31661         * modules/openat (Depends-on): Likewise.
31662
31663 2008-11-02  Bruno Haible  <bruno@clisp.org>
31664
31665         Mark 'raise' obsolete.
31666         * modules/raise (Status, Notice): New sections.
31667         (Include): Specify <signal.h>.
31668         * modules/stdio (Depends-on): Add raise.
31669         * modules/write (Depends-on): Likewise.
31670
31671 2008-11-02  Bruno Haible  <bruno@clisp.org>
31672
31673         Mark 'memset' obsolete.
31674         * modules/memset (Status, Notice): New sections.
31675
31676 2008-11-02  Bruno Haible  <bruno@clisp.org>
31677
31678         Mark 'memmove' obsolete.
31679         * modules/memmove (Status, Notice): New sections.
31680         * modules/argp (Depends-on): Add memmove.
31681         * modules/argz (Depends-on): Likewise.
31682         * modules/canonicalize (Depends-on): Likewise.
31683         * modules/canonicalize-lgpl (Depends-on): Likewise.
31684         * modules/fts (Depends-on): Likewise.
31685         * modules/getcwd (Depends-on): Likewise.
31686         * modules/human (Depends-on): Likewise.
31687         * modules/regex (Depends-on): Likewise.
31688         * modules/striconveh (Depends-on): Likewise.
31689         * modules/trim (Depends-on): Likewise.
31690         * modules/unistr/u8-move (Depends-on): Likewise.
31691         * modules/unistr/u16-move (Depends-on): Likewise.
31692         * modules/unistr/u32-move (Depends-on): Likewise.
31693
31694 2008-11-02  Bruno Haible  <bruno@clisp.org>
31695
31696         Mark 'memcpy' obsolete.
31697         * modules/memcpy (Status, Notice): New sections.
31698
31699 2008-11-02  Bruno Haible  <bruno@clisp.org>
31700
31701         Mark 'memcmp' obsolete.
31702         * modules/memcmp (Status, Notice): New sections.
31703         * modules/argmatch (Depends-on): Add memchr.
31704         * modules/backupfile (Depends-on): Likewise.
31705         * modules/c-strcasestr (Depends-on): Likewise.
31706         * modules/crypto/des (Depends-on): Likewise.
31707         * modules/csharpcomp (Depends-on): Likewise.
31708         * modules/fnmatch (Depends-on): Likewise.
31709         * modules/git-merge-changelog (Depends-on): Likewise.
31710         * modules/isnand (Depends-on): Likewise.
31711         * modules/isnand-nolibm (Depends-on): Likewise.
31712         * modules/isnanf (Depends-on): Likewise.
31713         * modules/isnanf-nolibm (Depends-on): Likewise.
31714         * modules/isnanl (Depends-on): Likewise.
31715         * modules/isnanl-nolibm (Depends-on): Likewise.
31716         * modules/mbchar (Depends-on): Likewise.
31717         * modules/memcoll (Depends-on): Likewise.
31718         * modules/quotearg (Depends-on): Likewise.
31719         * modules/regex (Depends-on): Likewise.
31720         * modules/relocatable-prog (Depends-on): Likewise.
31721         * modules/same (Depends-on): Likewise.
31722         * modules/signbit (Depends-on): Likewise.
31723         * modules/strcasestr-simple (Depends-on): Likewise.
31724         * modules/unictype/gen-ctype (Depends-on): Likewise.
31725         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
31726         * modules/uniname/uniname (Depends-on): Likewise.
31727         * modules/unistr/u8-cmp (Depends-on): Likewise.
31728
31729 2008-11-02  Bruno Haible  <bruno@clisp.org>
31730
31731         Mark 'memchr' obsolete.
31732         * modules/memchr (Status, Notice): New sections.
31733         * modules/argp (Depends-on): Add memchr.
31734         * modules/base64 (Depends-on): Likewise.
31735         * modules/c-strcasestr (Depends-on): Likewise.
31736         * modules/chdir-long (Depends-on): Likewise.
31737         * modules/fnmatch (Depends-on): Likewise.
31738         * modules/getsubopt (Depends-on): Likewise.
31739         * modules/git-merge-changelog (Depends-on): Likewise.
31740         * modules/glob (Depends-on): Likewise.
31741         * modules/strcasestr-simple (Depends-on): Likewise.
31742         * modules/strnlen (Depends-on): Likewise.
31743
31744 2008-11-02  Bruno Haible  <bruno@clisp.org>
31745
31746         Mark 'atexit' obsolete.
31747         * modules/atexit (Status, Notice): New sections.
31748         * modules/chdir-long (Depends-on): Add atexit.
31749         * modules/wait-process (Depends-on): Likewise.
31750
31751 2008-11-02  Bruno Haible  <bruno@clisp.org>
31752
31753         * gnulib-tool: New option --with-obsolete.
31754         (func_usage): Document it.
31755         (func_modules_transitive_closure): Drop obsolete dependencies if
31756         incobsolete is not true.
31757         (func_import): Read and save the incobsolete variable to the cache.
31758
31759 2008-11-02  Bruno Haible  <bruno@clisp.org>
31760
31761         * modules/TEMPLATE-EXTENDED: New field 'Status'.
31762         * gnulib-tool: New option --extract-status.
31763         (func_usage): Document it.
31764         (sed_extract_prog): Recognize it.
31765         (func_get_status): New function.
31766
31767 2008-10-30  Simon Josefsson  <simon@josefsson.org>
31768
31769         * modules/sockets (License): Change from LGPL to LGPLv2+.
31770
31771 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31772
31773         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
31774
31775 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31776
31777         * MODULES.html.sh (Support for systems lacking POSIX:2001):
31778         Mention times and sys_times.
31779         * modules/sys_times, modules/sys_times-tests: New modules.
31780         * modules/times, modules/times-tests: Likewise
31781         * m4/sys_times_h.m4: New file.
31782         * lib/sys_times.in.h: Likewise
31783         * lib/times.c: Likewise.
31784         * tests/test-sys_times.c: Likewise.
31785         * tests/test-times.c: Likewise.
31786         * doc/posix-headers/sys_times.texi: Update.
31787         * doc/posix-functions/times.texi: Update.
31788
31789 2008-10-28  Jim Meyering  <meyering@redhat.com>
31790
31791         * modules/tempname (Depends-on): Add lstat.
31792
31793         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
31794
31795 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31796
31797         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
31798         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
31799         using idiom used elsewhere in gnulib.
31800
31801 2008-10-27  Jim Meyering  <meyering@redhat.com>
31802
31803         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
31804
31805 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31806
31807         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
31808         TESTS_ENVIRONMENT, for shell scripts that needs to call built
31809         programs.
31810         * tests/test-argp-2.sh: Use $EXEEXT when needed.
31811
31812 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31813
31814         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
31815
31816 2008-10-27  Bruno Haible  <bruno@clisp.org>
31817
31818         * tests/test-lstat.c: Include <stdio.h>.
31819
31820 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31821
31822         * modules/lstat-tests: New module.
31823         * tests/test-lstat.c: New file.
31824
31825 2008-10-26  Jim Meyering  <meyering@redhat.com>
31826
31827         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
31828
31829 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31830             Bruno Haible  <bruno@clisp.org>
31831
31832         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
31833         * modules/configmake (Include): Add a note that the include must come
31834         after all system headers.
31835         * lib/javaversion.c: Include configmake.h after all other includes.
31836
31837 2008-10-26  Bruno Haible  <bruno@clisp.org>
31838
31839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
31840         HAVE_STRUCT_RANDOM_DATA to 1.
31841         (gl_STDLIB_H): Simplify.
31842
31843 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31844
31845         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
31846         substitute HAVE_STRUCT_RANDOM_DATA.
31847         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
31848         random_data.
31849         * modules/stdlib (Makefile.am): Substitute
31850         HAVE_STRUCT_RANDOM_DATA.
31851
31852 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31853
31854         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
31855         * doc/gnulib-intro.texi (Copyright): Likewise.
31856
31857 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31858
31859         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
31860         findings.
31861
31862 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
31863             Bruno Haible  <bruno@clisp.org>
31864
31865         * lib/unistd.in.h: Include <winsock2.h>.
31866         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
31867         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
31868         Provide dummy declarations.
31869         (gethostname): Override.
31870         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
31871         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
31872         gl_PREREQ_SYS_H_WINSOCK2.
31873         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
31874         * doc/posix-functions/gethostname.texi: More details.
31875
31876 2008-10-25  Bruno Haible  <bruno@clisp.org>
31877
31878         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31879         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
31880         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
31881
31882         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
31883         here ...
31884         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
31885         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
31886         gl_UNISTD_H_DEFAULTS.
31887
31888 2008-10-25  Eric Blake  <ebb9@byu.net>
31889
31890         signbit: avoid spurious compiler failure
31891         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
31892         declarations inside function.
31893
31894 2008-10-24  Simon Josefsson  <simon@josefsson.org>
31895             Bruno Haible  <bruno@clisp.org>
31896
31897         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
31898         * modules/random_r (Depends-on): Add stdint.
31899
31900 2008-10-24  Bruno Haible  <bruno@clisp.org>
31901
31902         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
31903         Eggert.
31904         * modules/strerror (License): Likewise.
31905
31906 2008-10-24  Jim Meyering  <meyering@redhat.com>
31907
31908         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
31909         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
31910
31911 2008-10-24  Eric Blake  <ebb9@byu.net>
31912
31913         getgroups: fix compilation when getgroups is available
31914         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
31915         but with <config.h> override of getgroups disabled.
31916
31917 2008-10-24  Simon Josefsson  <simon@josefsson.org>
31918
31919         * doc/gnulib.texi (Header files): Add note about C++ problems.
31920         Explained by Bruno Haible <bruno@clisp.org>.
31921
31922 2008-10-23  Bruno Haible  <bruno@clisp.org>
31923
31924         Define a dummy SA_NODEFER macro on Interix.
31925         * lib/signal.in.h (SA_NODEFER): Define fallback.
31926         Reported by Aleksey Cheusov <cheusov@tut.by> via
31927         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
31928
31929 2008-10-23  Bruno Haible  <bruno@clisp.org>
31930
31931         * modules/freadahead (License): Change to LGPLv2+.
31932         Suggested by Simon Josefsson.
31933
31934 2008-10-23  Jim Meyering  <meyering@redhat.com>
31935
31936         random_r: new module
31937         * modules/random_r: New file.
31938         * m4/random_r.m4: New file.
31939         * lib/random_r.c: New file, from glibc.
31940         * modules/random_r-tests: New file.
31941         * tests/test-random_r.c: New file.
31942         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
31943          Declare.
31944         (RAND_MAX): Define.
31945         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
31946         * modules/stdlib: Substitute them, too.
31947         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
31948         * doc/glibc-functions/initstate_r.texi: Mention the new module.
31949         * doc/glibc-functions/random_r.texi: Likewise.
31950         * doc/glibc-functions/setstate_r.texi: Likewise.
31951         * doc/glibc-functions/srandom_r.texi: Likewise.
31952         * config/srclist.txt: Mention it.
31953
31954 2008-10-23  David Lutterkort  <lutter@redhat.com>
31955
31956         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
31957         link requirement
31958
31959 2008-10-23  Jim Meyering  <meyering@redhat.com>
31960
31961         selinux-h: mark parameters of stub functions as intentionally unused
31962         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
31963         * lib/se-context.in.h: Likewise.
31964
31965 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31966
31967         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
31968
31969 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31970
31971         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
31972
31973 2008-10-22  Eric Blake  <ebb9@byu.net>
31974
31975         glthread/thread: avoid compiler warning
31976         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
31977         Add unreachable abort to silence compiler.
31978
31979 2008-10-22  Eric Blake  <ebb9@byu.net>
31980
31981         netdb: also supply struct addrinfo for cygwin 1.5.x
31982         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
31983         older cygwin.
31984         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
31985         cygwin.
31986         * doc/posix-headers/netdb.texi (netdb.h): Document this.
31987
31988 2008-10-22  Bruno Haible  <bruno@clisp.org>
31989
31990         * users.txt: Update entry about pspp.
31991
31992 2008-10-21  Bruno Haible  <bruno@clisp.org>
31993
31994         Simplification.
31995         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
31996         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
31997
31998         Simplification.
31999         * lib/ioctl.c (ioctl): Don't undefine.
32000         * lib/socket.c (socket): Don't undefine.
32001
32002         Remove unused module indicator macros.
32003         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
32004         GNULIB_$1 as a C macro.
32005
32006         * doc/posix-functions/close.texi: Undo last change.
32007         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
32008         Windows platforms.
32009
32010 2008-10-21  Bruno Haible  <bruno@clisp.org>
32011
32012         Add gethostname() declaration to <unistd.h>.
32013         * lib/unistd.in.h (gethostname): New declaration.
32014         * lib/gethostname.c: Include <unistd.h>.
32015         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
32016         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
32017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
32018         and HAVE_GETHOSTNAME.
32019         * modules/gethostname (Depends-on): Add unistd.
32020         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32021         (Include): Specify <unistd.h>.
32022         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
32023         HAVE_GETHOSTNAME.
32024         * tests/test-gethostname.c: Include <unistd.h> first.
32025
32026 2008-10-21  Bruno Haible  <bruno@clisp.org>
32027
32028         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
32029         * modules/select-tests (Depends-on): Likewise.
32030         Reported by Simon Josefsson.
32031
32032 2008-10-21  Simon Josefsson  <simon@josefsson.org>
32033
32034         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
32035         * lib/accept.c: New file, based on winsock.c.
32036         * lib/bind.c: New file, based on winsock.c.
32037         * lib/connect.c: New file, based on winsock.c.
32038         * lib/getpeername.c: New file, based on winsock.c.
32039         * lib/getsockname.c: New file, based on winsock.c.
32040         * lib/getsockopt.c: New file, based on winsock.c.
32041         * lib/ioctl.c: New file, based on winsock.c.
32042         * lib/listen.c: New file, based on winsock.c.
32043         * lib/recv.c: New file, based on winsock.c.
32044         * lib/recvfrom.c: New file, based on winsock.c.
32045         * lib/send.c: New file, based on winsock.c.
32046         * lib/sendto.c: New file, based on winsock.c.
32047         * lib/setsockopt.c: New file, based on winsock.c.
32048         * lib/shutdown.c: New file, based on winsock.c.
32049         * lib/socket.c: New file, based on winsock.c.
32050         * lib/w32sock.h: New file, based on winsock.c.
32051         * lib/winsock.c: Remove file.
32052         * modules/accept: Likewise.
32053         * modules/bind: Likewise.
32054         * modules/connect: Likewise.
32055         * modules/getpeername: Likewise.
32056         * modules/getsockname: Likewise.
32057         * modules/getsockopt: Likewise.
32058         * modules/ioctl: Likewise.
32059         * modules/listen: Likewise.
32060         * modules/recv: Likewise.
32061         * modules/recvfrom: Likewise.
32062         * modules/send: Likewise.
32063         * modules/sendto: Likewise.
32064         * modules/setsockopt: Likewise.
32065         * modules/shutdown: Likewise.
32066         * modules/socket: Use socket.c instead of winsock.c.
32067         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
32068         * doc/posix-functions/accept.texi: Doc fix.
32069         * doc/posix-functions/bind.texi: Doc fix.
32070         * doc/posix-functions/close.texi: Doc fix.
32071         * doc/posix-functions/connect.texi: Doc fix.
32072         * doc/posix-functions/getpeername.texi: Doc fix.
32073         * doc/posix-functions/getsockname.texi: Doc fix.
32074         * doc/posix-functions/getsockopt.texi: Doc fix.
32075         * doc/posix-functions/ioctl.texi: Doc fix.
32076         * doc/posix-functions/listen.texi: Doc fix.
32077         * doc/posix-functions/recv.texi: Doc fix.
32078         * doc/posix-functions/recvfrom.texi: Doc fix.
32079         * doc/posix-functions/send.texi: Doc fix.
32080         * doc/posix-functions/sendto.texi: Doc fix.
32081         * doc/posix-functions/setsockopt.texi: Doc fix.
32082         * doc/posix-functions/shutdown.texi: Doc fix.
32083         * doc/posix-functions/socket.texi: Doc fix.
32084
32085 2008-10-20  Bruno Haible  <bruno@clisp.org>
32086
32087         Take into account the role of SIGABRT_COMPAT on Windows 2008.
32088         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
32089         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
32090         as an alias for SIGABRT.
32091         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
32092         (sigaction): Map it to SIGABRT.
32093         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
32094
32095 2008-10-20  Bruno Haible  <bruno@clisp.org>
32096
32097         * lib/fts.c: Don't include lstat.h.
32098         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
32099
32100         Move the lstat() declaration to <sys/stat.h>.
32101         * lib/lstat.h: Remove file.
32102         * lib/sys_stat.in.h: Add special invocation convention.
32103         (lstat): New declaration.
32104         * lib/lstat.c (orig_lstat): New function.
32105         (rpl_lstat): Use orig_lstat instead of lstat.
32106         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
32107         AC_C_INLINE. Set REPLACE_LSTAT.
32108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
32109         and REPLACE_LSTAT.
32110         * modules/lstat (Files): Remove lib/lstat.h.
32111         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32112         (Include): Specify <sys/stat.h> instead of lstat.h.
32113         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
32114         REPLACE_LSTAT.
32115         * NEWS: Mention the change.
32116
32117 2008-10-20  Bruno Haible  <bruno@clisp.org>
32118
32119         * modules/posix_spawn-tests: New file.
32120         * tests/test-posix_spawn3.c: New file.
32121
32122 2008-10-20  Bruno Haible  <bruno@clisp.org>
32123
32124         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
32125         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32126         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
32127         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32128         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
32129
32130 2008-10-20  Bruno Haible  <bruno@clisp.org>
32131
32132         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
32133         of posix_spawn on AIX 5.3.
32134
32135 2008-10-20  Bruno Haible  <bruno@clisp.org>
32136
32137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
32138
32139 2008-10-20  Bruno Haible  <bruno@clisp.org>
32140
32141         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
32142         of AC_LANG_PROGRAM.
32143
32144 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32145
32146         * lib/netdb.in.h: Don't define GNU specific constants until they
32147         are supported or needed.  Reported by Bruno Haible
32148         <bruno@clisp.org>.
32149
32150 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32151
32152         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
32153
32154 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32155
32156         * lib/getaddrinfo.h: Remove file.
32157         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
32158         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
32159         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
32160         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
32161         * modules/netdb: Substitute GNULIB_GETADDRINFO.
32162         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
32163         * tests/test-getaddrinfo.c: Likewise.
32164         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
32165         * NEWS: Mention change.
32166
32167 2008-10-19  Bruno Haible  <bruno@clisp.org>
32168
32169         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
32170
32171 2008-10-19  Bruno Haible  <bruno@clisp.org>
32172
32173         * lib/wait-process.c: Include simply <sys/wait.h>.
32174         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
32175         WIFSTOPPED): Remove fallback definitions.
32176         * modules/wait-process (Depends-on): Add sys_wait.
32177
32178         New module 'sys_wait'.
32179         * modules/sys_wait: New file.
32180         * lib/sys_wait.in.h: New file, partially copied from
32181         lib/wait-process.c.
32182         * m4/sys_wait_h.m4: New file.
32183         * doc/posix-headers/sys_wait.texi: Mention the new module.
32184
32185 2008-10-19  Bruno Haible  <bruno@clisp.org>
32186
32187         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
32188
32189 2008-10-19  Bruno Haible  <bruno@clisp.org>
32190
32191         Assume that waitpid() fills an 'int' status, not a 'union wait'.
32192         * lib/wait-process.c (WAIT_T): Remove type.
32193         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
32194         (wait_subprocess): Update.
32195
32196 2008-10-19  Bruno Haible  <bruno@clisp.org>
32197
32198         New module 'atoll'.
32199         * modules/atoll: New file.
32200         * lib/stdlib.in.h (atoll): New declaration.
32201         * lib/atoll.c: New file, from glibc with modifications.
32202         * m4/atoll.m4: New file.
32203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
32204         HAVE_ATOLL.
32205         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
32206         * doc/posix-functions/atoll.texi: Mention the new module.
32207
32208 2008-10-19  Bruno Haible  <bruno@clisp.org>
32209
32210         Add strtoull() declaration to <stdlib.h>.
32211         * lib/stdlib.in.h (strtoull): New declaration.
32212         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32213         Set HAVE_STRTOULL.
32214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
32215         HAVE_STRTOULL.
32216         * modules/strtoull (Depends-on): Add stdlib.
32217         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32218         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
32219         HAVE_STRTOULL.
32220
32221 2008-10-19  Bruno Haible  <bruno@clisp.org>
32222
32223         Add strtoll() declaration to <stdlib.h>.
32224         * lib/stdlib.in.h (strtoll): New declaration.
32225         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32226         Set HAVE_STRTOLL.
32227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
32228         HAVE_STRTOLL.
32229         * modules/strtoll (Depends-on): Add stdlib.
32230         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32231         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
32232
32233 2008-10-19  Bruno Haible  <bruno@clisp.org>
32234
32235         * modules/bcopy (Depends-on): Add strings.
32236         (Include): Specify <strings.h>.
32237
32238 2008-10-19  Bruno Haible  <bruno@clisp.org>
32239
32240         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
32241
32242 2008-10-19  Bruno Haible  <bruno@clisp.org>
32243
32244         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
32245         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
32246         mingw.
32247
32248 2008-10-19  Bruno Haible  <bruno@clisp.org>
32249
32250         * lib/atanl.c: Don't include isnanl.h.
32251         * lib/cosl.c: Likewise.
32252         * lib/ldexpl.c: Likewise.
32253         * lib/logl.c: Likewise.
32254         * lib/sinl.c: Likewise.
32255         * lib/sqrtl.c: Likewise.
32256         * lib/tanl.c: Likewise.
32257
32258         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
32259         * lib/isnanf.h: Remove file.
32260         * lib/isnand.h: Remove file.
32261         * lib/isnanl.h: Remove file.
32262         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
32263         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
32264         macros.
32265         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
32266         HAVE_ISNANF, don't define it as a C macro.
32267         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
32268         HAVE_ISNAND, don't define it as a C macro.
32269         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
32270         HAVE_ISNANL, don't define it as a C macro.
32271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
32272         HAVE_ISNAN[FDL].
32273         * modules/isnanf (Files): Remove lib/isnanf.h.
32274         (Depends-on): Add math.
32275         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32276         (Include): Specify <math.h> instead of isnanf.h.
32277         * modules/isnand (Files): Remove lib/isnand.h.
32278         (Depends-on): Add math.
32279         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32280         (Include): Specify <math.h> instead of isnand.h.
32281         * modules/isnanl (Files): Remove lib/isnanl.h.
32282         (Depends-on): Add math.
32283         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32284         (Include): Specify <math.h> instead of isnanl.h.
32285         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
32286         HAVE_ISNAN[FDL].
32287         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
32288         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
32289         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
32290         * NEWS: Mention the change.
32291
32292 2008-10-18  Bruno Haible  <bruno@clisp.org>
32293
32294         Add getusershell(), setusershell(), endusershell() declarations to
32295         <unistd.h>.
32296         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
32297         declarations.
32298         * lib/getusershell.c: Include unistd.h.
32299         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
32300         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32301         HAVE_GETUSERSHELL.
32302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
32303         and HAVE_GETUSERSHELL.
32304         * modules/getusershell (Depends-on): Add unistd, extensions.
32305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32306         (Include): Specify <unistd.h>.
32307         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
32308         HAVE_GETUSERSHELL.
32309
32310 2008-10-18  Bruno Haible  <bruno@clisp.org>
32311
32312         Add a getloadavg() declaration to <stdlib.h>.
32313         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
32314         getloadavg declaration.
32315         (getloadavg): New declaration.
32316         * lib/getloadavg.c: Include <stdlib.h> first.
32317         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
32318         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
32319         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
32320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
32321         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32322         * modules/getloadavg (Depends-on): Add stdlib, extensions.
32323         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32324         (Include): Specify <stdlib.h>.
32325         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
32326         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32327
32328 2008-10-18  Bruno Haible  <bruno@clisp.org>
32329
32330         * lib/dirchownmod.c: Don't include lchmod.h.
32331
32332         Move the lchmod() declaration to <sys/stat.h>.
32333         * lib/lchmod.h: Remove file.
32334         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
32335         (lchmod): New declaration, moved here from lib/lchown.h.
32336         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
32337         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
32338         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
32339         and HAVE_LCHMOD.
32340         * modules/lchmod (Files): Remove lib/lchmod.h.
32341         (Depends-on): Add sys_stat, extensions.
32342         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32343         (Include): Specify <sys/stat.h> instead of lchmod.h.
32344         * modules/sys_stat (Depends-on): Add link-warning.
32345         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
32346         definition of GL_LINK_WARNING.
32347         * NEWS: Mention the change.
32348
32349 2008-10-18  Bruno Haible  <bruno@clisp.org>
32350
32351         * lib/fchdir.c: Don't include dirfd.h.
32352         * lib/fts.c: Likewise.
32353         * lib/getcwd.c: Likewise.
32354         * lib/glob.c: Likewise.
32355
32356         Move the dirfd() declaration to <dirent.h>.
32357         * lib/dirfd.h: Remove file.
32358         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
32359         (dirfd): New declaration.
32360         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
32361         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
32362         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
32363         HAVE_DECL_DIRFD.
32364         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
32365         HAVE_DECL_DIRFD.
32366         * modules/dirfd (Files): Remove lib/dirfd.h.
32367         (Depends-on): Add dirent, extensions.
32368         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
32369         (Include): Specify <dirent.h> instead of dirfd.h.
32370         * modules/dirent (Depends-on): Add link-warning.
32371         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
32372         definition of GL_LINK_WARNING.
32373         * NEWS: Mention the change.
32374
32375 2008-10-18  Bruno Haible  <bruno@clisp.org>
32376
32377         Move the euidaccess() declaration to <unistd.h>.
32378         * lib/euidaccess.h: Remove file.
32379         * lib/unistd.in.h (euidaccess): New declaration.
32380         * lib/euidaccess.c: Don't include euidaccess.h.
32381         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
32382         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
32383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
32384         and HAVE_EUIDACCESS.
32385         * modules/euidaccess (Files): Remove lib/euidaccess.h.
32386         (Depends-on): Add unistd.
32387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32388         (Include): Specify <unistd.h> instead of euidaccess.h.
32389         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
32390         HAVE_EUIDACCESS.
32391         * NEWS: Mention the change.
32392
32393 2008-10-18  Bruno Haible  <bruno@clisp.org>
32394
32395         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
32396
32397         Move the getdomainname() declaration to <unistd.h>.
32398         * lib/getdomainname.h: Remove file.
32399         * lib/unistd.in.h (getdomainname): New declaration.
32400         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
32401         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
32402         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32403         HAVE_GETDOMAINNAME.
32404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32405         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
32406         * modules/getdomainname (Files): Remove lib/getdomainname.h.
32407         (Depends-on): Add unistd, extensions.
32408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32409         (Includes): Specify <unistd.h> instead of getdomainname.h.
32410         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
32411         HAVE_GETDOMAINNAME.
32412         * NEWS: Mention the change.
32413
32414 2008-10-18  Bruno Haible  <bruno@clisp.org>
32415
32416         * modules/dirent: New file.
32417         * m4/dirent_h.m4: New file.
32418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
32419         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
32420         * modules/fchdir (Files): Remove lib/dirent.in.h.
32421         (Depends-on): Add dirent.
32422         (Makefile.am): Move rules to modules/dirent.
32423         * doc/posix-headers/dirent.texi: Mention the new module.
32424
32425 2008-10-18  Bruno Haible  <bruno@clisp.org>
32426
32427         Avoid -Wunused-parameter warnings in public gnulib header files.
32428         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
32429         macro.
32430         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
32431
32432 2008-10-18  Bruno Haible  <bruno@clisp.org>
32433
32434         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
32435         * doc/glibc-functions/error.texi: Mention the module 'error'.
32436         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
32437         * doc/glibc-functions/getdomainname.texi: Mention the module
32438         'getdomainname'.
32439         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
32440         * doc/glibc-functions/getpagesize.texi: Mention the module
32441         'getpagesize'.
32442         * doc/glibc-functions/getusershell.texi: Mention the module
32443         'getusershell'.
32444         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
32445         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
32446         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
32447         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
32448         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
32449         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
32450         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
32451         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
32452         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
32453         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
32454         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
32455         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
32456         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
32457         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
32458
32459 2008-10-17  Bruno Haible  <bruno@clisp.org>
32460
32461         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
32462         HP-UX and IRIX, use -0.0L.
32463         * tests/test-ceill.c (minus_zero): Likewise.
32464         * tests/test-floorl.c (minus_zero): Likewise.
32465         * tests/test-frexpl.c (minus_zero): Likewise.
32466         * tests/test-isnan.c (minus_zerol): Likewise.
32467         * tests/test-isnanl.h (minus_zero): Likewise.
32468         * tests/test-ldexpl.c (minus_zero): Likewise.
32469         * tests/test-roundl.c (minus_zero): Likewise.
32470         * tests/test-signbit.c (minus_zerol): Likewise.
32471         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32472         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32473         * tests/test-truncl.c (minus_zero): Likewise.
32474         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32475         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32476         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
32477         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32478
32479 2008-10-17  Bruno Haible  <bruno@clisp.org>
32480
32481         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
32482         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
32483         that it gets activated only for gcc >= 3.0.
32484         * lib/dirent.in.h: Likewise.
32485         * lib/errno.in.h: Likewise.
32486         * lib/fcntl.in.h: Likewise.
32487         * lib/float.in.h: Likewise.
32488         * lib/iconv.in.h: Likewise.
32489         * lib/inttypes.in.h: Likewise.
32490         * lib/locale.in.h: Likewise.
32491         * lib/math.in.h: Likewise.
32492         * lib/netdb.in.h: Likewise.
32493         * lib/netinet_in.in.h: Likewise.
32494         * lib/search.in.h: Likewise.
32495         * lib/signal.in.h: Likewise.
32496         * lib/spawn.in.h: Likewise.
32497         * lib/stdarg.in.h: Likewise.
32498         * lib/stdint.in.h: Likewise.
32499         * lib/stdio.in.h: Likewise.
32500         * lib/stdlib.in.h: Likewise.
32501         * lib/string.in.h: Likewise.
32502         * lib/strings.in.h: Likewise.
32503         * lib/sys_file.in.h: Likewise.
32504         * lib/sys_ioctl.in.h: Likewise.
32505         * lib/sys_select.in.h: Likewise.
32506         * lib/sys_socket.in.h: Likewise.
32507         * lib/sys_stat.in.h: Likewise.
32508         * lib/sys_time.in.h: Likewise.
32509         * lib/sysexits.in.h: Likewise.
32510         * lib/time.in.h: Likewise.
32511         * lib/unistd.in.h: Likewise.
32512         * lib/wchar.in.h: Likewise.
32513         * lib/wctype.in.h: Likewise.
32514         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32515
32516 2008-10-17  Jim Meyering  <meyering@redhat.com>
32517
32518         ignore-value: don't depend on inline module
32519         * modules/ignore-value (Depends-on): Remove 'inline'.
32520         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
32521         Suggestion from Bruno Haible.
32522
32523 2008-10-17  Bruno Haible  <bruno@clisp.org>
32524
32525         New implementation of condition variables for Win32.
32526         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
32527         (gl_linked_waitqueue_t): New type.
32528         (gl_cond_t): Use it.
32529         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
32530         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
32531         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
32532         (glthread_cond_init_func, glthread_cond_wait_func,
32533         glthread_cond_timedwait_func, glthread_cond_signal_func,
32534         glthread_cond_broadcast_func, glthread_cond_destroy_func):
32535         Reimplemented on the basis of gl_linked_waitqueue_t.
32536         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
32537         gl_waitqueue_t.
32538         (gl_rwlock_t): Update.
32539         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
32540
32541 2008-10-17  Simon Josefsson  <simon@josefsson.org>
32542
32543         * modules/recvfrom (Depends-on): Add dependency on getpeername.
32544         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32545
32546 2008-10-17  Jim Meyering  <meyering@redhat.com>
32547
32548         ignore-value: new module
32549         * modules/ignore-value: New file.
32550         * lib/ignore-value.h: New file.
32551         * MODULES.html.sh (Compiler warning management): New section,
32552         just for this module.  More to come.
32553
32554 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32555
32556         open-safer.c: avoid 'signed and unsigned in conditional...' warning
32557         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
32558         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
32559
32560 2008-10-16  Jim Meyering  <meyering@redhat.com>
32561
32562         openat-die.c: avoid 'no previous prototype' warning
32563         * lib/openat-die.c: Include "openat.h".
32564         Reported by Reuben Thomas <rrt@sc3d.org>.
32565
32566 2008-10-16  Simon Josefsson  <simon@josefsson.org>
32567
32568         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
32569         * lib/netdb.in.h: Fix typo.
32570         Reported by Bruno Haible  <bruno@clisp.org>
32571
32572         * lib/netdb.in.h: Include sys/socket.h for platforms without
32573         netdb.h, to get structures like hostent on MinGW.
32574         * modules/netdb (Depends-on): Add sys_socket.
32575
32576 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32577
32578         * modules/netdb, modules/netdb-tests: New file.
32579         * m4/netdb_h.m4: New file.
32580         * lib/netdb.in.h: Add, currently just an empty file pending
32581         definitions.
32582         * tests/test-netdb.c: New file.
32583         * doc/posix-headers/netdb.texi: Mention that we replace it if
32584         needed.
32585         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32586         netdb.
32587
32588 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32589
32590         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
32591         with code.
32592
32593 2008-10-13  Bruno Haible  <bruno@clisp.org>
32594
32595         * lib/glthread/cond.c (glthread_cond_wait_func,
32596         glthread_cond_timedwait_func): Add a comment.
32597
32598 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32599
32600         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
32601         * tests/test-select.c: Likewise,
32602
32603 2008-10-13  Bruno Haible  <bruno@clisp.org>
32604
32605         * lib/glthread/cond.c (glthread_cond_wait_func,
32606         glthread_cond_timedwait_func): Fix variable name.
32607         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32608
32609 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
32610
32611         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
32612         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
32613         struct sockaddr.sa_len.
32614         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
32615
32616 2008-10-13  Simon Josefsson  <simon@josefsson.org>
32617
32618         * build-aux/pmccabe2html: Add css and css_url parameters.
32619
32620 2008-10-12  Bruno Haible  <bruno@clisp.org>
32621
32622         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
32623         calling aclx_get.
32624         Reported by Rainer Tammer <tammer@tammer.net>.
32625
32626 2008-10-12  Bruno Haible  <bruno@clisp.org>
32627
32628         Use msvcrt aware primitives for creation/termination of Win32 threads.
32629         * lib/glthread/thread.c: Include <process.h>.
32630         (glthread_create_func): Use _beginthreadex instead of CreateThread.
32631         (wrapper_func): Update signature.
32632         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
32633
32634 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32635             Bruno Haible  <bruno@clisp.org>
32636
32637         Provide a Win32 implementation of the 'cond' module.
32638         * lib/glthread/cond.h [USE_WIN32]: New implementation.
32639         * lib/glthread/cond.c (glthread_cond_init_func,
32640         glthread_cond_wait_func, glthread_cond_timedwait_func,
32641         glthread_cond_signal_func, glthread_cond_broadcast_func,
32642         glthread_cond_destroy_func) [USE_WIN32]: New functions.
32643         * modules/cond (Dependencies): Add gettimeofday.
32644
32645 2008-10-11  Bruno Haible  <bruno@clisp.org>
32646
32647         Make sleep work on older versions of mingw.
32648         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
32649         only whether it exists.
32650         * doc/posix-functions/sleep.texi: Mention the problem with older
32651         versions of mingw.
32652
32653 2008-10-11  Bruno Haible  <bruno@clisp.org>
32654
32655         New module 'shutdown'.
32656         * modules/shutdown: New file.
32657         * lib/sys_socket.in.h (shutdown): New declaration.
32658         * lib/winsock.c (shutdown): New function.
32659         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32660         GNULIB_SHUTDOWN.
32661         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
32662         * doc/posix-functions/shutdown.texi: Document the new module.
32663
32664 2008-10-11  Jim Meyering  <meyering@redhat.com>
32665
32666         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
32667
32668 2008-10-11  Bruno Haible  <bruno@clisp.org>
32669
32670         New module 'fclose'.
32671         * modules/fclose: New file.
32672         * lib/stdio.in.h (fclose): New declaration.
32673         * lib/fclose.c: New file.
32674         * m4/fclose.m4: New file.
32675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
32676         REPLACE_FCLOSE.
32677         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
32678         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
32679         REPLACE_FCLOSE.
32680         * modules/close (Depends-on): fclose.
32681         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
32682
32683 2008-10-11  Bruno Haible  <bruno@clisp.org>
32684
32685         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
32686         set errno and don't call _close.
32687
32688 2008-10-10  Bruno Haible  <bruno@clisp.org>
32689
32690         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
32691         ACL, not afterwards. Fixes test failure on Cygwin.
32692
32693 2008-10-09  Ben Pfaff  <blp@gnu.org>
32694
32695         * build-aux/announce-gen: Fix gnulib version related part of usage
32696         message.  Die with a useful error message if no tarballs are
32697         found.
32698
32699 2008-10-10  Jim Meyering  <meyering@redhat.com>
32700
32701         bootstrap: use git's --depth=N option only if it's supported
32702         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
32703         recognize the --depth option.  Reported by Pádraig Brady.
32704
32705 2008-10-09  Bruno Haible  <bruno@clisp.org>
32706
32707         New module 'ioctl'.
32708         * modules/ioctl: New file.
32709         * lib/sys_socket.in.h (ioctl): Remove declaration.
32710         * lib/winsock.c: Include <sys/ioctl.h>.
32711         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
32712         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32713         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
32714         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
32715         * doc/posix-functions/ioctl.texi: Mention the new module.
32716
32717 2008-10-09  Bruno Haible  <bruno@clisp.org>
32718
32719         New module 'sys_ioctl'.
32720         * lib/sys_ioctl.in.h: New file.
32721         * m4/sys_ioctl_h.m4: New file.
32722         * modules/sys_ioctl: New file.
32723         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
32724
32725 2008-10-09  Bruno Haible  <bruno@clisp.org>
32726
32727         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
32728         * lib/winsock.c: Include <stdarg.h>.
32729         (rpl_ioctl): Change to second argument 'int' and then varargs.
32730
32731 2008-10-09  Bruno Haible  <bruno@clisp.org>
32732
32733         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
32734         when the sys_socket module is present and the system has <winsock2.h>.
32735
32736 2008-10-09  Bruno Haible  <bruno@clisp.org>
32737
32738         * doc/posix-functions/close.texi: Mention module 'close' instead of
32739         module 'sys_socket'.
32740
32741 2008-10-09  Bruno Haible  <bruno@clisp.org>
32742
32743         * doc/glibc-headers/sys_ioctl.texi: New file.
32744         * doc/gnulib.texi: Include it.
32745
32746 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32747             Bruno Haible  <bruno@clisp.org>
32748
32749         Combine the two replacements of 'close'.
32750         * lib/sys_socket.in.h (close): Define to a reminder to include
32751         <unistd.h>.
32752         (_gl_close_fd_maybe_socket): New declaration.
32753         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
32754         * lib/winsock.c (close): Remove undefinition.
32755         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
32756         needed for the gnulib module 'close'.
32757         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
32758         define to an error symbol or to a warning, if suitable.
32759         * lib/close.c: Include <sys/socket.h>.
32760         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
32761         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
32762         UNISTD_H_HAVE_WINSOCK2_H.
32763         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
32764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32765         UNISTD_H_HAVE_WINSOCK2_H.
32766         * modules/sys_socket (Files): Add m4/unistd_h.m4.
32767         (configure.ac): Set a module indicator.
32768         (Makefile.am): Substitute GNULIB_CLOSE.
32769         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
32770         * modules/poll-tests (Depends-on): Add close.
32771         * modules/select-tests (Depends-on): Likewise.
32772
32773 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32774             Bruno Haible  <bruno@clisp.org>
32775
32776         New module 'close'.
32777         * modules/close: New file.
32778         * lib/unistd.in.h (close): Move declaration out of the
32779         FCHDIR_REPLACEMENT scope.
32780         (_gl_unregister_fd): New declaration.
32781         * lib/close.c: New file.
32782         * lib/fchdir.c (rpl_close): Remove function.
32783         * m4/close.m4: New file.
32784         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
32785         close.
32786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
32787         REPLACE_CLOSE.
32788         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
32789         REPLACE_CLOSE.
32790         * modules/fchdir (Depends-on): Add close.
32791
32792 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32793             Bruno Haible  <bruno@clisp.org>
32794
32795         * lib/fcntl.in.h (open): Simplify conditionals.
32796         (_gl_register_fd): New declaration.
32797         * lib/fchdir.c (rpl_open): Remove function.
32798         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
32799         also.
32800         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
32801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
32802         open.
32803
32804 2008-10-09  Jim Meyering  <meyering@redhat.com>
32805
32806         GNUmakefile: use the more name-space-friendly "_version"
32807         * top/GNUmakefile (_dummy): Update.
32808         (_version): Rename from "version".
32809
32810 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32811             Bruno Haible  <bruno@clisp.org>
32812
32813         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
32814         rpl_close.
32815         (_gl_register_fd): New function, extracted from rpl_open.
32816         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
32817         (rpl_open, rpl_opendir): Use _gl_register_fd.
32818
32819 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32820
32821         Fix organization of 'open' replacement.
32822         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
32823         (gl_FUNC_OPEN): Use it.
32824         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
32825
32826 2008-10-08  Bruno Haible  <bruno@clisp.org>
32827
32828         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
32829
32830 2008-10-08  Simon Josefsson  <simon@josefsson.org>
32831
32832         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
32833         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
32834         listen).
32835
32836 2008-10-08  Eric Blake  <ebb9@byu.net>
32837
32838         GNUmakefile: add 'make version' target
32839         * top/GNUmakefile (_curr-ver): Split version update rules...
32840         (version): ...into a target.
32841
32842 2008-10-07  Bruno Haible  <bruno@clisp.org>
32843
32844         Use a more portable replacement expression for -0.0L.
32845         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
32846         instead of -0.0L. Fix m4 quotation.
32847
32848         * tests/test-signbit.c: Include <float.h>.
32849         (minus_zero): New variable.
32850         (test_signbitl): Use minus_zero instead of -zero.
32851         * modules/signbit-tests (Depends-on): Add float.
32852
32853         * tests/test-ceill.c: Include <float.h>.
32854         (zero): Remove variable.
32855         (minus_zero): New variable.
32856         (main): Use minus_zero instead of -zero.
32857         * modules/ceill-tests (Depends-on): Add float.
32858
32859         * tests/test-floorl.c: Include <float.h>.
32860         (zero): Remove variable.
32861         (minus_zero): New variable.
32862         (main): Use minus_zero instead of -zero.
32863         * modules/floorl-tests (Depends-on): Add float.
32864
32865         * tests/test-roundl.c: Include <float.h>.
32866         (zero): Remove variable.
32867         (minus_zero): New variable.
32868         (main): Use minus_zero instead of -zero.
32869         * modules/roundl-tests (Depends-on): Add float.
32870
32871         * tests/test-truncl.c: Include <float.h>.
32872         (zero): Remove variable.
32873         (minus_zero): New variable.
32874         (main): Use minus_zero instead of -zero.
32875         * modules/truncl-tests (Depends-on): Add float.
32876
32877         * tests/test-frexpl.c (zero): Remove variable.
32878         (minus_zero): New variable.
32879         (main): Use minus_zero instead of -zero.
32880         * modules/frexpl-tests (Depends-on): Add float.
32881
32882         * tests/test-isnan.c (zerol): Remove variable.
32883         (minus_zerol): New variable.
32884         (test_long_double): Use minus_zerol instead of -zerol.
32885         * modules/isnan-tests (Depends-on): Add float.
32886
32887         * tests/test-isnanl.h (zero): Remove variable.
32888         (minus_zero): New variable.
32889         (main): Use minus_zero instead of -zero.
32890         * modules/isnanl-nolibm-tests (Depends-on): Add float.
32891         * modules/isnanl-tests (Depends-on): Add float.
32892
32893         * tests/test-ldexpl.c (zero): Remove variable.
32894         (minus_zero): New variable.
32895         (main): Use minus_zero instead of -zero.
32896         * modules/ldexpl-tests (Depends-on): Add float.
32897
32898         * tests/test-snprintf-posix.h (zerol): Remove variable.
32899         (minus_zerol): New variable.
32900         (test_function): Use minus_zerol instead of -zerol.
32901         * modules/snprintf-posix-tests (Depends-on): Add float.
32902         * modules/vsnprintf-posix-tests (Depends-on): Add float.
32903
32904         * tests/test-sprintf-posix.h (zerol): Remove variable.
32905         (minus_zerol): New variable.
32906         (test_function): Use minus_zerol instead of -zerol.
32907         * modules/sprintf-posix-tests (Depends-on): Add float.
32908         * modules/vsprintf-posix-tests (Depends-on): Add float.
32909
32910         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
32911         (minus_zerol): New variable.
32912         (test_function): Use minus_zerol instead of -zerol.
32913         * modules/vasnprintf-posix-tests (Depends-on): Add float.
32914
32915         * tests/test-vasprintf-posix.c (zerol): Remove variable.
32916         (minus_zerol): New variable.
32917         (test_function): Use minus_zerol instead of -zerol.
32918         * modules/vasprintf-posix-tests (Depends-on): Add float.
32919
32920 2008-10-07  Simon Josefsson  <simon@josefsson.org>
32921
32922         * MODULES.html.sh (Support for building documentation): Mention
32923         pmccabe2html.  Sort entries.
32924
32925         Add pmccabe2html module, from gnupdf.
32926         * build-aux/pmccabe.css: New file.
32927         * build-aux/pmccabe2html: New file.
32928         * m4/pmccabe2html.m4: New file.
32929         * modules/pmccabe2html: New file.
32930
32931 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
32932
32933         flock: new module
32934         * MODULES.html.sh: Add to list of modules.
32935         * lib/flock.c: flock implementation for Windows and Unix systems
32936         which have fcntl.
32937         * doc/glibc-functions/flock.texi: Update documentation.
32938         * lib/sys_file.in.h: <sys/file.h> header file.
32939         * m4/flock.m4: M4 macros.
32940         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
32941         * modules/flock: flock module.
32942         * modules/flock-tests: flock tests module.
32943         * modules/sys_file: sys/file.h module.
32944         * tests/test-flock.c: test suite for flock.
32945
32946 2008-10-06  Jim Meyering  <meyering@redhat.com>
32947
32948         bootstrap: check for LT_INIT more portably still ;-)
32949         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
32950         Spotted by Bruno Haible.
32951
32952 2008-10-06  Eric Blake  <ebb9@byu.net>
32953
32954         test-signbit: avoid tripping Irix cc bug on -0.0L
32955         * tests/test-signbit.c (minus_zerol): Delete, and replace with
32956         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
32957         entire testsuite consistent and avoids an Irix 6.2 bug.
32958
32959 2008-10-05  Bruno Haible  <bruno@clisp.org>
32960             Jim Meyering  <jim@meyering.net>
32961
32962         Add an option for ignoring EPIPE during close_stdout.
32963         * lib/closeout.h: Include <stdbool.h>.
32964         (close_stdout_set_ignore_EPIPE): New declaration.
32965         * lib/closeout.c: Include <stdbool.h>.
32966         (ignore_EPIPE): New variable.
32967         (close_stdout_set_ignore_EPIPE): New function.
32968         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
32969         * lib/close-stream.c (close_stream): Mention the possible EPIPE
32970         failure.
32971         * modules/closeout (Depends-on): Add stdbool.
32972
32973 2008-10-05  Bruno Haible  <bruno@clisp.org>
32974
32975         * modules/accept: New file.
32976         * modules/bind: New file.
32977         * modules/connect: New file.
32978         * modules/getpeername: New file.
32979         * modules/getsockname: New file.
32980         * modules/getsockopt: New file.
32981         * modules/listen: New file.
32982         * modules/recv: New file.
32983         * modules/recvfrom: New file.
32984         * modules/send: New file.
32985         * modules/sendto: New file.
32986         * modules/setsockopt: New file.
32987         * modules/socket: New file.
32988         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
32989         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32990         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
32991         the particular module is requested. Add a link warning when the
32992         particular module is not requested.
32993         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
32994         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
32995         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
32996         the particular module is requested.
32997         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
32998         gl_SYS_SOCKET_H_DEFAULTS): New macros.
32999         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
33000         * modules/sys_socket (Depends-on): Add link-warning.
33001         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
33002         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
33003         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
33004         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
33005         GL_LINK_WARNING.
33006         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
33007         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
33008         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
33009         * doc/posix-functions/getpeername.texi: Mention the new module
33010         'getpeername'.
33011         * doc/posix-functions/getsockname.texi: Mention the new module
33012         'getsockname'.
33013         * doc/posix-functions/getsockopt.texi: Mention the new module
33014         'getsockopt'.
33015         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
33016         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
33017         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
33018         * doc/posix-functions/send.texi: Mention the new module 'send'.
33019         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
33020         * doc/posix-functions/setsockopt.texi: Mention the new module
33021         'setsockopt'.
33022         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
33023         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
33024         listen, connect, accept.
33025         * modules/select-tests (Depends-on): Likewise.
33026
33027 2008-10-05  Bruno Haible  <bruno@clisp.org>
33028
33029         * lib/winsock.c (strerror): Remove unused #undef.
33030         (rpl_close): Remove unused local variable.
33031
33032         * modules/sys_socket (Depends-on); Add errno.
33033
33034 2008-10-05  Bruno Haible  <bruno@clisp.org>
33035
33036         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
33037         (select): Add a link warning when the 'select' module is not used.
33038         * modules/sys_select (Depends-on): Add link-warning.
33039         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
33040         Suggested by Paolo Bonzini.
33041
33042 2008-10-05  Jim Meyering  <meyering@redhat.com>
33043
33044         bootstrap: check for LT_INIT more portably
33045         * build-aux/bootstrap: Avoid using grep -E, since it's not
33046         portable enough.  Suggestion from Bruno Haible.
33047
33048 2008-10-05  Bruno Haible  <bruno@clisp.org>
33049
33050         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
33051         as being fixed by gnulib.
33052
33053 2008-10-05  Bruno Haible  <bruno@clisp.org>
33054
33055         * modules/select-tests: New file, mostly copied from
33056         modules/sys_select-tests.
33057         * tests/test-select.c: New file, mostly copied from
33058         tests/test-sys_select.c.
33059         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
33060         * modules/sys_select-tests (Depends-on): Remove all dependencies.
33061         (Makefile.am): Remove test_sys_select_LDADD.
33062
33063         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
33064         to an undefined symbol, for an error message.
33065         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
33066         (gl_SYS_SELECT_H_DEFAULTS): New macro.
33067         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
33068         winsock-select.c here.
33069         * modules/sys_select (Files): Remove lib/winsock-select.c.
33070         (Depends-on): Remove alloca.
33071         (Makefile.am): Substitute GNULIB_SELECT.
33072         * modules/select: New file.
33073         * doc/posix-functions/select.texi: Update.
33074
33075 2008-10-05  Bruno Haible  <bruno@clisp.org>
33076
33077         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
33078         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
33079         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
33080         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
33081         getdtablesize.
33082         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
33083         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
33084
33085 2008-10-05  Bruno Haible  <bruno@clisp.org>
33086
33087         * modules/getdtablesize-tests: New file.
33088         * tests/test-getdtablesize.c: New file.
33089
33090         New module 'getdtablesize'.
33091         * lib/unistd.in.h (getdtablesize): New declaration.
33092         * lib/getdtablesize.c: New file.
33093         * m4/getdtablesize.m4: New file.
33094         * modules/getdtablesize: New file.
33095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33096         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
33097         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
33098         HAVE_GETDTABLESIZE.
33099         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
33100
33101 2008-10-05  Bruno Haible  <bruno@clisp.org>
33102
33103         * modules/sched (Makefile.am): Fix typo.
33104         Reported by Simon Josefsson.
33105
33106 2008-10-05  Jim Meyering  <meyering@redhat.com>
33107
33108         bootstrap: check for LT_INIT, too
33109         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
33110         are deprecated.  Suggestion from Ralf Wildenhues.
33111
33112 2008-10-05  Bruno Haible  <bruno@clisp.org>
33113
33114         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
33115         overriding them by ours.
33116         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
33117
33118 2008-10-05  Jim Meyering  <meyering@redhat.com>
33119
33120         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
33121         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
33122         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
33123
33124 2008-10-04  Bruno Haible  <bruno@clisp.org>
33125
33126         * modules/dup2 (License): Change to LGPLv2+.
33127         * modules/sleep (License): Likewise.
33128         * modules/perror (License): Likewise.
33129         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
33130         Blake.
33131         * modules/signal (License): Likewise.
33132         * modules/sigprocmask (License): Likewise.
33133         * modules/raise (License): Change to LGPLv2+, with approval by Jim
33134         Meyering.
33135
33136 2008-10-04  Bruno Haible  <bruno@clisp.org>
33137
33138         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
33139         Reported by Rainer Tammer <tammer@tammer.net>.
33140
33141 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
33142             Bruno Haible  <bruno@clisp.org>
33143
33144         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
33145         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
33146         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
33147
33148 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
33149
33150         filevercmp: new module
33151         * lib/filevercmp.h: New function filevercmp comparing version strings.
33152         * lib/filevercmp.c: Implementation of filevercmp function.
33153         * modules/filevercmp: Module metadata.
33154         * tests/test-filevercmp.c: Unit test for new module.
33155         * modules/filevercmp-tests: Unit test metadata.
33156         * MODULES.html.sh: Add filevercmp module.
33157
33158 2008-10-03  Bruno Haible  <bruno@clisp.org>
33159
33160         * lib/c-ctype.h: Add comment.
33161         Reported by Jim Meyering.
33162
33163 2008-10-02  Bruno Haible  <bruno@clisp.org>
33164
33165         * modules/posix_spawn-internal (Depends-on): Add 'open'.
33166
33167 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33168
33169         * build-aux/bootstrap: Allow renaming bootstrap, and change the
33170         name of bootstrap.conf accordingly.
33171
33172 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33173
33174         * build-aux/bootstrap: Install git-merge-changelog configuration
33175         items into .gitconfig if needed.
33176
33177 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33178
33179         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
33180         git repository, and initialize/update it accordingly.
33181
33182 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
33183
33184         * modules/fsync-tests: New file.
33185         * tests/test-fsync.c: New file.
33186
33187         New module 'fsync'.
33188         * lib/fsync.c: New file.
33189         * m4/fsync.m4: New file.
33190         * modules/fsync: New file.
33191         * lib/unistd.in.h (fsync): New declaration.
33192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
33193         GNULIB_FSYNC and HAVE_FSYNC.
33194         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
33195         * MODULES.html.sh (posix_functions): Add fsync.
33196         * doc/posix-functions/fsync.texi: Mention the new module.
33197
33198 2008-10-02  Jim Meyering  <meyering@redhat.com>
33199
33200         fts.c: sync with similar code from coreutils' remove.c
33201         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
33202         Guard also with "#if defined __linux__", since for now at least,
33203         this code is Linux-kernel-specific.
33204
33205 2008-10-02  Jim Meyering  <meyering@redhat.com>
33206
33207         fts: bug fixes
33208         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
33209         Include <sys/vfs.h>, not <sys/statfs.h>.
33210
33211         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
33212         Include <sys/vfs.h>, not <sys/statfs.h>.
33213
33214 2008-10-01  Bruno Haible  <bruno@clisp.org>
33215
33216         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
33217         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
33218         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
33219         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
33220         * doc/posix-functions/posix_spawnp.texi: Likewise.
33221         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
33222         whether posix_spawn actually works.
33223         * m4/pipe.m4 (gl_PIPE): Likewise.
33224         * modules/execute (Files): Add m4/posix_spawn.m4.
33225         * modules/pipe (Files): Add m4/posix_spawn.m4.
33226         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
33227
33228 2008-10-01  Jim Meyering  <meyering@redhat.com>
33229
33230         remove trailing spaces
33231         * NEWS: Likewise.
33232         * lib/poll.c (poll): Likewise.
33233         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
33234         * lib/winsock.c (rpl_close): Likewise.
33235         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
33236         * modules/yield: Likewise.
33237         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
33238         * tests/test-sys_select.c (connect_to_socket): Likewise.
33239
33240         fts.c: adjust a new interface to be more generally useful
33241         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
33242         (fts_build): Adjust caller.
33243
33244 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33245
33246         * modules/cond-tests: New file.
33247         * tests/test-cond.c: New file.
33248
33249 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33250             Bruno Haible  <bruno@clisp.org>
33251
33252         * modules/cond (Dependencies): Add errno, time.
33253         * lib/glthread/cond.h: Include <time.h>.
33254         (gl_cond_define, gl_cond_define_initialized): Use the same definition
33255         across platforms.
33256
33257 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33258             Bruno Haible  <bruno@clisp.org>
33259
33260         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
33261
33262 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33263             Bruno Haible  <bruno@clisp.org>
33264
33265         * modules/tls-tests (Depends-on): Add thread, yield.
33266         (configure.ac): Remove all checks.
33267         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
33268         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33269         gl_thread_self): Remove definitions. Include glthread/thread.h and
33270         glthread/yield.h instead.
33271         (test_tls): Pass an additional NULL argument to gl_thread_join.
33272
33273 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33274             Bruno Haible  <bruno@clisp.org>
33275
33276         * modules/lock-tests (Depends-on): Add thread, yield.
33277         (configure.ac): Remove all checks.
33278         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
33279         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33280         gl_thread_self): Remove definitions. Include glthread/thread.h and
33281         glthread/yield.h instead.
33282         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
33283         additional NULL argument to gl_thread_join.
33284
33285 2008-09-30  Bruno Haible  <bruno@clisp.org>
33286
33287         Fix the Win32 implementation of the 'thread' module.
33288         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
33289         pointer type.
33290         (gl_thread_self): Invoke gl_thread_self_func.
33291         (gl_thread_self_func): New declaration.
33292         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
33293         (do_init_self_key, init_self_key): New functions.
33294         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
33295         Remove some fields.
33296         (running_threads, running_lock): Remove variables.
33297         (get_current_thread_handle): New function.
33298         (gl_thread_self_func, wrapper_func, glthread_create_func,
33299         glthread_join_func, gl_thread_exit_func): Largely rewritten and
33300         simplified.
33301
33302 2008-09-30  Bruno Haible  <bruno@clisp.org>
33303
33304         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
33305         files.
33306
33307 2008-09-30  Jim Meyering  <meyering@redhat.com>
33308
33309         fts.m4: correct the test for statfs.f_type
33310         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
33311         when checking for statfs.f_type.
33312
33313 2008-09-15  Simon Josefsson  <simon@josefsson.org>
33314
33315         tests: avoid some compiler warnings
33316         * tests/test-memchr.c (main): Pass NULL indirectly.
33317         * tests/test-getdate.c (main): Remove unused variable 'ret'.
33318
33319 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
33320
33321         getdate.y: disallow countable dayshifts like "4 yesterday ago"
33322         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
33323         exactly specified dayshifts.
33324         (dayshift): New rule.
33325         (rel): Add dayshift.
33326         (relative_time_table) [tomorrow, yesterday, today, now]:
33327         Use tDAY_SHIFT in place of tDAY_UNIT.
33328         * tests/test-getdate.c: Add tests for now-disallowed countable
33329         dayshifts, e.g., "4 yesterday ago".
33330
33331 2008-09-29  Bruno Haible  <bruno@clisp.org>
33332
33333         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
33334         * tests/test-posix_spawn1.in.sh: Renamed from
33335         tests/test-posix_spawn.in.sh.
33336         * tests/test-posix_spawn2.c: New file.
33337         * tests/test-posix_spawn2.in.sh: New file.
33338         * modules/posix_spawnp-tests (Files): Update.
33339         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
33340
33341 2008-09-29  Bruno Haible  <bruno@clisp.org>
33342
33343         Propagate effects of putenv/setenv/unsetenv to child processes.
33344         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
33345         * lib/pipe.c (create_pipe): Likewise.
33346
33347 2008-09-29  Bruno Haible  <bruno@clisp.org>
33348
33349         Enable use of shell scripts as executables in mingw.
33350         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
33351         run the program as a shell script.
33352         * lib/pipe.c (create_pipe): Likewise.
33353         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
33354         resulting array.
33355
33356 2008-09-29  Eric Blake  <ebb9@byu.net>
33357
33358         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
33359
33360 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
33361
33362         * doc/posix-functions/accept.texi: Update mingw problems.
33363         * doc/posix-functions/bind.texi: Update mingw problems.
33364         * doc/posix-functions/close.texi: Update mingw problems.
33365         * doc/posix-functions/connect.texi: Update mingw problems.
33366         * doc/posix-functions/getpeername.texi: Update mingw problems.
33367         * doc/posix-functions/getsockname.texi: Update mingw problems.
33368         * doc/posix-functions/getsockopt.texi: Update mingw problems.
33369         * doc/posix-functions/ioctl.texi: Update mingw problems.
33370         * doc/posix-functions/listen.texi: Update mingw problems.
33371         * doc/posix-functions/recv.texi: Update mingw problems.
33372         * doc/posix-functions/recvfrom.texi: Update mingw problems.
33373         * doc/posix-functions/select.texi: Update mingw problems.
33374         * doc/posix-functions/send.texi: Update mingw problems.
33375         * doc/posix-functions/sendto.texi: Update mingw problems.
33376         * doc/posix-functions/setsockopt.texi: Update mingw problems.
33377         * doc/posix-functions/socket.texi: Update mingw problems.
33378
33379 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
33380             Bruno Haible  <bruno@clisp.org>
33381
33382         * lib/sys_select.in.h: Include sys/time.h.
33383         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
33384         * modules/sys_select: Depend on sys_time.
33385         * tests/test-sys_select.c: Test that sys/select.h defines struct
33386         timeval fully.
33387
33388 2008-09-29  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
33391         * lib/sys_select.in.h: Likewise.
33392
33393 2008-09-29  Bruno Haible  <bruno@clisp.org>
33394
33395         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
33396
33397 2008-09-29  Bruno Haible  <bruno@clisp.org>
33398
33399         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
33400         Set LIBSOCKET instead of augmenting LIBS.
33401         * modules/sockets (Link): New section.
33402         * modules/sockets-tests (test_sockets_LDADD): New variable.
33403         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
33404         * modules/poll-tests (test_poll_LDADD): New variable.
33405         * NEWS: Document the change.
33406
33407 2008-09-29  Bruno Haible  <bruno@clisp.org>
33408
33409         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
33410         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
33411         ARPA_INET_H directly.
33412         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33413
33414 2008-09-28  Bruno Haible  <bruno@clisp.org>
33415
33416         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
33417         from gl_HEADER_SYS_SOCKET.
33418         (gl_HEADER_SYS_SOCKET): Invoke it.
33419         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33420
33421 2008-09-28  Bruno Haible  <bruno@clisp.org>
33422
33423         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
33424         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
33425         Needed on OSF/1 4.0.
33426
33427 2008-09-28  Bruno Haible  <bruno@clisp.org>
33428
33429         Override open more carefully.
33430         * lib/open.c (orig_open): New function.
33431         (rpl_open): Use orig_open instead of open.
33432         * lib/fcntl.in.h: Add special invocation convention.
33433         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
33434         (gl_FUNC_OPEN): Invoke it.
33435
33436         Override freopen more carefully.
33437         * lib/freopen.c (orig_freopen): New function.
33438         (rpl_freopen): Use orig_freopen instead of freopen.
33439         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
33440         (gl_FUNC_FREOPEN): Invoke it.
33441
33442         Override fopen more carefully.
33443         * lib/fopen.c (orig_fopen): New function.
33444         (rpl_fopen): Use orig_fopen instead of fopen.
33445         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
33446         (gl_FUNC_FOPEN): Invoke it.
33447         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
33448
33449 2008-09-28  Bruno Haible  <bruno@clisp.org>
33450
33451         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
33452         SIGPIPE.
33453
33454 2008-09-28  Bruno Haible  <bruno@clisp.org>
33455
33456         * tests/test-sigaction.c (handler, main): Disable the check whether
33457         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
33458         glibc systems with LinuxThreads.
33459
33460 2008-09-28  Bruno Haible  <bruno@clisp.org>
33461
33462         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
33463
33464         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
33465         with AIX xlc.
33466         * lib/fcntl.in.h (open): Likewise.
33467         Reported by Rainer Tammer <tammer@tammer.net>.
33468
33469 2008-09-28  Bruno Haible  <bruno@clisp.org>
33470
33471         * modules/posix_spawnp-tests: New file.
33472         * tests/test-posix_spawn.c: New file.
33473         * tests/test-posix_spawn.in.sh: New file.
33474
33475         New module 'posix_spawnp'.
33476         * modules/posix_spawnp: New file.
33477         * lib/spawnp.c: New file, from GNU libc with modifications.
33478         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
33479
33480         New module 'posix_spawn'.
33481         * modules/posix_spawn: New file.
33482         * lib/spawn.c: New file, from GNU libc with modifications.
33483         * doc/posix-functions/posix_spawn.texi: Mention the new module.
33484
33485         New module 'posix_spawnattr_destroy'.
33486         * modules/posix_spawnattr_destroy: New file.
33487         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
33488         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
33489         module.
33490
33491         New module 'posix_spawnattr_setsigmask'.
33492         * modules/posix_spawnattr_setsigmask: New file.
33493         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
33494         modifications.
33495         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
33496         new module.
33497
33498         New module 'posix_spawnattr_getsigmask'.
33499         * modules/posix_spawnattr_getsigmask: New file.
33500         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
33501         modifications.
33502         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
33503         new module.
33504
33505         New module 'posix_spawnattr_setsigdefault'.
33506         * modules/posix_spawnattr_setsigdefault: New file.
33507         * lib/spawnattr_setdefault.c: New file, from GNU libc with
33508         modifications.
33509         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
33510         new module.
33511
33512         New module 'posix_spawnattr_getsigdefault'.
33513         * modules/posix_spawnattr_getsigdefault: New file.
33514         * lib/spawnattr_getdefault.c: New file, from GNU libc with
33515         modifications.
33516         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
33517         new module.
33518
33519         New module 'posix_spawnattr_setschedpolicy'.
33520         * modules/posix_spawnattr_setschedpolicy: New file.
33521         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
33522         modifications.
33523         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
33524         new module.
33525
33526         New module 'posix_spawnattr_getschedpolicy'.
33527         * modules/posix_spawnattr_getschedpolicy: New file.
33528         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
33529         modifications.
33530         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
33531         new module.
33532
33533         New module 'posix_spawnattr_setschedparam'.
33534         * modules/posix_spawnattr_setschedparam: New file.
33535         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
33536         modifications.
33537         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
33538         new module.
33539
33540         New module 'posix_spawnattr_getschedparam'.
33541         * modules/posix_spawnattr_getschedparam: New file.
33542         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
33543         modifications.
33544         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
33545         new module.
33546
33547         New module 'posix_spawnattr_setpgroup'.
33548         * modules/posix_spawnattr_setpgroup: New file.
33549         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
33550         modifications.
33551         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
33552         module.
33553
33554         New module 'posix_spawnattr_getpgroup'.
33555         * modules/posix_spawnattr_getpgroup: New file.
33556         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
33557         modifications.
33558         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
33559         module.
33560
33561         New module 'posix_spawnattr_setflags'.
33562         * modules/posix_spawnattr_setflags: New file.
33563         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
33564         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
33565         module.
33566
33567         New module 'posix_spawnattr_getflags'.
33568         * modules/posix_spawnattr_getflags: New file.
33569         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
33570         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
33571         module.
33572
33573         New module 'posix_spawnattr_init'.
33574         * modules/posix_spawnattr_init: New file.
33575         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
33576         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
33577         module.
33578
33579         New module 'posix_spawn_file_actions_destroy'.
33580         * modules/posix_spawn_file_actions_destroy: New file.
33581         * lib/spawn_faction_destroy.c: New file, from GNU libc with
33582         modifications.
33583         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
33584         the new module.
33585
33586         New module 'posix_spawn_file_actions_addopen'.
33587         * modules/posix_spawn_file_actions_addopen: New file.
33588         * lib/spawn_faction_addopen.c: New file, from GNU libc with
33589         modifications.
33590         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
33591         the new module.
33592
33593         New module 'posix_spawn_file_actions_adddup2'.
33594         * modules/posix_spawn_file_actions_adddup2: New file.
33595         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
33596         modifications.
33597         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
33598         the new module.
33599
33600         New module 'posix_spawn_file_actions_addclose'.
33601         * modules/posix_spawn_file_actions_addclose: New file.
33602         * lib/spawn_faction_addclose.c: New file, from GNU libc with
33603         modifications.
33604         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
33605         the new module.
33606
33607         New module 'posix_spawn_file_actions_init'.
33608         * modules/posix_spawn_file_actions_init: New file.
33609         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
33610         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
33611         new module.
33612
33613         New module 'posix_spawn-internal'.
33614         * modules/posix_spawn-internal: New file.
33615         * lib/spawn_int.h: New file, from GNU libc with modifications.
33616         * lib/spawni.c: New file, from GNU libc with modifications.
33617         * m4/posix_spawn.m4: New file.
33618
33619         New module 'spawn'.
33620         * modules/spawn: New file.
33621         * lib/spawn.in.h: New file, from GNU libc with modifications.
33622         * m4/spawn_h.m4: New file.
33623         * doc/posix-headers/spawn.texi: Mention the new module.
33624
33625 2008-09-28  Bruno Haible  <bruno@clisp.org>
33626
33627         * modules/sched-tests: New file.
33628         * tests/test-sched.c: New file.
33629
33630         New module 'sched'.
33631         * modules/sched: New file.
33632         * lib/sched.in.h: New file.
33633         * m4/sched_h.m4: New file.
33634         * doc/posix-headers/sched.texi: Mention the new module.
33635
33636 2008-09-27  Eric Blake  <ebb9@byu.net>
33637
33638         Fix previous patch, and tweak references to $0.
33639         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
33640         (func_version, func_gnulib_dir): Don't call this program
33641         gnulib-tool.
33642         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
33643         with using $0 in function.
33644         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
33645         (func_fatal_error): Reuse the name the user invoked us with.
33646
33647 2008-09-27  Bruno Haible  <bruno@clisp.org>
33648
33649         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
33650         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
33651         (gl_ICONV_H): Not here.
33652         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33653         instead of assigning ICONV_H directly.
33654
33655         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
33656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
33657         WCHAR_H directly.
33658
33659 2008-09-27  Bruno Haible  <bruno@clisp.org>
33660
33661         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
33662         * modules/arpa_inet (Depends-on): Add link-warning.
33663         (Makefile.am): Insert the definition of GL_LINK-WARNING.
33664         * modules/unistd (Makefile.am): Likewise.
33665
33666 2008-09-26  Bruno Haible  <bruno@clisp.org>
33667
33668         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
33669         variables.
33670         (func_version): Essentially copied from gnulib-tool.
33671         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
33672         func_readlink): Copied from gnulib-tool.
33673
33674 2008-09-26  Bruno Haible  <bruno@clisp.org>
33675
33676         * gnulib-tool (func_version): Change directory to $gnulib_dir before
33677         invoking git-version-gen.
33678
33679 2008-09-26  Bruno Haible  <bruno@clisp.org>
33680
33681         * posix-modules: Update to directory names changed on 2008-01-19.
33682         Remove commas in output before splitting into words. No more need to
33683         avoid 'ftruncate' since 2007-02-19.
33684
33685 2008-09-26  Bruno Haible  <bruno@clisp.org>
33686
33687         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
33688
33689 2008-09-26  Bruno Haible  <bruno@clisp.org>
33690
33691         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
33692         * modules/fwriteerror (Depends-on): Add errno.
33693
33694 2008-09-26  Bruno Haible  <bruno@clisp.org>
33695
33696         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
33697         * tests/test-vc-list-files-cvs.sh: Likewise.
33698
33699 2008-09-26  Bruno Haible  <bruno@clisp.org>
33700
33701         * doc/posix-headers/sys_resource.texi: Reorder items.
33702
33703 2008-09-26  Jim Meyering  <meyering@redhat.com>
33704
33705         fts: tweak inode comparison function
33706         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
33707         inode numbers, as documented.
33708
33709         fts: sort dirent entries on inode number before traversing
33710         This avoids a quadratic, seek-related performance penalty when
33711         operating on a directory containing many entries (measurable at 10k;
33712         3.5 hours at 2 million entries with a cold cache) on certain types
33713         of file systems, including ext3 and ext4, but not tmpfs.
33714         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
33715         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
33716         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
33717         (fs_handles_readdir_ordered_dirents_efficiently): New function.
33718         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
33719         (fts_build): Set the stat.st_ino member from D_INO.
33720         If it is likely to be useful, sort dirent entries on inode number.
33721
33722         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
33723         and the struct statfs.f_type member.
33724         * modules/fts (Depends-on): Add d-ino.
33725
33726 2008-09-26  Bruno Haible  <bruno@clisp.org>
33727
33728         * modules/sigpipe-die (Depends-on): Add sigpipe.
33729
33730         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
33731         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
33732         and GNULIB_STDIO_H_SIGPIPE are set.
33733         * lib/stdio-write.c: New file.
33734         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
33735         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33736         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33737         REPLACE_STDIO_WRITE_FUNCS.
33738         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
33739         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33740         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33741         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
33742         * modules/stdio (Files): Add lib/stdio-write.c.
33743         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
33744         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33745         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33746         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
33747         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
33748         REPLACE_FPRINTF_POSIX.
33749         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
33750         REPLACE_PRINTF_POSIX.
33751         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
33752         REPLACE_VFPRINTF_POSIX.
33753         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
33754         REPLACE_VPRINTF_POSIX.
33755         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
33756         SIGPIPE issue.
33757         * doc/posix-functions/fputc.texi: Likewise.
33758         * doc/posix-functions/fputs.texi: Likewise.
33759         * doc/posix-functions/fwrite.texi: Likewise.
33760         * doc/posix-functions/printf.texi: Likewise.
33761         * doc/posix-functions/putc.texi: Likewise.
33762         * doc/posix-functions/putchar.texi: Likewise.
33763         * doc/posix-functions/puts.texi: Likewise.
33764         * doc/posix-functions/vfprintf.texi: Likewise.
33765         * doc/posix-functions/vprintf.texi: Likewise.
33766
33767         * modules/safe-write (Depends-on): Add write.
33768
33769         * modules/sigpipe-tests: New file.
33770         * tests/test-sigpipe.c: New file.
33771         * tests/test-sigpipe.sh: New file.
33772
33773         * modules/write: New file.
33774         * lib/unistd.in.h: Include <sys/types.h>.
33775         (write): New declaration.
33776         * lib/write.c: New file.
33777         * m4/write.m4: New file.
33778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33779         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
33780         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
33781         GNULIB_WRITE, REPLACE_WRITE.
33782         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
33783         and the SIGPIPE issue.
33784
33785         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
33786         (raise): New declaration.
33787         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
33788         (ext_signal): New function.
33789         (rpl_raise): New function.
33790         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
33791         GNULIB_SIGNAL_H_SIGPIPE.
33792         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
33793         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
33794
33795         * modules/sigpipe: New file.
33796         * m4/sigpipe.m4: New file.
33797
33798 2008-09-25  Derek Price  <derek@ximbiot.com>
33799             Bruno Haible  <bruno@clisp.org>
33800
33801         * gnulib-tool (func_import): Report all license incompatibilities, not
33802         just the first one.
33803
33804 2008-09-25  Bruno Haible  <bruno@clisp.org>
33805
33806         * gnulib-tool (func_import): When computing the edits, consider not
33807         only the Makefile.ams that exist but also those that will be generated.
33808
33809 2008-09-25  Simon Josefsson  <simon@josefsson.org>
33810
33811         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
33812         fixes gnulib-tool --test warning about duplicate dependency.
33813
33814 2008-09-25  Bruno Haible  <bruno@clisp.org>
33815
33816         * gnulib-tool: Don't ask the user to perform edits in the generated
33817         Makefile.ams.
33818         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
33819         apply to the Makefile.am being generated.
33820         (func_emit_tests_Makefile_am): Execute edits that apply to the
33821         Makefile.am being generated.
33822         (func_import): Setup list of Makefile.am edits before emitting the
33823         Makefile.ams, not at the end.
33824         (func_create_testdir): Update.
33825         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33826
33827 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33828
33829         * gnulib-tool (func_import): Store the --tests-base option in the
33830         comment in gnulib-cache.m4.
33831
33832 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
33833
33834         * NEWS: Document increased portability that sys_select now provides.
33835
33836         * lib/sys_select.in.h: Install select wrapper.
33837         * lib/sys_socket.in.h: Use more descriptive name when there is no
33838         select wrapper.
33839         * lib/winsock-select.c: New.
33840         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
33841         Require gl_HEADER_SYS_SOCKET.
33842         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
33843         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
33844         * tests/test-sys_select.c: Add functional tests.
33845
33846 2008-09-24  Eric Blake  <ebb9@byu.net>
33847
33848         open, fopen: close fd leak in last patch
33849         * lib/open.c (rpl_open): Close fd before returning error.
33850         * lib/fopen.c (rpl_fopen): Close fd before returning error.
33851         * doc/posix-functions/open.texi (open): Document that Irix also
33852         has the bug.
33853         * doc/posix-functions/fopen.texi (fopen): Likewise.
33854         Reported by Paolo Bonzini.
33855
33856 2008-09-24  Bruno Haible  <bruno@clisp.org>
33857
33858         Ensure that a filename ending in a slash cannot be used to access a
33859         non-directory.
33860         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
33861         to check whether it's really a directory.
33862         * lib/fopen.c: Include fcntl.h, unistd.h.
33863         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
33864         and fdopen().
33865         * modules/fopen (Depends-on): Add unistd.
33866         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
33867         * tests/test-fopen.c (main): Likewise.
33868         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
33869         * doc/posix-functions/fopen.texi: Likewise.
33870         Reported by Eric Blake.
33871
33872 2008-09-23  Eric Blake  <ebb9@byu.net>
33873
33874         c-stack: avoid compiler optimizations when provoking overflow
33875         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
33876         recursion harder to optimize, to ensure a stack overflow occurs.
33877         * tests/test-c-stack.c (recurse): Likewise.
33878         Borrowed from libsigsegv.
33879
33880         c-stack: work around Irix sigaltstack bug
33881         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
33882         whether sigaltstack uses wrong end of stack_t (copied in part from
33883         libsigsegv).
33884         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
33885         Irix bug, without requiring an over-allocation.
33886         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
33887         bug.
33888
33889         fopen: document mingw bug on directories
33890         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
33891         not allowing a stream visiting a directory, even though reading
33892         from such a stream is not portable.
33893
33894 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
33895
33896         * lib/poll.c: Rewrite.
33897         * modules/poll: Depend on alloca.
33898
33899 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
33900
33901         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
33902         instead define prototypes for a full set of wrappers.  Ensure
33903         that Cygwin does not use the compatibility code, which is only
33904         for MinGW.
33905         * lib/winsock.c: New.
33906         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
33907         * modules/sys_socket: Add lib/winsock.c.
33908
33909         * modules/poll-tests: Add errno and perror.
33910         * tests/test-poll.c: Use ioctl, not ioctlsocket.
33911
33912 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
33913
33914         * tests/test-poll.c: Downgrade minimum needed Winsock version.
33915
33916 2008-09-23  Bruno Haible  <bruno@clisp.org>
33917
33918         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
33919         * doc/glibc-functions/*: Likewise.
33920
33921 2008-09-23  Simon Josefsson  <simon@josefsson.org>
33922
33923         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
33924         success.
33925
33926 2008-09-22  Eric Blake  <ebb9@byu.net>
33927             Bruno Haible  <bruno@clisp.org>
33928
33929         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
33930         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
33931         supply %A but mishandle pseudo-NaN.
33932         Reported by Simon Josefsson.
33933
33934 2008-09-21  Bruno Haible  <bruno@clisp.org>
33935
33936         * tests/test-lock.c (main): Tweak skip message.
33937         * tests/test-tls.c (main): Likewise.
33938
33939 2008-09-21  Bruno Haible  <bruno@clisp.org>
33940
33941         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
33942         whether 'struct sigaction' has sa_sigaction here...
33943         (gl_PREREQ_SIG_HANDLER_H): ... not here.
33944         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
33945
33946 2008-09-21  Bruno Haible  <bruno@clisp.org>
33947
33948         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
33949         section.
33950         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
33951         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
33952         the new section.
33953         (Support for obsolete systems lacking POSIX:2001): New section.
33954         (String handling <string.h>): Move strdup to the new section.
33955         Suggested by Simon Josefsson and Paolo Bonzini.
33956
33957 2008-09-21  Bruno Haible  <bruno@clisp.org>
33958
33959         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
33960         exponents in %e and %g results on 'long double'. Needed for mingw's
33961         improved *printf functions.
33962         * tests/test-vasprintf-posix.c (test_function): Likewise.
33963         * tests/test-snprintf-posix.h (test_function): Likewise.
33964         * tests/test-sprintf-posix.h (test_function): Likewise.
33965         Reported by Eric Blake.
33966
33967 2008-09-21  Bruno Haible  <bruno@clisp.org>
33968
33969         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
33970         * tests/test-sprintf-posix.h (test_function): Likewise.
33971
33972 2008-09-21  Bruno Haible  <bruno@clisp.org>
33973
33974         * modules/getpass (Depends-on): Add strdup-posix.
33975
33976         New module 'strdup-posix'.
33977         * modules/strdup-posix: New file.
33978         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
33979         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
33980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33981         REPLACE_STRDUP.
33982         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
33983         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
33984         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33985         strdup-posix.
33986
33987         * modules/strdup (Depends-on): Remove malloc-posix.
33988
33989 2008-09-20  Bruno Haible  <bruno@clisp.org>
33990
33991         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
33992         Wildenhues.
33993
33994 2008-09-20  Bruno Haible  <bruno@clisp.org>
33995
33996         Ensure that wint_t gets defined on IRIX 5.3.
33997         * lib/wchar.in.h (wint_t): Define if not defined by the system.
33998         * lib/wctype.in.h (wint_t): Likewise.
33999         (__wctype_wint_t): Remove type.
34000         (isw*): Use wint_t instead of __wctype_wint_t.
34001         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
34002         * modules/wchar (Files): Add m4/wint_t.m4.
34003         (Makefile.am): Substitute HAVE_WINT_T.
34004         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
34005         * tests/test-wctype.c: Check that wint_t is defined.
34006         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
34007         * doc/posix-headers/wctype.texi: Likewise.
34008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34009
34010 2008-09-18  Bruno Haible  <bruno@clisp.org>
34011
34012         * gnulib-tool (func_exit): Update comment.
34013
34014 2008-09-18  Simon Josefsson  <simon@josefsson.org>
34015
34016         * modules/getaddrinfo (Depends-on): Remove strdup, this module
34017         assumes strdup exists and does not depend on strdup to return
34018         ENOMEM on out of memory conditions.
34019
34020 2008-09-18  Bruno Haible  <bruno@clisp.org>
34021
34022         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
34023         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
34024         digits for the exponent.
34025
34026 2008-09-18  Jim Meyering  <meyering@redhat.com>
34027             Bruno Haible  <bruno@clisp.org>
34028
34029         * lib/vasnprintf.c (decimal_point_char): Define also if
34030         NEED_PRINTF_INFINITE_LONG_DOUBLE.
34031
34032 2008-09-16  Bruno Haible  <bruno@clisp.org>
34033         and Eric Blake  <ebb9@byu.net>
34034
34035         vasnprintf: support Irix 5.3
34036         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
34037         that mishandle long double infinity.
34038         Reported by Tom G. Christensen.
34039
34040 2008-09-16  Bruno Haible  <bruno@clisp.org>
34041
34042         * doc/glibc-functions/scandir.texi: Mention the function is missing on
34043         Solaris 9.
34044         * doc/glibc-functions/alphasort.texi: Likewise.
34045         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
34046
34047 2008-09-16  Jim Meyering  <meyering@redhat.com>
34048
34049         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
34050         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
34051         a umask modification leak out of a subshell.  Otherwise, the
34052         opensolaris /bin/sh would be accepted and thus cause unwarranted
34053         failures in the coreutils test suite.
34054
34055 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
34056
34057         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
34058         to succeed.
34059
34060 2008-09-16  Jim Meyering  <meyering@redhat.com>
34061
34062         avoid spurious test failure when library is built without ACL support
34063         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
34064         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
34065         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
34066         * tests/test-copy-acl.sh: Likewise.
34067
34068 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34069
34070         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
34071         based on character occurrence counts.
34072
34073 2008-09-15  Eric Blake  <ebb9@byu.net>
34074
34075         tests: avoid some compiler warnings
34076         * tests/test-memchr.c (main): Pass NULL indirectly.
34077         * tests/test-closein.c (main): Avoid unused variable.
34078
34079 2008-09-15  Bruno Haible  <bruno@clisp.org>
34080
34081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
34082         are missing on OpenBSD 4.0 individually.
34083         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34084
34085 2008-09-15  Bruno Haible  <bruno@clisp.org>
34086
34087         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
34088         * doc/posix-functions/strerror.texi: Mention also Cygwin.
34089         * doc/posix-functions/perror.texi: Likewise.
34090         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
34091         is missing.
34092         Reported by Eric Blake.
34093
34094         * lib/errno.in.h: Use replacement values >= 2000.
34095         Reported by Eric Blake.
34096
34097 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34098
34099         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
34100         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
34101         limit.
34102         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
34103         compareseq was aborted.
34104
34105 2008-09-14  Bruno Haible  <bruno@clisp.org>
34106
34107         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
34108         yvec_edit_count.
34109         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
34110         (fstrcmp_bounded): Simplify result computation accordingly.
34111
34112 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34113
34114         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
34115         (fstrcmp): Define in terms of fstrcmp_bounded.
34116         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
34117         lower_bound argument.
34118         Return quickly if the result is certainly < lower_bound.
34119         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
34120
34121 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34122
34123         * lib/diffseq.h (EARLY_ABORT): New macro.
34124         (compareseq): Change return type to bool. Return true when EARLY_ABORT
34125         evaluates to true.
34126
34127 2008-09-14  Bruno Haible  <bruno@clisp.org>
34128
34129         * modules/perror-tests: New file.
34130         * tests/test-perror.sh: New file.
34131         * tests/test-perror.c: New file.
34132
34133         New module 'perror'.
34134         * lib/stdio.in.h (perror): New declaration.
34135         * lib/perror.c: New file.
34136         * m4/perror.m4: New file.
34137         * modules/perror: New file.
34138         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
34139         * doc/posix-functions/perror.texi: Mention the perror module.
34140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
34141         REPLACE_PERROR.
34142         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
34143         REPLACE_PERROR.
34144
34145 2008-09-14  Bruno Haible  <bruno@clisp.org>
34146
34147         * modules/stdio (Makefile.am): Reorder to match the order in
34148         lib/stdio.in.h.
34149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34150
34151 2008-09-13  Bruno Haible  <bruno@clisp.org>
34152
34153         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
34154
34155 2008-09-13  Bruno Haible  <bruno@clisp.org>
34156
34157         Extend strerror to cover the added errno values.
34158         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
34159         (rpl_strerror): Provide error messages for the added errno values and
34160         for the WSA* values.
34161         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
34162         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
34163         strerror.
34164         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
34165         * modules/strerror (Depends-on): Add errno.
34166         * doc/posix-functions/strerror.texi: Document the change.
34167         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
34168         and EOVERFLOW.
34169
34170 2008-09-13  Bruno Haible  <bruno@clisp.org>
34171
34172         * modules/EOVERFLOW: Remove file.
34173         * m4/eoverflow.m4: Remove file.
34174         * modules/EOVERFLOW-tests: Remove file.
34175         * tests/test-EOVERFLOW.c: Remove file.
34176         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
34177         * modules/ftell (Depends-on): Likewise.
34178         * modules/getdelim (Depends-on): Likewise.
34179         * modules/getugroups (Depends-on): Likewise.
34180         * modules/poll (Depends-on): Likewise.
34181         * modules/snprintf (Depends-on): Likewise.
34182         * modules/sprintf-posix (Depends-on): Likewise.
34183         * modules/vasnprintf (Depends-on): Likewise.
34184         * modules/vasprintf (Depends-on): Likewise.
34185         * modules/vfprintf-posix (Depends-on): Likewise.
34186         * modules/vsnprintf (Depends-on): Likewise.
34187         * modules/vsprintf-posix (Depends-on): Likewise.
34188         * modules/xvasprintf (Depends-on): Likewise.
34189         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34190         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
34191         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
34192         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
34193         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34194         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
34195         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
34196         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
34197         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34198         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
34199         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
34200         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
34201         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34202         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
34203         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
34204         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
34205         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34206         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
34207         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
34208         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
34209         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34210         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
34211         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
34212         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
34213         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
34214         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34215         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
34216         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
34217         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
34218         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
34219         * MODULES.html.sh: Remove EOVERFLOW.
34220         * NEWS: Mention the change.
34221
34222 2008-09-13  Bruno Haible  <bruno@clisp.org>
34223
34224         * modules/errno-tests: New file.
34225         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
34226
34227         * lib/errno.in.h: New file.
34228         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
34229         * modules/errno: New file.
34230         * doc/posix-headers/errno.texi: Update documentation.
34231         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
34232
34233 2008-09-13  Bruno Haible  <bruno@clisp.org>
34234
34235         * tests/test-poll.c: Use #if for native Windows, rather than testing
34236         __MSVCRT__.
34237
34238 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34239             Bruno Haible  <bruno@clisp.org>
34240
34241         * lib/glob.c: Don't include <pwd.h> on native Windows.
34242         (WINDOWS32): New macro.
34243         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
34244
34245 2008-09-13  Bruno Haible  <bruno@clisp.org>
34246
34247         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
34248         (ETIMEDOUT): Remove macro.
34249         (glthread_cond_timedwait_multithreaded): New declaration.
34250         (glthread_cond_timedwait): Use it.
34251         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
34252         (glthread_cond_timedwait_multithreaded): New function.
34253
34254 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34255
34256         * modules/poll-tests: Do not check for io.h.
34257         * tests/test-poll.c: Check for __MSVCRT__ instead.
34258
34259 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34260
34261         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
34262         * modules/poll-tests: Add inet_pton, stdbool, sockets.
34263         * tests/test-poll.c: Use them.  Use _pipe on Windows.
34264
34265 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34266
34267         * modules/poll-tests: New.
34268         * tests/test-poll.c: New.
34269
34270 2008-09-12  Eric Blake  <ebb9@byu.net>
34271
34272         frexp: test for NetBSD failure on -0.0
34273         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
34274         not all, bugs from NetBSD 3.0 have been fixed.
34275         * doc/posix-functions/frexp.texi (frexp): Document bug.
34276         Reported by Thomas Klausner.
34277
34278         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
34279         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
34280         literal -0.0.
34281         Reported by Jonathan C. Patschke <jp@centtech.com>.
34282
34283 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34284
34285         * lib/glthread/cond.h: Use dummy implementation also if
34286         USE_WIN32_THREADS.
34287
34288 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34289
34290         * modules/fnmatch-posix (License): Change to LGPLv2+.
34291         * modules/fnmatch-gnu (License): Likewise.
34292
34293 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34294
34295         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
34296
34297 2008-09-11  Jim Meyering  <meyering@redhat.com>
34298
34299         * users.txt: Add gtk-vnc.
34300
34301 2008-09-08  Simon Josefsson  <simon@josefsson.org>
34302
34303         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
34304         rotate amounts.
34305
34306         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
34307         required for 16-bit and 8-bit rotates.
34308         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
34309         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
34310         UINT8_MAX instead of hard-coded constants.
34311         Suggested by Paul Eggert.
34312
34313 2008-09-07  Bruno Haible  <bruno@clisp.org>
34314
34315         * tests/test-striconveh.c (main): Check behaviour when converting from
34316         UTF-7.
34317
34318         Make striconveh work better with stateful encodings.
34319         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
34320         that iconv does not increment the inptr when returning -1/EINVAL.
34321
34322 2008-09-07  Bruno Haible  <bruno@clisp.org>
34323
34324         * build-aux/config.rpath: Update according to libtool-2.2.6.
34325         * build-aux/config.libpath: Likewise.
34326
34327 2008-09-06  Bruno Haible  <bruno@clisp.org>
34328
34329         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
34330         * lib/freadptr.c (freadptr): Likewise.
34331         * lib/freadseek.c (freadptrinc): Likewise.
34332         Reported by Simon Josefsson.
34333
34334 2008-09-06  Bruno Haible  <bruno@clisp.org>
34335
34336         * modules/freadptr (License): Change to LGPLv2+.
34337         * modules/freadseek (License): Likewise.
34338         Suggested by Eric Blake.
34339
34340         * modules/memchr2 (License): Change to LGPLv2+.
34341         Approved by Eric Blake.
34342
34343 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34344             Bruno Haible  <bruno@clisp.org>
34345
34346         Make gnulib-tool work with native 'sed' on AIX.
34347         * gnulib-tool (sed_noop): New variable.
34348         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
34349         func_add_or_update, func_create_testdir): Use it to initialize sed
34350         script variables.
34351         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34352
34353 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
34354             Bruno Haible  <bruno@clisp.org>
34355
34356         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
34357         also works after #include directives.
34358
34359 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
34360
34361         getdate.y: reject an out-of-range timezone value
34362         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
34363         the range [-24...+24].  When specified with only one or two digits,
34364         * tests/test-getdate.c: Tests for the fix.
34365         * doc/getdate.texi: Document this change.
34366
34367 2008-09-03  Bruno Haible  <bruno@clisp.org>
34368
34369         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
34370
34371 2008-09-02  Simon Josefsson  <simon@josefsson.org>
34372
34373         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
34374         <bruce.korb@gmail.com> with ideas from Ben Pfaff
34375         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
34376         Blake <ebb9@byu.net>.
34377
34378         * tests/test-bitrotate.c: Add more test vectors.
34379
34380 2008-09-02  Eric Blake  <ebb9@byu.net>
34381
34382         vasnprintf-posix: handle large precision via %.*d
34383         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
34384         when handling it ourselves.
34385         * tests/test-vasnprintf-posix.c (test_function): Add test.
34386         * tests/test-snprintf-posix.h (test_function): Likewise.
34387         * tests/test-sprintf-posix.h (test_function): Likewise.
34388         * tests/test-vasprintf-posix.c (test_function): Likewise.
34389         Reported by Alain Guibert.
34390
34391 2008-09-01  Eric Blake  <ebb9@byu.net>
34392
34393         c-stack: make configure-time check more robust
34394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
34395         successful sigaction call.
34396         Reported by Tom G. Christensen.
34397
34398 2008-09-01  Bruno Haible  <bruno@clisp.org>
34399
34400         New module 'findprog-lgpl'.
34401         * modules/findprog-lgpl: New file.
34402         * lib/findprog-lgpl.c: New file.
34403         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
34404         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
34405         to decide whether to use strdup or xstrdup, concatenated_filename or
34406         xconcatenated_filename.
34407
34408 2008-09-01  Bruno Haible  <bruno@clisp.org>
34409
34410         Split module 'concat-filename' into 'concat-filename' (LGPL) and
34411         'xconcat-filename' (GPL).
34412         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
34413         (License): Change to LGPLv2+.
34414         * modules/xconcat-filename: New file.
34415         * lib/concat-filename.h (concatenated_filename): Change specification.
34416         (xconcatenated_filename): New declaration.
34417         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
34418         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
34419         memory situations.
34420         * lib/xconcat-filename.c: New file.
34421         * NEWS: Mention the change.
34422         * lib/findprog.c: Include concat-filename.h, not filename.h.
34423         (find_in_path): Use xconcatenated_filename instead of
34424         concatenated_filename.
34425         * lib/javacomp.c: Include concat-filename.h, not filename.h.
34426         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34427         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34428         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34429         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
34430         instead of concatenated_filename.
34431         * lib/javaexec.c: Include concat-filename.h, not filename.h.
34432         (execute_java_class): Use xconcatenated_filename instead of
34433         concatenated_filename.
34434         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
34435         * modules/javacomp (Depends-on): Likewise.
34436         * modules/javaexec (Depends-on): Likewise.
34437
34438 2008-09-01  Bruno Haible  <bruno@clisp.org>
34439
34440         Split module 'filename' into 'filename' and 'concat-filename'.
34441         * modules/filename: Keep only lib/filename.h.
34442         (License): Change to LGPLv2+.
34443         * modules/concat-filename: New file, extracted from modules/filename.
34444         * lib/filename.h (concatenated_filename): Remove declaration.
34445         * lib/concat-filename.h: New file, extracted from lib/filename.h.
34446         * lib/concat-filename.c: Include concat-filename.h.
34447         * NEWS: Mention the change.
34448
34449 2008-09-01  Simon Josefsson  <simon@josefsson.org>
34450
34451         * lib/bitrotate.h (rotl8, rotr8): Add.
34452
34453         * modules/bitrotate (configure.ac): Need
34454         AC_REQUIRE([AC_C_INLINE]).
34455         (Description): Mention stdint.h.  Reported by Bruno Haible
34456         <bruno@clisp.org>.
34457
34458         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
34459         Paolo Bonzini <bonzini@gnu.org>.
34460
34461 2008-08-31  Bruno Haible  <bruno@clisp.org>
34462
34463         Assume Solaris specific bi-arch conventions on Solaris systems.
34464         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
34465         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
34466         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
34467         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
34468         like acl_libdirstem.
34469         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
34470         acl_libdirstem.
34471         * NEWS: Mention the change.
34472         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
34473
34474 2008-08-31  Jim Meyering  <meyering@redhat.com>
34475
34476         * lib/strftime.h: Add comments describing the two added arguments.
34477
34478         remove duplicate #include directives
34479         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
34480         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
34481
34482 2008-08-31  Bruno Haible  <bruno@clisp.org>
34483
34484         New module 'sigpipe-die'.
34485         * modules/sigpipe-die: New file.
34486         * lib/sigpipe-die.h: New file.
34487         * lib/sigpipe-die.c: New file.
34488         * MODULES.html.sh (Signal handling): Add sigpipe-die.
34489
34490 2008-08-31  Bruno Haible  <bruno@clisp.org>
34491
34492         Don't override previously installed signal handlers.
34493         * lib/fatal-signal.c (saved_sigactions): New variable.
34494         (uninstall_handlers): Reset the signal to the saved handler, not
34495         to SIG_DFL (except when ignored).
34496         (install_handlers): Save the previous handlers.
34497
34498 2008-08-30  Bruno Haible  <bruno@clisp.org>
34499
34500         * gnulib-tool (func_reset_sigpipe): New function.
34501         (func_get_automake_snippet, func_modules_transitive_closure,
34502         func_import): Invoke it before a join command that reads from stdin,
34503         to avoid "echo: write error: Broken pipe" error messages on stderr.
34504         Reported by Sam Steingold <sds@gnu.org>.
34505
34506 2008-08-30  Bruno Haible  <bruno@clisp.org>
34507
34508         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
34509         Code copied from m4/open.m4.
34510         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
34511         access and the filename ends in a slash. Code copied from lib/open.c.
34512         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
34513         * tests/test-fopen.c (main): Check against bug with trailing slash.
34514
34515 2008-08-29  Bruno Haible  <bruno@clisp.org>
34516
34517         Avoid some "gcc -pedantic" warnings.
34518         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
34519         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
34520         * lib/dirent.in.h: Likewise.
34521         * lib/fcntl.in.h: Likewise.
34522         * lib/float.in.h: Likewise.
34523         * lib/iconv.in.h: Likewise.
34524         * lib/inttypes.in.h: Likewise.
34525         * lib/locale.in.h: Likewise.
34526         * lib/math.in.h: Likewise.
34527         * lib/netinet_in.in.h: Likewise.
34528         * lib/search.in.h: Likewise.
34529         * lib/signal.in.h: Likewise.
34530         * lib/stdarg.in.h: Likewise.
34531         * lib/stdint.in.h: Likewise.
34532         * lib/stdio.in.h: Likewise.
34533         * lib/stdlib.in.h: Likewise.
34534         * lib/string.in.h: Likewise.
34535         * lib/strings.in.h: Likewise.
34536         * lib/sys_select.in.h: Likewise.
34537         * lib/sys_socket.in.h: Likewise.
34538         * lib/sys_stat.in.h: Likewise.
34539         * lib/sys_time.in.h: Likewise.
34540         * lib/sysexits.in.h: Likewise.
34541         * lib/time.in.h: Likewise.
34542         * lib/unistd.in.h: Likewise.
34543         * lib/wchar.in.h: Likewise.
34544         * lib/wctype.in.h: Likewise.
34545         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
34546         * modules/fchdir (Makefile.am): Likewise.
34547         * modules/fcntl (Makefile.am): Likewise.
34548         * modules/float (Makefile.am): Likewise.
34549         * modules/iconv_open (Makefile.am): Likewise.
34550         * modules/inttypes (Makefile.am): Likewise.
34551         * modules/locale (Makefile.am): Likewise.
34552         * modules/math (Makefile.am): Likewise.
34553         * modules/netinet_in (Makefile.am): Likewise.
34554         * modules/search (Makefile.am): Likewise.
34555         * modules/signal (Makefile.am): Likewise.
34556         * modules/stdarg (Makefile.am): Likewise.
34557         * modules/stdint (Makefile.am): Likewise.
34558         * modules/stdio (Makefile.am): Likewise.
34559         * modules/stdlib (Makefile.am): Likewise.
34560         * modules/string (Makefile.am): Likewise.
34561         * modules/strings (Makefile.am): Likewise.
34562         * modules/sys_select (Makefile.am): Likewise.
34563         * modules/sys_socket (Makefile.am): Likewise.
34564         * modules/sys_stat (Makefile.am): Likewise.
34565         * modules/sys_time (Makefile.am): Likewise.
34566         * modules/sysexits (Makefile.am): Likewise.
34567         * modules/time (Makefile.am): Likewise.
34568         * modules/unistd (Makefile.am): Likewise.
34569         * modules/wchar (Makefile.am): Likewise.
34570         * modules/wctype (Makefile.am): Likewise.
34571         Reported by Reuben Thomas <rrt@sc3d.org>.
34572
34573 2008-08-29  Bruno Haible  <bruno@clisp.org>
34574
34575         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
34576         any more.
34577
34578 2008-08-29  Simon Josefsson  <simon@josefsson.org>
34579
34580         * MODULES.html.sh (Misc): Add bitrotate.
34581
34582         * modules/bitrotate: New file.
34583
34584         * lib/bitrotate.h: New file.
34585
34586         * modules/bitrotate-tests: New file.
34587
34588         * tests/test-bitrotate.c: New file.
34589
34590         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
34591         on the bitrotate module.
34592
34593         * lib/arctwo.c: Use new bitrotate module.
34594
34595 2008-08-29  Jim Meyering  <meyering@redhat.com>
34596
34597         bootstrap: merge changes from coreutils
34598         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
34599         of copied files.  Remove a kludge, now that this is fixed.
34600         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
34601         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
34602         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
34603
34604 2008-08-29  Bruno Haible  <bruno@clisp.org>
34605
34606         * MODULES.html.sh: Remove --cvs-urls option.
34607
34608 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
34609
34610         maint.mk: adjust to file name change
34611         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
34612
34613 2008-08-28  Jim Meyering  <meyering@redhat.com>
34614
34615         * modules/getndelim2 (License): Relicense to LGPLv2+.
34616         Approved by Richard Stallman for the version of 1995, and by
34617         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
34618
34619 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
34620
34621         * lib/getdelim.c (flockfile, funlockfile): Make all of them
34622         dummy if one is not available.  Do not touch them if
34623         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
34624         (getc_maybe_unlocked): New.
34625         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
34626
34627 2008-08-26  Eric Blake  <ebb9@byu.net>
34628
34629         doc/INSTALL: resync from autoconf
34630         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
34631         (INSTALL_PRELUDE): Delete; this is done more efficiently by
34632         moving...
34633         * install.texi [!autoconf]: ...here.  Resync from autoconf.
34634         * INSTALL: Regenerate.
34635         * INSTALL.ISO: New file.
34636         * INSTALL.UTF-8: Likewise.
34637
34638 2008-08-26  Jim Meyering  <meyering@redhat.com>
34639
34640         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
34641         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
34642         these definitions conditional, so that they may be overridden, too.
34643
34644 2008-08-26  Bruno Haible  <bruno@clisp.org>
34645
34646         Generate INSTALL file variants with prettier quotes.
34647         * doc/Makefile (INSTALL_PRELUDE): New macro.
34648         (INSTALL): Use it.
34649         (INSTALL.ISO, INSTALL.UTF-8): New rules.
34650
34651 2008-08-26  Bruno Haible  <bruno@clisp.org>
34652
34653         Run makeinfo in an English locale.
34654         * doc/Makefile (MAKEINFO): New variable.
34655
34656 2008-08-26  Bruno Haible  <bruno@clisp.org>
34657
34658         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
34659         Suggested by Eric Blake.
34660
34661 2008-08-25  Bruno Haible  <bruno@clisp.org>
34662
34663         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
34664
34665 2008-08-25  Eric Blake  <ebb9@byu.net>
34666
34667         c-stack: test that stack overflow can be caught
34668         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
34669         that platform allows handling stack overflow; at least OS/2 EMX
34670         has sigaltstack, but crashes before transferring control to
34671         handler on stack overflow.
34672         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
34673         check for HAVE_STACK_OVERFLOW_HANDLING.
34674         Reported by Elbert Pol.
34675
34676 2008-08-25  Bruno Haible  <bruno@clisp.org>
34677
34678         * doc/posix-functions/strftime.texi: Fix description of strftime
34679         module.
34680
34681 2008-08-24  Bruno Haible  <bruno@clisp.org>
34682
34683         * tests/uniwidth/test-uc_width2.c: New file.
34684         * tests/uniwidth/test-uc_width2.sh: New file.
34685         * modules/uniwidth/width-tests (Files): Add the new files.
34686         (TESTS): Add uniwidth/test-uc_width2.sh.
34687         (TESTS_ENVIRONMENT): New variable.
34688         (check_PROGRAMS): Add test-uc_width2.
34689         (test_uc_width2_SOURCES): New variable.
34690
34691         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
34692         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
34693         not 0x00AB.
34694         Reported by Alexander V. Lukyanov <lav@netis.ru>.
34695
34696 2008-08-22  Eric Blake  <ebb9@byu.net>
34697
34698         test-lock, test-tls: mention why a test is skipped
34699         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
34700         skipped.
34701         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
34702
34703         count-one-bits: relax license
34704         * modules/count-one-bits (License): Relicense to LGPLv2+.
34705         Suggested by Ludovic Courtès, approved by Ben Pfaff.
34706
34707 2008-08-22  Andreas Schwab  <schwab@suse.de>
34708
34709         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34710         Remove spurious space in assignment.
34711
34712 2008-08-21  Simon Josefsson  <simon@josefsson.org>
34713
34714         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
34715         Paul Eggert <eggert@CS.UCLA.EDU>.
34716
34717 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
34718
34719         * modules/gettext: Add m4/threadlib.m4.
34720
34721 2008-08-19  Eric Blake  <ebb9@byu.net>
34722
34723         test-c-stack: fix compilation failure on FreeBSD 5.0
34724         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
34725         headers before <sys/resource.h>.
34726         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
34727         the bug.
34728         Reported by Nelson H. F. Beebe.
34729
34730         strverscmp: migrate from "strverscmp.h" to <string.h>
34731         * modules/string (Makefile.am): Add new hooks.
34732         * modules/strverscmp (Files): Remove strverscmp.h.
34733         (Depends-on): Add string.
34734         (configure.ac): Add indicator.
34735         (Include): Mention new header.
34736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
34737         defaults.
34738         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
34739         results.
34740         * lib/strverscmp.h: Delete.
34741         * lib/string.in.h (strverscmp): Provide declaration, when needed.
34742         * tests/test-strverscmp.c (includes): Adjust client.
34743         * lib/check-version.c (includes): Likewise.
34744         * NEWS: Document the change.
34745
34746         strverscmp: add unit test
34747         * modules/strverscmp-tests: New file.
34748         * tests/test-strverscmp.c: Likewise.
34749
34750 2008-08-19  Simon Josefsson  <simon@josefsson.org>
34751
34752         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
34753         regarding Windows crypto stuff, from Mono.
34754
34755 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
34756
34757         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
34758         if present, for intel RND.  Return error on failures.
34759
34760 2008-08-18  Ben Pfaff  <blp@gnu.org>
34761
34762         gitlog-to-changelog: give better diagnostic for failed pipe-open
34763         * build-aux/gitlog-to-changelog: Improve error message: suggest
34764         that the version of Git may be too old.
34765
34766 2008-08-18  Simon Josefsson  <simon@josefsson.org>
34767
34768         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
34769         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
34770
34771 2008-08-18  Bruno Haible  <bruno@clisp.org>
34772
34773         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
34774         pthread_in_use().
34775
34776 2008-08-18  Bruno Haible  <bruno@clisp.org>
34777
34778         * lib/glthread/threadlib.c: Include <pthread.h>.
34779
34780 2008-08-18  Bruno Haible  <bruno@clisp.org>
34781
34782         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
34783         glthread_recursive_lock_* macros.
34784         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
34785         Fix syntax error.
34786
34787 2008-08-18  Bruno Haible  <bruno@clisp.org>
34788
34789         * lib/glthread/thread.c: Avoid forcing a context switch right after
34790         thread creation.
34791
34792 2008-08-17  Bruno Haible  <bruno@clisp.org>
34793
34794         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
34795         * lib/glthread/thread.h: Provide Win32 specific implementation.
34796         * modules/thread (Files): Add lib/glthread/thread.c.
34797         (Depends-on): Add lock.
34798         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
34799
34800 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34801
34802         New module 'yield'.
34803         * modules/yield: New file.
34804         * lib/glthread/yield.h: New file.
34805         * m4/yield.m4: New file.
34806         * MODULES.html.sh (Multithreading): Add yield.
34807
34808 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34809
34810         New module 'thread'.
34811         * modules/thread: New file.
34812         * lib/glthread/thread.h: New file.
34813         * m4/thread.m4: New file.
34814         * MODULES.html.sh (Multithreading): Add thread.
34815
34816 2008-08-17  Bruno Haible  <bruno@clisp.org>
34817
34818         * lib/glthread/lock.h: Include <stdlib.h> always.
34819         * lib/glthread/tls.h: Likewise.
34820         * lib/glthread/cond.h: Likewise.
34821
34822 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34823
34824         New module 'cond'.
34825         * modules/cond: New file.
34826         * lib/glthread/cond.h: New file.
34827         * lib/glthread/cond.c: New file.
34828         * m4/cond.m4: New file.
34829         * MODULES.html.sh (Multithreading): Add cond.
34830
34831 2008-08-16  Eric Blake  <ebb9@byu.net>
34832
34833         c-stack: fix regression on Irix 5.3 from 2008-06-21
34834         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
34835         sa_sigaction...
34836         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
34837         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
34838         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
34839         * modules/signal (Makefile.am): Use the value.
34840         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
34841         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
34842         * doc/posix-headers/signal.texi (signal.h): Document this
34843         portability issue.
34844         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
34845         Reported by Tom G. Christensen.
34846
34847 2008-08-17  Bruno Haible  <bruno@clisp.org>
34848
34849         New module 'threadlib'.
34850         * modules/threadlib: New file.
34851         * lib/glthread/threadlib.c: New file, extracted from
34852         lib/glthread/lock.c.
34853         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
34854         functions.
34855         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
34856         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
34857         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
34858         macros.
34859         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
34860         (gl_DISABLE_THREADS): Remove macro.
34861         * modules/lock (Files): Remove build-aux/config.rpath.
34862         (Depends-on): Remove havelib. Add threadlib.
34863         (configure.ac-early): Remove section.
34864         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
34865         * modules/tls (Depends-on): Remove lock. Add threadlib.
34866         (Link): New section, copied from threadlib.
34867         * MODULES.html.sh (Multithreading): Add threadlib.
34868
34869 2008-08-14  Bruno Haible  <bruno@clisp.org>
34870
34871         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
34872         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
34873         glthread_rwlock_unlock, glthread_rwlock_destroy,
34874         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
34875         glthread_recursive_lock_destroy): Define as macros always.
34876         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
34877         glthread_lock_lock.
34878         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
34879         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
34880         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
34881         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
34882         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
34883         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
34884         (glthread_recursive_lock_lock_func): Renamed from
34885         glthread_recursive_lock_lock.
34886         (glthread_recursive_lock_unlock_func): Renamed from
34887         glthread_recursive_lock_unlock.
34888         (glthread_recursive_lock_destroy_func): Renamed from
34889         glthread_recursive_lock_destroy.
34890
34891 2008-08-14  Bruno Haible  <bruno@clisp.org>
34892
34893         * lib/glthread/lock.h: Renamed from lib/lock.h.
34894         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
34895         * lib/glthread/tls.h: Renamed from lib/tls.h.
34896         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
34897         * lib/fstrcmp.c: Update includes.
34898         * lib/strsignal.c: Update includes.
34899         * modules/lock (Files, Makefile.am): Update.
34900         (Include): Change to "glthread/lock.h".
34901         * modules/tls (Files, Makefile.am): Update.
34902         (Include): Change to "glthread/tls.h".
34903         * tests/test-lock.c: Update includes.
34904         * tests/test-tls.c: Update includes.
34905         * NEWS: Mention the renamed header files.
34906
34907 2008-08-11  Jim Meyering  <meyering@redhat.com>
34908
34909         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
34910
34911 2008-08-11  Eric Blake  <ebb9@byu.net>
34912
34913         test-c-stack: avoid C99-ism
34914         * tests/test-c-stack.c (main): Fix whitespace, move declaration
34915         before statement.
34916         Reported by Alain Guibert.
34917
34918 2008-08-10  Jim Meyering  <meyering@redhat.com>
34919
34920         ensure that return value of uinttostr et al are not ignored
34921         * lib/inttostr.h (__GNUC_PREREQ): Define.
34922         (__attribute_warn_unused_result__): Define.
34923         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
34924
34925 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
34926
34927         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
34928         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
34929
34930 2008-08-07  Jim Meyering  <meyering@redhat.com>
34931
34932         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
34933
34934         * modules/mkstemp (License): Relicense under LGPLv2+.
34935         * modules/tempname (License): Likewise.
34936
34937 2008-08-06  Bruno Haible  <bruno@clisp.org>
34938
34939         * lib/poll.c (poll): Further micro-optimization.
34940
34941 2008-08-06  Jim Meyering  <meyering@redhat.com>
34942
34943         inet_pton.c: use locale-independent tolower
34944         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
34945         (inet_pton6): Use c_tolower rather than tolower.
34946         * modules/inet_pton (Depends-on): Add c-ctype.
34947
34948 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
34949
34950         * lib/poll.c (poll): Avoid division when timeout is 0, cache
34951         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
34952
34953 2008-08-06  Jim Meyering  <meyering@redhat.com>
34954
34955         * modules/inet_pton (License): Relicense under LGPLv2+.
34956
34957 2008-08-03  Bruno Haible  <bruno@clisp.org>
34958
34959         Additional non-aborting API for lock and tls.
34960         * lib/lock.h: Include <errno.h>.
34961         (glthread_lock_init): New macro/function.
34962         (gl_lock_init): Define as wrapper around glthread_lock_init.
34963         (glthread_lock_lock): New macro/function.
34964         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
34965         (glthread_lock_unlock): New macro/function.
34966         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
34967         (glthread_lock_destroy): New macro/function.
34968         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
34969         (glthread_rwlock_init): New macro/function.
34970         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
34971         (glthread_rwlock_rdlock): New macro/function.
34972         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
34973         (glthread_rwlock_wrlock): New macro/function.
34974         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
34975         (glthread_rwlock_unlock): New macro/function.
34976         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
34977         (glthread_rwlock_destroy): New macro/function.
34978         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
34979         (glthread_recursive_lock_init): New macro/function.
34980         (gl_recursive_lock_init): Define as wrapper around
34981         glthread_recursive_lock_init.
34982         (glthread_recursive_lock_lock): New macro/function.
34983         (gl_recursive_lock_lock): Define as wrapper around
34984         glthread_recursive_lock_lock.
34985         (glthread_recursive_lock_unlock): New macro/function.
34986         (gl_recursive_lock_unlock): Define as wrapper around
34987         glthread_recursive_lock_unlock.
34988         (glthread_recursive_lock_destroy): New macro/function.
34989         (gl_recursive_lock_destroy): Define as wrapper around
34990         glthread_recursive_lock_destroy.
34991         (glthread_once): New macro/function.
34992         (gl_once): Define as wrapper around glthread_once.
34993         Update function declarations.
34994         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
34995         glthread_rwlock_init. Return error code.
34996         (glthread_rwlock_rdlock_multithreaded): Renamed from
34997         glthread_rwlock_rdlock. Return error code.
34998         (glthread_rwlock_wrlock_multithreaded): Renamed from
34999         glthread_rwlock_wrlock. Return error code.
35000         (glthread_rwlock_unlock_multithreaded): Renamed from
35001         glthread_rwlock_unlock. Return error code.
35002         (glthread_rwlock_destroy_multithreaded): Renamed from
35003         glthread_rwlock_destroy. Return error code.
35004         (glthread_recursive_lock_init_multithreaded): Renamed from
35005         glthread_recursive_lock_init. Return error code.
35006         (glthread_recursive_lock_lock_multithreaded): Renamed from
35007         glthread_recursive_lock_lock. Return error code.
35008         (glthread_recursive_lock_unlock_multithreaded): Renamed from
35009         glthread_recursive_lock_unlock. Return error code.
35010         (glthread_recursive_lock_destroy_multithreaded): Renamed from
35011         glthread_recursive_lock_destroy. Return error code.
35012         (glthread_once_call): Make static.
35013         (glthread_once_multithreaded): Renamed from glthread_once.
35014         * lib/tls.h: Include <errno.h>.
35015         (glthread_tls_key_init): New macro/function.
35016         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
35017         (glthread_tls_set): New macro/function.
35018         (gl_tls_set): Define as wrapper around glthread_tls_set.
35019         (glthread_tls_key_destroy): New macro/function.
35020         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
35021         Update function declarations.
35022         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
35023         glthread_tls_get.
35024         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35025
35026 2008-08-04  Eric Blake  <ebb9@byu.net>
35027
35028         gnumakefile: use space, not TAB, outside of targets
35029         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
35030
35031 2008-08-02  Jim Meyering  <meyering@redhat.com>
35032
35033         getdate.y: avoid locale-dependent date parsing failure
35034         In Turkish locales, getdate would fail to recognize keywords
35035         containing a lowercase "i".  The solution is not to rely on
35036         locale-sensitive case-conversion.
35037         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
35038         (lookup_word): Use c_toupper in place of toupper.
35039         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
35040         Reported by Vefa Bicakci <bicave@superonline.com> in
35041         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
35042         * modules/getdate (Depends-on): Add c-ctype.
35043
35044 2008-08-02  Bruno Haible  <bruno@clisp.org>
35045
35046         * gnulib-tool (func_import): When updating or creating a .gitignore
35047         file, prepend each added line with a slash, and ignore leading slashes
35048         from the existing lines.
35049         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35050
35051 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35052
35053         Portability fix for GNU make 3.79.1.
35054         * top/GNUmakefile: Avoid 'else COND', which older GNU make
35055         versions do not understand.
35056
35057 2008-08-01  Bruno Haible  <bruno@clisp.org>
35058
35059         Work around bug of HP-UX 10.20 cc with -0.0 literal.
35060         * tests/test-isnanf.h (zero): New variable.
35061         (main): Avoid literal -0.0f.
35062         * tests/test-isnand.h (zero): New variable.
35063         (main): Avoid literal -0.0.
35064         * tests/test-isnanl.h (zero): New variable.
35065         (main): Avoid literal -0.0L.
35066         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
35067         (test_float, test_double, test_long_double): Avoid literals -0.0f,
35068         -0.0, -0.0L.
35069         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
35070         (test_signbitd): Avoid literal -0.0.
35071         (test_signbitl): Avoid literal -0.0L.
35072         * tests/test-ceilf1.c (zero): New variable.
35073         (main): Avoid literal -0.0f.
35074         * tests/test-ceill.c (zero): New variable.
35075         (main): Avoid literal -0.0L.
35076         * tests/test-floorf1.c (zero): New variable.
35077         (main): Avoid literal -0.0f.
35078         * tests/test-floorl.c (zero): New variable.
35079         (main): Avoid literal -0.0L.
35080         * tests/test-roundf1.c (zero): New variable.
35081         (main): Avoid literal -0.0f.
35082         * tests/test-round1.c (zero): New variable.
35083         (main): Avoid literal -0.0.
35084         * tests/test-roundl.c (zero): New variable.
35085         (main): Avoid literal -0.0L.
35086         * tests/test-truncf1.c (zero): New variable.
35087         (main): Avoid literal -0.0f.
35088         * tests/test-trunc1.c (zero): New variable.
35089         (main): Avoid literal -0.0.
35090         * tests/test-truncl.c (zero): New variable.
35091         (main): Avoid literal -0.0L.
35092         * tests/test-frexp.c (zero): New variable.
35093         (main): Avoid literal -0.0.
35094         * tests/test-frexpl.c (zero): New variable.
35095         (main): Avoid literal -0.0L.
35096         * tests/test-ldexpl.c (zero): New variable.
35097         (main): Avoid literal -0.0L.
35098         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35099         (zerod, zerol): New variables.
35100         (test_function): Avoid literals -0.0, -0.0L.
35101         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35102         (zerod, zerol): New variables.
35103         (test_function): Avoid literals -0.0, -0.0L.
35104         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35105         (zerod, zerol): New variables.
35106         (test_function): Avoid literals -0.0, -0.0L.
35107         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35108         (zerod, zerol): New variables.
35109         (test_function): Avoid literals -0.0, -0.0L.
35110         * tests/test-strtod.c (zero): New variable.
35111         (main): Avoid literal -0.0.
35112         Reported by Jonathan C. Patschke <jp@centtech.com>.
35113
35114 2008-07-31  Jim Meyering  <meyering@redhat.com>
35115
35116         sha256.h: correct definition of SHA224_DIGEST_SIZE
35117         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
35118         Reported by Paulie Pena IV <paulie4@gmail.com>.
35119         Define as 224 / 8, rather than as a literal.
35120         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
35121         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
35122         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
35123
35124 2008-07-31  Bruno Haible  <bruno@clisp.org>
35125
35126         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
35127         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
35128         Reported by Jonathan Patschke <jp@centtech.com>.
35129
35130 2008-07-31  Bruno Haible  <bruno@clisp.org>
35131
35132         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
35133         Reported by Paolo Bonzini <bonzini@gnu.org>.
35134
35135 2008-07-30  Eric Blake  <ebb9@byu.net>
35136
35137         test-strtod: allow compilation without -lm
35138         * tests/test-strtod.c (main): Avoid link dependence on fabs.
35139         Reported by Dennis Clarke <blastwave@gmail.com>.
35140
35141 2008-07-28  Jim Meyering  <meyering@redhat.com>
35142
35143         bootstrap: work also when there are no .po files in po/
35144         * build-aux/bootstrap (update_po_files): Complete the change
35145         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
35146
35147 2008-07-27  Jim Meyering  <meyering@redhat.com>
35148
35149         * users.txt: Add zile.
35150
35151 2008-07-26  Ben Pfaff  <blp@gnu.org>
35152
35153         Add missing dependencies on new m4/exponent[fdl].m4 files.
35154         * modules/isnanf-nolibm: Add m4/exponentf.m4.
35155         * modules/isnand-nolibm: Add m4/exponentd.m4.
35156         * modules/isnanl-nolibm: Add m4/exponentl.m4.
35157         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
35158         m4/isnan[fdl].m4, because the macros actually used moved.
35159         Reported by Jim Meyering.
35160
35161 2008-07-14  Ben Pfaff  <blp@gnu.org>
35162
35163         Add isinf module.
35164         * lib/isinf.c: New file.
35165         * lib/math.in.h: Define isinf macro if we have decided to replace
35166         it.
35167         * m4/isinf.m4: New file.
35168         * m4/math_h.m4: Initialize and substitute variables for isinf
35169         module.
35170         * modules/isinf: New file.
35171         * modules/isinf-tests: New file.
35172         * modules/math: Add substitutions for new module.
35173         * tests/test-isinf.c: New file.
35174         * doc/posix-functions/isinf.texi: Mention new module.
35175         * MODULES.html.sh: Mention new module.
35176
35177 2008-07-14  Ben Pfaff  <blp@gnu.org>
35178
35179         Factor out some macros for use by additional modules.
35180         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
35181         exponentf.m4.
35182         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
35183         exponentd.m4.
35184         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
35185         file exponentl.m4.
35186         * m4/exponentf.m4: New file.
35187         * m4/exponentd.m4: New file.
35188         * m4/exponentl.m4: New file.
35189         * modules/isnanf: Use new file m4/exponentf.m4.
35190         * modules/isnand: Use new file m4/exponentd.m4.
35191         * modules/isnanl: Use new file m4/exponentl.m4.
35192
35193 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
35194
35195         mktime.c: normalize tp->tm_isdst value to -1/0/1.
35196         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
35197         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
35198         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
35199
35200         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
35201         readlink on platforms without PATH_MAX.
35202
35203 2008-07-21  Eric Blake  <ebb9@byu.net>
35204
35205         Warn, not fail, on stale version.
35206         * top/GNUmakefile (_curr-ver): Tone down previous patch.
35207
35208         Don't allow installation with stale devel version number.
35209         * top/GNUmakefile (_is-install-target): New macro.
35210         (_curr-ver): Forbid installation with stale version number.
35211
35212 2008-07-20  Bruno Haible  <bruno@clisp.org>
35213
35214         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
35215         TESTS_ENVIRONMENT.
35216         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
35217
35218 2008-07-20  Bruno Haible  <bruno@clisp.org>
35219
35220         * lib/c-stack.h (c_stack_action): Add documentation.
35221         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
35222
35223 2008-07-20  Bruno Haible  <bruno@clisp.org>
35224
35225         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
35226         * modules/readlink (License): Likewise.
35227
35228 2008-07-17  Eric Blake  <ebb9@byu.net>
35229
35230         * modules/c-stack (Link): Fix typo.
35231
35232         Make c-stack use libsigsegv, when available.
35233         * modules/c-stack (Depends-on): Add libsigsegv.
35234         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
35235         needed.
35236         * lib/c-stack.c (SIGSTKSZ): Define fallback.
35237         (segv_handler, overflow_handler, c_stack_action)
35238         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
35239         implementation when libsigsegv is available, but only when using
35240         the library is necessary.
35241         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
35242         comment, explaining why XSI check fails on Linux.
35243         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
35244         * tests/test-c-stack2.sh: Tweak skip message.
35245         * NEWS: Document new link-time requirements.
35246
35247 2008-07-16  Eric Blake  <ebb9@byu.net>
35248
35249         c-stack: Expose false positives when not using libsigsegv.
35250         * modules/c-stack-tests (Files): Expand test.
35251         * tests/test-c-stack.c (main): Add means to conditionally trigger
35252         non-overflow SIGSEGV.
35253         * tests/test-c-stack2.sh: New file.
35254
35255 2008-07-14  Bruno Haible  <bruno@clisp.org>
35256
35257         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
35258         Reported by Eric Blake.
35259
35260 2008-07-14  Sam Steingold  <sds@gnu.org>
35261             Bruno Haible  <bruno@clisp.org>
35262
35263         New module libsigsegv.
35264         * modules/libsigsegv: New file.
35265         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
35266         modifications.
35267         * MODULES.html.sh (Signal handling): New section.
35268
35269 2008-07-14  Bruno Haible  <bruno@clisp.org>
35270
35271         * modules/unictype/ctype-* (Description): Add the word "function".
35272         Improves the resulting doc in MODULES.html.
35273
35274 2008-07-12  Ben Pfaff  <blp@gnu.org>
35275
35276         Add longlong module.
35277         * modules/longlong: New file.
35278
35279 2008-07-12  Bruno Haible  <bruno@clisp.org>
35280
35281         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
35282         to empty.
35283
35284 2008-07-10  Ben Pfaff  <blp@gnu.org>
35285
35286         Add isnan module.
35287         * doc/posix-functions/isnan.texi: Mention new module.
35288         * lib/math.in.h: Define isnan macro if we have decided to replace
35289         it.
35290         * m4/isnan.m4: New file.
35291         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
35292         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
35293         also.
35294         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
35295         redundancy.
35296         * m4/math_h.m4: Initialize and substitute variables for isnan
35297         module.
35298         * modules/isnan: New file.
35299         * modules/isnan-tests: New file.
35300         * modules/math: Add substitutions for new module.
35301         * tests/test-isnan.c: New file.
35302         * MODULES.html.sh: Mention new module.
35303
35304 2008-07-10  Ben Pfaff  <blp@gnu.org>
35305
35306         Add isnanf module.
35307         * lib/isnanf.m4: New file.
35308         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
35309         (gl_HAVE_ISNANF_IN_LIBM): New macro.
35310         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
35311         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
35312         * modules/isnanf: New file.
35313         * modules/isnanf-tests: New file.
35314         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
35315         files.
35316         * tests/test-isnanf-nolibm.c: factored most of its contents into
35317         new file tests/test-isnanf.h.
35318         * tests/test-isnanf.h: New file.
35319         * tests/test-isnanf.c: New file.
35320         * MODULES.html.sh: Mention new module.
35321         * doc/glibc-functions/isnanf.texi: Mention new module.
35322
35323 2008-07-10  Ben Pfaff  <blp@gnu.org>
35324
35325         Add isnand module.
35326         * lib/isnand.h: New file.
35327         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
35328         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
35329         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
35330         functionality also.
35331         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
35332         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
35333         (gl_HAVE_ISNAND_IN_LIBM): New macro.
35334         * modules/isnand: New file.
35335         * modules/isnand-tests: New file.
35336         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
35337         files.
35338         * tests/test-isnand-nolibm.c: factored most of its contents into
35339         new file tests/test-isnand.h.
35340         * tests/test-isnand.h: New file.
35341         * tests/test-isnand.c: New file.
35342         * MODULES.html.sh: Mention new module.
35343
35344 2008-07-10  Ben Pfaff  <blp@gnu.org>
35345
35346         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
35347         * lib/isnand.h: Rename lib/isnand-nolibm.h.
35348         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
35349         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
35350         * modules/isnanf-nolibm: Update references to renamed files.
35351         * modules/isnand-nolibm: Likewise.
35352         * modules/isnanf-nolibm-tests: Likewise.
35353         * modules/isnand-nolibm-tests: Likewise.
35354         * lib/frexp.c: Likewise.
35355         * lib/isfinite.c: Likewise.
35356         * lib/signbitd.c: Likewise.
35357         * lib/signbitf.c: Likewise.
35358         * lib/vasnprintf.c: Likewise.
35359         * tests/test-ceilf1.c: Likewise.
35360         * tests/test-ceilf2.c: Likewise.
35361         * tests/test-floorf1.c: Likewise.
35362         * tests/test-floorf2.c: Likewise.
35363         * tests/test-frexp.c: Likewise.
35364         * tests/test-round1.c: Likewise.
35365         * tests/test-round2.c: Likewise.
35366         * tests/test-roundf1.c: Likewise.
35367         * tests/test-strtod.c: Likewise.
35368         * tests/test-trunc1.c: Likewise.
35369         * tests/test-trunc2.c: Likewise.
35370         * tests/test-truncf1.c: Likewise.
35371         * tests/test-truncf2.c: Likewise.
35372         * NEWS: Mention the renamed header files.
35373
35374 2008-07-11  Jim Meyering  <meyering@redhat.com>
35375
35376         vc-list-files: make the last-resort awk code more portable
35377         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
35378         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
35379         does not support it.
35380
35381 2008-07-10  Eric Blake  <ebb9@byu.net>
35382
35383         Work with tar's bootstrap.
35384         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
35385         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
35386         an m4 comment.
35387
35388 2008-07-09  Jim Meyering  <meyering@redhat.com>
35389
35390         posix-shell.m4: fix typo that made this test malfunction
35391         * m4/posix-shell.m4: Remove capitalization in variable name.
35392
35393 2008-07-08  Bruno Haible  <bruno@clisp.org>
35394
35395         * m4/onceonly.m4: Update comments.
35396         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35397
35398 2008-07-04  Jim Meyering  <meyering@redhat.com>
35399
35400         * users.txt: Add vc-dwim.
35401         (bison, coreutils): Use the gitweb URL.
35402
35403 2008-07-03  Jim Meyering  <meyering@redhat.com>
35404
35405         * users.txt: Add libffcall.  From Sam Steingold.
35406
35407 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
35408
35409         getdate.y: do not ignore TZ with relative day, month or year offset
35410         * lib/getdate.y (get_date): Move the tz-handling block to follow the
35411         relative-date-handling, since otherwise, the latter would clobber the
35412         sole output (an updated Start value) of the tz-handling block.
35413         * tests/test-getdate.c: Tests for the fix
35414
35415 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35416
35417         Recognize 'foo_LIBRARIES += libgnu.a'.
35418         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
35419         makefile snippet has already specified an installation location,
35420         also using '+='.
35421
35422 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
35423
35424         getdate.y: factor out common actions
35425         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
35426         Use them in place of open-coded actions.
35427
35428 2008-07-01  Simon Josefsson  <simon@josefsson.org>
35429
35430         Add self-test for getdate module.
35431         * modules/getdate-tests: New file.
35432         * tests/test-getdate.c: New file.
35433
35434 2008-06-29  Bruno Haible  <bruno@clisp.org>
35435
35436         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
35437         .gitignore.
35438         Reported by Sylvain Beucler <beuc@beuc.net>.
35439
35440 2008-06-29  Bruno Haible  <bruno@clisp.org>
35441
35442         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
35443         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
35444
35445 2008-06-29  Bruno Haible  <bruno@clisp.org>
35446
35447         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
35448         EXTRA_DIST.
35449         Reported by Sylvain Beucler <beuc@beuc.net>.
35450
35451 2008-06-26  Jim Meyering  <meyering@redhat.com>
35452
35453         make several modules depend on the "open" module
35454         This provides slightly increased consistency when opening-for-write
35455         the name of a non-directory spelled with a trailing slash.
35456         * modules/chdir-safer: Likewise.
35457         * modules/chown: Likewise.
35458         * modules/clean-temp: Likewise.
35459         * modules/copy-file: Likewise.
35460         * modules/fchdir: Likewise.
35461         * modules/fcntl-safer: Likewise.
35462         * modules/pipe: Likewise.
35463         * modules/utime: Likewise.
35464         Prompted by Eric Blake and Bruno Haible.
35465
35466 2008-06-24  Andreas Schwab  <schwab@suse.de>
35467
35468         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
35469         literals can be used as initializers for global variables.
35470
35471 2008-06-23  Eric Blake  <ebb9@byu.net>
35472
35473         Make gnulib-cache.m4 easier to diff.
35474         * gnulib-tool (func_import): Allow newlines when reading cached
35475         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
35476
35477 2008-06-23  Bruno Haible  <bruno@clisp.org>
35478
35479         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
35480         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
35481         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
35482         m4/signalblocking.m4.
35483         (gl_PREREQ_SIGACTION): Don't invoke it.
35484         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
35485         gl_PREREQ_SIG_HANDLER_H.
35486         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35487         Don't check for sigaction here.
35488
35489 2008-06-23  Bruno Haible  <bruno@clisp.org>
35490
35491         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
35492         (install_handlers): Don't set the SA_RESETHAND flag.
35493
35494 2008-06-23  Bruno Haible  <bruno@clisp.org>
35495
35496         * m4/sigaction.m4: Comment fixes.
35497         * lib/signal.in.h: Likewise.
35498
35499 2008-06-23  Eric Blake  <ebb9@byu.net>
35500
35501         Fix typo.
35502         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
35503
35504         Avoid SA_ namespace.
35505         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
35506         Reported by Ralf Wildenhues.
35507
35508         Avoid test failure due to SA_RESTORER.
35509         * tests/test-sigaction.c (SA_MASK): New macro.
35510         (main): Avoid failing due to extension flags being set.
35511         Reported by Jim Meyering.
35512
35513         Revert use of sig-handler.h in sigprocmask.c.
35514         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
35515         it requires the existence of struct sigaction.
35516         * lib/sigprocmask.c (handler_t): Restore typedef.
35517         (rpl_signal, old_handlers): Use local type.
35518
35519 2008-06-22  Bruno Haible  <bruno@clisp.org>
35520
35521         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
35522         conditionally.
35523         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35524
35525 2008-06-22  Bruno Haible  <bruno@clisp.org>
35526
35527         * doc/posix-functions/siginterrupt.texi: Move note.
35528
35529         * lib/signal.in.h (SA_RESTART): New macro.
35530         * lib/sigaction.c: Update comment.
35531
35532         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
35533
35534         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
35535         (gl_PREREQ_SIGPROCMASK): Invoke it.
35536         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
35537
35538         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
35539
35540         * lib/sigprocmask.c: Update a comment.
35541
35542 2008-06-21  Eric Blake  <ebb9@byu.net>
35543
35544         Use sigaction module rather than signal().
35545         * modules/c-stack (Depends-on): Add sigaction.
35546         * modules/fatal-signal (Depends-on): Likewise.
35547         * modules/nanosleep (Depends-on): Likewise.
35548         * modules/sigprocmask (Files): Add sig-handler.h.
35549         * modules/sigaction (Files): Likewise.
35550         * lib/sig-handler.h (get_handler): New file, suggested by Paul
35551         Eggert.
35552         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
35553         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
35554         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
35555         (init_fatal_signals): Likewise.
35556         * lib/nanosleep.c (rpl_nanosleep): Likewise.
35557         (siginterrupt): Delete fallback.
35558         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
35559         instead.
35560         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
35561         siginterrupt.
35562
35563         New module sigaction, for mingw.
35564         * modules/sigaction: New module...
35565         * modules/sigaction-tests: ...and its test.
35566         * m4/sigaction.m4: New file.
35567         * lib/sigaction.c: Likewise.
35568         * tests/test-sigaction.c: Likewise.
35569         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
35570         * modules/signal (Makefile.am): Likewise.
35571         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
35572         needed.
35573         * doc/posix-headers/signal.texi (signal.h): Mention provided
35574         types.
35575         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
35576         that sigaction is preferable.
35577         * doc/posix-functions/sigaction.texi (sigaction): Mention new
35578         module.
35579         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35580         sigaction.
35581
35582         Improve robustness of sigprocmask by overriding signal.
35583         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
35584         is in use.
35585         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
35586         (SIGKILL, SIGSTOP): Provide fallbacks.
35587         (rpl_signal): Implement.
35588         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
35589         signal can be called inside handlers.
35590
35591         Fix nanosleep module on mingw.
35592         * modules/nanosleep (Depends-on): Add sys_select.
35593         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
35594
35595         Fix licensing of sigprocmask.
35596         * modules/raise (License): Relicense as LGPL.
35597
35598 2008-06-21  Bruno Haible  <bruno@clisp.org>
35599
35600         * lib/propername.c (proper_name_utf8): Don't use the transliterated
35601         result if it contains question marks.
35602         Reported by Michael Geng <linux@michaelgeng.de>.
35603
35604 2008-06-19  Bruno Haible  <bruno@clisp.org>
35605
35606         Fix CVS-ism.
35607         * doc/gnulib.texi: Include updated-stamp.texi.
35608         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
35609         (updated-stamp.texi): New rule.
35610         (gnulib.info): Depend on it.
35611         * doc/.gitignore: Add updated-stamp.texi.
35612         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
35613
35614 2008-06-19  Bruno Haible  <bruno@clisp.org>
35615
35616         * doc/Makefile (gnulib.info): Update and simplify dependencies.
35617         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35618
35619 2008-06-19  Eric Blake  <ebb9@byu.net>
35620
35621         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
35622         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
35623         Reported by Stepan Kasal.
35624
35625 2008-06-18  Bruno Haible  <bruno@clisp.org>
35626
35627         * lib/fatal-signal.c (init_fatal_signals): Add comment.
35628         Reported by Eric Blake.
35629
35630 2008-06-18  Eric Blake  <ebb9@byu.net>
35631
35632         Work around cygwin 1.5.25 strsignal bug.
35633         * tests/test-strsignal.c: Allow for const char *.
35634         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
35635
35636 2008-06-18  Simon Josefsson  <simon@josefsson.org>
35637
35638         * users.txt: Update URL to article and add author/date
35639         information.
35640
35641 2008-06-17  Bruno Haible  <bruno@clisp.org>
35642
35643         New macro gl_DISABLE_THREADS.
35644         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
35645         if the user did not pass --enable-threads or --disable-threads option.
35646         (gl_DISABLE_THREADS): New macro.
35647         Reported by Eric Blake <ebb9@byu.net>.
35648
35649 2008-06-17  Bruno Haible  <bruno@clisp.org>
35650
35651         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
35652         when the macro ignores it.
35653         Based on a patch by Eric Blake <ebb9@byu.net>.
35654
35655 2008-06-17  Bruno Haible  <bruno@clisp.org>
35656
35657         * modules/tls (License): Change to LGPLv2+.
35658         Reported by Eric Blake.
35659
35660 2008-06-17  Eric Blake  <ebb9@byu.net>
35661
35662         Simplify c-stack prerequisites.
35663         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
35664         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
35665         no longer requires <ucontext.h> to exist.  Optimize setrlimit
35666         check.
35667         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
35668         <sys/resource.h>.
35669
35670         Move c-stack test into testsuite.
35671         * modules/c-stack-tests: New file.
35672         * lib/c-stack.c [DEBUG]: Move test program...
35673         * tests/test-c-stack.c: ...into this new file.  Skip rather than
35674         fail test if sigaltstack is lacking.
35675         * tests/test-c-stack.sh: New driver file.
35676
35677 2008-06-16  Eric Blake  <ebb9@byu.net>
35678
35679         Use raise module consistently.
35680         * modules/fatal-signal (Depends-on): Add raise.
35681         * modules/sigprocmask (Depends-on): Likewise.
35682         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
35683         * lib/sigprocmask.c (sigprocmask): Likewise.
35684         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35685         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
35686
35687         Fix compliance bug in sigpending.
35688         * lib/sigprocmask.c (sigpending): Return pending array via
35689         parameter, not return value.
35690
35691 2008-06-14  Eric Blake  <ebb9@byu.net>
35692
35693         Improve obstack-printf test code.
35694         * tests/test-obstack-printf.c (test_function): Fix comment, and
35695         simplify usage of obstack_* in macros.  Add a test for coverage.
35696         Reported by Bruno Haible.
35697
35698 2008-06-14  Bruno Haible  <bruno@clisp.org>
35699
35700         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
35701         array size as a constant, not as a const variable.
35702         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
35703         AC_USE_SYSTEM_EXTENSIONS.
35704         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35705         Test whether the obstack_printf function actually exists.
35706         * modules/obstack-printf (Depends-on): Add extensions.
35707         (Include): Remove obstack.h.
35708         * modules/obstack-printf-posix (Depends-on): Add extensions.
35709         (Include): Remove obstack.h.
35710
35711 2008-06-13  Eric Blake  <ebb9@byu.net>
35712
35713         Add obstack-printf and obstack-printf-posix modules.
35714         * modules/obstack-printf: New file.
35715         * modules/obstack-printf-posix: Likewise.
35716         * MODULES.html.sh (Misc): Mention them.
35717         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35718         Likewise.
35719         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35720         Likewise.
35721         * modules/stdio (Makefile.am): Accomodate new modules.
35722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35723         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
35724         Declare.
35725         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
35726         functions.
35727         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
35728         (gl_REPLACE_OBSTACK_PRINTF): New macros
35729         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
35730         * tests/test-obstack-printf.c: New file.
35731         * modules/obstack-printf-tests: Likewise.
35732         * modules/obstack-printf-posix-tests: Likewise.
35733
35734 2008-06-11  Bruno Haible  <bruno@clisp.org>
35735
35736         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
35737         * lib/open.c: Include errno.h.
35738         (open): Fail when attempting to write to a file that has a trailing
35739         slash.
35740         * tests/test-open.c (main): Test against trailing slash bug.
35741         * doc/posix-functions/open.texi: Mention the trailing slash bug.
35742
35743 2008-06-10  Bruno Haible  <bruno@clisp.org>
35744
35745         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
35746         for $? to work inside the trap command, with various /bin/sh-s.
35747         * tests/test-vc-list-files-cvs.sh: Likewise.
35748
35749 2008-06-10  Bruno Haible  <bruno@clisp.org>
35750
35751         * lib/acl-internal.h: Don't include gettext.h here.
35752         * lib/set-mode-acl.c: Include gettext.h here.
35753         * lib/copy-acl.c: Likewise.
35754
35755 2008-06-10  Bruno Haible  <bruno@clisp.org>
35756
35757         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
35758         * lib/wait-process.c (wait_subprocess): Likewise.
35759         * lib/execute.h (execute): Add termsigp argument.
35760         * lib/execute.c (execute): Likewise.
35761         * lib/csharpcomp.c (compile_csharp_using_pnet,
35762         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
35763         * lib/csharpexec.c (execute_csharp_using_pnet,
35764         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
35765         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
35766         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
35767         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
35768         is_jikes_present): Update.
35769         * lib/javaexec.c (execute_java_class): Update.
35770         * lib/javaversion.c (execute_and_read_line): Update.
35771         * NEWS: Document the changes.
35772         Reported by Eric Blake.
35773
35774 2008-06-10  Eric Blake  <ebb9@byu.net>
35775
35776         Add missing include.
35777         * tests/test-strstr.c (includes): Add <signal.h>.
35778         * tests/test-strcasestr.c (includes): Likewise.
35779         * tests/test-memmem.c (includes): Likewise.
35780
35781 2008-06-10  Bruno Haible  <bruno@clisp.org>
35782
35783         * lib/wait-process.c (wait_subprocess): Add an assertion.
35784
35785 2008-06-10  Bruno Haible  <bruno@clisp.org>
35786
35787         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
35788
35789 2008-06-10  Bruno Haible  <bruno@clisp.org>
35790
35791         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
35792         using alarm().
35793         * tests/test-strcasestr.c (main): Likewise.
35794         * tests/test-strstr.c (main): Likewise.
35795
35796 2008-06-09  Bruno Haible  <bruno@clisp.org>
35797
35798         Work around the Solaris 10 ACE ACLs ABI change.
35799         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
35800         declare if ACL_NO_TRIVIAL is present.
35801         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
35802         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
35803         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
35804         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
35805         define if ACL_NO_TRIVIAL is present.
35806         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
35807         and use the current ABI.
35808         (file_has_acl): Use same #if condition as elsewhere.
35809         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
35810         in use, and use the current ABI.
35811         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
35812         Reported by Jim Meyering.
35813
35814 2008-06-09  Eric Blake  <ebb9@byu.net>
35815
35816         Work around environments that (stupidly) ignore SIGALRM.
35817         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
35818         before using alarm().
35819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35820         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35821         Reported by Ian Beckwith <ianb@erislabs.net>.
35822
35823         Produce autobuild blurb earlier in log.
35824         * modules/autobuild (configure.ac-early): Move AB_INIT here.
35825
35826 2008-06-09  Jim Meyering  <meyering@redhat.com>
35827         and OndÅ™ej Vašík  <ovasik@redhat.com>
35828
35829         utimens.c: correct kernel bug work-around
35830         OndÅ™ej Vašík found that the invalid return value of 280 indicates
35831         failure, not success, and the kernel bug we're trying to work
35832         around affects not just the utimensat call, but also the fallback
35833         futimens call.
35834         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
35835         not success.
35836         [HAVE_FUTIMENS]: Use the same work-around, here.
35837
35838 2008-06-09  Jim Meyering  <meyering@redhat.com>
35839
35840         add more guards around definition of ACE_-related code
35841         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
35842         ALLOW and ACE_OWNER are also defined.
35843
35844 2008-06-08  Bruno Haible  <bruno@clisp.org>
35845
35846         * lib/acl-internal.h: Add me as co-author.
35847         * lib/file-has-acl.c: Likewise.
35848         * lib/set-mode-acl.c: Likewise.
35849         * lib/copy-acl.c: Likewise.
35850
35851 2008-06-08  Bruno Haible  <bruno@clisp.org>
35852
35853         Add support for AIX ACLs.
35854         * lib/acl-internal.h (acl_nontrivial): New declaration.
35855         * lib/file-has-acl.c (acl_nontrivial): New function.
35856         (file_has_acl): Add implementation using AIX 4 ACL API.
35857         * lib/set-mode-acl.c (qset_acl): Likewise.
35858         * lib/copy-acl.c (qcopy_acl): Likewise.
35859
35860 2008-06-08  Bruno Haible  <bruno@clisp.org>
35861
35862         Add support for HP-UX ACLs.
35863         * lib/acl-internal.h (acl_nontrivial): New declaration.
35864         * lib/file-has-acl.c (acl_nontrivial): New function.
35865         (file_has_acl): Add implementation using HP-UX 11 ACL API.
35866         * lib/set-mode-acl.c (qset_acl): Likewise.
35867         * lib/copy-acl.c (qcopy_acl): Likewise.
35868
35869 2008-06-08  Bruno Haible  <bruno@clisp.org>
35870
35871         Add support for Cygwin ACLs.
35872         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
35873         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
35874         the chmod_or_fchmod call.
35875         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
35876
35877 2008-06-08  Bruno Haible  <bruno@clisp.org>
35878
35879         Fix bug with setuid modes in Solaris 10+ code.
35880         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
35881         succeeded, when the mode contains some special bits.
35882
35883 2008-06-08  Bruno Haible  <bruno@clisp.org>
35884
35885         Add support for Solaris 7..10 ACLs.
35886         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
35887         declarations.
35888         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
35889         functions.
35890         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
35891         * lib/set-mode-acl.c (qset_acl): Likewise.
35892         * lib/copy-acl.c (qcopy_acl): Likewise.
35893
35894 2008-06-08  Bruno Haible  <bruno@clisp.org>
35895
35896         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
35897         declaration.
35898         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
35899         (acl_access_nontrivial): Remove MacOS X case.
35900         (file_has_acl): Use acl_extended_nontrivial.
35901         * lib/copy-acl.c (qcopy_acl): Likewise.
35902
35903 2008-06-08  Bruno Haible  <bruno@clisp.org>
35904
35905         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
35906
35907 2008-06-08  Jim Meyering  <meyering@redhat.com>
35908
35909         * modules/acl (Maintainer): Add Bruno Haible.
35910
35911 2008-06-07  Bruno Haible  <bruno@clisp.org>
35912
35913         Improve support for Tru64 ACLs.
35914         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
35915         ACL on OSF/1.
35916
35917 2008-06-07  Bruno Haible  <bruno@clisp.org>
35918
35919         Add support for MacOS X ACLs.
35920         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
35921         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
35922         * lib/set-mode-acl.c (qset_acl): Likewise.
35923         * lib/copy-acl.c (qcopy_acl): Likewise.
35924
35925 2008-06-07  Bruno Haible  <bruno@clisp.org>
35926
35927         Fix memory leak introduced on 2008-05-22.
35928         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
35929         use.
35930
35931 2008-06-07  Bruno Haible  <bruno@clisp.org>
35932
35933         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
35934         to construct an empty ACL.
35935
35936 2008-06-07  Bruno Haible  <bruno@clisp.org>
35937
35938         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
35939         precisely.
35940         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
35941
35942 2008-06-07  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
35945         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
35946
35947 2008-06-07  Bruno Haible  <bruno@clisp.org>
35948
35949         * doc/posix-functions/_setjmp.texi: Explain the use of this function
35950         regardless of POSIX.
35951         * doc/posix-functions/_longjmp.texi: Likewise.
35952         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
35953         SystemV platform in this case.
35954
35955 2008-06-06  Eric Blake  <ebb9@byu.net>
35956
35957         Document abort() bugs.
35958         * doc/posix-functions/abort.texi (abort): Mention anomalies.
35959
35960         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
35961         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
35962         sigsetjmp.
35963         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
35964         siglongjmp, but only as a macro.
35965         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
35966         is obsolete.
35967         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
35968
35969         Tweak documentation to cover cygwin argz bugs.
35970         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
35971         argz bug fix; no code change needed since no cygwin releases
35972         occurred between the last fix and the bug being tested.
35973         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
35974         module and recently fixed cygwin bugs.
35975         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
35976         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
35977         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
35978         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
35979         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
35980         Likewise.
35981         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
35982         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
35983         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
35984         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
35985         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
35986         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
35987         Likewise.
35988
35989         Avoid gcc warning on cygwin.
35990         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
35991         !ACL_NO_TRIVIAL]: Avoid unused variable.
35992
35993 2008-06-05  Eric Blake  <ebb9@byu.net>
35994
35995         Be tolerant of UNKNOWN version in gnulib-tool test dir.
35996         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
35997         git-version-gen fails to come up with a version.
35998         Reported by Simon Josefsson.
35999
36000 2008-06-05  Jim Meyering  <meyering@redhat.com>
36001             Paul Eggert  <eggert@cs.ucla.edu>
36002
36003         utimens.c: work around a probable Linux kernel bug
36004         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
36005         appears to be a kernel bug that causes utimensat to return 280
36006         instead of 0, indicating success.
36007
36008 2008-06-04  Bruno Haible  <bruno@clisp.org>
36009
36010         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
36011         2008-06-01 commit.
36012
36013 2008-06-04  Bruno Haible  <bruno@clisp.org>
36014
36015         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
36016         * lib/file-has-acl.c (acl_access_nontrivial): New function.
36017         (file_has_acl): Use it. Save errno afterwards.
36018         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
36019
36020 2008-06-03  Bruno Haible  <bruno@clisp.org>
36021
36022         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
36023         draft code. Simplify #ifs.
36024         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
36025         Put Solaris code after POSIX-draft code. Fix comments regarding
36026         Solaris 10, HP-UX. Mention Cygwin.
36027         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
36028
36029 2008-06-03  Eric Blake  <ebb9@byu.net>
36030
36031         Provide fallback for older kernels.
36032         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
36033         Provide runtime fallback if kernel lacks support.
36034         Reported by Mike Frysinger.
36035
36036 2008-06-02  Bruno Haible  <bruno@clisp.org>
36037
36038         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
36039         it exists.
36040
36041 2008-06-02  Bruno Haible  <bruno@clisp.org>
36042
36043         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
36044         * lib/copy-acl.c (qcopy_acl): Update comment.
36045
36046 2008-06-02  Bruno Haible  <bruno@clisp.org>
36047
36048         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
36049         like ACL APIs.
36050
36051 2008-06-02  Bruno Haible  <bruno@clisp.org>
36052
36053         * tests/test-file-has-acl.sh: Use different code for Cygwin.
36054         * tests/test-set-mode-acl.sh: Likewise.
36055         * tests/test-copy-acl.sh: Likewise.
36056         * tests/test-copy-file.sh: Likewise.
36057
36058 2008-06-02  Bruno Haible  <bruno@clisp.org>
36059
36060         * tests/test-file-has-acl.sh: Remove unused code.
36061
36062 2008-06-01  Bruno Haible  <bruno@clisp.org>
36063
36064         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
36065         (copy_acl): Just a wrapper around qcopy_acl that emits the error
36066         messages.
36067         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
36068
36069 2008-06-01  Bruno Haible  <bruno@clisp.org>
36070
36071         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
36072         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
36073         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
36074         APIs.
36075         * modules/acl-tests (configure.ac): Remove tests now contained in
36076         m4/acl.m4.
36077
36078 2008-06-02  Jim Meyering  <meyering@redhat.com>
36079
36080         announce-gen: use a better key-server host name
36081         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
36082         it may be more consistently reliable.  Suggested by Werner Koch
36083         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
36084
36085 2008-06-01  Bruno Haible  <bruno@clisp.org>
36086
36087         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
36088         Reported by Voroskoi Andras <voroskoi@gmail.com>.
36089
36090 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
36091
36092         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
36093
36094 2008-06-01  Bruno Haible  <bruno@clisp.org>
36095
36096         New ACL tests.
36097         * tests/test-file-has-acl.sh: New file.
36098         * tests/test-file-has-acl.c: New file.
36099         * tests/test-set-mode-acl.sh: New file.
36100         * tests/test-set-mode-acl.c: New file.
36101         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
36102         * tests/test-copy-acl.c: New file.
36103         * modules/acl-tests: New file, based on modules/copy-file-tests.
36104         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
36105         (Depends-on): Add acl-tests.
36106         (configure.ac): Remove checks.
36107         (Makefile.am): Don't create test-sameacls program here any more.
36108
36109 2008-06-01  Bruno Haible  <bruno@clisp.org>
36110
36111         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
36112         * tests/test-sameacls.c: Include progname.h.
36113         (main): Invoke set_program_name. Portability fixes for MacOS X,
36114         Solaris, HP-UX.
36115
36116 2008-06-01  Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
36119         function.
36120         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
36121
36122 2008-06-01  Bruno Haible  <bruno@clisp.org>
36123
36124         * modules/rpmatch (Depends-on): Add strdup.
36125
36126 2008-06-01  Bruno Haible  <bruno@clisp.org>
36127
36128         * lib/pipe.c: Include unistd-safer.h.
36129         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
36130         * modules/pipe (Depends-on): Add unistd-safer.
36131
36132 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36133
36134         * modules/autobuild (configure.ac): Call AB_INIT.
36135
36136 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36137
36138         * tests/test-getaddrinfo.c: Don't print debug messages by default.
36139         Suggested by Bruno Haible <bruno@clisp.org>.
36140
36141 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36142
36143         * tests/test-base64.c: Cast size_t to unsigned long when invoking
36144         printf.  Use %lu instead of %d.  Reported by Bruno Haible
36145         <bruno@clisp.org>.
36146
36147 2008-05-29  Eric Blake  <ebb9@byu.net>
36148
36149         Prefer new POSIX 200x interfaces over futimesat.
36150         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
36151         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
36152         when available.
36153         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
36154
36155 2008-05-28  Bruno Haible  <bruno@clisp.org>
36156
36157         * modules/stpcpy (License): Change to LGPLv2+.
36158         Requested by David Lutterkort <dlutter@redhat.com>.
36159
36160 2008-05-27  Bruno Haible  <bruno@clisp.org>
36161
36162         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
36163         current mingw.
36164         Reported by Jose E. Marchesi <jemarch@gnu.org>.
36165
36166 2008-05-27  Bruno Haible  <bruno@clisp.org>
36167
36168         * modules/iconv_open (Link): New section, from module 'iconv'.
36169         * modules/striconv (Link): Likewise.
36170         * modules/striconveh (Link): Likewise.
36171         * modules/xstriconv (Link): Likewise.
36172         * modules/unicodeio (Link): Likewise.
36173         * modules/propername (Link): Likewise.
36174         Reported by Jim Meyering.
36175
36176 2008-05-26  Jim Meyering  <meyering@redhat.com>
36177
36178         sha256: do not artificially restrict buffer length to be < 2^32
36179         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
36180         uint32_t to size_t.
36181         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
36182         to match.
36183
36184         avoid unaligned access errors, e.g., on sparc
36185         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
36186         direct access through a possibly-unaligned uint64* pointer.
36187         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
36188         direct access through a possibly-unaligned uint32* pointer.
36189         Prompted by this patch from Tom "spot" Callaway:
36190         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
36191
36192         sha512.c: fix typo in comment
36193         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
36194
36195 2008-05-25  Bruno Haible  <bruno@clisp.org>
36196
36197         * lib/set-mode-acl.c: Renamed from lib/acl.c.
36198         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
36199         (Makefile.am): Update lib_SOURCES.
36200
36201 2008-05-25  Bruno Haible  <bruno@clisp.org>
36202
36203         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
36204
36205 2008-05-25  Jim Meyering  <meyering@redhat.com>
36206
36207         useless-if-before-free: freed expr may have white-space differences
36208         * build-aux/useless-if-before-free: Recognize cases in which the
36209         freed expression differs from the tested one in embedded white
36210         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
36211         $1 was used, so we can't make any regexp shy.  Improved tests now
36212         detect this.
36213
36214         useless-if-before-free: accept white space in the expression.
36215         * build-aux/useless-if-before-free: For now, any white space
36216         in the expression must be identical in the free argument.
36217
36218         useless-if-before-free: efficiency tweak
36219         * build-aux/useless-if-before-free: Make the expression-matching
36220         regexp "shy".
36221         Make the *outer* regexp shy, not the expr-matching one.
36222
36223         update code-in-comment to accept cast of free arg
36224         * build-aux/useless-if-before-free: Update regexp.
36225
36226 2008-05-25  Bruno Haible  <bruno@clisp.org>
36227
36228         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
36229         * modules/copy-file-tests (Files, Makefile.am): Update.
36230         * tests/test-copy-file.c (func_test_copy): Update.
36231
36232 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
36233
36234         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
36235
36236 2008-05-23  Bruno Haible  <bruno@clisp.org>
36237
36238         Improve support for ACLs on OSF/1.
36239         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
36240         Remove fallback for unknown flavors of ACLs.
36241
36242 2008-05-22  Bruno Haible  <bruno@clisp.org>
36243
36244         Add support for ACLs on OSF/1.
36245         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
36246         replacements.
36247         (acl_free_text): New macro fallback.
36248         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
36249         acl_free.
36250         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
36251         acl_free_text function. Require AC_C_INLINE.
36252
36253 2008-05-22  Bruno Haible  <bruno@clisp.org>
36254
36255         Make copy_acl work on MacOS X 10.5.
36256         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
36257         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
36258         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
36259         If MODE_INSIDE_ACL, don't assume that every system has the same text
36260         representation for ACLs as FreeBSD.
36261         * lib/copy-acl.c (copy_acl): Add support for platforms with
36262         !MODE_INSIDE_ACL.
36263         * lib/file-has-acl.c (file_has_acl): Likewise.
36264         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
36265         FreeBSD, MacOS X, or IRIX, respectively.
36266
36267 2008-05-22  Bruno Haible  <bruno@clisp.org>
36268
36269         * lib/acl.h: Don't include <sys/acl.h>.
36270         (GETACLCNT): Move fallback to lib/acl-internal.h.
36271         * lib/acl-internal.h: Include <sys/acl.h> here.
36272         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
36273
36274 2008-05-22  Bruno Haible  <bruno@clisp.org>
36275
36276         Split off copy_acl function to separate file.
36277         * lib/copy-acl.c: New file, extracted from lib/acl.c.
36278         * lib/acl.c (copy_acl): Moved function to separate file.
36279         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
36280         * modules/acl (Files): Add lib/copy-acl.c.
36281         (Makefiles.am): Augment lib_SOURCES.
36282
36283 2008-05-22  Bruno Haible  <bruno@clisp.org>
36284
36285         * modules/copy-file-tests: New file.
36286         * tests/test-copy-file.sh: New file.
36287         * tests/test-copy-file.c: New file.
36288         * tests/test-copy-file-sameacls.c: New file.
36289
36290 2008-05-22  Eric Blake  <ebb9@byu.net>
36291
36292         Avoid gcc warning.
36293         * tests/test-memcmp.c (main): Pass NULL indirectly.
36294
36295 2008-05-21  Bruno Haible  <bruno@clisp.org>
36296
36297         Add reference doc about ACLs.
36298         * doc/acl-resources.txt: New file.
36299         * doc/acl-cygwin.txt: New file.
36300
36301 2008-05-21  Bruno Haible  <bruno@clisp.org>
36302
36303         Avoid one more warning from gcc.
36304         * lib/vasnprintf.c (IF_LINT): Update comments.
36305         (VASNPRINTF): Use it also for the 'prefix' array initializer.
36306
36307 2008-05-21  Jim Meyering  <meyering@redhat.com>
36308
36309         avoid a warning from gcc
36310         * lib/vasnprintf.c (IF_LINT): Define.
36311         (scale10_round_decimal_long_double):
36312         Use it to avoid a "may be used uninitialized" warning.
36313         (scale10_round_decimal_double): Likewise.
36314
36315 2008-05-21  Simon Josefsson  <simon@josefsson.org>
36316
36317         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
36318         declared.
36319
36320 2008-05-20  Bruno Haible  <bruno@clisp.org>
36321
36322         * tests/test-memcmp.c (main): Test also the sign of the result. Test
36323         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
36324
36325 2008-05-20  Simon Josefsson  <simon@josefsson.org>
36326
36327         * modules/memcmp-tests: New file.
36328         * tests/test-memcmp.c: New file.
36329
36330 2008-05-19  Bruno Haible  <bruno@clisp.org>
36331
36332         * modules/propername (Notice, configure.ac): Put quoted "..." into
36333         --keyword option.
36334         * lib/propername.h: Update comments accordingly.
36335         Reported by Eric Blake.
36336
36337 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
36338
36339         * modules/getpass-gnu (Depends-on): Add fseeko.
36340
36341 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36342
36343         * modules/base64-tests: New file.
36344
36345 2008-05-19  Bo Borgerson <gigabo@gmail.com>
36346
36347         * lib/base64.c (base64_decode_ctx): If a decode context structure
36348         was passed in use it to ignore newlines.  If a context structure
36349         was _not_ passed in, continue to treat newlines as garbage (this
36350         is the historical behavior).  Formerly base64_decode.
36351         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36352         takes a decode context structure.
36353         * lib/base64.h (base64_decode): Macro for four-argument calls.
36354         (base64_decode_alloc): Likewise.
36355         * lib/base64.c (base64_decode_ctx): If a decode context structure
36356         was passed in use it to ignore newlines.  If a context structure
36357         was _not_ passed in, continue to treat newlines as garbage (this
36358         is the historical behavior).  Formerly base64_decode.
36359         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36360         takes a decode context structure.
36361         * lib/base64.h (base64_decode): Macro for four-argument calls.
36362         (base64_decode_alloc): Likewise.
36363
36364 2008-05-19  Jim Meyering  <meyering@redhat.com>
36365
36366         avoid a warning from gcc
36367         * lib/trim.c (IF_LINT): Define.
36368         (trim2): Use it to avoid a "may be used uninitialized" warning.
36369
36370         Fix doc typo.
36371         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
36372
36373 2008-05-19  Bruno Haible  <bruno@clisp.org>
36374
36375         * doc/glibc-functions/getpass.texi: Document limits of other
36376         implementations.
36377
36378 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36379             Bruno Haible <bruno@clisp.org>
36380
36381         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
36382
36383 2008-05-18  Bruno Haible  <bruno@clisp.org>
36384
36385         * modules/propername: New file, from GNU gettext.
36386         * lib/propername.h: New file, from GNU gettext.
36387         * lib/propername.c: New file, from GNU gettext.
36388         * MODULES.html.sh (Internationalization functions): Add propername.
36389
36390 2008-05-16  Jim Meyering  <meyering@redhat.com>
36391             Bruno Haible  <bruno@clisp.org>
36392
36393         Avoid some warnings from "gcc -Wshadow".
36394         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
36395
36396 2008-05-15  Eric Blake  <ebb9@byu.net>
36397
36398         Extend previous patch to cygwin 1.7.0.
36399         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
36400         fast implementation in cygwin >= 1.7.0.
36401         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36403
36404 2008-05-15  Bruno Haible  <bruno@clisp.org>
36405
36406         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
36407         implementation in glibc >= 2.9.
36408         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36410
36411 2008-05-15  Bruno Haible  <bruno@clisp.org>
36412
36413         * MODULES.html.sh (Internationalization functions): Remove linebreak.
36414         (Unicode string functions): Add unilbrk/*.
36415         Reported by Karl Berry.
36416
36417 2008-05-15  Eric Blake  <ebb9@byu.net>
36418
36419         Fix violation of <stdbool.h> replacement in regex.
36420         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
36421         * lib/regexec.c (re_search_internal): Likewise.
36422         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
36423
36424 2008-05-15  Jim Meyering  <meyering@redhat.com>
36425
36426         avoid distracting test output when git or cvs is not found
36427         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
36428         * tests/test-vc-list-files-git.sh: Likewise.
36429
36430 2008-05-15  Eric Blake  <ebb9@byu.net>
36431
36432         Glibc finally accepted the memmem speedup code, bugzilla #5514.
36433         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
36434         glibc version.
36435         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36436         * doc/posix-functions/strstr.texi (strstr): Likewise.
36437         * lib/str-two-way.h (MAX): Sychronize with glibc.
36438
36439 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
36440
36441         * lib/regcomp.c (optimize_utf8): Add a note on why we test
36442         opr.ctx_type.
36443         (calc_first): Initialize constraint field.
36444         (duplicate_node_closure): Use it instead of special casing ANCHORS.
36445         Fix grammar.
36446         (duplicate_node): Merge constraint field for all node types.
36447         (calc_eclosure_iter): Look at constraint field for all node types.
36448         * lib/regex_internal.c (create_cd_newstate): Don't look at
36449         opr.ctx_type.
36450
36451 2008-05-14  Bruno Haible  <bruno@clisp.org>
36452
36453         Help GCC to do better code generation.
36454         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
36455         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
36456         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
36457         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
36458         Declare with attribute 'malloc' if supported.
36459
36460 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
36461
36462         use "echo STR|wc -c" rather than unportable "expr length STR"
36463         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
36464         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
36465
36466 2008-05-14  Jim Meyering  <meyering@redhat.com>
36467
36468         use dd ibs=$n count=1 ... rather than less-portable head -c$n
36469         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
36470         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
36471         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
36472         via Collin Lasse.
36473
36474 2008-05-14  Eric Blake  <ebb9@byu.net>
36475
36476         Avoid quadratic growth in gl_LIBSOURCES.
36477         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
36478         Suggested by Bruno Haible.
36479
36480         Test xmemdup0.
36481         * modules/xmemdup0-tests: New file.
36482         * tests/test-xmemdup0.c: Likewise.
36483
36484 2008-05-13  Eric Blake  <ebb9@byu.net>
36485
36486         Split xmemdup0 into its own module.
36487         * modules/xmemdup0: New file.
36488         * lib/xmemdup0.h: Likewise.
36489         * lib/xmemdup0.c: Likewise.
36490         * MODULES.html.sh (Memory management functions): Add xmemdup0.
36491         * lib/xalloc.h (xmemdup0): Remove.
36492         * lib/xmalloc.c (xmemdup0): Likewise.
36493
36494 2008-05-13  Eric Blake  <ebb9@byu.net>
36495             Bruno Haible  <bruno@clisp.org>
36496
36497         Reduce number of forks required during autoconf.
36498         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
36499         and gl_LIBSOURCES_DIR.
36500         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
36501         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
36502         m4_syscmd per file.
36503         <m4_foreach_w>: Move...
36504         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
36505
36506 2008-05-13  Eric Blake  <ebb9@byu.net>
36507
36508         * gnulib-tool: Fix various comment typos.
36509
36510 2008-05-12  Bruno Haible  <bruno@clisp.org>
36511
36512         Tailor the linebreaking algorithm.
36513         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
36514
36515 2008-05-12  Bruno Haible  <bruno@clisp.org>
36516
36517         Update to Unicode 5.0.0.
36518         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36519         LBP_JV, LBP_JT. Redistribute values.
36520         (unilbrk_table): Change size.
36521         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
36522         Unicode TR#14 rev. 22.
36523         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36524         LBP_JV, LBP_JT. Redistribute values.
36525         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
36526         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
36527         Update.
36528         * lib/unilbrk/lbrkprop1.h: Regenerated.
36529         * lib/unilbrk/lbrkprop2.h: Regenerated.
36530         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
36531         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
36532         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
36533         Likewise.
36534         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
36535         Likewise.
36536         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
36537         result.
36538         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
36539         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
36540         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
36541         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
36542         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
36543         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
36544
36545 2008-05-11  Bruno Haible  <bruno@clisp.org>
36546
36547         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
36548
36549 2008-05-11  Bruno Haible  <bruno@clisp.org>
36550
36551         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
36552         * modules/unilbrk/gen-lbrk: New file.
36553
36554 2008-05-11  Bruno Haible  <bruno@clisp.org>
36555
36556         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
36557         * m4/sha512.m4 (gl_SHA512): Likewise.
36558
36559 2008-05-11  Jim Meyering  <meyering@redhat.com>
36560
36561         New modules: crypto/sha256, crypto/sha512 (from coreutils)
36562         * modules/crypto/sha256: New file.
36563         * modules/crypto/sha512: Likewise.
36564         * lib/sha256.c: Likewise.
36565         * lib/sha256.h: Likewise.
36566         * lib/sha512.c: Likewise.
36567         * lib/sha512.h: Likewise.
36568         * lib/u64.h: Likewise.
36569         * m4/sha256.m4: Likewise.
36570         * m4/sha512.m4: Likewise.
36571         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
36572
36573 2008-05-10  Bruno Haible  <bruno@clisp.org>
36574
36575         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
36576         (Input/Output <stdio.h>): Add xprintf.
36577         (Signal handling <signal.h>): Add strsignal.
36578         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
36579         (Core language properties): Add func.
36580         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
36581         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
36582         strings.
36583         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
36584         (Input/output): New section.
36585         (File system functions): Add openat-die, stat-macros.
36586         (Networking functions): Add sockets.
36587         (Unicode string functions): Add unictype/*.
36588         (Support for building libraries and executables): Add gperf.
36589         (Support for building documentation): Add agpl-3.0.
36590         (Misc): Add nocrash.
36591
36592 2008-05-10  Bruno Haible  <bruno@clisp.org>
36593
36594         * modules/unictype/gen-ctype: New file.
36595
36596 2008-05-10  Jim Meyering  <meyering@redhat.com>
36597
36598         Make chdir-safer.c more efficient on a system with no symlinks.
36599         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
36600         also if ELOOP is zero.  Suggested by Bruno Haible.
36601
36602         Make chdir-safer.c slightly safer.
36603         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
36604         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
36605
36606         Avoid compile failure on systems without ELOOP (like mingw).
36607         * lib/chdir-safer.c (ELOOP): Define if not already defined.
36608         Reported by Bruno Haible.
36609
36610 2008-05-10  Bruno Haible  <bruno@clisp.org>
36611
36612         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
36613         (is_utf8_encoding): Use a case-insensitive comparison.
36614         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
36615         streq.
36616
36617 2008-05-10  Bruno Haible  <bruno@clisp.org>
36618
36619         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
36620         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
36621         * lib/unilbrk/ulc-common.h (iconv_string_length,
36622         iconv_string_keeping_offsets): Remove declarations.
36623         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
36624         Don't include <iconv.h>, streq.h, xsize.h.
36625         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
36626         conversion.
36627         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
36628         <iconv.h>, streq.h, xsize.h.
36629         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
36630         conversion.
36631         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
36632         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
36633         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
36634         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
36635
36636 2008-05-10  Bruno Haible  <bruno@clisp.org>
36637
36638         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
36639         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
36640
36641         * modules/unilbrk/u32-width-linebreaks-tests: New file.
36642         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
36643
36644         * modules/unilbrk/u16-width-linebreaks-tests: New file.
36645         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
36646
36647         * modules/unilbrk/u8-width-linebreaks-tests: New file.
36648         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
36649
36650         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
36651         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
36652
36653         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
36654         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
36655
36656         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
36657         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
36658
36659         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
36660         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
36661
36662 2008-05-10  Bruno Haible  <bruno@clisp.org>
36663
36664         Split up 'linebreak' module.
36665         * lib/unilbrk.h: New file, based on lib/linebreak.h.
36666         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
36667         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
36668         modifications.
36669         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
36670         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
36671         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
36672         lib/linebreak.c.
36673         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
36674         lib/linebreak.c.
36675         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
36676         lib/linebreak.c.
36677         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
36678         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
36679         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
36680         lib/linebreak.c.
36681         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
36682         lib/linebreak.c.
36683         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
36684         lib/linebreak.c.
36685         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
36686         lib/linebreak.c.
36687         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
36688         lib/linebreak.c.
36689         * modules/unilbrk/base: New file.
36690         * modules/unilbrk/tables: New file.
36691         * modules/unilbrk/u8-possible-linebreaks: New file.
36692         * modules/unilbrk/u16-possible-linebreaks: New file.
36693         * modules/unilbrk/u32-possible-linebreaks: New file.
36694         * modules/unilbrk/ulc-common: New file.
36695         * modules/unilbrk/ulc-possible-linebreaks: New file.
36696         * modules/unilbrk/u8-width-linebreaks: New file.
36697         * modules/unilbrk/u16-width-linebreaks: New file.
36698         * modules/unilbrk/u32-width-linebreaks: New file.
36699         * modules/unilbrk/ulc-width-linebreaks: New file.
36700         * lib/linebreak.h: Remove file.
36701         * lib/linebreak.c: Remove file.
36702         * m4/linebreak.m4: Remove file.
36703         * modules/linebreak: Remove file.
36704         * NEWS: Mention the changes.
36705
36706 2008-05-09  Eric Blake  <ebb9@byu.net>
36707
36708         Add xmemdup0.
36709         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
36710         implementation.
36711         * lib/xmalloc.c (xmemdup0): New C implementation.
36712
36713 2008-05-08  Bruno Haible  <bruno@clisp.org>
36714
36715         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
36716
36717 2008-05-07  Eric Blake  <ebb9@byu.net>
36718
36719         Support cross-compilation of <wctype.h>.
36720         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
36721         AC_CACHE_CHECK.
36722
36723 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
36724
36725         * build-aux/vc-list-files: Add support for bzr.
36726
36727 2008-05-03  Jim Meyering  <meyering@redhat.com>
36728
36729         avoid failed assertion with tight malloc
36730         * tests/test-getndelim2.c: Correct an off-by-one assertion.
36731
36732 2008-05-03  Simon Josefsson  <simon@josefsson.org>
36733
36734         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
36735         are needed from arpa/inet.h.
36736         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
36737         Reported by Bruno Haible.
36738
36739 2008-05-02  Jim Meyering  <meyering@redhat.com>
36740
36741         avoid compilation error on FreeBSD 6
36742         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
36743
36744 2008-05-01  Jim Meyering  <meyering@redhat.com>
36745
36746         useless-if-before-free: correct --help's exit status description
36747         * build-aux/useless-if-before-free (usage): Like grep, exit 0
36748         for one or more matches, etc.  Reported by Bruno Haible.
36749
36750         vc-list-files: make the stand-alone gnulib test work
36751         * modules/vc-list-files-tests (configure.ac):
36752         Define and AC_SUBST abs_aux_dir.
36753         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
36754         $(abs_top_srcdir) to each script and having each of them
36755         duplicate the work of setting PATH, set PATH here, using
36756         the new variable, abs_aux_dir instead.
36757         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
36758         * tests/test-vc-list-files-git.sh: Likewise.
36759         Reported by Bruno Haible.
36760
36761 2008-05-01  Bruno Haible  <bruno@clisp.org>
36762
36763         * lib/getndelim2.c (getndelim2): Fix newsize computation during
36764         reallocation. Rename 'done' to 'found_delimiter'.
36765
36766 2008-05-01  Jim Meyering  <meyering@redhat.com>
36767
36768         vc-list-files: accommodate /bin/sh like the one from Solaris 10
36769         * build-aux/vc-list-files: Use `...`, not $(...).
36770
36771 2008-04-30  Jim Meyering  <meyering@redhat.com>
36772
36773         add tests for vc-list-files
36774         * modules/vc-list-files-tests: New module.
36775         * tests/test-vc-list-files-cvs.sh: New file.
36776         * tests/test-vc-list-files-git.sh: New file.
36777
36778         avoid a warning from gcc
36779         * lib/getndelim2.c (IF_LINT): Define.
36780         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
36781
36782         vc-list-files: work properly with build-aux/cvsu, too
36783         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
36784         to all cvs-based clauses.
36785
36786         vc-list-files: work properly in the CVS+awk case, too
36787         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
36788
36789         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
36790         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
36791         take more than one file argument, so .  Add quotes, just in case $dir
36792         ever contains a shell meta-character.  Prompted by Soren Hansen in
36793         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
36794
36795 2008-04-29  Eric Blake  <ebb9@byu.net>
36796
36797         Optimize getndelim2 to use block operations when possible.
36798         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
36799         freadseek, and memchr2.
36800         * lib/getndelim2.c (getndelim2): Use them for block reads.
36801
36802 2008-04-29  Bruno Haible  <bruno@clisp.org>
36803
36804         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
36805         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36806         * modules/inet_ntop (Depends-on): Add extensions.
36807         * modules/inet_pton (Depends-on): Likewise.
36808         Reported by Simon Josefsson.
36809
36810 2008-04-29  Jim Meyering  <meyering@redhat.com>
36811
36812         When the is more than one match in a block, match all of them.
36813         * build-aux/useless-if-before-free: Iterate through each block
36814         until there are no more matches.
36815
36816         Fix broken useless-if-before-free script.
36817         * build-aux/useless-if-before-free: Fix typo: missing "?" after
36818         the expression to match cast of argument to free-like function.
36819
36820 2008-04-29  Eric Blake  <ebb9@byu.net>
36821
36822         Use new header.
36823         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
36824
36825 2008-04-29  Jim Meyering  <meyering@redhat.com>
36826
36827         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
36828         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
36829         by gnulib to exist and to declare e.g., inet_ntop.
36830         Don't include "inet_ntop.h", now removed.
36831
36832         * m4/arpa_inet_h.m4: Remove trailing blanks.
36833
36834 2008-04-29  Eric Blake  <ebb9@byu.net>
36835
36836         Silence valgrind on safe reads beyond potential array bounds.
36837         * lib/rawmemchr.valgrind: New file.
36838         * lib/strchrnul.valgrind: Likewise.
36839         * modules/rawmemchr (Files): Distribute new file.
36840         * modules/strchrnul (Files): Likewise.
36841         Suggested by Bruno Haible.
36842
36843 2008-04-29  Bruno Haible  <bruno@clisp.org>
36844
36845         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
36846         (inet_ntop, inet_pton): Change portability warning's wording.
36847         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
36848         Invoke gl_CHECK_NEXT_HEADERS.
36849         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
36850         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
36851         set ARPA_INET_H.
36852         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36853         * modules/arpa_inet (Description): No longer only for systems that
36854         lack it.
36855         (Depends-on): Add include_next.
36856         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
36857         HAVE_ARPA_INET_H.
36858
36859 2008-04-29  Jim Meyering  <meyering@redhat.com>
36860
36861         * modules/mkdir (License): Re-license as LGPLv2+.
36862
36863 2008-04-29  Bruno Haible  <bruno@clisp.org>
36864
36865         * modules/rawmemchr (Maintainer): Set to Eric.
36866         * modules/strchrnul (Maintainer): Likewise.
36867
36868 2008-04-29  Simon Josefsson  <simon@josefsson.org>
36869
36870         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
36871         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
36872
36873         * modules/arpa_inet (arpa/inet.h): Use them.
36874
36875 2008-04-28  Eric Blake  <ebb9@byu.net>
36876
36877         Test getndelim2.
36878         * modules/getndelim2-tests: New file.
36879         * tests/test-getndelim2.c: Likewise.
36880         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
36881         stream.
36882         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
36883
36884         * MODULES.html.sh: Document new module.
36885
36886 2008-04-20  Bruno Haible  <bruno@clisp.org>
36887
36888         * lib/c-stack.c (die): Use raise.
36889         * modules/c-stack (Depends-on): Add raise.
36890
36891 2008-04-28  Bruno Haible  <bruno@clisp.org>
36892
36893         Expect rpmatch to be declared.
36894         * lib/yesno.c (rpmatch): Remove declaration.
36895
36896         Declare rpmatch.
36897         * lib/stdlib.in.h (rpmatch): New declaration.
36898         * lib/rpmatch.c: Include <stdlib.h> first.
36899         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
36900         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
36901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
36902         HAVE_RPMATCH.
36903         * modules/rpmatch (Depends-on): Add stdlib, extensions.
36904         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36905         (Include): Set to <stdlib.h>.
36906         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
36907         HAVE_RPMATCH.
36908         * NEWS: Document the change.
36909
36910 2008-04-28  Bruno Haible  <bruno@clisp.org>
36911
36912         Change rpmatch to use nl_langinfo when appropriate.
36913         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
36914         (N_): New macro.
36915         (localized_pattern): New function/macro.
36916         (try): Remove match, nomatch arguments. Copy the pattern into safe
36917         memory before caching it.
36918         (rpmatch): Use localized_pattern. Add translator comments.
36919         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
36920         Suggested by Eric Blake.
36921         * modules/rpmatch (Depends-on): Add stdbool.
36922
36923 2008-04-28  Eric Blake  <ebb9@byu.net>
36924
36925         Add rawmemchr module, matching glibc.
36926         * modules/string (Makefile.am): New indicator.
36927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
36928         * lib/string.in.h (rawmemchr): Declare when appropriate.
36929         * modules/rawmemchr: New file.
36930         * m4/rawmemchr.m4: Likewise.
36931         * lib/rawmemchr.c: Likewise.
36932         * modules/rawmemchr-tests: Likewise.
36933         * tests/test-rawmemchr.c: Likewise.
36934         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
36935         module.
36936         * modules/strchrnul (Depends-on): Add rawmemchr.
36937         * lib/strchrnul.c (strchrnul): Optimize a corner case.
36938
36939         Whitespace cleanup.
36940         * tests/test-strchrnul.c: Reindent.
36941         * lib/strchrnul.c: Likewise.
36942
36943         Optimize and test strchrnul.
36944         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
36945         * modules/strchrnul-tests: New file.
36946         * tests/test-strchrnul.c: Likewise.
36947
36948         Remove intprops dependency.
36949         * modules/memchr (Depends-on): Remove intprops.
36950         * modules/memrchr (Depends-on): Likewise.
36951         * modules/memchr2 (Depends-on): Likewise.
36952         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
36953         * lib/memrchr.c (__memrchr): Likewise.
36954         * lib/memrchr2.c (memchr2): Likewise.
36955         Reported by Simon Josefsson.
36956
36957 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36958
36959         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
36960         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36961
36962 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36963
36964         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
36965
36966         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
36967
36968         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
36969
36970         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
36971         declarations.
36972         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
36973
36974         * m4/inet_pton.m4: Don't check for header files.
36975
36976         * m4/inet_ntop.m4: Don't check for header files.
36977
36978 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36979
36980         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
36981         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
36982         trigger for cygwin).
36983         Reported by Bruno Haible  <bruno@clisp.org>.
36984
36985 2008-04-28  Bruno Haible  <bruno@clisp.org>
36986
36987         * doc/posix-functions/strdup.texi: Mention mingw problem.
36988
36989 2008-04-27  Bruno Haible  <bruno@clisp.org>
36990
36991         * modules/stat-time-tests (Depends-on): Add sleep.
36992         * tests/test-stat-time.c (force_unlink): New function.
36993         (cleanup): Use it.
36994         (test_mtime): Remove the ctime related tests.
36995         (test_ctime): New function, containing the ctime related tests.
36996         (main): Call test_ctime, except on native Windows platforms.
36997
36998 2008-04-27  Bruno Haible  <bruno@clisp.org>
36999
37000         * lib/rpmatch.c (rpmatch): Add some comments.
37001         Reported by James Youngman <jay@gnu.org>.
37002
37003 2008-04-27  Bruno Haible  <bruno@clisp.org>
37004
37005         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
37006         quiet NaNs.
37007
37008 2008-04-27  Bruno Haible  <bruno@clisp.org>
37009
37010         Make test-yesno.sh work on mingw.
37011         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
37012         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
37013         (main): Set stdin to binary mode.
37014         * modules/yesno-tests (Depends-on): Add binary-io.
37015
37016 2008-04-27  Bruno Haible  <bruno@clisp.org>
37017
37018         Fix 'isfinite' on x86, x86_64, ia64 platforms.
37019         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
37020         argument that lie outside the IEEE 854 domain.
37021         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
37022         (gl_ISFINITE): Use it.
37023         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
37024
37025 2008-04-27  Bruno Haible  <bruno@clisp.org>
37026
37027         Allow local renaming in config.h.
37028         * lib/memrchr.c (memrchr): Don't undefine outside libc.
37029
37030 2008-04-27  Bruno Haible  <bruno@clisp.org>
37031
37032         * lib/memchr.c (__memchr): Change type of 'i'.
37033         * lib/memchr2.c (memchr2): Likewise.
37034
37035 2008-04-26  Eric Blake  <ebb9@byu.net>
37036         and Bruno Haible  <bruno@clisp.org>
37037
37038         Optimize and test memrchr.
37039         * modules/memrchr (Depends-on): Add intprops.
37040         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
37041         * modules/memrchr-tests: New file.
37042         * tests/test-memrchr.c: New file.
37043
37044 2008-04-26  Bruno Haible  <bruno@clisp.org>
37045
37046         Add tentative support for DragonFly BSD.
37047         * lib/stdio-impl.h: Add macros for DragonFly BSD.
37048         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
37049         fp.
37050         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37051         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
37052         * lib/fpurge.c (fpurge): Likewise.
37053         * lib/freadable.c (freaadable): Likewise.
37054         * lib/freadahead.c (freadahead): Likewise.
37055         * lib/freading.c (freading): Likewise.
37056         * lib/freadptr.c (freadptr): Likewise.
37057         * lib/freadseek.c (freadptrinc): Likewise.
37058         * lib/fseeko.c (fseeko): Likewise.
37059         * lib/fseterr.c (fseterr): Likewise.
37060         * lib/fwritable.c (fwritable): Likewise.
37061         * lib/fwriting.c (fwriting): Likewise.
37062
37063 2008-04-26  Bruno Haible  <bruno@clisp.org>
37064
37065         * lib/stdio-impl.h: New file.
37066         * lib/fbufmode.c: Include stdio-impl.h.
37067         (fbufmode): Use fp_, remove redundant #defines.
37068         * lib/fflush.c: Include stdio-impl.h.
37069         (clear_ungetc_buffer): Remove redundant #defines.
37070         * lib/fpurge.c: Include stdio-impl.h.
37071         (fpurge): Remove redundant #defines.
37072         * lib/freadable.c: Include stdio-impl.h.
37073         (freadable): Remove redundant #defines.
37074         * lib/freadahead.c: Include stdio-impl.h.
37075         (freadahead): Remove redundant #defines.
37076         * lib/freading.c: Include stdio-impl.h.
37077         (freading): Remove redundant #defines.
37078         * lib/freadptr.c: Include stdio-impl.h.
37079         (freadptr): Remove redundant #defines.
37080         * lib/freadseek.c: Include stdio-impl.h.
37081         (freadptrinc): Remove redundant #defines.
37082         * lib/fseeko.c: Include stdio-impl.h.
37083         (rpl_fseeko): Remove redundant #defines.
37084         * lib/fseterr.c: Include stdio-impl.h.
37085         (fseterr): Remove redundant #defines.
37086         * lib/fwritable.c: Include stdio-impl.h.
37087         (fwritable: Remove redundant #defines.
37088         * lib/fwriting.c: Include stdio-impl.h.
37089         (fwriting): Remove redundant #defines.
37090         * modules/fbufmode (Files): Add lib/stdio-impl.h.
37091         * modules/fflush (Files): Likewise.
37092         * modules/fpurge (Files): Likewise.
37093         * modules/freadable (Files): Likewise.
37094         * modules/freadahead (Files): Likewise.
37095         * modules/freading (Files): Likewise.
37096         * modules/freadptr (Files): Likewise.
37097         * modules/freadseek (Files): Likewise.
37098         * modules/fseeko (Files): Likewise.
37099         * modules/fseterr (Files): Likewise.
37100         * modules/fwritable (Files): Likewise.
37101         * modules/fwriting (Files): Likewise.
37102
37103 2008-04-26  Bruno Haible  <bruno@clisp.org>
37104
37105         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37106         restore_seek_optimization, update_fpos_cache): New functions, extracted
37107         from rpl_fflush.
37108         (rpl_fflush): Use them.
37109         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
37110         (gl_REPLACE_FFLUSH): Use it.
37111
37112 2008-04-26  Bruno Haible  <bruno@clisp.org>
37113
37114         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
37115         on Solaris.
37116         * tests/test-xstrtoimax.sh: Likewise.
37117         * tests/test-xstrtoumax.sh: Likewise.
37118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37119
37120 2008-04-26  Bruno Haible  <bruno@clisp.org>
37121
37122         * modules/memchr-tests: New file.
37123         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
37124
37125 2008-04-26  Eric Blake  <ebb9@byu.net>
37126             Bruno Haible  <bruno@clisp.org>
37127
37128         * lib/memchr.c: Include intprops.h.
37129         (__memchr): Optimize parallel detection of matching bytes. Rename local
37130         variables. Add explanatory comments.
37131
37132 2008-04-26  Bruno Haible  <bruno@clisp.org>
37133
37134         Fix module 'memchr', broken since 2000-10-28.
37135         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
37136
37137 2008-04-26  Bruno Haible  <bruno@clisp.org>
37138
37139         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
37140         comments.
37141
37142 2008-04-25  Eric Blake  <ebb9@byu.net>
37143
37144         Use native fstatat on cygwin 1.7.0.
37145         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
37146         first.
37147
37148 2008-04-23  Eric Blake  <ebb9@byu.net>
37149
37150         Improve memchr2 performance.
37151         * lib/memchr2.c (memchr2): Further optimize parallel detection of
37152         NUL bytes.
37153         * modules/memchr2 (Depends-on): Use intprops.h.
37154
37155 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37156
37157         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
37158         an inline function instead of a CPP macro.  Patch by Ben Pfaff
37159         <blp@cs.stanford.edu>.
37160
37161 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37162
37163         * lib/arpa_inet.in.h: New file.
37164
37165         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
37166         (Makefile.am): Sed in substitute header file.
37167
37168         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
37169         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
37170
37171         * modules/inet_ntop (configure.ac): Use
37172         gl_ARPA_INET_MODULE_INDICATOR.
37173
37174         * modules/inet_pton (configure.ac): Use
37175         gl_ARPA_INET_MODULE_INDICATOR.
37176
37177 2008-04-22  Jim Meyering  <meyering@redhat.com>
37178
37179         * modules/verify (License): Re-license as LGPLv2+.
37180
37181 2008-04-22  Simon Josefsson  <simon@josefsson.org>
37182
37183         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
37184         parameter to void* as per POSIX standard (MinGW uses char*).
37185
37186 2008-04-21  Bruno Haible  <bruno@clisp.org>
37187
37188         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37189         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
37190         Define to replacements if REPLACE_ISWCNTRL is 1.
37191         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
37192         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
37193         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
37194         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
37195         what it fixes.
37196         * doc/posix-functions/iswalpha.texi: Likewise.
37197         * doc/posix-functions/iswblank.texi: Likewise.
37198         * doc/posix-functions/iswcntrl.texi: Likewise.
37199         * doc/posix-functions/iswdigit.texi: Likewise.
37200         * doc/posix-functions/iswgraph.texi: Likewise.
37201         * doc/posix-functions/iswlower.texi: Likewise.
37202         * doc/posix-functions/iswprint.texi: Likewise.
37203         * doc/posix-functions/iswpunct.texi: Likewise.
37204         * doc/posix-functions/iswspace.texi: Likewise.
37205         * doc/posix-functions/iswupper.texi: Likewise.
37206         * doc/posix-functions/iswxdigit.texi: Likewise.
37207         Reported by Alain Guibert.
37208
37209 2008-04-21  Bruno Haible  <bruno@clisp.org>
37210
37211         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
37212         Patch by Alain Guibert.
37213
37214 2008-04-21  Bruno Haible  <bruno@clisp.org>
37215
37216         Fix test failures on mingw.
37217         * tests/test-xstrtol.c (print_no_progname): New function.
37218         (main): Install it in error_print_progname hook.
37219         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
37220         * tests/test-xstrtoimax.sh: Likewise.
37221         * tests/test-xstrtoumax.sh: Likewise.
37222
37223 2008-04-21  Bruno Haible  <bruno@clisp.org>
37224
37225         Fix test failure on mingw.
37226         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
37227
37228 2008-04-21  Bruno Haible  <bruno@clisp.org>
37229
37230         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
37231         Actually assign a value.
37232
37233 2008-04-20  Bruno Haible  <bruno@clisp.org>
37234
37235         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
37236         take 2.
37237         * lib/canonicalize.c (canonicalize_file_name): Elide if the
37238         'canonicalize-lgpl' module is also used.
37239         * lib/canonicalize-lgpl.c: Undo last change.
37240         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
37241
37242 2008-04-20  Bruno Haible  <bruno@clisp.org>
37243
37244         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
37245         config.h. Provide _mkdir based fallback for mingw.
37246         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
37247         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
37248         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
37249         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
37250         rather than defining mkdir in config.h.
37251         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
37252         (gl_SYS_STAT_H_DEFAULTS): New macro.
37253         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
37254         HAVE_IO_H any more.
37255         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
37256         HAVE_DECL_MKDIR and HAVE_IO_H.
37257
37258 2008-04-20  Bruno Haible  <bruno@clisp.org>
37259
37260         * lib/isapipe.c: Port to native Windows platforms.
37261
37262 2008-04-20  Bruno Haible  <bruno@clisp.org>
37263
37264         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
37265
37266 2008-04-21  Eric Blake  <ebb9@byu.net>
37267
37268         Work around preprocessors that don't handle UINTMAX_MAX.
37269         * lib/memchr2.c (memchr2): Avoid embedded #if.
37270         Reported by Alain Guibert, fix suggested by Bruno Haible.
37271
37272 2008-04-21  Simon Josefsson  <simon@josefsson.org>
37273
37274         * doc/posix-functions/strftime.texi (strftime): Explain better
37275         Windows incompatibility.  Suggested by Micah Cowan
37276         <micah@cowan.name>.
37277
37278 2008-04-20  Bruno Haible  <bruno@clisp.org>
37279
37280         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
37281         unistr/u8-mblen.
37282
37283 2008-04-20  Bruno Haible  <bruno@clisp.org>
37284
37285         Fix test failure on platforms with non-GNU iconv.
37286         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
37287         (U_TO_U8): Use it, rather than u16_to_u8.
37288         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
37289         units at the end of the input string.
37290         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
37291
37292 2008-04-20  Bruno Haible  <bruno@clisp.org>
37293
37294         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
37295         when the resulting length is 0.
37296         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
37297
37298 2008-04-20  Bruno Haible  <bruno@clisp.org>
37299
37300         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
37301         works.
37302         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
37303
37304 2008-04-20  Bruno Haible  <bruno@clisp.org>
37305
37306         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
37307         * modules/tsearch-tests (configure.ac): Test for initstate function.
37308
37309 2008-04-20  Bruno Haible  <bruno@clisp.org>
37310
37311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
37312         for nlink_t if missing.
37313         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
37314
37315 2008-04-19  Bruno Haible  <bruno@clisp.org>
37316
37317         Work around snprintf bug on Linux libc5.
37318         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
37319         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37320         gl_SNPRINTF_SIZE1.
37321         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37322         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
37323         that test failed.
37324         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
37325         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
37326         * modules/snprintf (Files): Add m4/printf.m4.
37327         * modules/vsnprintf (Files): Likewise.
37328         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
37329         * doc/posix-functions/vsnprintf.texi: Likewise.
37330
37331 2008-04-19  Bruno Haible  <bruno@clisp.org>
37332
37333         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
37334         from 0.0058 to less than 10^-7.
37335
37336 2008-04-19  Bruno Haible  <bruno@clisp.org>
37337
37338         Fix rounding when a precision is given.
37339         * lib/vasnprintf.c (is_borderline): New function.
37340         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
37341         9...9x.
37342         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
37343         %e, %g.
37344         * tests/test-vasprintf-posix.c (test_function): Likewise.
37345         * tests/test-snprintf-posix.h (test_function): Likewise.
37346         * tests/test-sprintf-posix.h (test_function): Likewise.
37347         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
37348         * tests/test-printf-posix.h (test_function): Likewise.
37349         * tests/test-printf-posix.output: Update.
37350         Reported by John Darrington <john@darrington.wattle.id.au> via
37351         Ben Pfaff <blp@cs.stanford.edu>.
37352
37353 2008-04-18  Simon Josefsson  <simon@josefsson.org>
37354
37355         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
37356         Suggested by Bruno Haible <bruno@clisp.org>.
37357
37358 2008-04-17  Bruno Haible  <bruno@clisp.org>
37359
37360         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
37361         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
37362         implementation.
37363         Patch by Bruce Merry <bmerry@gmail.com>.
37364
37365 2008-04-17  Simon Josefsson  <simon@josefsson.org>
37366
37367         * doc/posix-functions/strftime.texi (strftime): Mention that %e
37368         doesn't work under Windows.
37369
37370 2008-04-16  Bruno Haible  <bruno@clisp.org>
37371
37372         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
37373         New macros.
37374         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
37375         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
37376         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
37377         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
37378         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
37379         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
37380         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
37381         macros.
37382         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
37383         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
37384         Northern Sotho, Uighur.
37385
37386 2008-04-16  Bruno Haible  <bruno@clisp.org>
37387
37388         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
37389         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
37390         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
37391         Reported by Daniel Bergström <daniel@octocode.com>.
37392
37393 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
37394             Bruno Haible  <bruno@clisp.org>
37395
37396         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
37397         function.
37398         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
37399         New functions, mostly extracted from gl_locale_name_default.
37400         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
37401
37402 2008-04-16  Eric Blake  <ebb9@byu.net>
37403
37404         Adjust strtod detection to catch glibc 2.7 bug.
37405         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
37406         Reported by John Gatewood Ham.
37407
37408 2008-04-16  Bruno Haible  <bruno@clisp.org>
37409
37410         Add tentative support for Linux libc5.
37411         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
37412         * lib/fpurge.c (fpurge): Likewise.
37413         * lib/freadable.c (freadable): Likewise.
37414         * lib/freadahead.c (freadahead): Likewise.
37415         * lib/freading.c (freading): Likewise.
37416         * lib/freadptr.c (freadptr): Likewise.
37417         * lib/freadseek.c (freadptrinc): Likewise.
37418         * lib/fseeko.c (rpl_fseeko): Likewise.
37419         * lib/fseterr.c (fseterr): Likewise.
37420         * lib/fwritable.c (fwritable): Likewise.
37421         * lib/fwriting.c (fwriting): Likewise.
37422         Reported by Alain Guibert <alguibert+bts@free.fr>.
37423
37424 2008-04-15  Bruno Haible  <bruno@clisp.org>
37425
37426         * modules/mathl (configure.ac): Define module indicator.
37427
37428 2008-04-15  Bruno Haible  <bruno@clisp.org>
37429
37430         * lib/logl.c (logl): Remove unused variables.
37431
37432 2008-04-15  Bruno Haible  <bruno@clisp.org>
37433
37434         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
37435         fails.
37436
37437 2008-04-15  Bruno Haible  <bruno@clisp.org>
37438
37439         * lib/trim.c (trim2): Fix argument of isspace() macro.
37440
37441 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
37442
37443         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
37444         to 0.
37445         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
37446
37447 2008-04-14  Bruno Haible  <bruno@clisp.org>
37448
37449         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
37450         AC_LANG_PROGRAM argument.
37451         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
37452         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
37453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37454         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37455         * m4/math_h.m4 (gl_MATH_H): Likewise.
37456         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
37457         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37458         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37459         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
37460         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37461         * m4/regex.m4 (gl_REGEX): Likewise.
37462         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
37463         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
37464         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37465         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
37466         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37467         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37468         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37469         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37470
37471 2008-04-14  Jim Meyering  <meyering@redhat.com>
37472
37473         test-strtod: fix typos: s/abs/fabs/
37474         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
37475
37476 2008-04-13  Bruno Haible  <bruno@clisp.org>
37477
37478         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
37479         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
37480         module is also used and while not building the reloc-wrapper.
37481
37482 2008-04-13  Bruno Haible  <bruno@clisp.org>
37483
37484         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
37485
37486 2008-04-13  Bruno Haible  <bruno@clisp.org>
37487
37488         Fix AIX compilation failure introduced on 2008-04-02.
37489         * tests/test-frexp.c (exp): Undefine before redefining.
37490         * tests/test-frexpl.c (exp): Likewise.
37491
37492 2008-04-13  Bruno Haible  <bruno@clisp.org>
37493
37494         Work around a HP-UX stdio bug.
37495         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
37496         * tests/test-ftello.c (main): Likewise.
37497         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
37498         * doc/posix-functions/ftello.texi: Likewise.
37499
37500 2008-04-13  Bruno Haible  <bruno@clisp.org>
37501
37502         Make test-signbit pass on HP-UX/hppa.
37503         * tests/test-signbit.c (minus_zerol): New variable.
37504         (test_signbitl): Use it.
37505
37506 2008-04-13  Bruno Haible  <bruno@clisp.org>
37507
37508         Make truncl work on OSF/1 4.0.
37509         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
37510         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37511         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
37513         HAVE_DECL_TRUNCL.
37514         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
37515         HAVE_DECL_TRUNCL.
37516         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
37517
37518 2008-04-13  Bruno Haible  <bruno@clisp.org>
37519
37520         * lib/unictype.h: Remove trailing comma from enumeration definitions.
37521
37522 2008-04-13  Bruno Haible  <bruno@clisp.org>
37523
37524         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
37525         expression, so as to avoid HP-UX 11 cc compiler bug.
37526
37527 2008-04-13  Bruno Haible  <bruno@clisp.org>
37528
37529         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
37530
37531 2008-04-13  Bruno Haible  <bruno@clisp.org>
37532
37533         * lib/git-merge-changelog.c: Remove empty declaration outside of
37534         functions.
37535
37536 2008-04-13  Bruno Haible  <bruno@clisp.org>
37537
37538         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
37539
37540 2008-04-13  Bruno Haible  <bruno@clisp.org>
37541
37542         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
37543         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
37544         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
37545         also if it exists but lacks definitions of the SHUT_* macros.
37546         * modules/sys_socket (Description): Update.
37547         Reported by Elbert Pol <e.pol@chello.nl>.
37548
37549 2008-04-13  Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/localcharset.c (OS2): Don't redefine if already defined.
37552         Reported by Elbert Pol <e.pol@chello.nl>.
37553
37554 2008-04-13  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/binary-io.h [__EMX__]: Include <io.h>.
37557         Reported by Elbert Pol <e.pol@chello.nl>.
37558
37559 2008-04-12  Bruno Haible  <bruno@clisp.org>
37560
37561         * lib/fpucw.h: Enable the definitions also for x86_64.
37562         Needed for NetBSD/x86_64.
37563         Reported by Thomas Klausner <tk@giga.or.at>.
37564
37565 2008-04-12  Bruno Haible  <bruno@clisp.org>
37566
37567         * tests/test-strtod.c: Include isnand.h.
37568         (main): Use isnand instead of isnan.
37569         Reported by Jim Meyering.
37570
37571 2008-04-12  Bruno Haible  <bruno@clisp.org>
37572
37573         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
37574         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37575
37576 2008-04-12  Jim Meyering  <meyering@redhat.com>
37577
37578         * m4/math_h.m4 (gl_MATH_H): Fix typos.
37579
37580 2008-04-12  Bruno Haible  <bruno@clisp.org>
37581
37582         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
37583         Reported by Elbert Pol <e.pol@chello.nl>.
37584
37585 2008-04-12  Eric Blake  <ebb9@byu.net>
37586
37587         Work around Solaris 10 math.h bug.
37588         * m4/math_h.m4 (gl_MATH_H): Check for bug.
37589         (gl_MATH_H_DEFAULTS): Set up default.
37590         * modules/math (Makefile.am): Replace new indicators.
37591         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
37592         * tests/test-math.c (main): Test this.
37593         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
37594         * doc/posix-headers/math.texi (math.h): Mention bug.
37595         Reported by Nelson H. F. Beebe and Jim Meyering.
37596
37597 2008-04-11  Bruno Haible  <bruno@clisp.org>
37598
37599         Adapt to future versions of Apple GCC.
37600         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
37601         Reported by Peter O'Gorman <peter@pogma.com>.
37602
37603 2008-04-11  Bruno Haible  <bruno@clisp.org>
37604
37605         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
37606
37607 2008-04-11  Bruno Haible  <bruno@clisp.org>
37608
37609         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
37610
37611         * modules/getaddrinfo-tests (Makefile.am): Define
37612         test_getaddrinfo_LDADD.
37613
37614 2008-04-11  Bruno Haible  <bruno@clisp.org>
37615
37616         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
37617         (init): Fix syntax error.
37618         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
37619         is declared.
37620
37621 2008-04-11  Bruno Haible  <bruno@clisp.org>
37622
37623         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
37624         * modules/glob (Depends-on): Add stdbool.
37625
37626 2008-04-11  Bruno Haible  <bruno@clisp.org>
37627
37628         * lib/trim.c: Include <string.h>.
37629
37630 2008-04-11  Eric Blake  <ebb9@byu.net>
37631
37632         Avoid compile failure on OS/2.
37633         * lib/regex_internal.h (internal_function): Disable optimization
37634         on OS/2 (__EMX__), where it caused compiler error.
37635         Reported by Elbert Pol.
37636
37637 2008-04-11  Bruno Haible  <bruno@clisp.org>
37638
37639         Flush the standard error stream before aborting. Needed on mingw.
37640         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
37641         * tests/test-array_list.c (ASSERT): Likewise.
37642         * tests/test-array_oset.c (ASSERT): Likewise.
37643         * tests/test-avltree_list.c (ASSERT): Likewise.
37644         * tests/test-avltree_oset.c (ASSERT): Likewise.
37645         * tests/test-avltreehash_list.c (ASSERT): Likewise.
37646         * tests/test-binary-io.c (ASSERT): Likewise.
37647         * tests/test-byteswap.c (ASSERT): Likewise.
37648         * tests/test-c-ctype.c (ASSERT): Likewise.
37649         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
37650         * tests/test-c-strcasestr.c (ASSERT): Likewise.
37651         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
37652         * tests/test-c-strstr.c (ASSERT): Likewise.
37653         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
37654         * tests/test-canonicalize.c (ASSERT): Likewise.
37655         * tests/test-carray_list.c (ASSERT): Likewise.
37656         * tests/test-ceilf1.c (ASSERT): Likewise.
37657         * tests/test-ceilf2.c (ASSERT): Likewise.
37658         * tests/test-ceill.c (ASSERT): Likewise.
37659         * tests/test-count-one-bits.c (ASSERT): Likewise.
37660         * tests/test-fbufmode.c (ASSERT): Likewise.
37661         * tests/test-fflush2.c (ASSERT): Likewise.
37662         * tests/test-floorf1.c (ASSERT): Likewise.
37663         * tests/test-floorf2.c (ASSERT): Likewise.
37664         * tests/test-floorl.c (ASSERT): Likewise.
37665         * tests/test-fopen.c (ASSERT): Likewise.
37666         * tests/test-fpending.c (ASSERT): Likewise.
37667         * tests/test-fprintf-posix.c (ASSERT): Likewise.
37668         * tests/test-fpurge.c (ASSERT): Likewise.
37669         * tests/test-freadable.c (ASSERT): Likewise.
37670         * tests/test-freadahead.c (ASSERT): Likewise.
37671         * tests/test-freading.c (ASSERT): Likewise.
37672         * tests/test-freadptr.c (ASSERT): Likewise.
37673         * tests/test-freadptr2.c (ASSERT): Likewise.
37674         * tests/test-freadseek.c (ASSERT): Likewise.
37675         * tests/test-freopen.c (ASSERT): Likewise.
37676         * tests/test-frexp.c (ASSERT): Likewise.
37677         * tests/test-frexpl.c (ASSERT): Likewise.
37678         * tests/test-fseek.c (ASSERT): Likewise.
37679         * tests/test-fseeko.c (ASSERT): Likewise.
37680         * tests/test-fstrcmp.c (ASSERT): Likewise.
37681         * tests/test-ftell.c (ASSERT): Likewise.
37682         * tests/test-ftello.c (ASSERT): Likewise.
37683         * tests/test-func.c (ASSERT): Likewise.
37684         * tests/test-fwritable.c (ASSERT): Likewise.
37685         * tests/test-fwriting.c (ASSERT): Likewise.
37686         * tests/test-getdelim.c (ASSERT): Likewise.
37687         * tests/test-getline.c (ASSERT): Likewise.
37688         * tests/test-i-ring.c (ASSERT): Likewise.
37689         * tests/test-iconv-utf.c (ASSERT): Likewise.
37690         * tests/test-iconv.c (ASSERT): Likewise.
37691         * tests/test-isfinite.c (ASSERT): Likewise.
37692         * tests/test-isnand.c (ASSERT): Likewise.
37693         * tests/test-isnanf.c (ASSERT): Likewise.
37694         * tests/test-isnanl.h (ASSERT): Likewise.
37695         * tests/test-ldexpl.c (ASSERT): Likewise.
37696         * tests/test-linked_list.c (ASSERT): Likewise.
37697         * tests/test-linkedhash_list.c (ASSERT): Likewise.
37698         * tests/test-localename.c (ASSERT): Likewise.
37699         * tests/test-lseek.c (ASSERT): Likewise.
37700         * tests/test-mbscasecmp.c (ASSERT): Likewise.
37701         * tests/test-mbscasestr1.c (ASSERT): Likewise.
37702         * tests/test-mbscasestr2.c (ASSERT): Likewise.
37703         * tests/test-mbscasestr3.c (ASSERT): Likewise.
37704         * tests/test-mbscasestr4.c (ASSERT): Likewise.
37705         * tests/test-mbschr.c (ASSERT): Likewise.
37706         * tests/test-mbscspn.c (ASSERT): Likewise.
37707         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
37708         * tests/test-mbspbrk.c (ASSERT): Likewise.
37709         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
37710         * tests/test-mbsrchr.c (ASSERT): Likewise.
37711         * tests/test-mbsspn.c (ASSERT): Likewise.
37712         * tests/test-mbsstr1.c (ASSERT): Likewise.
37713         * tests/test-mbsstr2.c (ASSERT): Likewise.
37714         * tests/test-mbsstr3.c (ASSERT): Likewise.
37715         * tests/test-memchr2.c (ASSERT): Likewise.
37716         * tests/test-memmem.c (ASSERT): Likewise.
37717         * tests/test-open.c (ASSERT): Likewise.
37718         * tests/test-printf-frexp.c (ASSERT): Likewise.
37719         * tests/test-printf-frexpl.c (ASSERT): Likewise.
37720         * tests/test-printf-posix.c (ASSERT): Likewise.
37721         * tests/test-quotearg.c (ASSERT): Likewise.
37722         * tests/test-rbtree_list.c (ASSERT): Likewise.
37723         * tests/test-rbtree_oset.c (ASSERT): Likewise.
37724         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
37725         * tests/test-round1.c (ASSERT): Likewise.
37726         * tests/test-roundf1.c (ASSERT): Likewise.
37727         * tests/test-roundl.c (ASSERT): Likewise.
37728         * tests/test-signbit.c (ASSERT): Likewise.
37729         * tests/test-sleep.c (ASSERT): Likewise.
37730         * tests/test-snprintf-posix.c (ASSERT): Likewise.
37731         * tests/test-snprintf.c (ASSERT): Likewise.
37732         * tests/test-sprintf-posix.c (ASSERT): Likewise.
37733         * tests/test-stat-time.c (ASSERT): Likewise.
37734         * tests/test-strcasestr.c (ASSERT): Likewise.
37735         * tests/test-strerror.c (ASSERT): Likewise.
37736         * tests/test-striconv.c (ASSERT): Likewise.
37737         * tests/test-striconveh.c (ASSERT): Likewise.
37738         * tests/test-striconveha.c (ASSERT): Likewise.
37739         * tests/test-strsignal.c (ASSERT): Likewise.
37740         * tests/test-strstr.c (ASSERT): Likewise.
37741         * tests/test-strtod.c (ASSERT): Likewise.
37742         * tests/test-trunc1.c (ASSERT): Likewise.
37743         * tests/test-trunc2.c (ASSERT): Likewise.
37744         * tests/test-truncf1.c (ASSERT): Likewise.
37745         * tests/test-truncf2.c (ASSERT): Likewise.
37746         * tests/test-truncl.c (ASSERT): Likewise.
37747         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
37748         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
37749         * tests/test-vasnprintf.c (ASSERT): Likewise.
37750         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
37751         * tests/test-vasprintf.c (ASSERT): Likewise.
37752         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
37753         * tests/test-vprintf-posix.c (ASSERT): Likewise.
37754         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
37755         * tests/test-vsnprintf.c (ASSERT): Likewise.
37756         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
37757         * tests/test-wcwidth.c (ASSERT): Likewise.
37758         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
37759         * tests/test-xprintf-posix.c (ASSERT): Likewise.
37760         * tests/test-xvasprintf.c (ASSERT): Likewise.
37761         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
37762         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
37763         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
37764         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
37765         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
37766         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
37767         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
37768         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
37769         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
37770         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
37771         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
37772         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
37773         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
37774         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
37775         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
37776         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
37777         * tests/unictype/test-block_list.c (ASSERT): Likewise.
37778         * tests/unictype/test-block_of.c (ASSERT): Likewise.
37779         * tests/unictype/test-block_test.c (ASSERT): Likewise.
37780         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
37781         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
37782         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
37783         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
37784         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
37785         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
37786         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
37787         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
37788         * tests/unictype/test-combining.c (ASSERT): Likewise.
37789         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
37790         * tests/unictype/test-digit.c (ASSERT): Likewise.
37791         * tests/unictype/test-mirror.c (ASSERT): Likewise.
37792         * tests/unictype/test-numeric.c (ASSERT): Likewise.
37793         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
37794         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
37795         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
37796         * tests/unictype/test-scripts.c (ASSERT): Likewise.
37797         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
37798         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
37799         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
37800         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
37801         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
37802         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
37803         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
37804         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
37805         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
37806         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
37807         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
37808         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
37809         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
37810         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
37811         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
37812         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
37813         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
37814         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
37815         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
37816         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
37817         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
37818         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
37819         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
37820         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
37821         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
37822         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
37823         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
37824         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
37825         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
37826         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
37827         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
37828         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
37829         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
37830         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
37831         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
37832         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
37833         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
37834         Reported by Eric Blake.
37835
37836 2008-04-11  Bruno Haible  <bruno@clisp.org>
37837
37838         * lib/wchar.in.h: Tweak comment.
37839
37840 2008-04-11  Bruno Haible  <bruno@clisp.org>
37841
37842         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
37843         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
37844         gl_COMMON.
37845         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
37846
37847 2008-04-11  Bruno Haible  <bruno@clisp.org>
37848
37849         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
37850
37851 2008-04-11  Simon Josefsson  <simon@josefsson.org>
37852
37853         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
37854         of attempting to use non-existing /dev/*random.  Based on patch
37855         from Adam Strzelecki <ono@java.pl> in
37856         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
37857
37858 2008-04-08  Bruno Haible  <bruno@clisp.org>
37859
37860         Add tentative support for emx+gcc.
37861         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
37862         * lib/fpurge.c (fpurge): Likewise.
37863         * lib/freadable.c (freadable): Likewise.
37864         * lib/freadahead.c (freadahead): Likewise.
37865         * lib/freading.c (freading): Likewise.
37866         * lib/freadptr.c (freadptr): Likewise.
37867         * lib/freadseek.c (freadptrinc): Likewise.
37868         * lib/fseeko.c (rpl_fseeko): Likewise.
37869         * lib/fseterr.c (fseterr): Likewise.
37870         * lib/fwritable.c (fwritable): Likewise.
37871         * lib/fwriting.c (fwriting): Likewise.
37872         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
37873
37874 2008-04-09  Eric Blake  <ebb9@byu.net>
37875
37876         Avoid some autoconf warnings.
37877         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
37878         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
37879         * m4/afs.m4 (gl_AFS): Likewise.
37880         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
37881         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
37882         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37883         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
37884         (gl_INTEGER_TYPE_SUFFIX): Likewise.
37885         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
37886         (AC_CHECK_DECLS_ONCE): Likewise.
37887         Rename file...
37888         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
37889         gnulib-tool requires autoconf 2.59 or better.
37890         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
37891
37892 2008-04-08  Eric Blake  <ebb9@byu.net>
37893
37894         Use 'git describe --match' if present (added in git 1.5.5).
37895         * build-aux/git-version-gen: Limit result to tags that match 'v*'
37896         if possible.
37897
37898 2008-04-08  Bruno Haible  <bruno@clisp.org>
37899
37900         Add tentative support for OpenServer.
37901         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
37902         _ptr, _cnt.
37903         * lib/fpurge.c (fpurge): Likewise.
37904         * lib/freadable.c (freadable): Likewise.
37905         * lib/freadahead.c (freadahead): Likewise.
37906         * lib/freading.c (freading): Likewise.
37907         * lib/freadptr.c (freadptr): Likewise.
37908         * lib/freadseek.c (freadptrinc): Likewise.
37909         * lib/fseeko.c (rpl_fseeko): Likewise.
37910         * lib/fseterr.c (fseterr): Likewise.
37911         * lib/fwritable.c (fwritable): Likewise.
37912         * lib/fwriting.c (fwriting): Likewise.
37913         Reported by Roger Cornelius <rac@tenzing.org> and
37914         Brian K. White <brian@aljex.com>.
37915
37916 2008-04-06  Jim Meyering  <meyering@redhat.com>
37917
37918         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
37919
37920 2008-04-06  Bruno Haible  <bruno@clisp.org>
37921
37922         Avoid possible error with non-ASCII bytes in UTF-8 locales.
37923         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
37924         * tests/test-printf-posix.sh: Likewise.
37925         * tests/test-vfprintf-posix.sh: Likewise.
37926         * tests/test-vprintf-posix.sh: Likewise.
37927         * tests/test-xprintf-posix.sh: Likewise.
37928
37929 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37930
37931         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
37932         hide error from 'ls', needed on OS/2.
37933         Report by Elbert Pol <elbert.pol@gmail.com>.
37934
37935 2008-04-04  Eric Blake  <ebb9@byu.net>
37936
37937         Make test-fseeko.c failures meaningful.
37938         * tests/test-fseeko.c: Print line number on failure.
37939         * tests/test-fseek.c: Likewise.
37940         Reported by Nelson H. F. Beebe.
37941
37942         Improve strtod bug detection check.
37943         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
37944         required for Solaris 10.
37945         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
37946
37947 2008-04-04  Bruno Haible  <bruno@clisp.org>
37948
37949         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
37950         by m4/setenv.m4.
37951
37952 2008-04-03  Eric Blake  <ebb9@byu.net>
37953
37954         Ensure sane .version contents.
37955         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
37956         version string.
37957         * build-aux/git-version-gen: Improve documentation.
37958
37959         Make GNU make output nicer.
37960         * top/GNUmakefile [!_have-Makefile]: Add dependency on
37961         MAKECMDGOALS to enforce message for all command line targets.  Set
37962         srcdir for use in maint.mk.
37963
37964         Another maintainer tweak.
37965         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
37966         a target that regenerates version.
37967
37968 2008-04-03  Jim Meyering  <meyering@redhat.com>
37969
37970         vc-list-files: don't cause coreutils "make po-check" failure
37971         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
37972
37973 2008-04-03  Eric Blake  <ebb9@byu.net>
37974
37975         Allow VPATH usage of vc-list-files.
37976         * build-aux/vc-list-files (scriptversion): Add timestamp.
37977         (options): Add --help, --version, -C.
37978         (CVS): Support installed cvsu.
37979
37980 2008-04-02  Bruno Haible  <bruno@clisp.org>
37981
37982         Avoid some "statement with no effect" warnings from gcc.
37983         * tests/test-wctype.c (main): Explicitly ignore unused values.
37984         Reported by Jim Meyering.
37985
37986 2008-04-02  Jim Meyering  <meyering@redhat.com>
37987
37988         Avoid some warnings from "gcc -Wshadow".
37989         * tests/test-frexp.c (exp): Define to a different identifier.
37990         * tests/test-frexpl.c (exp): Likewise.
37991
37992 2008-04-03  Jim Meyering  <meyering@redhat.com>
37993
37994         bootstrap: remove dangling *.[ch] symlinks from lib
37995         * build-aux/bootstrap [dangling symlink removal]: Move find's
37996         -depth option to precede all others, to avoid a warning.
37997         Remove *.[ch] files too, and from "$source_base" (usually lib/).
37998
37999 2008-04-02  Bruno Haible  <bruno@clisp.org>
38000
38001         Avoid some warnings from "gcc -Wshadow".
38002         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
38003         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
38004         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
38005         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
38006         Reported by Jim Meyering.
38007
38008 2008-04-01  Bruno Haible  <bruno@clisp.org>
38009
38010         Fix test to work on IRIX 6.5 with cc.
38011         * tests/test-math.c (numeric_equal): New function.
38012         (main): Use it.
38013
38014 2008-04-01  Bruno Haible  <bruno@clisp.org>
38015
38016         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
38017
38018 2008-04-01  Bruno Haible  <bruno@clisp.org>
38019
38020         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
38021         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38022         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
38023         (Depends-on): Remove math.
38024
38025         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
38026         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38027         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
38028         (Depends-on): Remove math.
38029
38030         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
38031         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38032         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
38033         (Depends-on): Remove math.
38034         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
38035         (Depends-on): Remove math.
38036
38037         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
38038         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38039         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
38040         (Depends-on): Remove math.
38041         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
38042         (Depends-on): Remove math.
38043
38044         * tests/test-round1.c: Include nan.h.
38045         (main): Use NaNd instead of NAN.
38046         * modules/round-tests (Files): Add tests/nan.h.
38047
38048         * tests/test-trunc1.c: Include nan.h.
38049         (main): Use NaNd instead of NAN.
38050         * modules/trunc-tests (Files): Add tests/nan.h.
38051
38052         * tests/test-roundf1.c: Include nan.h.
38053         (main): Use NaNf instead of NAN.
38054         * modules/roundf-tests (Files): Add tests/nan.h.
38055
38056         * tests/test-truncf1.c: Include nan.h.
38057         (main): Use NaNf instead of NAN.
38058         * modules/truncf-tests (Files): Add tests/nan.h.
38059
38060         * tests/test-ceilf1.c: Include nan.h.
38061         (main): Use NaNf instead of NAN.
38062         * modules/ceilf-tests (Files): Add tests/nan.h.
38063
38064         * tests/test-floorf1.c: Include nan.h.
38065         (main): Use NaNf instead of NAN.
38066         * modules/floorf-tests (Files): Add tests/nan.h.
38067
38068         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
38069         (main): Use NaNf instead of NAN.
38070         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
38071
38072         * tests/test-isnand.c: Include nan.h instead of <math.h>.
38073         (main): Use NaNd instead of NAN.
38074         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
38075
38076         * tests/test-frexp.c: Include nan.h.
38077         (main): Use NaNd instead of NAN.
38078         * modules/frexp-tests (Files): Add tests/nan.h.
38079
38080         * lib/isnan.c: Don't include <math.h>.
38081         (FUNC): Don't use NAN macro.
38082         * modules/isnand-nolibm (Depends-on): Remove math.
38083         * modules/isnanf-nolibm (Depends-on): Remove math.
38084         * modules/isnanl (Depends-on): Remove math.
38085         * modules/isnanl-nolibm (Depends-on): Remove math.
38086
38087         * tests/nan.h: New file.
38088
38089 2008-04-01  Eric Blake  <ebb9@byu.net>
38090
38091         Fix typos.
38092         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
38093         values to be the right type.
38094
38095         For now, cater to gnulib strtod inaccuracies.
38096         * tests/test-strtod.c (main): Allow 1-ulp error on expected
38097         fractional results.  While not as nice from a QoI perspective, it
38098         is a quicker patch than correctly implementing decimal to binary
38099         rounding.
38100
38101 2008-03-31  Eric Blake  <ebb9@byu.net>
38102
38103         Guarantee a definition of NAN.
38104         * lib/math.in.h (NAN): Define if missing.
38105         * tests/test-math.c (main): Test it.
38106         * doc/posix-headers/math.texi (math.h): Document this.
38107         * lib/isnan.c (rpl_isnand): Use it.
38108         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
38109         * tests/test-floorf1.c (NaN): Likewise.
38110         * tests/test-frexp.c (NaN): Likewise.
38111         * tests/test-isnand.c (NaN): Likewise.
38112         * tests/test-isnanf.c (NaN): Likewise.
38113         * tests/test-round1.c (NaN): Likewise.
38114         * tests/test-roundf1.c (NaN): Likewise.
38115         * tests/test-snprintf-posix.h (NaN): Likewise.
38116         * tests/test-sprintf-posix.h (NaN): Likewise.
38117         * tests/test-trunc1.c (NaN): Likewise.
38118         * tests/test-truncf1.c (NaN): Likewise.
38119         * tests/test-vasnprintf-posix.c (NaN): Likewise.
38120         * tests/test-vasprintf-posix.c (NaN): Likewise.
38121         * modules/isnand-nolibm (Depends-on): Add math.
38122         * modules/isnanf-nolibm (Depends-on): Likewise.
38123         * modules/isnanl (Depends-on): Likewise.
38124         * modules/isnanl-nolibm (Depends-on): Likewise.
38125         * modules/snprintf-posix-tests (Depends-on): Likewise.
38126         * modules/sprintf-posix-tests (Depends-on): Likewise.
38127         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
38128         * modules/vsprintf-posix-tests (Depends-on): Likewise.
38129         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
38130         * modules/vasprintf-posix-tests (Depends-on): Likewise.
38131
38132 2008-03-31  Bruno Haible  <bruno@clisp.org>
38133
38134         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
38135         * doc/posix-functions/strtod.texi: Likewise.
38136
38137 2008-03-31  Bruno Haible  <bruno@clisp.org>
38138
38139         * tests/test-strtod.c (main): Don't use C99 syntax.
38140
38141 2008-03-31  Bruno Haible  <bruno@clisp.org>
38142
38143         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
38144         Reported by Eric Blake.
38145
38146 2008-03-31  Jim Meyering  <meyering@redhat.com>
38147
38148         Don't compare actual signbit return values.
38149         * tests/test-strtod.c (main): Rather, compare only their
38150         zero/non-zero nature.
38151
38152 2008-03-31  Eric Blake  <ebb9@byu.net>
38153
38154         More strtod documentation.
38155         * doc/posix-functions/strtod.texi (strtod): Interpret more test
38156         failures as distinct bugs.
38157
38158 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38159
38160         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
38161         Problem reported by Erik Benada in
38162         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
38163
38164 2008-03-30  Bruno Haible  <bruno@clisp.org>
38165
38166         * tests/test-strtod.c: Add comments about which assertion fails on which
38167         platform.
38168         * doc/posix-functions/strtod.texi: Add info about many more platforms.
38169
38170 2008-03-30  Eric Blake  <ebb9@byu.net>
38171
38172         Test signbit behavior on zeros.
38173         * tests/test-signbit.c (test_signbitf): Add tests for zero.
38174         (test_signbitd, test_signbitl): Likewise.
38175
38176         More strtod touchups.
38177         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
38178         sign of negative underflow, for now.  Use .5, not .1.
38179         * doc/posix-functions/strtod.texi (strtod): Mention these
38180         limitations.
38181         Reported by Jim Meyering.
38182
38183 2008-03-30  Bruno Haible  <bruno@clisp.org>
38184
38185         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
38186         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
38187
38188 2008-03-30  Bruno Haible  <bruno@clisp.org>
38189
38190         Avoid failure when attempting to return empty iconv results on some
38191         platforms.
38192         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
38193         allocation, don't report ENOMEM when the resulting string is empty.
38194
38195 2008-03-30  Bruno Haible  <bruno@clisp.org>
38196
38197         Fix buffer overrun.
38198         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
38199         Don't consider the width for tmp_length. Check count against tmp_length
38200         before doing the padding. Ensure enough allocation during padding.
38201
38202 2008-03-30  Eric Blake  <ebb9@byu.net>
38203
38204         strtod touchups.
38205         * lib/strtod.c (strtod): Avoid compiler warnings.
38206         Reported by Jim Meyering.
38207
38208 2008-03-30  Bruno Haible  <bruno@clisp.org>
38209
38210         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
38211         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
38212         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
38213         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
38214         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
38215         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
38216         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
38217         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
38218
38219         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
38220         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
38221         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
38222         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
38223         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
38224         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
38225         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
38226         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
38227
38228         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
38229         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
38230         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
38231         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
38232         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
38233         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
38234         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
38235         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
38236
38237         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
38238         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
38239
38240         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
38241         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
38242
38243         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
38244         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
38245
38246         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
38247         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
38248         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
38249
38250         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
38251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
38252         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
38253
38254         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
38255         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
38256         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
38257
38258         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
38259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
38260         * modules/vasprintf (Depends-on): Add EOVERFLOW.
38261
38262         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
38263         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
38264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
38265         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
38266         (Depends-on): Add EOVERFLOW.
38267         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
38268         (Depends-on): Add EOVERFLOW.
38269         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38270         (Depends-on): Add EOVERFLOW.
38271         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38272         (Depends-on): Add EOVERFLOW.
38273         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38274         (Depends-on): Add EOVERFLOW.
38275         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38276         (Depends-on): Add EOVERFLOW.
38277         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38278         (Depends-on): Add EOVERFLOW.
38279         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38280         (Depends-on): Add EOVERFLOW.
38281
38282         * lib/sprintf.c (EOVERFLOW): Remove fallback.
38283         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
38284         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
38285
38286         * lib/snprintf.c (EOVERFLOW): Remove fallback.
38287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
38288         * modules/snprintf (Depends-on): Add EOVERFLOW.
38289
38290         * lib/poll.c (EOVERFLOW): Remove fallback.
38291         * modules/poll (Depends-on): Add EOVERFLOW.
38292
38293         * lib/getugroups.c (EOVERFLOW): Remove fallback.
38294         * modules/getugroups (Depends-on): Add EOVERFLOW.
38295
38296         * lib/getdelim.c (EOVERFLOW): Remove fallback.
38297         * modules/getdelim (Depends-on): Add EOVERFLOW.
38298
38299         * lib/ftell.c (EOVERFLOW): Remove fallback.
38300         * modules/ftell (Depends-on): Add EOVERFLOW.
38301
38302         * lib/fprintf.c (EOVERFLOW): Remove fallback.
38303         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
38304         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
38305
38306         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
38307
38308         * modules/EOVERFLOW-tests: New file.
38309         * tests/test-EOVERFLOW.c: New file.
38310
38311         * modules/EOVERFLOW: New file.
38312         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
38313
38314 2008-03-30  Bruno Haible  <bruno@clisp.org>
38315
38316         Fix bug introduced on 2007-06-10.
38317         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
38318         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
38319
38320 2008-03-30  Bruno Haible  <bruno@clisp.org>
38321
38322         Improve freadseek's efficiency after ungetc.
38323         * lib/freadseek.c: Include freadahead.h.
38324         (freadptrinc): New function, extracted from freadseek.
38325         (freadseek): Use it in a loop. Use freadahead to determine the number
38326         of loop iterations.
38327         * modules/freadseek (Depends-on): Add freadahead.
38328         (configure.ac): Require AC_C_INLINE.
38329
38330 2008-03-30  Bruno Haible  <bruno@clisp.org>
38331
38332         * lib/freadseek.c (freadseek): Don't ignore the return value of
38333         freadptr.
38334
38335 2008-03-29  Eric Blake  <ebb9@byu.net>
38336
38337         Add hex float support.
38338         * modules/strtod (Depends-on): Add c-ctype.
38339         (Link): Mention POW_LIB.
38340         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
38341         whitespace between 'e' and exponent.
38342         * tests/test-strtod.c (main): Enable hex float tests.
38343         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
38344         now provides.
38345
38346         Document various strtod bugs, with some fixes.
38347         * doc/posix-functions/strtod.texi (strtod): Document bugs with
38348         "-0x", "inf", "nan", and hex constants.
38349         * doc/posix-functions/atof.texi (atof): Likewise.
38350         * modules/stdlib (Makefile.am): Support strtod.
38351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38352         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
38353         detect additional strtod bugs.
38354         * lib/stdlib.in.h (rpl_strtod): Add declarations.
38355         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
38356         bool where appropriate.  Parse 'inf' and 'nan'.
38357         * tests/test-strtod.c: New file.
38358         * modules/strtod (Depends-on): Add stdbool, stdlib.
38359         (configure.ac): Turn on module indicator.
38360         * modules/strtod-tests: New module.
38361
38362 2008-03-29  Eric Blake  <ebb9@byu.net>
38363
38364         Fix ftell on mingw.
38365         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
38366         * modules/ftell-tests (Depends-on): Add binary-io.
38367         * modules/ftello-tests (Depends-on): Likewise.
38368         * tests/test-ftell.c (main): Enhance test to cover behavior after
38369         ungetc.  Enforce binary mode.
38370         * tests/test-ftello.c (main): Likewise.
38371
38372         Pass test-freadseek on cygwin.
38373         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
38374         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
38375         ungetc buffer.
38376
38377         * tests/test-fflush2.c (main): Fix typo.
38378
38379 2008-03-29  Bruno Haible  <bruno@clisp.org>
38380
38381         * tests/test-fflush2.c (main): Temporarily disable the contents of
38382         this test.
38383         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
38384         Reported by Eric Blake.
38385
38386 2008-03-28  Simon Josefsson  <simon@josefsson.org>
38387
38388         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
38389         (GC_SHA224_DIGEST_SIZE): Add.
38390
38391         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
38392         (gc_hash_digest_length): Likewise.
38393         (gc_hash_buffer): Likewise.
38394
38395 2008-03-25  Bruno Haible  <bruno@clisp.org>
38396
38397         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
38398         detail which gettext release to use.
38399         Reported by Simon Josefsson.
38400
38401 2008-03-26  Jim Meyering  <meyering@redhat.com>
38402
38403         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
38404         * modules/gnumakefile (clean-GNUmakefile): Also, use
38405         test ... && ... || : syntax rather than if-then ... fi.
38406
38407         gnumakefile: Don't double-quote-expand $(VPATH) value.
38408         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
38409
38410 2008-03-24  Eric Blake  <ebb9@byu.net>
38411
38412         Alter GNUmakefile to install into top directory.
38413         * modules/maintainer-makefile: Split, and add dependency...
38414         * modules/gnumakefile: to this new module.
38415         * build-aux/GNUmakefile: Move...
38416         * top/GNUmakefile: ...here.
38417         * build-aux/maint.mk: Move...
38418         * top/maint.mk: ...here.
38419         * MODULES.html.sh (Support for maintaining...): Document new
38420         module.
38421
38422 2008-03-23  Bruno Haible  <bruno@clisp.org>
38423
38424         * gnulib-tool: New options --vc-files, --no-vc-files.
38425         (func_usage): Document them.
38426         (vc_files): New variable.
38427         (func_import): Consider vc_files.
38428         (func_create_testdir): Set vc_files to empty.
38429         Suggested by Jim Meyering and Karl Berry.
38430
38431 2008-03-23  Bruno Haible  <bruno@clisp.org>
38432
38433         Fix regex compilation error on HP-UX 11.
38434         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
38435         * modules/regex (Files): Add m4/mbstate_t.m4.
38436         Reported by Ton Voon <ton.voon@altinity.com>.
38437
38438 2008-03-23  Bruno Haible  <bruno@clisp.org>
38439
38440         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
38441
38442 2008-03-23  Eric Blake  <ebb9@byu.net>
38443             Bruno Haible  <bruno@clisp.org>
38444
38445         Install files from top/ in the destination directory.
38446         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38447         augmentation also for the files from top/.
38448         (func_import, func_create_testdir): Rewrite file names:
38449         top/filename -> filename.
38450
38451 2008-03-23  Bruno Haible  <bruno@clisp.org>
38452
38453         Tweak "gnulib --version" output.
38454         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
38455
38456 2008-03-23  Bruno Haible  <bruno@clisp.org>
38457
38458         Tweak "gnulib --version" output.
38459         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
38460         rather than contents of ChangeLog, when possible.
38461
38462 2008-03-21  Eric Blake  <ebb9@byu.net>
38463
38464         More --version tweaks.
38465         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
38466         date of last ChangeLog entry.
38467
38468 2008-03-21  Jim Meyering  <meyering@redhat.com>
38469
38470         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
38471
38472 2008-03-20  Eric Blake  <ebb9@byu.net>
38473
38474         VPATH fix.
38475         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
38476
38477 2008-03-20  Simon Josefsson  <simon@josefsson.org>
38478
38479         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
38480         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
38481
38482 2008-03-20  Eric Blake  <ebb9@byu.net>
38483
38484         Sync GNUmakefile with coreutils.
38485         * build-aux/GNUmakefile (have-Makefile): Rename...
38486         (_have-Makefile): ...to this, for namespace consideration.
38487         (GNUmakefile.cfg): Include, if present.
38488         (_autoreconf): Define a default.
38489         (_is-dist-target): New rule for rebuilds to pick up intra-release
38490         version.
38491         (maint-cfg.mk): Rename...
38492         (cfg.mk): ...to this.
38493
38494 2008-03-18  Jim Meyering  <meyering@redhat.com>
38495
38496         New script and module: mktempd
38497         * MODULES.html.sh (maint+release support): Add mktempd.
38498         * build-aux/mktempd: New file.
38499         * modules/mktempd: New file.
38500
38501 2008-03-15  Jim Meyering  <meyering@redhat.com>
38502
38503         Undo last change.
38504         * lib/sha1.c, lib/md5.c: 63 != ~63.
38505         Reported by Andreas Schwab.
38506
38507         sha1.c, md5.c: Hoist a redundant expression.
38508         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
38509         "ctx->buflen" only once, before calling *_process_block.
38510         * lib/md5.c (md5_process_bytes): Likewise.
38511
38512 2008-03-14  Eric Blake  <ebb9@byu.net>
38513
38514         Bump copyright year in files generated by gnulib-tool.
38515         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
38516         gnulib-tool, rather than hard-coding it.
38517
38518         Fix 'gnulib-tool --version' output to work with git.
38519         * gnulib-tool (func_gnulib_dir): New function, extracted from...
38520         (startup): ...here.
38521         (func_version): Use it to invoke git-version-gen, rather than
38522         relying on CVS keyword expansion.  Modernize wording.
38523         (cvsdatestamp, last_checkin_date, version): Kill unused
38524         variables.
38525
38526 2008-03-12  Jim Meyering  <meyering@redhat.com>
38527
38528         Recognize optional cast of the argument to free.
38529         * build-aux/useless-if-before-free: Update regexps.
38530
38531         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
38532
38533 2008-03-11  Bruno Haible  <bruno@clisp.org>
38534
38535         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
38536         by a single package.
38537         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
38538         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
38539         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
38540         Reported by Sam Steingold <sds@gnu.org>.
38541
38542 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38543
38544         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
38545         repositories.
38546
38547 2008-03-11  Bruno Haible  <bruno@clisp.org>
38548
38549         Avoid conflicts between local macro definitions.
38550         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38551         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
38552
38553 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
38554             Bruno Haible  <bruno@clisp.org>
38555
38556         Make va_copy work with some version of xlc on AIX 5.1.
38557         * lib/stdarg.in.h: New file.
38558         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
38559         On AIX, use a <stdarg.h> file substitute.
38560         * modules/stdarg (Files): Add lib/stdarg.in.h.
38561         (Depends-on): Add include_next.
38562         (Makefile.am): Build a stdarg.h substitute if requested.
38563         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
38564
38565 2008-03-10  Bruno Haible  <bruno@clisp.org>
38566
38567         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
38568         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38569         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38570
38571 2008-03-10  Bruno Haible  <bruno@clisp.org>
38572
38573         * modules/stdlib (Depends-on): Add include_next, remove
38574         absolute-header.
38575
38576 2008-03-09  Bruno Haible  <bruno@clisp.org>
38577
38578         * lib/freadahead.h (freadahead): Document more precisely.
38579         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
38580         the sum of both buffer sizes.
38581         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
38582         * NEWS: Document the change.
38583
38584 2008-03-09  Bruno Haible  <bruno@clisp.org>
38585
38586         Extend freadptr to return also the buffer size.
38587         * lib/freadptr.h (freadptr): Add sizep argument.
38588         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
38589         (freadptr): Add sizep argument. Determine buffer size like freadahead
38590         does.
38591         * tests/test-freadptr.c: Don't include freadahead.h.
38592         (main): Adapt for new calling convention of freadptr.
38593         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
38594         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
38595         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
38596         tests/test-freadptr2.sh.
38597         (Depends): Remove freadahead.
38598         (TESTS): Add test-freadptr2.sh.
38599         (check_PROGRAMS): Add test-freadptr2.
38600
38601 2008-03-09  Bruno Haible  <bruno@clisp.org>
38602
38603         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
38604         Report and solution by Simon Josefsson.
38605
38606 2008-03-06  Bruno Haible  <bruno@clisp.org>
38607
38608         Make fflush after ungetc work on BSD platforms.
38609         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
38610         * tests/test-fflush2.c: New file.
38611         * tests/test-fflush2.sh: New file.
38612         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
38613         tests/test-fflush2.c.
38614         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
38615         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
38616
38617 2008-03-06  Eric Blake  <ebb9@byu.net>
38618
38619         Likewise for ftello.
38620         * modules/ftello (Dependencies): Add extensions.
38621         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
38622
38623 2008-03-06  Bruno Haible  <bruno@clisp.org>
38624
38625         * modules/fseeko (Dependencies): Add extensions.
38626         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
38627         Needed on glibc systems.
38628
38629 2008-03-06  Bruno Haible  <bruno@clisp.org>
38630
38631         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
38632         email address.
38633         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38634
38635 2008-03-06  Bruno Haible  <bruno@clisp.org>
38636
38637         * users.txt: Add libgnupdf.
38638
38639 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38640
38641         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
38642         (Header File Substitutes, Function Substitutes,
38643         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
38644         (Build robot for gnulib): Fix typo.
38645
38646 2008-03-06  Bruno Haible  <bruno@clisp.org>
38647
38648         * doc/gnulib-tool.texi (VCS Issues): Small updates.
38649         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38650
38651 2008-03-06  Bruno Haible  <bruno@clisp.org>
38652
38653         * doc/func.texi: New file, extracted from doc/gnulib.texi.
38654         * doc/gnulib.texi: Include it.
38655
38656 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38657
38658         * modules/func (License): Change license to unlimited; there was
38659         no LGPL parts in the module anyway.
38660
38661 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38662
38663         * modules/__func__: Renamed to modules/func.
38664         * modules/__func__-tests: Renamed to modules/func-tests.
38665         * tests/test-__func__.c: Renamed to tests/test-func.c.
38666         * m4/__func__.m4: Renamed to m4/func.m4.
38667         * doc/gnulib.texi (__func__): Section renamed to func.
38668         Suggested by Eric Blake <ebb9@byu.net>.
38669
38670 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38671
38672         * doc/gnulib.texi (__func__): Use C99 terminology when talking
38673         about __func__.  Make example self-contained.  Suggested by Eric
38674         Blake <ebb9@byu.net>.
38675
38676         * tests/test-__func__.c (main): Avoid extraneous () around __func.
38677         Suggested by Eric Blake <ebb9@byu.net>.
38678
38679 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38680
38681         * modules/__func__: New file.
38682         * modules/__func__-tests: New file.
38683         * tests/test-__func__.c: New file.
38684         * m4/__func__.m4: New file.
38685         * doc/gnulib.texi (__func__): Document __func__ module.
38686
38687 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38688
38689         * modules/byteswap (License): Re-license as LGPLv2+.
38690
38691 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38692
38693         * doc/Makefile: Add pdf target.
38694
38695 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38696
38697         * modules/inline (License): Use 'unlimited', since there are only
38698         *.m4 files in this module.
38699
38700 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
38701             Bruno Haible  <bruno@clisp.org>
38702
38703         Add support for HP C 7.1 on OpenVMS 8.3.
38704         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
38705
38706 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
38707
38708         Update VMS specifics.
38709         * lib/getopt.c [VMS]: Remove include of unixlib.h.
38710
38711 2008-03-02  Jim Meyering  <meyering@redhat.com>
38712
38713         Remove the last dependency on the "free" module.
38714         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
38715         Reported by Bob Proulx.
38716
38717         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
38718
38719         Remove useless "if" tests before free.  Deprecate "free" module.
38720         * doc/posix-functions/free.texi: Mention that this
38721         module is no longer useful.
38722         * modules/free (Notice): Say this module is obsolete.
38723         * modules/readutmp (Depends-on): Remove free.
38724         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
38725         * lib/putenv.c (putenv): Likewise.
38726         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
38727         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
38728         * tests/test-c-strcasestr.c (main): Likewise.
38729         * tests/test-c-strstr.c (main): Likewise.
38730         * tests/test-mbscasestr1.c (main): Likewise.
38731         * tests/test-mbscasestr2.c (main): Likewise.
38732         * tests/test-mbsstr1.c (main): Likewise.
38733         * tests/test-mbsstr2.c (main): Likewise.
38734         * tests/test-memmem.c (main): Likewise.
38735         * tests/test-strcasestr.c (main): Likewise.
38736         * tests/test-striconv.c (main): Likewise.
38737         * tests/test-striconveh.c (main): Likewise.
38738         * tests/test-striconveha.c (main): Likewise.
38739         * tests/test-strstr.c (main): Likewise.
38740
38741         * build-aux/git-version-gen: Adjust a comment and the Usage string.
38742
38743         bootstrap: sync from coreutils again
38744         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
38745
38746 2008-03-01  Jim Meyering  <meyering@redhat.com>
38747
38748         bootstrap: sync from coreutils
38749         * build-aux/bootstrap (update_po_files): Copy a .po file into place
38750         also when the target doesn't exist.
38751
38752 2008-03-01  Eric Blake  <ebb9@byu.net>
38753
38754         Fix bugs in last patch.
38755         * lib/memchr2.c (memchr2): Fix typo.
38756         * tests/test-memchr2.c: Test previous bug, and don't use GNU
38757         extension.
38758         Reported by Bruce Korb.
38759
38760         New module 'memchr2'.
38761         * modules/memchr2: New file.
38762         * modules/memchr2-tests: Likewise.
38763         * lib/memchr2.h: Likewise.
38764         * lib/memchr2.c: Likewise, based on memchr.c.
38765         * tests/test-memchr2.c: New test.
38766         * MODULES.html.sh (String handling): Add memchr2.
38767
38768 2008-02-29  Bruno Haible  <bruno@clisp.org>
38769
38770         * modules/freadseek-tests: New file.
38771         * tests/test-freadseek.sh: New file.
38772         * tests/test-freadseek.c: New file.
38773
38774         New module 'freadseek'.
38775         * modules/freadseek: New file.
38776         * lib/freadseek.h: New file.
38777         * lib/freadseek.c: New file.
38778         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
38779
38780 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38781
38782         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
38783         wydawca.
38784
38785         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
38786         program_invocation_name and program_invocation_short_name are
38787         present.
38788
38789 2008-02-28  Bruno Haible  <bruno@clisp.org>
38790
38791         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
38792         * tests/test-freadptr.sh: Also test non-seekable stdin.
38793
38794 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
38795
38796         * build-aux/bootstrap (source_base, m4_base)
38797         (doc_base, tests_base): New variables.
38798         (gnulib_tool_options): Do not hardcode base directories, use
38799         the above variables instead.
38800
38801 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
38802
38803         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
38804
38805 2008-02-28  Bruno Haible  <bruno@clisp.org>
38806
38807         * modules/freadptr-tests: New file.
38808         * tests/test-freadptr.sh: New file.
38809         * tests/test-freadptr.c: New file.
38810
38811         New module 'freadptr'.
38812         * modules/freadptr: New file.
38813         * lib/freadptr.h: New file.
38814         * lib/freadptr.c: New file.
38815         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
38816
38817 2008-02-26  Karl Berry  <karl@freefriends.org>
38818
38819         Sync from Libtool:
38820         * libltdl/argz.c (argz_add, argz_count): New functions.
38821         * libltdl/argz.in.h: Declare them.
38822         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
38823
38824 2008-02-22  Bruno Haible  <bruno@clisp.org>
38825
38826         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
38827         is a pointer type.  Needed for HP-UX 10.
38828         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
38829         * doc/posix-functions/gmtime_r.texi: Likewise.
38830         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38831
38832 2008-02-24  Bruno Haible  <bruno@clisp.org>
38833
38834         * modules/environ-tests: New file.
38835         * tests/test-environ.c: New file.
38836
38837         New module 'environ'.
38838         * modules/environ: New file.
38839         * lib/unistd.in.h (environ): New declaration.
38840         * m4/environ.m4: New file.
38841         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
38842         after use.
38843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
38844         HAVE_DECL_ENVIRON.
38845         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
38846         HAVE_DECL_ENVIRON.
38847         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
38848         wrong claim that 'environ' is missing on some systems.
38849         * modules/execute (Depends-on): Add environ.
38850         * lib/execute.c (environ): Remove fallback declaration.
38851         * modules/pipe (Depends-on): Add environ.
38852         * lib/pipe.c (environ): Remove fallback declaration.
38853         * modules/setenv (Depends-on): Add environ.
38854         * lib/setenv.c (environ): Remove fallback declaration.
38855         * modules/unsetenv (Depends-on): Add environ.
38856         * lib/unsetenv.c (environ): Remove fallback declaration.
38857         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
38858         m4/environ.m4.
38859         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
38860         (gl_PREREQ_UNSETENV): Likewise.
38861
38862 2008-02-24  Bruno Haible  <bruno@clisp.org>
38863
38864         * doc/posix-functions/environ.texi: Document the MacOS X problem.
38865
38866 2008-02-20  Bob Proulx  <bob@proulx.com>
38867
38868         Enable use of older two part flavor 'git describe'.
38869         * build-aux/git-version-gen: If using the older two part flavor of
38870         git version then recreate the third part now present in the
38871         newer three part flavor of git describe.
38872
38873 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
38874
38875         * lib/fts.c (fts_build): Typo correction to comment.
38876
38877 2008-02-17  Bruno Haible  <bruno@clisp.org>
38878
38879         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
38880         generating no-op conflicts.
38881
38882 2008-02-17  Bruno Haible  <bruno@clisp.org>
38883
38884         Speed up by 10%.
38885         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
38886         result_entries, rather than an index-based loop.
38887
38888 2008-02-17  Bruno Haible  <bruno@clisp.org>
38889
38890         Speed up by 25%.
38891         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
38892         'hashcode_cached'.
38893         (entry_create): New function.
38894         (entry_hashcode): Use the cached hashcode if possible.
38895         (read_changelog_file, try_split_merged_entry): Use entry_create.
38896
38897 2008-02-17  Bruno Haible  <bruno@clisp.org>
38898
38899         Speed up from O(n^2) to O(n) for long ChangeLog files.
38900         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
38901         (read_changelog_file): Change implementation of entries_reversed list
38902         to rbtreehash.
38903         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
38904
38905 2008-02-17  Bruno Haible  <bruno@clisp.org>
38906
38907         New option --split-merged-entry.
38908         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
38909         (find_paragraph_end, try_split_merged_entry): New functions.
38910         (long_options): Add option --split-merged-entry.
38911         (usage): Document option --split-merged-entry.
38912         (main): Implement option --split-merged-entry.
38913         Reported by Eric Blake.
38914
38915 2008-02-17  Bruno Haible  <bruno@clisp.org>
38916
38917         * lib/git-merge-changelog.c: Include c-strstr.h.
38918         (main): Support the "git pull --rebase" situation.
38919         * modules/git-merge-changelog (Depends-on): Add c-strstr.
38920         Reported by Eric Blake.
38921
38922 2008-02-16  Eric Blake  <ebb9@byu.net>
38923
38924         Avoid doubling \ in common case of "c-maybe" quoting style.
38925         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
38926         eliding outer quotes.
38927         * lib/quotearg.h: Document this.
38928         * tests/test-quotearg.c (result_strings, inputs, results_g)
38929         (flag_results, locale_results): Test it by adding a new string to
38930         each test group.
38931         (compare_strings): Test new string.
38932
38933 2008-02-13  Eric Blake  <ebb9@byu.net>
38934
38935         Avoid trigraph quoting in default output.
38936         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
38937         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
38938         unless explicitly requested.
38939         * tests/test-quotearg.c (flag_results, main): Add additional tests.
38940
38941 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
38942
38943         Don't rely on signed integer overflowing to negative value.
38944         * lib/getugroups.c (getugroups): Include <limits.h>.
38945         Instead, compare against INT_MAX, and increment only if the test passes.
38946
38947 2008-02-13  Jim Meyering  <meyering@redhat.com>
38948         and Eric Blake  <ebb9@byu.net>
38949
38950         Avoid shadowing warning and compile errors on Linux.
38951         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
38952         forwarding macros on Linux.
38953         (dcgettext): Define a stub, for Linux.
38954         (results_g, main): Avoid warnings.
38955
38956 2008-02-12  Eric Blake  <ebb9@byu.net>
38957
38958         Silence warning in last patch.
38959         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
38960
38961         Quotearg part 4: add tests, fix c-maybe colon quoting.
38962         * lib/quotearg.h: Improve documentation.
38963         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
38964         escapes when adding outer quotes.  When quoting trigraphs, use
38965         valid C notation.  When quoting NUL, omit extra characters if next
38966         character is not digit.  Alter prototype.
38967         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
38968         callers.
38969         * modules/quotearg-tests: New module.
38970         * tests/test-quotearg.c: New test.
38971
38972 2008-02-07  Eric Blake  <ebb9@byu.net>
38973
38974         Quotearg part 3: add flag to control outer quote elision.
38975         * lib/quotearg.h (c_maybe_quoting_style): New style.
38976         (enum quoting_flags): Better documentation of flags.
38977         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
38978         c-maybe style.
38979         (quotearg_buffer_restyled): Handle new flag to elide outer
38980         quotes.
38981
38982         Quotearg part 2: add flag that can control NUL elision.
38983         * lib/quotearg.h (set_quoting_flags): New prototype.
38984         * lib/quotearg.c (struct quoting_options): Add flag field.
38985         (set_quoting_flags): New function.
38986         (quotearg_buffer_restyled): Add flags parameter.
38987         (quotearg_alloc_mem): Set the flag if length cannot be returned.
38988         (quotearg_n_options): Set the flag, since length cannot be
38989         returned.
38990         (quoting_options_from_style): Default flags correctly.
38991
38992         Quotearg part 1: more wrappers, restore quotearg_char state.
38993         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
38994         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
38995         (quotearg_colon_mem): New wrappers.
38996         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
38997         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
38998         functions.
38999         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
39000         (quotearg_colon_mem): New functions.
39001
39002 2008-02-11  Bruno Haible  <bruno@clisp.org>
39003
39004         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
39005         library in the current directory: it does not work with parallel make.
39006         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39007
39008 2008-02-11  Bruno Haible  <bruno@clisp.org>
39009
39010         * .gitattributes: New file.
39011
39012 2008-02-11  Jim Meyering  <meyering@redhat.com>
39013
39014         useless-if-before-free: Fix reversed exit values.
39015         * build-aux/useless-if-before-free: Use correct values
39016         for EXIT_MATCH and EXIT_NO_MATCH.
39017
39018         * build-aux/useless-if-before-free: Close stdout carefully.
39019
39020 2008-02-10  Bruno Haible  <bruno@clisp.org>
39021
39022         New module 'git-merge-changelog'.
39023         * modules/git-merge-changelog: New file.
39024         * lib/git-merge-changelog.c: New file.
39025
39026 2008-02-10  Jim Meyering  <meyering@redhat.com>
39027
39028         useless-if-before-free: New option: --list (-l).
39029
39030         useless-if-before-free: Don't exit immediately upon open failure.
39031         * build-aux/useless-if-before-free: Exit 2 for errors.
39032         Upon failure to open a file, don't exit immediately.
39033         Rather, just warn and continue with any remaining files.
39034
39035 2008-02-10  Bruno Haible  <bruno@clisp.org>
39036
39037         New abstract list operation 'node_set_value'.
39038         * lib/gl_list.h (gl_list_node_set_value): New function.
39039         (struct gl_list_implementation): New field node_set_value.
39040         * lib/gl_list.c (gl_list_node_set_value): New function.
39041         * lib/gl_array_list.c (gl_array_node_set_value): New function.
39042         (gl_array_list_implementation): Update.
39043         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
39044         (gl_carray_list_implementation): Update.
39045         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
39046         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39047         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39048         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
39049         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39050         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39051         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39052         Update.
39053         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39054         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
39055         (gl_sublist_list_implementation): Update.
39056
39057 2008-02-10  Bruno Haible  <bruno@clisp.org>
39058
39059         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
39060         Needed when ELEMENT is #defined to 'some_type *'.
39061
39062 2008-02-10  Jim Meyering  <meyering@redhat.com>
39063
39064         New script and module: useless-if-before-free
39065         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
39066         * build-aux/useless-if-before-free: New file.
39067         * modules/useless-if-before-free: New file.
39068
39069         * build-aux/gitlog-to-changelog: Use committer date, not author date.
39070
39071         xstrtol_error: Fix typo.
39072         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
39073         s/exit_failure/exit_status/.
39074
39075 2008-02-09  Jim Meyering  <meyering@redhat.com>
39076
39077         New script and module: gitlog-to-changelog
39078         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
39079         * modules/gitlog-to-changelog: New file.
39080         * build-aux/gitlog-to-changelog: New file.
39081
39082 2008-02-08  Jim Meyering  <meyering@redhat.com>
39083
39084         Avoid two "parameter unused" warnings.
39085         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
39086         Mark "st" as used.
39087
39088         Use "git COMMAND", not "git-COMMAND".
39089         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
39090         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
39091         * build-aux/git-version-gen: Use "git status", not "git-status".
39092
39093 2008-02-07  Bruno Haible  <bruno@clisp.org>
39094
39095         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
39096         Avoids a crash on Windows Vista.
39097         Reported by Adam Strzelecki <ono@java.pl> via
39098         Simon Josefsson <simon@josefsson.org>.
39099
39100 2008-02-06  Bruno Haible  <bruno@clisp.org>
39101
39102         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
39103         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
39104         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
39105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
39106         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39107         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39108         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
39109         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
39110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39113         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39114         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39116         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39117         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
39118         left-adjust flag.
39119         * tests/test-snprintf-posix.h (test_function): Likewise.
39120         * tests/test-sprintf-posix.h (test_function): Likewise.
39121         * tests/test-vasprintf-posix.c (test_function): Likewise.
39122         * doc/posix-functions/fprintf.texi: Update.
39123         * doc/posix-functions/printf.texi: Update.
39124         * doc/posix-functions/snprintf.texi: Update.
39125         * doc/posix-functions/sprintf.texi: Update.
39126         * doc/posix-functions/vfprintf.texi: Update.
39127         * doc/posix-functions/vprintf.texi: Update.
39128         * doc/posix-functions/vsnprintf.texi: Update.
39129         * doc/posix-functions/vsprintf.texi: Update.
39130         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39131
39132 2008-02-06  Bruno Haible  <bruno@clisp.org>
39133
39134         Fix bug introduced on 2008-01-26.
39135         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
39136
39137 2008-02-06  Bruno Haible  <bruno@clisp.org>
39138
39139         Fix bug introduced on 2007-06-10.
39140         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
39141         !NEED_PRINTF_FLAG_ZERO.
39142
39143 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
39144
39145         getloadavg: use libperfstat on AIX5
39146         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
39147
39148 2008-02-03  Bruno Haible  <bruno@clisp.org>
39149
39150         * lib/diffseq.h: Add comments about required #includes.
39151         Reported by Michael Biggs <gnulib@doubleplum.net>.
39152
39153 2008-02-01  Bruno Haible  <bruno@clisp.org>
39154
39155         * users.txt: Add gnuit.
39156
39157 2008-01-31  Bruno Haible  <bruno@clisp.org>
39158
39159         * lib/md4.c (set_uint32): Mark as inline.
39160         * lib/md5.c (set_uint32): Likewise.
39161         * lib/sha1.c (set_uint32): Likewise.
39162         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
39163         * m4/md5.m4 (gl_MD5): Likewise.
39164         * m4/sha1.m4 (gl_SHA1): Likewise.
39165
39166 2008-01-31  Jim Meyering  <meyering@redhat.com>
39167
39168         Use "sizeof VAR", rather than a literal "4".
39169         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
39170         * lib/md4.c (md4_read_ctx): Likewise.
39171         * lib/sha1.c (sha1_read_ctx): Likewise.
39172
39173 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39174
39175         * tests/test-sha1.c: New file, based on test-md5.c.
39176
39177         * modules/crypto/sha1-tests: New file.
39178
39179 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39180
39181         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
39182
39183 2008-01-31  Jim Meyering  <meyering@redhat.com>
39184
39185         Prefer "sizeof v" over the equivalent "4".
39186         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
39187         * lib/md5.c (set_uint32): Likewise.
39188         * lib/sha1.c (set_uint32): Likewise.
39189
39190 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39191
39192         * lib/sha1.c (set_uint32): Mark function as static.
39193
39194 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39195
39196         md2: clarify comments to say that alignment is not required.
39197         * lib/md2.h: Remove warning about alignment in comment.
39198         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
39199         never been required.
39200
39201 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39202
39203         md4: adapt alignment constraint fix from sha1.
39204         * lib/md4.c (set_uint32): New function, from sha1.c
39205         (md4_read_ctx): Use it.
39206         (md4_finish_ctx): Doc fix.
39207         * lib/md4.h: Doc fix.
39208
39209 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39210
39211         md5: adapt alignment constraint fix from sha1.
39212         * lib/md5.c (set_uint32): New function, from sha1.c
39213         (md5_read_ctx): Use it.
39214         (md5_finish_ctx): Doc fix.
39215         * lib/md5.h: Doc fix.
39216
39217 2008-01-30  Peter Palfrader  <weasel@debian.org>
39218
39219         sha1: remove the result buffer alignment constraint
39220         * lib/sha1.c (set_uint32): New function.
39221         (sha1_read_ctx): Rewrite to remove the result buffer alignment
39222         constraint.
39223         (sha1_finish_ctx): Remove comment warning about alignment constraint.
39224         * lib/sha1.h: Likewise.
39225
39226 2008-01-30  Andreas Schwab  <schwab@suse.de>
39227             Bruno Haible  <bruno@clisp.org>
39228
39229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
39230         correct definition of LDBL_MIN_EXP.
39231
39232 2008-01-30  Karl Berry  <karl@gnu.org>
39233
39234         * config/srclist-update: try to preserve x bit on updates.
39235         * config/srclistvars.sh: update for karl.
39236
39237 2008-01-29  Jim Meyering  <meyering@redhat.com>
39238
39239         vasnprintf.c: Avoid warning about unused label
39240         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
39241         "overflow" label definition and associated code with the
39242         same cpp condition that guards the sole use of that label.
39243
39244 2008-01-26  Bruno Haible  <bruno@clisp.org>
39245
39246         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
39247         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
39248         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
39249         * lib/isnanl-nolibm.h (isnanl): Likewise.
39250         Reported by Paul Eggert <eggert@cs.ucla.edu>.
39251
39252 2008-01-26  Bruno Haible  <bruno@clisp.org>
39253
39254         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
39255         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
39256
39257 2008-01-26  Bruno Haible  <bruno@clisp.org>
39258
39259         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
39260         GCC >= 4.0 built-in.
39261         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
39262
39263 2008-01-26  Bruno Haible  <bruno@clisp.org>
39264
39265         Rename isnan, applicable to 'double' only, to isnand.
39266         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
39267         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
39268         (configure.ac): Update.
39269         (Include): Replace "isnan.h" with "isnand.h".
39270         * m4/isnand.m4: Renamed from m4/isnan.m4.
39271         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
39272         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
39273         instead of isnan.c.
39274         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
39275         instead of HAVE_ISNAN_IN_LIBC.
39276         (isnand): Renamed from isnan.
39277         * lib/isnand.c: New file.
39278         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
39279         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
39280         (Makefile.am): Update.
39281         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
39282         Include isnand.h instead of isnan.h.
39283         (main): Test isnand instead of isnan.
39284         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
39285         isnan-nolibm.
39286         * modules/frexp (Depends-on): Likewise.
39287         * modules/frexp-tests (Depends-on): Likewise.
39288         * modules/frexp-nolibm (Depends-on): Likewise.
39289         * modules/frexp-nolibm-tests (Depends-on): Likewise.
39290         * modules/isfinite (Depends-on): Likewise.
39291         * modules/round-tests (Depends-on): Likewise.
39292         * modules/signbit (Depends-on): Likewise.
39293         * modules/signbit-tests (Depends-on): Likewise.
39294         * modules/snprintf-posix (Depends-on): Likewise.
39295         * modules/sprintf-posix (Depends-on): Likewise.
39296         * modules/trunc-tests (Depends-on): Likewise.
39297         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39298         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39299         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39300         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39301         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39302         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39303         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39304         * modules/vasnprintf-posix (Depends-on): Likewise.
39305         * modules/vasprintf-posix (Depends-on): Likewise.
39306         * modules/vfprintf-posix (Depends-on): Likewise.
39307         * modules/vsnprintf-posix (Depends-on): Likewise.
39308         * modules/vsprintf-posix (Depends-on): Likewise.
39309         * lib/frexp.c: Include isnand.h instead of isnan.h.
39310         (ISNAN): Set to isnand instead of isnan.
39311         * lib/isfinite.c: Include isnand.h instead of isnan.h.
39312         (gl_isfinited): Use isnand instead of isnan.
39313         * lib/signbitd.c: Include isnand.h instead of isnan.h.
39314         (gl_signbitd): Use isnand instead of isnan.
39315         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
39316         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
39317         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
39318         (main): Use isnand instead of isnan.
39319         * tests/test-round1.c: Include isnand.h.
39320         (main): Use isnand instead of isnan.
39321         * tests/test-round2.c: Include isnand.h instead of isnan.h.
39322         (ISNAN): Set to isnand instead of isnan.
39323         * tests/test-trunc1.c: Include isnand.h.
39324         (main): Use isnand instead of isnan.
39325         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
39326         (equal): Use isnand instead of isnan.
39327         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
39328         isnand-nolibm.
39329         * NEWS: Mention the change.
39330
39331 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39332             Bruno Haible  <bruno@clisp.org>
39333
39334         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
39335         the GCC builtins for signbits are present and set
39336         REPLACE_SIGNBIT_USING_GCC if so.
39337         * lib/math.in.h (signbit): Define using GCC builtins if
39338         REPLACE_SIGNBIT_USING_GCC is set.
39339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
39340         REPLACE_SIGNBIT_USING_GCC.
39341         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
39342
39343 2008-01-25  Jim Meyering  <meyering@redhat.com>
39344
39345         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
39346         * lib/poll.c: Include <config.h>, not "config.h".
39347         * tests/test-getaddrinfo.c: Likewise.
39348
39349 2008-01-25  Simon Josefsson  <simon@josefsson.org>
39350
39351         * modules/sockets-tests: New file.
39352
39353 2008-01-24  Simon Josefsson  <simon@josefsson.org>
39354
39355         * modules/sockets: New module, can be used to call WSA_Startup and
39356         WSA_Cleanup when needed.
39357
39358         * lib/sockets.h, lib/sockets.c: New files.
39359
39360         * m4/sockets.m4: New file.
39361
39362         * tests/test-sockets.c: New file.
39363
39364 2008-01-19  Bruno Haible  <bruno@clisp.org>
39365
39366         * doc/posix-headers: Renamed from doc/headers.
39367         * doc/posix-functions: Renamed from doc/functions.
39368         * doc/gnulib.texi: Update.
39369
39370 2008-01-19  Bruno Haible  <bruno@clisp.org>
39371
39372         * doc/glibc-functions/strcasestr.texi: Include contents of
39373         doc/functions/strcasestr.texi, fixing the list of platforms.
39374         * doc/functions/strcasestr.texi: Remove file.
39375
39376 2008-01-19  Bruno Haible  <bruno@clisp.org>
39377
39378         * doc/glibc-functions/memmem.texi: Include contents of
39379         doc/functions/memmem.texi.
39380         * doc/functions/memmem.texi: Remove file.
39381
39382 2008-01-18  Bruno Haible  <bruno@clisp.org>
39383
39384         * doc/glibc-functions/*.texi: New files.
39385         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
39386         to use the new files.
39387
39388 2008-01-17  Bruno Haible  <bruno@clisp.org>
39389
39390         * tests/test-gethostname.c (main): Fix printf statement.
39391
39392 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39393
39394         * modules/gethostname-tests: New file.
39395
39396         * tests/test-gethostname.c: New file.
39397
39398 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39399
39400         * lib/gethostname.c: Include string.h unconditionally, strncpy is
39401         used by the UNAME case.  Reported by Bruno Haible
39402         <bruno@clisp.org>.
39403
39404 2008-01-17  Eric Blake  <ebb9@byu.net>
39405
39406         Convert c-strcasestr to be more efficient.
39407         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
39408         (Depends-on): Add c-strcase, remove malloca, strnlen.
39409         * tests/test-c-strcasestr.c (main): Enhance test.
39410         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
39411
39412 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39413
39414         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
39415         Use it in creating po/Makevars.
39416
39417 2008-01-15  Simon Josefsson  <simon@josefsson.org>
39418
39419         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
39420         Applications that requires it should initialize libgcrypt
39421         manually.
39422
39423 2008-01-16  Simon Josefsson  <simon@josefsson.org>
39424
39425         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
39426
39427 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
39428
39429         Fix problem with getdate on mingw32 reported by Simon Josefsson
39430         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
39431         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
39432         tzname", when deciding whether to declare tzname.
39433         * lib/strftime.c (tzname): Likewise.
39434
39435 2008-01-15  Bruno Haible  <bruno@clisp.org>
39436
39437         Work around a MacOS X 10.5 bug in frexpl().
39438         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
39439         * doc/functions/frexpl.texi: Document the bug.
39440         Reported by Elias Pipping <pipping@gentoo.org>.
39441
39442 2008-01-14  Eric Blake  <ebb9@byu.net>
39443
39444         Touch up previous patch.
39445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
39446         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
39447
39448         Convert strcasestr module to use Two-Way algorithm.
39449         * modules/strcasestr-simple: New module, based on the old
39450         strcasestr, but with Two-Way rather than KMP.
39451         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
39452         * lib/string.in.h (rpl_strcasestr): Declare.
39453         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
39454         performance.
39455         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
39456         * modules/string (Makefile.am): Support strcasestr.
39457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39458         * modules/strcasestr-tests (Depends-on): Check for alarm.
39459         * tests/test-strcasestr.c: Augment test.
39460         * lib/str-two-way.h: Clean up stray macro.
39461         * NEWS: Document new module.
39462         * MODULES.html.sh (string handling): Likewise.
39463         * doc/functions/strcasestr.texi: New file.
39464         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
39465         here, since it is not a POSIX function.
39466
39467 2008-01-14  Colin Watson  <cjwatson@debian.org>
39468             Bruno Haible  <bruno@clisp.org>
39469
39470         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
39471         works fine; if not, set REPLACE_STRSIGNAL.
39472         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
39473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39474         REPLACE_STRSIGNAL.
39475         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
39476         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
39477         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
39478
39479 2008-01-14  Bruno Haible  <bruno@clisp.org>
39480
39481         * modules/strsignal (Include): Change to <string.h>.
39482
39483 2008-01-14  Colin Watson  <cjwatson@debian.org>
39484
39485         * modules/argp (Notice): Add a notice recommending to change
39486         XGETTEXT_OPTIONS.
39487         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
39488
39489 2008-01-13  Colin Watson  <cjwatson@debian.org>
39490
39491         * modules/strsignal-tests: New file.
39492         * tests/test-strsignal.c: New file.
39493
39494         * lib/strsignal.c: New file, from glibc with modifications.
39495         * lib/siglist.h: New file, from glibc with modifications.
39496         * lib/string.in.h (strsignal): New declaration.
39497         * m4/strsignal.m4: New file.
39498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39499         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
39500         * modules/strsignal: New file.
39501         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
39502         HAVE_DECL_STRSIGNAL.
39503
39504 2008-01-13  Bruno Haible  <bruno@clisp.org>
39505
39506         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
39507         locale encoding is not ASCII. Needed for OpenBSD 4.0.
39508         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39509         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39510
39511 2008-01-13  Bruno Haible  <bruno@clisp.org>
39512
39513         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
39514         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
39515         * lib/argp.h (__attribute__): Likewise.
39516         * lib/c-stack.c (__attribute__): Likewise.
39517         * lib/error.h (__attribute__): Likewise.
39518         * lib/fts.c (__attribute__): Likewise.
39519         * lib/openat.h (__attribute__): Likewise.
39520         * lib/stdio.in.h (__attribute__): Likewise.
39521         * lib/string.in.h (__attribute__): Likewise.
39522         * lib/utimens.c (__attribute__): Likewise.
39523         * lib/vasnprintf.h (__attribute__): Likewise.
39524         * lib/xalloc.h (__attribute__): Likewise.
39525         * lib/xprintf.h (__attribute__): Likewise.
39526         * lib/xstrtol.h (__attribute__): Likewise.
39527         * lib/xvasprintf.h (__attribute__): Likewise.
39528
39529 2008-01-12  Bruno Haible  <bruno@clisp.org>
39530
39531         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
39532         * doc/glibc-headers/a.out.texi: New file.
39533         * doc/glibc-headers/aliases.texi: New file.
39534         * doc/glibc-headers/alloca.texi: New file.
39535         * doc/glibc-headers/ar.texi: New file.
39536         * doc/glibc-headers/argp.texi: New file.
39537         * doc/glibc-headers/argz.texi: New file.
39538         * doc/glibc-headers/byteswap.texi: New file.
39539         * doc/glibc-headers/crypt.texi: New file.
39540         * doc/glibc-headers/endian.texi: New file.
39541         * doc/glibc-headers/envz.texi: New file.
39542         * doc/glibc-headers/err.texi: New file.
39543         * doc/glibc-headers/error.texi: New file.
39544         * doc/glibc-headers/execinfo.texi: New file.
39545         * doc/glibc-headers/fpu_control.texi: New file.
39546         * doc/glibc-headers/fstab.texi: New file.
39547         * doc/glibc-headers/fts.texi: New file.
39548         * doc/glibc-headers/getopt.texi: New file.
39549         * doc/glibc-headers/ieee754.texi: New file.
39550         * doc/glibc-headers/ifaddrs.texi: New file.
39551         * doc/glibc-headers/libintl.texi: New file.
39552         * doc/glibc-headers/mcheck.texi: New file.
39553         * doc/glibc-headers/mntent.texi: New file.
39554         * doc/glibc-headers/obstack.texi: New file.
39555         * doc/glibc-headers/paths.texi: New file.
39556         * doc/glibc-headers/printf.texi: New file.
39557         * doc/glibc-headers/pty.texi: New file.
39558         * doc/glibc-headers/resolv.texi: New file.
39559         * doc/glibc-headers/shadow.texi: New file.
39560         * doc/glibc-headers/sysexits.texi: New file.
39561         * doc/glibc-headers/ttyent.texi: New file.
39562
39563 2008-01-12  Jim Meyering  <meyering@redhat.com>
39564
39565         announce-gen: emit Gnulib's git-based version string.
39566         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
39567         New option --gnulib-version=V, where V is expected to be
39568         the output of running git describe in the gnulib directory.
39569         (get_tool_versions): Request feedback on xdelta.  I suspect it's
39570         not useful, and plan to stop publishing an xdelta file with each
39571         coreutils release.
39572
39573         * build-aux/announce-gen: Also check for lzma-compressed files.
39574
39575 2008-01-11  Bruno Haible  <bruno@clisp.org>
39576
39577         * tests/test-memmem.c (main): Increase maximum allowed time.
39578         * tests/test-strstr.c (main): Likewise.
39579
39580 2008-01-11  Bruno Haible  <bruno@clisp.org>
39581
39582         * doc/functions/memmem.texi: Add more precisions about platforms.
39583         * doc/functions/strstr.texi: Likewise.
39584
39585 2008-01-10  Eric Blake  <ebb9@byu.net>
39586
39587         * m4/strstr.m4: Delete cruft from copy-n-paste.
39588         Reported by Bruno Haible.
39589
39590 2008-01-10  Bruno Haible  <bruno@clisp.org>
39591
39592         Make c-strstr rely on strstr.
39593         * lib/c-strstr.c: Don't include str-kmp.h.
39594         (c_strstr): Define in terms of strstr.
39595         * modules/c-strstr (Files): Remove lib/str-kmp.h.
39596         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
39597
39598 2008-01-10  Bruno Haible  <bruno@clisp.org>
39599
39600         * doc/gnulib.texi (String Functions in C Locale): New section.
39601         * doc/c-ctype.texi: New file.
39602         * doc/c-strcase.texi: New file.
39603         * doc/c-strcaseeq.texi: New file.
39604         * doc/c-strcasestr.texi: New file.
39605         * doc/c-strstr.texi: New file.
39606         * doc/c-strtod.texi: New file.
39607         * doc/c-strtold.texi: New file.
39608
39609 2008-01-10  Eric Blake  <ebb9@byu.net>
39610
39611         * lib/relocatable.h: Fix a comment.
39612
39613 2008-01-10  Eric Blake  <ebb9@byu.net>
39614
39615         Share two-way algorithm.
39616         * lib/str-two-way.h: New file, merged from...
39617         * lib/memmem.c: ...here...
39618         * lib/strstr.c: ...and here.
39619         * modules/memmem (Files): Use it.
39620         * modules/strstr (Files): Likewise.
39621
39622         Avoid quadratic strstr implementations.
39623         * lib/strstr.c: New file.
39624         * m4/strstr.m4: Likewise.
39625         * modules/strstr: Likewise.
39626         * modules/strstr-tests: Likewise.
39627         * tests/test-strstr.c: Likewise.
39628         * lib/string.in.h (rpl_strstr): Declare.
39629         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
39630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
39631         * modules/string (Makefile.am): Likewise.
39632         * MODULES.html.sh (string handling): Mention new module.
39633         * doc/functions/strstr.texi (strstr): Document the bug.
39634
39635 2008-01-10  Bruno Haible  <bruno@clisp.org>
39636
39637         * lib/relocatable.h (relocate): State whether result is freshly
39638         allocated or not.
39639         * lib/relocatable.c (relocate): Return a freshly allocated string
39640         instead of a pointer to a privately held string.
39641         Reported by Sylvain Beucler <beuc@gnu.org>.
39642
39643 2008-01-10  Colin Watson  <cjwatson@debian.org>
39644
39645         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
39646         s/S_ISNLK/S_ISLNK/.
39647
39648 2008-01-09  Bruno Haible  <bruno@clisp.org>
39649
39650         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
39651         and other files.
39652         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
39653         if it's only a guess.
39654         * modules/memmem: Simplify by depending on memmem-simple.
39655
39656 2008-01-09  Bruno Haible  <bruno@clisp.org>
39657
39658         Work around OpenBSD 4.0 tdelete() bug.
39659         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
39660         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
39661         macros and don't redefine the enum values.
39662         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
39663         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
39664         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
39665
39666 2008-01-09  Bruno Haible  <bruno@clisp.org>
39667
39668         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
39669         (main): Don't perform the tests if setlocale did not install a UTF-8
39670         locale. Needed on OpenBSD 4.0.
39671         * modules/wcwidth-tests (Depends-on): Add localcharset.
39672
39673 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39674
39675         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
39676         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
39677         * NEWS: announce this.
39678         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
39679
39680 2008-01-09  Simon Josefsson  <simon@josefsson.org>
39681         and Eric Blake  <ebb9@byu.net>
39682
39683         Add memmem-simple module.
39684         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
39685         (gl_FUNC_MEMMEM): Separate performance from presence checks.
39686         * modules/memmem-simple: New file.
39687         * modules/memmem (Description): Tweak.
39688         * MODULES.html.sh (string handling): Mention new module.
39689         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
39690         addressed by memmem-simple.
39691         * NEWS: Document the difference.
39692
39693 2008-01-09  Eric Blake  <ebb9@byu.net>
39694
39695         Give gcc some memmem optimization hints.
39696         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
39697         (strcasestr): Declare as pure.
39698         * modules/memmem (Maintainer): Claim my implementation.
39699
39700 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39701
39702         Support AIX 6.1 and higher.
39703         * build-aux/config.libpath: Likewise.
39704         * build-aux/config.rpath: Likewise.
39705
39706 2008-01-08  Jim Meyering  <meyering@redhat.com>
39707             Bruno Haible  <bruno@clisp.org>
39708
39709         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
39710         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
39711         Reported by Peter Fales in
39712         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
39713
39714 2008-01-08  Bruno Haible  <bruno@clisp.org>
39715
39716         * modules/unictype/category-of (Depends-on): Add
39717         unictype/category-none.
39718         * modules/unictype/category-and-tests (Depends-on): Add
39719         unictype/category-{L,N,Lu,Nd}.
39720         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
39721         * modules/unictype/category-or-tests (Depends-on): Add
39722         unictype/category-{L,N}.
39723         * modules/unictype/category-name-tests (Depends-on): Add
39724         unictype/category-{Z,Nl}.
39725         Reported by Simon Josefsson.
39726
39727 2008-01-08  Bruno Haible  <bruno@clisp.org>
39728
39729         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
39730         convention better.
39731         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
39732         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
39733         Reported by Peter Miller <millerp@canb.auug.org.au>.
39734
39735 2008-01-08  Eric Blake  <ebb9@byu.net>
39736
39737         Rewrite memmem to guarantee linear complexity without malloc.
39738         * lib/memmem.c (memmem): Use Two-Way rather than
39739         Knuth-Morris-Pratt, to allow O(1) space usage.
39740         (critical_factorization, two_way_short_needle)
39741         (two_way_long_needle): New functions.
39742         (knuth_morris_pratt): Delete.
39743         * modules/memmem (Depends-on): No longer need malloca or stdbool.
39744         Add stdint.
39745         * tests/test-memmem.c (main): Add tests for periodic needle and
39746         sublinear performance.
39747         * doc/functions/memmem.texi (memmem): Document other deficiencies
39748         in cygwin and older glibc.
39749
39750 2008-01-08  Bruno Haible  <bruno@clisp.org>
39751
39752         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
39753         augmentation.
39754
39755 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
39756
39757         Add a configure time option: --disable-acl.
39758         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
39759         AC_ARG_ENABLE(acl).
39760
39761 2008-01-06  Simon Josefsson  <simon@josefsson.org>
39762
39763         * tests/test-localename.c: Don't include obsolete "setenv.h".
39764
39765         * modules/localename-tests (Depends-on): Need unsetenv.
39766
39767 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39768
39769         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
39770
39771 2008-01-06  Colin Watson  <cjwatson@debian.org>
39772
39773         * users.txt: Add man-db.
39774
39775 2008-01-07  Bruno Haible  <bruno@clisp.org>
39776
39777         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
39778         previous section name.
39779
39780 2008-01-07  Bruno Haible  <bruno@clisp.org>
39781
39782         * lib/progname.c (set_program_name): Don't strip off a leading
39783         "lt-" prefix outside a .libs directory.
39784         Suggested by Paul Eggert.
39785
39786 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
39787             Bruno Haible  <bruno@clisp.org>
39788
39789         Improve memory cleanup in 'relocatable' module.
39790         * lib/relocatable.h (compute_curr_prefix): Change return type to
39791         'char *'.
39792         * lib/relocatable.c (compute_curr_prefix): Change return type to
39793         'char *'. Free curr_installdir after use.
39794         (relocate): Free curr_prefix_better after use.
39795         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
39796
39797 2008-01-01  Bruno Haible  <bruno@clisp.org>
39798
39799         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
39800         failure on older glibc systems.
39801         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39802
39803 2008-01-05  Eric Blake  <ebb9@byu.net>
39804
39805         Avoid quadratic system memmem.
39806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
39807         Reported by Ralf Wildenhues.
39808
39809         Fix memmem test for mingw.
39810         * modules/memmem-tests (configure.ac): Check for alarm.
39811         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
39812         it.
39813         * doc/functions/memmem.texi: New file.
39814         * doc/gnulib.texi (Function Substitutes): Add memmem.
39815         Reported by Bruno Haible.
39816
39817 2008-01-04  Bruno Haible  <bruno@clisp.org>
39818
39819         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
39820         Require gl_HEADER_STRINGS_H_DEFAULTS, not
39821         gl_HEADER_STRING_H_DEFAULTS.
39822
39823 2008-01-04  Eric Blake  <ebb9@byu.net>
39824
39825         Shorten duration of memmem test.
39826         * tests/test-memmem.c (main): Use alarm to declare failure if test
39827         is taking too long.
39828         Reported by Ralf Wildenhues.
39829
39830 2007-12-21  Simon Josefsson  <simon@josefsson.org>
39831
39832         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
39833         string, needed by strerror.
39834
39835 2008-01-03  Colin Watson  <cjwatson@debian.org>
39836             Bruno Haible  <bruno@clisp.org>
39837
39838         * doc/gnulib-tool.texi (Localization): New section.
39839
39840 2008-01-02  Bruno Haible  <bruno@clisp.org>
39841
39842         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
39843         variables to 'unsigned char *' type.
39844         Reported by Paul Eggert.
39845
39846 2008-01-02  Jim Meyering  <jim@meyering.net>
39847
39848         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
39849
39850 2007-12-31  Jim Meyering  <jim@meyering.net>
39851
39852         Avoid use of private FTS type name.
39853         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
39854
39855 2007-12-30  Karl Berry  <karl@gnu.org>
39856
39857         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
39858         work around defect in Texinfo and/or the standalone Info browser.
39859
39860 2007-12-30  Bruno Haible  <bruno@clisp.org>
39861
39862         Unify 5 copies of the KMP code.
39863         * lib/str-kmp.h: New file.
39864         * lib/c-strcasestr.c: Include str-kmp.h.
39865         (knuth_morris_pratt): Remove function.
39866         (c_strcasestr): Update.
39867         * lib/c-strstr.c: Include str-kmp.h.
39868         (knuth_morris_pratt): Remove function.
39869         (c_strcasestr): Update.
39870         * lib/mbscasestr.c: Include str-kmp.h.
39871         (knuth_morris_pratt_unibyte): Remove function.
39872         * lib/mbsstr.c: Include str-kmp.h.
39873         (knuth_morris_pratt_unibyte): Remove function.
39874         * lib/strcasestr.c: Include str-kmp.h.
39875         (knuth_morris_pratt): Remove function.
39876         (strcasestr): Update.
39877         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
39878         * modules/c-strstr (Files): Likewise.
39879         * modules/mbscasestr (Files): Likewise.
39880         * modules/mbsstr (Files): Likewise.
39881         * modules/strcasestr (Files): Likewise.
39882         Suggested by Paul Eggert.
39883
39884 2007-12-30  Bruno Haible  <bruno@clisp.org>
39885
39886         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
39887         defined.
39888
39889 2007-12-30  Bruno Haible  <bruno@clisp.org>
39890
39891         * lib/xmalloca.h: Include xalloc.h.
39892         (xnmalloca): New macro.
39893
39894 2007-12-30  Bruno Haible  <bruno@clisp.org>
39895
39896         * lib/malloca.h (nmalloca): New macro.
39897         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
39898         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
39899         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
39900         knuth_morris_pratt_multibyte): Likewise.
39901         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
39902         knuth_morris_pratt_multibyte): Likewise.
39903         * lib/memmem.c (knuth_morris_pratt): Likewise.
39904         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
39905
39906 2007-12-25  Bruno Haible  <bruno@clisp.org>
39907
39908         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
39909         * lib/glob.c: Don't include openat.h.
39910         (link_exists2_p): Add back the code that deals with the
39911         !GLOB_ALTDIRFUNC case.
39912         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
39913         let it do the filename concatenation.
39914         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
39915         * modules/glob (Depends-on): Remove openat.
39916
39917 2007-12-31  Bruno Haible  <bruno@clisp.org>
39918
39919         * modules/dirfd (License): Change to LGPLv2+.
39920         Approved by Jim Meyering.
39921
39922 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39923
39924         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
39925         when multiplying M by sizeof (size_t).
39926
39927 2007-12-10  Martin Lambers  <marlam@marlam.de>
39928
39929         Override getpagesize on mingw.
39930         * lib/getpagesize.c: New file.
39931         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
39932         * modules/getpagesize (Files): Add lib/getpagesize.c.
39933         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
39934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39935         REPLACE_GETPAGESIZE.
39936         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
39937
39938 2007-12-25  Bruno Haible  <bruno@clisp.org>
39939
39940         * modules/localcharset (Notice): New field.
39941         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
39942         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
39943
39944 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39945             Bruno Haible  <bruno@clisp.org>
39946
39947         Avoid using the syntax symbol() in formatted documentation.
39948         * MODULES.html.sh (func_module): When replacing symbol() with a
39949         hyperlink, remove the parentheses. Show an error if some remain.
39950         Recognize and render the '...' syntax.
39951         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
39952         Rework. Add paragraph about GCC's inlining.
39953         * doc/alloca.texi: Likewise.
39954         * doc/error.texi: Remove parentheses from symbol reference.
39955         * doc/gnulib-intro.texi: Likewise.
39956         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
39957         * modules/fnmatch (Description): Reword to say "the ... function".
39958         * modules/full-read (Description): Likewise.
39959         * modules/full-write (Description): Likewise.
39960         * modules/safe-read (Description): Likewise.
39961         * modules/safe-write (Description): Likewise.
39962         * modules/strchrnul (Description): Likewise.
39963         * modules/trim (Description): Likewise.
39964         * modules/error (Description): Remove parentheses from symbol
39965         references.
39966         * modules/verror (Description): Likewise.
39967         Reported by Karl Berry.
39968
39969 2007-12-25  Bruno Haible  <bruno@clisp.org>
39970
39971         Fixup after 2007-10-16 commit.
39972         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
39973
39974 2007-12-24  Bruno Haible  <bruno@clisp.org>
39975
39976         Make --enable-relocatable work with DESTDIR.
39977         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
39978         to compute installdir from destprog.
39979         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
39980         also set the RELOC_DESTDIR variable.
39981         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
39982
39983 2007-12-24  Bruno Haible  <bruno@clisp.org>
39984
39985         Fix link error due to xalloc_die().
39986         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
39987         of xreadlink.
39988         * lib/relocwrapper.c: Update comments.
39989         * build-aux/install-reloc: Remove xreadlink.c from file list.
39990         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
39991         xreadlink.c.
39992         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
39993
39994 2007-12-24  Bruno Haible  <bruno@clisp.org>
39995
39996         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
39997         * lib/setenv.h: Remove file.
39998         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
39999         lib/setenv.h.
40000         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
40001         (Depends-on): Add stdlib.
40002         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
40003         gl_FUNC_UNSETENV.
40004         (Include): Replace setenv.h with <stdlib.h>.
40005         * modules/unsetenv: New file.
40006         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
40007         * lib/unsetenv.c: Include <stdlib.h> first.
40008         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
40009         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
40010         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
40011         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
40012         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
40013         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
40015         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40016         * doc/functions/unsetenv.texi: Update.
40017         * modules/xsetenv (Depends-on): Add unsetenv.
40018         * modules/getdate (Depends-on): Likewise.
40019         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
40020         * lib/xsetenv.c: Don't include setenv.h.
40021         * lib/getdate.y: Likewise.
40022         * lib/relocwrapper.c: Likewise.
40023         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
40024         (Depends-on): Add stdlib.
40025         * NEWS: Mention the changes.
40026         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40027
40028 2007-12-23  Bruno Haible  <bruno@clisp.org>
40029
40030         * lib/memmem.c (memmem): Use lowercase variable names. Tab
40031         indentation.
40032
40033 2007-12-23  Bruno Haible  <bruno@clisp.org>
40034
40035         * lib/c-strcasestr.c: Add more comments.
40036         * lib/c-strstr.c: Likewise.
40037         * lib/mbscasestr.c: Likewise.
40038         * lib/mbsstr.c: Likewise.
40039         * lib/strcasestr.c: Likewise.
40040         * lib/memmem.c: Likewise.
40041
40042 2007-12-23  Bruno Haible  <bruno@clisp.org>
40043
40044         * tests/test-memmem.c: Include <string.h> first.
40045
40046 2007-12-22  Bruno Haible  <bruno@clisp.org>
40047
40048         * gnulib-tool (func_create_testdir): Change $auxdir while generating
40049         the contents of $testsbase.
40050         Reported by Ralf Wildenhues.
40051
40052 2007-12-22  Bruno Haible  <bruno@clisp.org>
40053
40054         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
40055         two variables local_ldadd_before, local_ldadd_last.
40056
40057 2007-12-20  Eric Blake  <ebb9@byu.net>
40058
40059         Work around circular library issue when cross-compiling.
40060         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
40061         that progname.o does not need to pull in rpl_memcmp.
40062
40063 2007-12-19  Eric Blake  <ebb9@byu.net>
40064
40065         Fix memmem to avoid O(n^2) worst-case complexity.
40066         * lib/memmem.c (knuth_morris_pratt): New function.
40067         (memmem): Use it if first few naive iterations fail.
40068         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
40069         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
40070         * modules/memchr (License): Likewise.
40071         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
40072         malloca.
40073         * tests/test-memmem.c: Rewrite, borrowing ideas from
40074         test-mbsstr1.c; the old version wouldn't even compile!
40075         * modules/memmem-tests: New file.
40076         * lib/string.in.h (rpl_memmem): Add declaration.
40077         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
40078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
40079         REPLACE_MEMMEM.
40080
40081 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40082
40083         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
40084         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
40085         before any system include files, and undef after them all.  This
40086         should fix a problem on VMS reported by John E. Malmberg in
40087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
40088
40089 2007-12-17  Eric Blake  <ebb9@byu.net>
40090
40091         Revert addition of verify, for BSD/OS.
40092         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
40093         can't handle large files, for the sake of obsolete platforms.
40094         * modules/fseeko (Depends-on): Remove verify.
40095         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
40096         * doc/functions/ftello.texi (ftello): Likewise.
40097         * doc/functions/fgetpos.texi (fgetpos): Likewise.
40098         Reported by Larry Jones.
40099
40100 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
40101
40102         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
40103         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
40104
40105 2007-12-17  Jim Meyering  <meyering@redhat.com>
40106
40107         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
40108         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
40109         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
40110         * modules/getcwd (Depends-on): Add openat.
40111         Reported by Petr Salinger.
40112
40113 2007-12-17  Bruno Haible  <bruno@clisp.org>
40114
40115         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
40116         avoid a segmentation fault of the configure test on x86_64 systems.
40117
40118 2007-12-15  Jim Meyering  <meyering@redhat.com>
40119
40120         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
40121
40122 2007-12-13  Eric Blake  <ebb9@byu.net>
40123
40124         Another fseek test.
40125         * tests/test-fseek.c (main): Also test ungetc handling.
40126         * tests/test-fseeko.c (main): Likewise.
40127         * modules/fseeko (Depends-on): Add verify.
40128         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
40129         large.
40130         Reported by Larry Jones.
40131
40132         Fix fseeko on mingw.
40133         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
40134         seek.
40135
40136         Beef up fseek tests.
40137         * tests/test-fseek.c (main): Also test eof handling.
40138         * tests/test-fseeko.c (main): Likewise.
40139         Reported by Larry Jones.
40140
40141 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
40142
40143         Fix fseeko on BSD-based platforms.
40144         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
40145         successful seek.
40146
40147 2007-12-12  Eric Blake  <ebb9@byu.net>
40148
40149         Allow circular dependency of separate libtests.a
40150         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
40151         when use_libtests.
40152
40153 2007-12-11  Eric Blake  <ebb9@byu.net>
40154
40155         Fix bug with -0.0L in previous patch.
40156         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
40157         * tests/test-isnan.c (main): Also test on zeroes.
40158         * tests/test-isnanf.c (main): Likewise.
40159         * tests/test-isnanl.h (main): Likewise.
40160
40161         Detect pseudo-denormals on x86 even when cross-compiling.
40162         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
40163         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
40164         invalid bit patterns that happen to satisfy ==.
40165
40166         Avoid link failures with separate libtests.a.
40167         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
40168         last, to satisfy circular dependencies.
40169
40170 2007-12-11  Eric Blake  <ebb9@byu.net>
40171         and Bruno Haible  <bruno@clisp.org>
40172
40173         Fix OpenBSD 4.0 <float.h> handling of long double.
40174         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
40175         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
40176         * doc/headers/float.texi (float.h): Document OpenBSD bug.
40177
40178 2007-12-11  Jim Meyering  <meyering@redhat.com>
40179
40180         * users.txt: Add libvirt.
40181
40182         Support versions of autoconf prior to 2.59c.
40183         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
40184         if it is not already defined.
40185
40186 2007-12-09  Bruno Haible  <bruno@clisp.org>
40187
40188         Let 'gnulib-tool --import' collect sources needed for the tests in
40189         tests/ rather than in lib/.
40190         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
40191         argument. If true, add rules to generate libtests.a, and put libtests.a
40192         into $(LDADD). Consider source files in subdirectories and set
40193         uses_subdirs.
40194         (func_emit_initmacro_start, func_emit_initmacro_end,
40195         func_emit_initmacro_done): Pass all arguments explicitly.
40196         (func_import): Determine two module lists main_modules,
40197         testsrelated_modules. Determine use_libtests. Determine two variables
40198         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
40199         instead of just sed_transform_lib_file. Determine two variables
40200         main_files and testsrelated_files. Compute 'files' as the union of
40201         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
40202         func_add_or_update. In the generated gnulib-comp.m4, collect the
40203         object files for tests/ in different variables than those for lib/.
40204         Substitute LIBTESTS_LIBDEPS.
40205         (func_create_testdir): Combine the uses_subdirs results from
40206         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
40207
40208 2007-12-09  Bruno Haible  <bruno@clisp.org>
40209
40210         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
40211         the build-aux directory.
40212
40213 2007-12-09  Bruno Haible  <bruno@clisp.org>
40214
40215         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
40216         introduced on 2006-09-09.
40217
40218 2007-12-07  Jim Meyering  <meyering@redhat.com>
40219
40220         Let these macros work also with autoconf-2.59.
40221         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
40222         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
40223         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40224
40225 2007-12-06  Jim Meyering  <meyering@redhat.com>
40226
40227         Avoid a configure-time syntax error in gl_FUNC_ACL.
40228         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
40229         function in each branch, before testing the cache variable.
40230
40231 2007-12-04  Eric Blake  <ebb9@byu.net>
40232
40233         Make scripts executable.
40234         * build-aux/config.guess: Add execute permissions.
40235         * build-aux/config.sub: Likewise.
40236         * build-aux/gendocs.sh: Likewise.
40237
40238         Fix frexp on mingw.
40239         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
40240         cross-compiling.
40241         * doc/functions/frexp.texi (frexp): Document the bug.
40242
40243         Make cygwin fseeko check more reliable.
40244         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
40245         version numbers, rather than unrelated feature check.
40246         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
40247         * doc/functions/ftello.texi (ftello): Likewise.
40248         Reported by Bruno Haible.
40249
40250         * m4/strerror.m4: Bump version number.
40251
40252 2007-12-03  Bruno Haible  <bruno@clisp.org>
40253
40254         * doc/functions/mprotect.texi: Mention the mingw problem.
40255
40256 2007-12-03  Eric Blake  <ebb9@byu.net>
40257
40258         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
40259         REPLACE_STRERROR is initialized before this macro.
40260
40261 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40262
40263         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
40264         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
40265         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
40266         put -lsec in even for programs other than 'ls'.  This fixes a problem
40267         for gettext reported by Bruno Haible in
40268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
40269         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
40270         Add support for Solaris 10.  This isn't efficient, but should get the
40271         job done for now.
40272
40273 2007-12-03  James Youngman  <jay@gnu.org>
40274
40275         * doc/regexprops-generic.texi: change "an close-group" to "a
40276         close-group" and "illegal" to "not allowed".
40277
40278 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40279
40280         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
40281         pr_byname.h. Needed for the rare case when the maintainer has done
40282         "make maintainer-clean" in the source directory and then attempts a
40283         build outside the source directory.
40284         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
40285         scripts_byname.h.
40286
40287 2007-12-02  Martin Lambers <marlam@marlam.de>
40288             Bruno Haible  <bruno@clisp.org>
40289
40290         * lib/getpagesize.h: Remove file.
40291         * lib/unistd.in.h: Include declaration of getpagesize here.
40292         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
40293         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
40294         HAVE_SYS_PARAM_H.
40295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
40296         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40297         * modules/getpagesize (Files): Remove lib/getpagesize.h.
40298         (Depends-on): Add unistd.
40299         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40300         (Include): Use <unistd.h> instead of getpagesize.h.
40301         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
40302         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40303         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
40304         gl_GETPAGESIZE invocation, already handled by module dependency.
40305         * lib/pagealign_alloc.c: Don't include getpagesize.h.
40306
40307 2007-12-02  Bruno Haible  <bruno@clisp.org>
40308
40309         * modules/strings-tests: New file.
40310         * tests/test-strings.c: New file.
40311
40312         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
40313         * lib/strings.in.h: New file.
40314         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
40315         * m4/strings_h.m4: New file.
40316         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
40317         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
40318         * modules/strings: New file.
40319         * modules/string (Makefile.am): Update.
40320         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
40321         Reported by Karl Berry.
40322
40323 2007-12-01  Eric Blake  <ebb9@byu.net>
40324
40325         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
40326         accomodate fix in cygwin 1.5.25.
40327
40328 2007-12-01  Jim Meyering  <meyering@redhat.com>
40329
40330         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
40331         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
40332         that would inhibit utf8-optimization of a regexp containing line-
40333         or buffer-anchors, e.g., `^', `$'.
40334
40335 2007-11-30  Bruno Haible  <bruno@clisp.org>
40336
40337         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
40338         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
40339         glthread_recursive_lock_init.
40340         * lib/lock.c (glthread_recursive_lock_init)
40341         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
40342         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40343
40344 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
40345
40346         New function qset_acl, like set_acl but with syscall semantics.
40347         * lib/acl.h (qset_acl): New decl.
40348         * lib/acl.c (qset_acl): New function.
40349         (set_acl): Use new function.  Use more-consistent diagnostics.
40350
40351 2007-11-28  Jim Meyering  <meyering@redhat.com>
40352
40353         * modules/physmem (License): Change from GPL to LGPLv2+.
40354
40355 2007-11-26  Bruno Haible  <bruno@clisp.org>
40356
40357         * lib/vasnprintf.c (decode_long_double): Don't abort if the
40358         'long double' type has excess precision.
40359         Reported by Jim Meyering in
40360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
40361
40362 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40363
40364         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
40365         Sync from <http://gnu.org/licenses>.
40366         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
40367         with license text from same location.
40368         * doc/maintain.texi, doc/standards.texi:  Sync from
40369         <http://savannah.gnu.org/projects/gnustandards>.
40370
40371 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
40372         and Jim Meyering  <meyering@redhat.com>
40373
40374         Adjust getdate' grammar to accept a slightly more regular language.
40375         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
40376         Before, the former was rejected.
40377         * lib/getdate.y (digits_to_date_time): New function, factored
40378         out of ...
40379         (number): ...here.  Just call digits_to_date_time.
40380         (hybrid): New non-terminal to handle an <unsigned number,
40381         signed relative offset> sequence consistently.
40382
40383 2007-11-18  Jim Meyering  <meyering@redhat.com>
40384
40385         Pull my changes from coreutils:
40386         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
40387         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
40388         use of $gnulib_tool_option_extras, so that it's separated from the
40389         preceding argument.
40390
40391         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
40392         * build-aux/bootstrap (cp_mark_as_generated): Create any required
40393         parent destination directories before copying a file into place.
40394
40395 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40396
40397         bootstrap: work also with 4-argument variant of AC_INIT
40398         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
40399
40400 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40401
40402         Port test-getaddrinfo to Solaris.
40403         Problem reported by Bruno Haible in
40404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
40405         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
40406         explanation of setting 'hints'.
40407         Don't reject an implementation merely because it returns EAI_SERVICE.
40408         (EAI_SERVICE): Define to 0 if not defined.
40409
40410 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40411
40412         The license of gnu-make and posix-shell is now "GPLed build tool".
40413         * modules/gnu-make (License): Likewise.
40414         * modules/posix-shell (License): Likewise.
40415
40416         New module posix-shell, for determining a POSIX shell
40417         or perhaps something that is close enough to a POSIX shell.
40418         * m4/posix-shell.m4: New file.
40419         * modules/posix-shell: New file.
40420
40421         * MODULES.html.sh: Mention new module.
40422
40423         New module gnu-make, for determining whether we're using GNU Make.
40424         * m4/gnu-make.m4: New file.
40425         * modules/gnu-make: New file.
40426         * MODULES.html.sh: Mention new module.
40427
40428 2007-11-14  Jim Meyering  <meyering@redhat.com>
40429
40430         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
40431         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
40432         use this macro to create a function _definition_.
40433         Remove useless "#undef ARGMATCH_DIE".
40434
40435 2007-11-14  Bruno Haible  <bruno@clisp.org>
40436
40437         * lib/config.charset: Update for OpenBSD 4.1.
40438         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
40439
40440 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
40441
40442         Document 64-bit #if problems in stdint.texi.
40443         * doc/headers/stdint.texi (stdint.h): Mention problems with
40444         64-bit-#if, and how to work around them.
40445
40446         Don't insist on 'long long int' support in the preprocessor.  It
40447         breaks too many things.  For example, PRIdMAX still uses a 'long
40448         long int' format with the latest Sun compiler, even though
40449         HAVE_LONG_LONG_INT isn't defined due to that compiler's
40450         preprocessor problem.  This causes the latest coreutils to dump
40451         core on Solaris 10 sparc with the Sun C compiler.
40452         Instead, fix the 2007-10-16 problem in a different way, by evaluating
40453         the troublesome expressions at configure-time, not at #if-time.
40454         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
40455         preprocessor.
40456         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
40457         compile-time C checks, done at 'configure'-time.
40458         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
40459         * modules/inttypes (Makefile): Substitute the new symbols that
40460         gl_INTTYPES_H now generates.
40461         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
40462
40463 2007-11-12  Bruno Haible  <bruno@clisp.org>
40464
40465         Tests for Unicode character classification functions.
40466
40467         * modules/unictype/bidicategory-byname-tests: New file.
40468         * modules/unictype/bidicategory-name-tests: New file.
40469         * modules/unictype/bidicategory-of-tests: New file.
40470         * modules/unictype/bidicategory-test-tests: New file.
40471         * modules/unictype/block-list-tests: New file.
40472         * modules/unictype/block-of-tests: New file.
40473         * modules/unictype/block-test-tests: New file.
40474         * modules/unictype/category-C-tests: New file.
40475         * modules/unictype/category-Cc-tests: New file.
40476         * modules/unictype/category-Cf-tests: New file.
40477         * modules/unictype/category-Cn-tests: New file.
40478         * modules/unictype/category-Co-tests: New file.
40479         * modules/unictype/category-Cs-tests: New file.
40480         * modules/unictype/category-L-tests: New file.
40481         * modules/unictype/category-Ll-tests: New file.
40482         * modules/unictype/category-Lm-tests: New file.
40483         * modules/unictype/category-Lo-tests: New file.
40484         * modules/unictype/category-Lt-tests: New file.
40485         * modules/unictype/category-Lu-tests: New file.
40486         * modules/unictype/category-M-tests: New file.
40487         * modules/unictype/category-Mc-tests: New file.
40488         * modules/unictype/category-Me-tests: New file.
40489         * modules/unictype/category-Mn-tests: New file.
40490         * modules/unictype/category-N-tests: New file.
40491         * modules/unictype/category-Nd-tests: New file.
40492         * modules/unictype/category-Nl-tests: New file.
40493         * modules/unictype/category-No-tests: New file.
40494         * modules/unictype/category-P-tests: New file.
40495         * modules/unictype/category-Pc-tests: New file.
40496         * modules/unictype/category-Pd-tests: New file.
40497         * modules/unictype/category-Pe-tests: New file.
40498         * modules/unictype/category-Pf-tests: New file.
40499         * modules/unictype/category-Pi-tests: New file.
40500         * modules/unictype/category-Po-tests: New file.
40501         * modules/unictype/category-Ps-tests: New file.
40502         * modules/unictype/category-S-tests: New file.
40503         * modules/unictype/category-Sc-tests: New file.
40504         * modules/unictype/category-Sk-tests: New file.
40505         * modules/unictype/category-Sm-tests: New file.
40506         * modules/unictype/category-So-tests: New file.
40507         * modules/unictype/category-Z-tests: New file.
40508         * modules/unictype/category-Zl-tests: New file.
40509         * modules/unictype/category-Zp-tests: New file.
40510         * modules/unictype/category-Zs-tests: New file.
40511         * modules/unictype/category-and-not-tests: New file.
40512         * modules/unictype/category-and-tests: New file.
40513         * modules/unictype/category-byname-tests: New file.
40514         * modules/unictype/category-name-tests: New file.
40515         * modules/unictype/category-none-tests: New file.
40516         * modules/unictype/category-of-tests: New file.
40517         * modules/unictype/category-or-tests: New file.
40518         * modules/unictype/category-test-withtable-tests: New file.
40519         * modules/unictype/combining-class-tests: New file.
40520         * modules/unictype/ctype-alnum-tests: New file.
40521         * modules/unictype/ctype-alpha-tests: New file.
40522         * modules/unictype/ctype-blank-tests: New file.
40523         * modules/unictype/ctype-cntrl-tests: New file.
40524         * modules/unictype/ctype-digit-tests: New file.
40525         * modules/unictype/ctype-graph-tests: New file.
40526         * modules/unictype/ctype-lower-tests: New file.
40527         * modules/unictype/ctype-print-tests: New file.
40528         * modules/unictype/ctype-punct-tests: New file.
40529         * modules/unictype/ctype-space-tests: New file.
40530         * modules/unictype/ctype-upper-tests: New file.
40531         * modules/unictype/ctype-xdigit-tests: New file.
40532         * modules/unictype/decimal-digit-tests: New file.
40533         * modules/unictype/digit-tests: New file.
40534         * modules/unictype/mirror-tests: New file.
40535         * modules/unictype/numeric-tests: New file.
40536         * modules/unictype/property-alphabetic-tests: New file.
40537         * modules/unictype/property-ascii-hex-digit-tests: New file.
40538         * modules/unictype/property-bidi-arabic-digit-tests: New file.
40539         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
40540         * modules/unictype/property-bidi-block-separator-tests: New file.
40541         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
40542         * modules/unictype/property-bidi-common-separator-tests: New file.
40543         * modules/unictype/property-bidi-control-tests: New file.
40544         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
40545         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
40546         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
40547         * modules/unictype/property-bidi-european-digit-tests: New file.
40548         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
40549         * modules/unictype/property-bidi-left-to-right-tests: New file.
40550         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
40551         * modules/unictype/property-bidi-other-neutral-tests: New file.
40552         * modules/unictype/property-bidi-pdf-tests: New file.
40553         * modules/unictype/property-bidi-segment-separator-tests: New file.
40554         * modules/unictype/property-bidi-whitespace-tests: New file.
40555         * modules/unictype/property-byname-tests: New file.
40556         * modules/unictype/property-combining-tests: New file.
40557         * modules/unictype/property-composite-tests: New file.
40558         * modules/unictype/property-currency-symbol-tests: New file.
40559         * modules/unictype/property-dash-tests: New file.
40560         * modules/unictype/property-decimal-digit-tests: New file.
40561         * modules/unictype/property-default-ignorable-code-point-tests: New file.
40562         * modules/unictype/property-deprecated-tests: New file.
40563         * modules/unictype/property-diacritic-tests: New file.
40564         * modules/unictype/property-extender-tests: New file.
40565         * modules/unictype/property-format-control-tests: New file.
40566         * modules/unictype/property-grapheme-base-tests: New file.
40567         * modules/unictype/property-grapheme-extend-tests: New file.
40568         * modules/unictype/property-grapheme-link-tests: New file.
40569         * modules/unictype/property-hex-digit-tests: New file.
40570         * modules/unictype/property-hyphen-tests: New file.
40571         * modules/unictype/property-id-continue-tests: New file.
40572         * modules/unictype/property-id-start-tests: New file.
40573         * modules/unictype/property-ideographic-tests: New file.
40574         * modules/unictype/property-ids-binary-operator-tests: New file.
40575         * modules/unictype/property-ids-trinary-operator-tests: New file.
40576         * modules/unictype/property-ignorable-control-tests: New file.
40577         * modules/unictype/property-iso-control-tests: New file.
40578         * modules/unictype/property-join-control-tests: New file.
40579         * modules/unictype/property-left-of-pair-tests: New file.
40580         * modules/unictype/property-line-separator-tests: New file.
40581         * modules/unictype/property-logical-order-exception-tests: New file.
40582         * modules/unictype/property-lowercase-tests: New file.
40583         * modules/unictype/property-math-tests: New file.
40584         * modules/unictype/property-non-break-tests: New file.
40585         * modules/unictype/property-not-a-character-tests: New file.
40586         * modules/unictype/property-numeric-tests: New file.
40587         * modules/unictype/property-other-alphabetic-tests: New file.
40588         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
40589         * modules/unictype/property-other-grapheme-extend-tests: New file.
40590         * modules/unictype/property-other-id-continue-tests: New file.
40591         * modules/unictype/property-other-id-start-tests: New file.
40592         * modules/unictype/property-other-lowercase-tests: New file.
40593         * modules/unictype/property-other-math-tests: New file.
40594         * modules/unictype/property-other-uppercase-tests: New file.
40595         * modules/unictype/property-paired-punctuation-tests: New file.
40596         * modules/unictype/property-paragraph-separator-tests: New file.
40597         * modules/unictype/property-pattern-syntax-tests: New file.
40598         * modules/unictype/property-pattern-white-space-tests: New file.
40599         * modules/unictype/property-private-use-tests: New file.
40600         * modules/unictype/property-punctuation-tests: New file.
40601         * modules/unictype/property-quotation-mark-tests: New file.
40602         * modules/unictype/property-radical-tests: New file.
40603         * modules/unictype/property-sentence-terminal-tests: New file.
40604         * modules/unictype/property-soft-dotted-tests: New file.
40605         * modules/unictype/property-space-tests: New file.
40606         * modules/unictype/property-terminal-punctuation-tests: New file.
40607         * modules/unictype/property-test-tests: New file.
40608         * modules/unictype/property-titlecase-tests: New file.
40609         * modules/unictype/property-unassigned-code-value-tests: New file.
40610         * modules/unictype/property-unified-ideograph-tests: New file.
40611         * modules/unictype/property-uppercase-tests: New file.
40612         * modules/unictype/property-variation-selector-tests: New file.
40613         * modules/unictype/property-white-space-tests: New file.
40614         * modules/unictype/property-xid-continue-tests: New file.
40615         * modules/unictype/property-xid-start-tests: New file.
40616         * modules/unictype/property-zero-width-tests: New file.
40617         * modules/unictype/scripts-tests: New file.
40618         * modules/unictype/syntax-c-ident-tests: New file.
40619         * modules/unictype/syntax-c-whitespace-tests: New file.
40620         * modules/unictype/syntax-java-ident-tests: New file.
40621         * modules/unictype/syntax-java-whitespace-tests: New file.
40622         * tests/unictype/test-bidi_byname.c: New file.
40623         * tests/unictype/test-bidi_name.c: New file.
40624         * tests/unictype/test-bidi_of.c: New file.
40625         * tests/unictype/test-bidi_test.c: New file.
40626         * tests/unictype/test-block_list.c: New file.
40627         * tests/unictype/test-block_of.c: New file.
40628         * tests/unictype/test-block_test.c: New file.
40629         * tests/unictype/test-categ_and.c: New file.
40630         * tests/unictype/test-categ_and_not.c: New file.
40631         * tests/unictype/test-categ_byname.c: New file.
40632         * tests/unictype/test-categ_name.c: New file.
40633         * tests/unictype/test-categ_none.c: New file.
40634         * tests/unictype/test-categ_of.c: New file.
40635         * tests/unictype/test-categ_or.c: New file.
40636         * tests/unictype/test-categ_test_withtable.c: New file.
40637         * tests/unictype/test-combining.c: New file.
40638         * tests/unictype/test-decdigit.c: New file.
40639         * tests/unictype/test-digit.c: New file.
40640         * tests/unictype/test-mirror.c: New file.
40641         * tests/unictype/test-numeric.c: New file.
40642         * tests/unictype/test-pr_byname.c: New file.
40643         * tests/unictype/test-pr_test.c: New file.
40644         * tests/unictype/test-predicate-part1.h: New file.
40645         * tests/unictype/test-predicate-part2.h: New file.
40646         * tests/unictype/test-scripts.c: New file.
40647         * tests/unictype/test-sy_c_ident.c: New file.
40648         * tests/unictype/test-sy_java_ident.c: New file.
40649
40650         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
40651         for Unicode 5.0.0.
40652         * tests/unictype/test-categ_Cc.c: Likewise.
40653         * tests/unictype/test-categ_Cf.c: Likewise.
40654         * tests/unictype/test-categ_Cn.c: Likewise.
40655         * tests/unictype/test-categ_Co.c: Likewise.
40656         * tests/unictype/test-categ_Cs.c: Likewise.
40657         * tests/unictype/test-categ_L.c: Likewise.
40658         * tests/unictype/test-categ_Ll.c: Likewise.
40659         * tests/unictype/test-categ_Lm.c: Likewise.
40660         * tests/unictype/test-categ_Lo.c: Likewise.
40661         * tests/unictype/test-categ_Lt.c: Likewise.
40662         * tests/unictype/test-categ_Lu.c: Likewise.
40663         * tests/unictype/test-categ_M.c: Likewise.
40664         * tests/unictype/test-categ_Mc.c: Likewise.
40665         * tests/unictype/test-categ_Me.c: Likewise.
40666         * tests/unictype/test-categ_Mn.c: Likewise.
40667         * tests/unictype/test-categ_N.c: Likewise.
40668         * tests/unictype/test-categ_Nd.c: Likewise.
40669         * tests/unictype/test-categ_Nl.c: Likewise.
40670         * tests/unictype/test-categ_No.c: Likewise.
40671         * tests/unictype/test-categ_P.c: Likewise.
40672         * tests/unictype/test-categ_Pc.c: Likewise.
40673         * tests/unictype/test-categ_Pd.c: Likewise.
40674         * tests/unictype/test-categ_Pe.c: Likewise.
40675         * tests/unictype/test-categ_Pf.c: Likewise.
40676         * tests/unictype/test-categ_Pi.c: Likewise.
40677         * tests/unictype/test-categ_Po.c: Likewise.
40678         * tests/unictype/test-categ_Ps.c: Likewise.
40679         * tests/unictype/test-categ_S.c: Likewise.
40680         * tests/unictype/test-categ_Sc.c: Likewise.
40681         * tests/unictype/test-categ_Sk.c: Likewise.
40682         * tests/unictype/test-categ_Sm.c: Likewise.
40683         * tests/unictype/test-categ_So.c: Likewise.
40684         * tests/unictype/test-categ_Z.c: Likewise.
40685         * tests/unictype/test-categ_Zl.c: Likewise.
40686         * tests/unictype/test-categ_Zp.c: Likewise.
40687         * tests/unictype/test-categ_Zs.c: Likewise.
40688         * tests/unictype/test-ctype_alnum.c: Likewise.
40689         * tests/unictype/test-ctype_alpha.c: Likewise.
40690         * tests/unictype/test-ctype_blank.c: Likewise.
40691         * tests/unictype/test-ctype_cntrl.c: Likewise.
40692         * tests/unictype/test-ctype_digit.c: Likewise.
40693         * tests/unictype/test-ctype_graph.c: Likewise.
40694         * tests/unictype/test-ctype_lower.c: Likewise.
40695         * tests/unictype/test-ctype_print.c: Likewise.
40696         * tests/unictype/test-ctype_punct.c: Likewise.
40697         * tests/unictype/test-ctype_space.c: Likewise.
40698         * tests/unictype/test-ctype_upper.c: Likewise.
40699         * tests/unictype/test-ctype_xdigit.c: Likewise.
40700         * tests/unictype/test-decdigit.h: Likewise.
40701         * tests/unictype/test-digit.h: Likewise.
40702         * tests/unictype/test-numeric.h: Likewise.
40703         * tests/unictype/test-pr_alphabetic.c: Likewise.
40704         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
40705         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40706         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
40707         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
40708         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
40709         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
40710         * tests/unictype/test-pr_bidi_control.c: Likewise.
40711         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
40712         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
40713         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40714         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
40715         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40716         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40717         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40718         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40719         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
40720         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
40721         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
40722         * tests/unictype/test-pr_combining.c: Likewise.
40723         * tests/unictype/test-pr_composite.c: Likewise.
40724         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40725         * tests/unictype/test-pr_dash.c: Likewise.
40726         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40727         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
40728         * tests/unictype/test-pr_deprecated.c: Likewise.
40729         * tests/unictype/test-pr_diacritic.c: Likewise.
40730         * tests/unictype/test-pr_extender.c: Likewise.
40731         * tests/unictype/test-pr_format_control.c: Likewise.
40732         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40733         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40734         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40735         * tests/unictype/test-pr_hex_digit.c: Likewise.
40736         * tests/unictype/test-pr_hyphen.c: Likewise.
40737         * tests/unictype/test-pr_id_continue.c: Likewise.
40738         * tests/unictype/test-pr_id_start.c: Likewise.
40739         * tests/unictype/test-pr_ideographic.c: Likewise.
40740         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
40741         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
40742         * tests/unictype/test-pr_ignorable_control.c: Likewise.
40743         * tests/unictype/test-pr_iso_control.c: Likewise.
40744         * tests/unictype/test-pr_join_control.c: Likewise.
40745         * tests/unictype/test-pr_left_of_pair.c: Likewise.
40746         * tests/unictype/test-pr_line_separator.c: Likewise.
40747         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
40748         * tests/unictype/test-pr_lowercase.c: Likewise.
40749         * tests/unictype/test-pr_math.c: Likewise.
40750         * tests/unictype/test-pr_non_break.c: Likewise.
40751         * tests/unictype/test-pr_not_a_character.c: Likewise.
40752         * tests/unictype/test-pr_numeric.c: Likewise.
40753         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40754         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
40755         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
40756         * tests/unictype/test-pr_other_id_continue.c: Likewise.
40757         * tests/unictype/test-pr_other_id_start.c: Likewise.
40758         * tests/unictype/test-pr_other_lowercase.c: Likewise.
40759         * tests/unictype/test-pr_other_math.c: Likewise.
40760         * tests/unictype/test-pr_other_uppercase.c: Likewise.
40761         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
40762         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
40763         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
40764         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
40765         * tests/unictype/test-pr_private_use.c: Likewise.
40766         * tests/unictype/test-pr_punctuation.c: Likewise.
40767         * tests/unictype/test-pr_quotation_mark.c: Likewise.
40768         * tests/unictype/test-pr_radical.c: Likewise.
40769         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40770         * tests/unictype/test-pr_soft_dotted.c: Likewise.
40771         * tests/unictype/test-pr_space.c: Likewise.
40772         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40773         * tests/unictype/test-pr_titlecase.c: Likewise.
40774         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40775         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40776         * tests/unictype/test-pr_uppercase.c: Likewise.
40777         * tests/unictype/test-pr_variation_selector.c: Likewise.
40778         * tests/unictype/test-pr_white_space.c: Likewise.
40779         * tests/unictype/test-pr_xid_continue.c: Likewise.
40780         * tests/unictype/test-pr_xid_start.c: Likewise.
40781         * tests/unictype/test-pr_zero_width.c: Likewise.
40782         * tests/unictype/test-sy_c_whitespace.c: Likewise.
40783         * tests/unictype/test-sy_java_whitespace.c: Likewise.
40784
40785 2007-11-12  Bruno Haible  <bruno@clisp.org>
40786
40787         Unicode character classification functions.
40788         * lib/unictype.h: New file.
40789         * modules/unictype/base: New file.
40790         * modules/unictype/category-L: New file.
40791         * modules/unictype/category-Lu: New file.
40792         * modules/unictype/category-Ll: New file.
40793         * modules/unictype/category-Lt: New file.
40794         * modules/unictype/category-Lm: New file.
40795         * modules/unictype/category-Lo: New file.
40796         * modules/unictype/category-M: New file.
40797         * modules/unictype/category-Mn: New file.
40798         * modules/unictype/category-Mc: New file.
40799         * modules/unictype/category-Me: New file.
40800         * modules/unictype/category-N: New file.
40801         * modules/unictype/category-Nd: New file.
40802         * modules/unictype/category-Nl: New file.
40803         * modules/unictype/category-No: New file.
40804         * modules/unictype/category-P: New file.
40805         * modules/unictype/category-Pc: New file.
40806         * modules/unictype/category-Pd: New file.
40807         * modules/unictype/category-Ps: New file.
40808         * modules/unictype/category-Pe: New file.
40809         * modules/unictype/category-Pi: New file.
40810         * modules/unictype/category-Pf: New file.
40811         * modules/unictype/category-Po: New file.
40812         * modules/unictype/category-S: New file.
40813         * modules/unictype/category-Sm: New file.
40814         * modules/unictype/category-Sc: New file.
40815         * modules/unictype/category-Sk: New file.
40816         * modules/unictype/category-So: New file.
40817         * modules/unictype/category-Z: New file.
40818         * modules/unictype/category-Zs: New file.
40819         * modules/unictype/category-Zl: New file.
40820         * modules/unictype/category-Zp: New file.
40821         * modules/unictype/category-C: New file.
40822         * modules/unictype/category-Cc: New file.
40823         * modules/unictype/category-Cf: New file.
40824         * modules/unictype/category-Cs: New file.
40825         * modules/unictype/category-Co: New file.
40826         * modules/unictype/category-Cn: New file.
40827         * modules/unictype/category-or: New file.
40828         * modules/unictype/category-of: New file.
40829         * modules/unictype/category-test: New file.
40830         * modules/unictype/category-test-withtable: New file.
40831         * modules/unictype/category-byname: New file.
40832         * modules/unictype/category-none: New file.
40833         * modules/unictype/category-and: New file.
40834         * modules/unictype/category-and-not: New file.
40835         * modules/unictype/category-name: New file.
40836         * modules/unictype/combining-class: New file.
40837         * modules/unictype/category-all: New file.
40838         * modules/unictype/bidicategory-all: New file.
40839         * modules/unictype/bidicategory-byname: New file.
40840         * modules/unictype/bidicategory-name: New file.
40841         * modules/unictype/bidicategory-of: New file.
40842         * modules/unictype/bidicategory-test: New file.
40843         * modules/unictype/decimal-digit: New file.
40844         * modules/unictype/digit: New file.
40845         * modules/unictype/numeric: New file.
40846         * modules/unictype/mirror: New file.
40847         * modules/unictype/property-white-space: New file.
40848         * modules/unictype/property-alphabetic: New file.
40849         * modules/unictype/property-other-alphabetic: New file.
40850         * modules/unictype/property-not-a-character: New file.
40851         * modules/unictype/property-default-ignorable-code-point: New file.
40852         * modules/unictype/property-other-default-ignorable-code-point: New
40853         file.
40854         * modules/unictype/property-deprecated: New file.
40855         * modules/unictype/property-logical-order-exception: New file.
40856         * modules/unictype/property-variation-selector: New file.
40857         * modules/unictype/property-private-use: New file.
40858         * modules/unictype/property-unassigned-code-value: New file.
40859         * modules/unictype/property-uppercase: New file.
40860         * modules/unictype/property-other-uppercase: New file.
40861         * modules/unictype/property-lowercase: New file.
40862         * modules/unictype/property-other-lowercase: New file.
40863         * modules/unictype/property-titlecase: New file.
40864         * modules/unictype/property-soft-dotted: New file.
40865         * modules/unictype/property-id-start: New file.
40866         * modules/unictype/property-other-id-start: New file.
40867         * modules/unictype/property-id-continue: New file.
40868         * modules/unictype/property-other-id-continue: New file.
40869         * modules/unictype/property-xid-start: New file.
40870         * modules/unictype/property-xid-continue: New file.
40871         * modules/unictype/property-pattern-white-space: New file.
40872         * modules/unictype/property-pattern-syntax: New file.
40873         * modules/unictype/property-join-control: New file.
40874         * modules/unictype/property-grapheme-base: New file.
40875         * modules/unictype/property-grapheme-extend: New file.
40876         * modules/unictype/property-other-grapheme-extend: New file.
40877         * modules/unictype/property-grapheme-link: New file.
40878         * modules/unictype/property-bidi-control: New file.
40879         * modules/unictype/property-bidi-left-to-right: New file.
40880         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
40881         * modules/unictype/property-bidi-arabic-right-to-left: New file.
40882         * modules/unictype/property-bidi-european-digit: New file.
40883         * modules/unictype/property-bidi-eur-num-separator: New file.
40884         * modules/unictype/property-bidi-eur-num-terminator: New file.
40885         * modules/unictype/property-bidi-arabic-digit: New file.
40886         * modules/unictype/property-bidi-common-separator: New file.
40887         * modules/unictype/property-bidi-block-separator: New file.
40888         * modules/unictype/property-bidi-segment-separator: New file.
40889         * modules/unictype/property-bidi-whitespace: New file.
40890         * modules/unictype/property-bidi-non-spacing-mark: New file.
40891         * modules/unictype/property-bidi-boundary-neutral: New file.
40892         * modules/unictype/property-bidi-pdf: New file.
40893         * modules/unictype/property-bidi-embedding-or-override: New file.
40894         * modules/unictype/property-bidi-other-neutral: New file.
40895         * modules/unictype/property-hex-digit: New file.
40896         * modules/unictype/property-ascii-hex-digit: New file.
40897         * modules/unictype/property-ideographic: New file.
40898         * modules/unictype/property-unified-ideograph: New file.
40899         * modules/unictype/property-radical: New file.
40900         * modules/unictype/property-ids-binary-operator: New file.
40901         * modules/unictype/property-ids-trinary-operator: New file.
40902         * modules/unictype/property-zero-width: New file.
40903         * modules/unictype/property-space: New file.
40904         * modules/unictype/property-non-break: New file.
40905         * modules/unictype/property-iso-control: New file.
40906         * modules/unictype/property-format-control: New file.
40907         * modules/unictype/property-dash: New file.
40908         * modules/unictype/property-hyphen: New file.
40909         * modules/unictype/property-punctuation: New file.
40910         * modules/unictype/property-line-separator: New file.
40911         * modules/unictype/property-paragraph-separator: New file.
40912         * modules/unictype/property-quotation-mark: New file.
40913         * modules/unictype/property-sentence-terminal: New file.
40914         * modules/unictype/property-terminal-punctuation: New file.
40915         * modules/unictype/property-currency-symbol: New file.
40916         * modules/unictype/property-math: New file.
40917         * modules/unictype/property-other-math: New file.
40918         * modules/unictype/property-paired-punctuation: New file.
40919         * modules/unictype/property-left-of-pair: New file.
40920         * modules/unictype/property-combining: New file.
40921         * modules/unictype/property-composite: New file.
40922         * modules/unictype/property-decimal-digit: New file.
40923         * modules/unictype/property-numeric: New file.
40924         * modules/unictype/property-diacritic: New file.
40925         * modules/unictype/property-extender: New file.
40926         * modules/unictype/property-ignorable-control: New file.
40927         * modules/unictype/property-test: New file.
40928         * modules/unictype/property-byname: New file.
40929         * modules/unictype/property-all: New file.
40930         * modules/unictype/scripts: New file.
40931         * modules/unictype/scripts-all: New file.
40932         * modules/unictype/block-of: New file.
40933         * modules/unictype/block-test: New file.
40934         * modules/unictype/block-list: New file.
40935         * modules/unictype/block-all: New file.
40936         * modules/unictype/syntax-c-whitespace: New file.
40937         * modules/unictype/syntax-java-whitespace: New file.
40938         * modules/unictype/syntax-c-ident: New file.
40939         * modules/unictype/syntax-java-ident: New file.
40940         * modules/unictype/ctype-alnum: New file.
40941         * modules/unictype/ctype-alpha: New file.
40942         * modules/unictype/ctype-cntrl: New file.
40943         * modules/unictype/ctype-digit: New file.
40944         * modules/unictype/ctype-graph: New file.
40945         * modules/unictype/ctype-lower: New file.
40946         * modules/unictype/ctype-print: New file.
40947         * modules/unictype/ctype-punct: New file.
40948         * modules/unictype/ctype-space: New file.
40949         * modules/unictype/ctype-upper: New file.
40950         * modules/unictype/ctype-xdigit: New file.
40951         * modules/unictype/ctype-blank: New file.
40952         * lib/unictype/bidi_byname.c: New file.
40953         * lib/unictype/bidi_name.c: New file.
40954         * lib/unictype/bidi_of.c: New file.
40955         * lib/unictype/bidi_test.c: New file.
40956         * lib/unictype/bitmap.h: New file.
40957         * lib/unictype/block_test.c: New file.
40958         * lib/unictype/blocks.c: New file.
40959         * lib/unictype/categ_C.c: New file.
40960         * lib/unictype/categ_Cc.c: New file.
40961         * lib/unictype/categ_Cf.c: New file.
40962         * lib/unictype/categ_Cn.c: New file.
40963         * lib/unictype/categ_Co.c: New file.
40964         * lib/unictype/categ_Cs.c: New file.
40965         * lib/unictype/categ_L.c: New file.
40966         * lib/unictype/categ_Ll.c: New file.
40967         * lib/unictype/categ_Lm.c: New file.
40968         * lib/unictype/categ_Lo.c: New file.
40969         * lib/unictype/categ_Lt.c: New file.
40970         * lib/unictype/categ_Lu.c: New file.
40971         * lib/unictype/categ_M.c: New file.
40972         * lib/unictype/categ_Mc.c: New file.
40973         * lib/unictype/categ_Me.c: New file.
40974         * lib/unictype/categ_Mn.c: New file.
40975         * lib/unictype/categ_N.c: New file.
40976         * lib/unictype/categ_Nd.c: New file.
40977         * lib/unictype/categ_Nl.c: New file.
40978         * lib/unictype/categ_No.c: New file.
40979         * lib/unictype/categ_P.c: New file.
40980         * lib/unictype/categ_Pc.c: New file.
40981         * lib/unictype/categ_Pd.c: New file.
40982         * lib/unictype/categ_Pe.c: New file.
40983         * lib/unictype/categ_Pf.c: New file.
40984         * lib/unictype/categ_Pi.c: New file.
40985         * lib/unictype/categ_Po.c: New file.
40986         * lib/unictype/categ_Ps.c: New file.
40987         * lib/unictype/categ_S.c: New file.
40988         * lib/unictype/categ_Sc.c: New file.
40989         * lib/unictype/categ_Sk.c: New file.
40990         * lib/unictype/categ_Sm.c: New file.
40991         * lib/unictype/categ_So.c: New file.
40992         * lib/unictype/categ_Z.c: New file.
40993         * lib/unictype/categ_Zl.c: New file.
40994         * lib/unictype/categ_Zp.c: New file.
40995         * lib/unictype/categ_Zs.c: New file.
40996         * lib/unictype/categ_and.c: New file.
40997         * lib/unictype/categ_and_not.c: New file.
40998         * lib/unictype/categ_byname.c: New file.
40999         * lib/unictype/categ_name.c: New file.
41000         * lib/unictype/categ_none.c: New file.
41001         * lib/unictype/categ_of.c: New file.
41002         * lib/unictype/categ_or.c: New file.
41003         * lib/unictype/categ_test.c: New file.
41004         * lib/unictype/combining.c: New file.
41005         * lib/unictype/ctype_alnum.c: New file.
41006         * lib/unictype/ctype_alpha.c: New file.
41007         * lib/unictype/ctype_blank.c: New file.
41008         * lib/unictype/ctype_cntrl.c: New file.
41009         * lib/unictype/ctype_digit.c: New file.
41010         * lib/unictype/ctype_graph.c: New file.
41011         * lib/unictype/ctype_lower.c: New file.
41012         * lib/unictype/ctype_print.c: New file.
41013         * lib/unictype/ctype_punct.c: New file.
41014         * lib/unictype/ctype_space.c: New file.
41015         * lib/unictype/ctype_upper.c: New file.
41016         * lib/unictype/ctype_xdigit.c: New file.
41017         * lib/unictype/decdigit.c: New file.
41018         * lib/unictype/digit.c: New file.
41019         * lib/unictype/identsyntaxmap.h: New file.
41020         * lib/unictype/mirror.c: New file.
41021         * lib/unictype/numeric.c: New file.
41022         * lib/unictype/pr_alphabetic.c: New file.
41023         * lib/unictype/pr_ascii_hex_digit.c: New file.
41024         * lib/unictype/pr_bidi_arabic_digit.c: New file.
41025         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
41026         * lib/unictype/pr_bidi_block_separator.c: New file.
41027         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
41028         * lib/unictype/pr_bidi_common_separator.c: New file.
41029         * lib/unictype/pr_bidi_control.c: New file.
41030         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
41031         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
41032         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
41033         * lib/unictype/pr_bidi_european_digit.c: New file.
41034         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
41035         * lib/unictype/pr_bidi_left_to_right.c: New file.
41036         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
41037         * lib/unictype/pr_bidi_other_neutral.c: New file.
41038         * lib/unictype/pr_bidi_pdf.c: New file.
41039         * lib/unictype/pr_bidi_segment_separator.c: New file.
41040         * lib/unictype/pr_bidi_whitespace.c: New file.
41041         * lib/unictype/pr_byname.c: New file.
41042         * lib/unictype/pr_byname.gperf: New file.
41043         * lib/unictype/pr_combining.c: New file.
41044         * lib/unictype/pr_composite.c: New file.
41045         * lib/unictype/pr_currency_symbol.c: New file.
41046         * lib/unictype/pr_dash.c: New file.
41047         * lib/unictype/pr_decimal_digit.c: New file.
41048         * lib/unictype/pr_default_ignorable_code_point.c: New file.
41049         * lib/unictype/pr_deprecated.c: New file.
41050         * lib/unictype/pr_diacritic.c: New file.
41051         * lib/unictype/pr_extender.c: New file.
41052         * lib/unictype/pr_format_control.c: New file.
41053         * lib/unictype/pr_grapheme_base.c: New file.
41054         * lib/unictype/pr_grapheme_extend.c: New file.
41055         * lib/unictype/pr_grapheme_link.c: New file.
41056         * lib/unictype/pr_hex_digit.c: New file.
41057         * lib/unictype/pr_hyphen.c: New file.
41058         * lib/unictype/pr_id_continue.c: New file.
41059         * lib/unictype/pr_id_start.c: New file.
41060         * lib/unictype/pr_ideographic.c: New file.
41061         * lib/unictype/pr_ids_binary_operator.c: New file.
41062         * lib/unictype/pr_ids_trinary_operator.c: New file.
41063         * lib/unictype/pr_ignorable_control.c: New file.
41064         * lib/unictype/pr_iso_control.c: New file.
41065         * lib/unictype/pr_join_control.c: New file.
41066         * lib/unictype/pr_left_of_pair.c: New file.
41067         * lib/unictype/pr_line_separator.c: New file.
41068         * lib/unictype/pr_logical_order_exception.c: New file.
41069         * lib/unictype/pr_lowercase.c: New file.
41070         * lib/unictype/pr_math.c: New file.
41071         * lib/unictype/pr_non_break.c: New file.
41072         * lib/unictype/pr_not_a_character.c: New file.
41073         * lib/unictype/pr_numeric.c: New file.
41074         * lib/unictype/pr_other_alphabetic.c: New file.
41075         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
41076         * lib/unictype/pr_other_grapheme_extend.c: New file.
41077         * lib/unictype/pr_other_id_continue.c: New file.
41078         * lib/unictype/pr_other_id_start.c: New file.
41079         * lib/unictype/pr_other_lowercase.c: New file.
41080         * lib/unictype/pr_other_math.c: New file.
41081         * lib/unictype/pr_other_uppercase.c: New file.
41082         * lib/unictype/pr_paired_punctuation.c: New file.
41083         * lib/unictype/pr_paragraph_separator.c: New file.
41084         * lib/unictype/pr_pattern_syntax.c: New file.
41085         * lib/unictype/pr_pattern_white_space.c: New file.
41086         * lib/unictype/pr_private_use.c: New file.
41087         * lib/unictype/pr_punctuation.c: New file.
41088         * lib/unictype/pr_quotation_mark.c: New file.
41089         * lib/unictype/pr_radical.c: New file.
41090         * lib/unictype/pr_sentence_terminal.c: New file.
41091         * lib/unictype/pr_soft_dotted.c: New file.
41092         * lib/unictype/pr_space.c: New file.
41093         * lib/unictype/pr_terminal_punctuation.c: New file.
41094         * lib/unictype/pr_test.c: New file.
41095         * lib/unictype/pr_titlecase.c: New file.
41096         * lib/unictype/pr_unassigned_code_value.c: New file.
41097         * lib/unictype/pr_unified_ideograph.c: New file.
41098         * lib/unictype/pr_uppercase.c: New file.
41099         * lib/unictype/pr_variation_selector.c: New file.
41100         * lib/unictype/pr_white_space.c: New file.
41101         * lib/unictype/pr_xid_continue.c: New file.
41102         * lib/unictype/pr_xid_start.c: New file.
41103         * lib/unictype/pr_zero_width.c: New file.
41104         * lib/unictype/scripts.c: New file.
41105         * lib/unictype/sy_c_ident.c: New file.
41106         * lib/unictype/sy_c_whitespace.c: New file.
41107         * lib/unictype/sy_java_ident.c: New file.
41108         * lib/unictype/sy_java_whitespace.c: New file.
41109
41110         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
41111         Unicode 5.0.0.
41112         * lib/unictype/blocks.h: Likewise.
41113         * lib/unictype/categ_C.h: Likewise.
41114         * lib/unictype/categ_Cc.h: Likewise.
41115         * lib/unictype/categ_Cf.h: Likewise.
41116         * lib/unictype/categ_Cn.h: Likewise.
41117         * lib/unictype/categ_Co.h: Likewise.
41118         * lib/unictype/categ_Cs.h: Likewise.
41119         * lib/unictype/categ_L.h: Likewise.
41120         * lib/unictype/categ_Ll.h: Likewise.
41121         * lib/unictype/categ_Lm.h: Likewise.
41122         * lib/unictype/categ_Lo.h: Likewise.
41123         * lib/unictype/categ_Lt.h: Likewise.
41124         * lib/unictype/categ_Lu.h: Likewise.
41125         * lib/unictype/categ_M.h: Likewise.
41126         * lib/unictype/categ_Mc.h: Likewise.
41127         * lib/unictype/categ_Me.h: Likewise.
41128         * lib/unictype/categ_Mn.h: Likewise.
41129         * lib/unictype/categ_N.h: Likewise.
41130         * lib/unictype/categ_Nd.h: Likewise.
41131         * lib/unictype/categ_Nl.h: Likewise.
41132         * lib/unictype/categ_No.h: Likewise.
41133         * lib/unictype/categ_P.h: Likewise.
41134         * lib/unictype/categ_Pc.h: Likewise.
41135         * lib/unictype/categ_Pd.h: Likewise.
41136         * lib/unictype/categ_Pe.h: Likewise.
41137         * lib/unictype/categ_Pf.h: Likewise.
41138         * lib/unictype/categ_Pi.h: Likewise.
41139         * lib/unictype/categ_Po.h: Likewise.
41140         * lib/unictype/categ_Ps.h: Likewise.
41141         * lib/unictype/categ_S.h: Likewise.
41142         * lib/unictype/categ_Sc.h: Likewise.
41143         * lib/unictype/categ_Sk.h: Likewise.
41144         * lib/unictype/categ_Sm.h: Likewise.
41145         * lib/unictype/categ_So.h: Likewise.
41146         * lib/unictype/categ_Z.h: Likewise.
41147         * lib/unictype/categ_Zl.h: Likewise.
41148         * lib/unictype/categ_Zp.h: Likewise.
41149         * lib/unictype/categ_Zs.h: Likewise.
41150         * lib/unictype/categ_of.h: Likewise.
41151         * lib/unictype/combining.h: Likewise.
41152         * lib/unictype/ctype_alnum.h: Likewise.
41153         * lib/unictype/ctype_alpha.h: Likewise.
41154         * lib/unictype/ctype_blank.h: Likewise.
41155         * lib/unictype/ctype_cntrl.h: Likewise.
41156         * lib/unictype/ctype_digit.h: Likewise.
41157         * lib/unictype/ctype_graph.h: Likewise.
41158         * lib/unictype/ctype_lower.h: Likewise.
41159         * lib/unictype/ctype_print.h: Likewise.
41160         * lib/unictype/ctype_punct.h: Likewise.
41161         * lib/unictype/ctype_space.h: Likewise.
41162         * lib/unictype/ctype_upper.h: Likewise.
41163         * lib/unictype/ctype_xdigit.h: Likewise.
41164         * lib/unictype/decdigit.h: Likewise.
41165         * lib/unictype/digit.h: Likewise.
41166         * lib/unictype/mirror.h: Likewise.
41167         * lib/unictype/numeric.h: Likewise.
41168         * lib/unictype/pr_alphabetic.h: Likewise.
41169         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41170         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41171         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41172         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41173         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41174         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41175         * lib/unictype/pr_bidi_control.h: Likewise.
41176         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41177         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41178         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41179         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41180         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41181         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41182         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41183         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41184         * lib/unictype/pr_bidi_pdf.h: Likewise.
41185         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41186         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41187         * lib/unictype/pr_combining.h: Likewise.
41188         * lib/unictype/pr_composite.h: Likewise.
41189         * lib/unictype/pr_currency_symbol.h: Likewise.
41190         * lib/unictype/pr_dash.h: Likewise.
41191         * lib/unictype/pr_decimal_digit.h: Likewise.
41192         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41193         * lib/unictype/pr_deprecated.h: Likewise.
41194         * lib/unictype/pr_diacritic.h: Likewise.
41195         * lib/unictype/pr_extender.h: Likewise.
41196         * lib/unictype/pr_format_control.h: Likewise.
41197         * lib/unictype/pr_grapheme_base.h: Likewise.
41198         * lib/unictype/pr_grapheme_extend.h: Likewise.
41199         * lib/unictype/pr_grapheme_link.h: Likewise.
41200         * lib/unictype/pr_hex_digit.h: Likewise.
41201         * lib/unictype/pr_hyphen.h: Likewise.
41202         * lib/unictype/pr_id_continue.h: Likewise.
41203         * lib/unictype/pr_id_start.h: Likewise.
41204         * lib/unictype/pr_ideographic.h: Likewise.
41205         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41206         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41207         * lib/unictype/pr_ignorable_control.h: Likewise.
41208         * lib/unictype/pr_iso_control.h: Likewise.
41209         * lib/unictype/pr_join_control.h: Likewise.
41210         * lib/unictype/pr_left_of_pair.h: Likewise.
41211         * lib/unictype/pr_line_separator.h: Likewise.
41212         * lib/unictype/pr_logical_order_exception.h: Likewise.
41213         * lib/unictype/pr_lowercase.h: Likewise.
41214         * lib/unictype/pr_math.h: Likewise.
41215         * lib/unictype/pr_non_break.h: Likewise.
41216         * lib/unictype/pr_not_a_character.h: Likewise.
41217         * lib/unictype/pr_numeric.h: Likewise.
41218         * lib/unictype/pr_other_alphabetic.h: Likewise.
41219         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41220         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41221         * lib/unictype/pr_other_id_continue.h: Likewise.
41222         * lib/unictype/pr_other_id_start.h: Likewise.
41223         * lib/unictype/pr_other_lowercase.h: Likewise.
41224         * lib/unictype/pr_other_math.h: Likewise.
41225         * lib/unictype/pr_other_uppercase.h: Likewise.
41226         * lib/unictype/pr_paired_punctuation.h: Likewise.
41227         * lib/unictype/pr_paragraph_separator.h: Likewise.
41228         * lib/unictype/pr_pattern_syntax.h: Likewise.
41229         * lib/unictype/pr_pattern_white_space.h: Likewise.
41230         * lib/unictype/pr_private_use.h: Likewise.
41231         * lib/unictype/pr_punctuation.h: Likewise.
41232         * lib/unictype/pr_quotation_mark.h: Likewise.
41233         * lib/unictype/pr_radical.h: Likewise.
41234         * lib/unictype/pr_sentence_terminal.h: Likewise.
41235         * lib/unictype/pr_soft_dotted.h: Likewise.
41236         * lib/unictype/pr_space.h: Likewise.
41237         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41238         * lib/unictype/pr_titlecase.h: Likewise.
41239         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41240         * lib/unictype/pr_unified_ideograph.h: Likewise.
41241         * lib/unictype/pr_uppercase.h: Likewise.
41242         * lib/unictype/pr_variation_selector.h: Likewise.
41243         * lib/unictype/pr_white_space.h: Likewise.
41244         * lib/unictype/pr_xid_continue.h: Likewise.
41245         * lib/unictype/pr_xid_start.h: Likewise.
41246         * lib/unictype/pr_zero_width.h: Likewise.
41247         * lib/unictype/scripts.h: Likewise.
41248         * lib/unictype/scripts_byname.gperf: Likewise.
41249         * lib/unictype/sy_c_ident.h: Likewise.
41250         * lib/unictype/sy_c_whitespace.h: Likewise.
41251         * lib/unictype/sy_java_ident.h: Likewise.
41252         * lib/unictype/sy_java_whitespace.h: Likewise.
41253
41254         * lib/unictype/Makefile: New file.
41255         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
41256         glibc.
41257         * lib/unictype/3level.h: New file, copied from glibc.
41258         * lib/unictype/3levelbit.h: New file.
41259
41260 2007-11-11  Bruno Haible  <bruno@clisp.org>
41261
41262         * modules/gperf: New file.
41263         * modules/iconv_open (Depends-on): Add it.
41264         (Makefile.am): Remove the GPERF definition.
41265
41266 2007-11-11  Bruno Haible  <bruno@clisp.org>
41267
41268         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
41269         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
41270
41271 2007-11-11  Bruno Haible  <bruno@clisp.org>
41272
41273         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
41274         (usage): Remove function.
41275
41276 2007-11-11  Bruno Haible  <bruno@clisp.org>
41277
41278         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
41279         gl_FUNC_CEILF_LIBS.
41280         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
41281         gl_FUNC_CEIL_LIBS.
41282         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
41283         gl_FUNC_CEILL_LIBS.
41284         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
41285         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
41286         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
41287
41288 2007-11-11  Bruno Haible  <bruno@clisp.org>
41289
41290         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
41291         roundf were declared but do not exist on functions.
41292         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
41293         roundl were declared but do not exist on functions.
41294         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
41295         HAVE_FLOORL_AND_CEILL, respectively.
41296         Needed for Sun C on Solaris 10.
41297
41298 2007-11-11  Bruno Haible  <bruno@clisp.org>
41299
41300         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
41301         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
41302         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
41303         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
41304         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
41305         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
41306         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
41307         HAVE_DECL_ROUNDF.
41308         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
41309         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
41310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
41311         of HAVE_DECL_ROUND*.
41312         * modules/math (Makefile.am): Update.
41313
41314 2007-11-10  Bruno Haible  <bruno@clisp.org>
41315
41316         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
41317         ptrdiff_t as m4/intl.m4.
41318
41319 2007-11-10  Jim Meyering  <meyering@redhat.com>
41320
41321         Avoid link failure for the argmatch test.
41322         * tests/test-argmatch.c (usage): Define function to avoid a link
41323         failure: argmatch_die requires a usage function.
41324
41325 2007-11-09  Bruno Haible  <bruno@clisp.org>
41326
41327         * doc/functions/snprintf.texi: Mention BeOS deficiency.
41328         * doc/functions/vsnprintf.texi: Likewise.
41329         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
41330         with a size argument < 2.
41331
41332 2007-11-09  Bruno Haible  <bruno@clisp.org>
41333
41334         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
41335         buffer. Fixes an inefficiency introduced on 2007-11-03.
41336
41337 2007-11-09  Bruno Haible  <bruno@clisp.org>
41338
41339         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
41340         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
41341
41342 2007-11-08  Jim Meyering  <meyering@redhat.com>
41343
41344         Change cache variable name prefix "jm_" to "gl_" everywhere.
41345         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
41346         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
41347         * m4/uptime.m4: s/gl_/jm_/
41348
41349 2007-11-07  Bruno Haible  <bruno@clisp.org>
41350
41351         Update to GNU gettext 0.17.
41352         * m4/intl.m4: Update to GNU gettext 0.17.
41353         * m4/po.m4: Likewise.
41354         * modules/gettext (Files): Remove m4/ulonglong.m4.
41355         (configure.ac): Require gettext infrastructure from version 0.17.
41356
41357 2007-11-06  Bruno Haible  <bruno@clisp.org>
41358
41359         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
41360         symbolic values are not defined in a public header.
41361         * lib/freadable.c (freadable) [QNX]: Likewise.
41362         * lib/freadahead.c (freadahead) [QNX]: Likewise.
41363         * lib/freading.c (freading) [QNX]: Likewise.
41364         * lib/fseterr.c (fseterr) [QNX]: Likewise.
41365         * lib/fwritable.c (fwritable) [QNX]: Likewise.
41366         * lib/fwriting.c (fwriting) [QNX]: Likewise.
41367         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
41368         Reported by Alain Magloire.
41369
41370         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
41371
41372 2007-11-05  Bruno Haible  <bruno@clisp.org>
41373
41374         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
41375         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
41376         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
41377         Reported by Eric Blake.
41378
41379 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41380             Bruno Haible  <bruno@clisp.org>
41381
41382         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
41383         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
41384         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
41385         (malloc): Undefine also before including <stdlib.h>.
41386         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
41387         Needed on OSF/1 4.0.
41388
41389 2007-11-05  Jim Meyering  <meyering@redhat.com>
41390
41391         git-version-gen: sync from coreutils.
41392         * build-aux/git-version-gen: Add comments.
41393         Change the first '-' to '.' in the snapshot version string,
41394         e.g., 6.9-377-08144 -> 6.9.377-08144
41395         Remove first parameter.
41396         Don't declare a version "-dirty" merely because a time
41397         stamp has changed.
41398
41399 2007-11-04  Bruno Haible  <bruno@clisp.org>
41400
41401         * lib/lock.h: Protect all macro definitions containing an 'if'
41402         statement through a "do { ... } while (0)".
41403         * lib/tls.h: Likewise.
41404
41405 2007-11-04  Bruno Haible  <bruno@clisp.org>
41406
41407         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
41408
41409 2007-11-04  Bruno Haible  <bruno@clisp.org>
41410
41411         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
41412         * modules/fprintf-posix (Depends-on): Add nocrash.
41413         * modules/snprintf-posix (Depends-on): Likewise.
41414         * modules/sprintf-posix (Depends-on): Likewise.
41415         * modules/vasnprintf-posix (Depends-on): Likewise.
41416         * modules/vasprintf-posix (Depends-on): Likewise.
41417         * modules/vfprintf-posix (Depends-on): Likewise.
41418         * modules/vsnprintf-posix (Depends-on): Likewise.
41419         * modules/vsprintf-posix (Depends-on): Likewise.
41420         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41421         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41422         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41423         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41424         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41425         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41426         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41427
41428 2007-11-04  Bruno Haible  <bruno@clisp.org>
41429
41430         * modules/nocrash: New file.
41431         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
41432         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
41433
41434 2007-11-04  Bruno Haible  <bruno@clisp.org>
41435
41436         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
41437         precision handling.
41438         * tests/test-vasprintf-posix.c (test_function): Likewise.
41439         * tests/test-snprintf-posix.h (test_function): Likewise.
41440         * tests/test-sprintf-posix.h (test_function): Likewise.
41441
41442         Fix *printf behaviour for large precisions on mingw and BeOS.
41443         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
41444         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
41445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
41446         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41447         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41448         gl_PRINTF_PRECISION and test its result. Invoke
41449         gl_PREREQ_VASNPRINTF_PRECISION.
41450         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41451         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41452         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41453         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41454         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41456         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41457         * doc/functions/fprintf.texi: Update.
41458         * doc/functions/printf.texi: Update.
41459         * doc/functions/snprintf.texi: Update.
41460         * doc/functions/sprintf.texi: Update.
41461         * doc/functions/vfprintf.texi: Update.
41462         * doc/functions/vprintf.texi: Update.
41463         * doc/functions/vsnprintf.texi: Update.
41464         * doc/functions/vsprintf.texi: Update.
41465
41466 2007-11-04  Bruno Haible  <bruno@clisp.org>
41467
41468         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
41469
41470 2007-11-04  Bruno Haible  <bruno@clisp.org>
41471
41472         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
41473         Reported by Sylvain Beucler <beuc@gnu.org>.
41474
41475 2007-11-03  Bruno Haible  <bruno@clisp.org>
41476
41477         * tests/test-fprintf-posix2.sh: New file.
41478         * tests/test-fprintf-posix2.c: New file.
41479         * modules/fprintf-posix-tests (Files): Add them.
41480         (TESTS): Add test-fprintf-posix2.sh.
41481         (configure.ac): Check for getrlimit and setrlimit.
41482         (check_PROGRAMS): Add test-fprintf-posix2.
41483
41484         * tests/test-printf-posix2.sh: New file.
41485         * tests/test-printf-posix2.c: New file.
41486         * modules/printf-posix-tests (Files): Add them.
41487         (TESTS): Add test-printf-posix2.sh.
41488         (configure.ac): Check for getrlimit and setrlimit.
41489         (check_PROGRAMS): Add test-printf-posix2.
41490
41491         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
41492         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
41493         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
41494         (decode_double): New function, copied from decode_long_double.
41495         (scale10_round_decimal_decoded): New function, extracted from
41496         scale10_round_decimal_long_double.
41497         (scale10_round_decimal_long_double): Use it.
41498         (scale10_round_decimal_double): New function.
41499         (floorlog10): New function.
41500         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
41501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
41502         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41504         gl_PRINTF_ENOMEM and test its result. Invoke
41505         gl_PREREQ_VASNPRINTF_ENOMEM.
41506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41508         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41509         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41510         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41511         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41512         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41513         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
41514         * modules/snprintf-posix (Depends-on): Likewise.
41515         * modules/sprintf-posix (Depends-on): Likewise.
41516         * modules/vasnprintf-posix (Depends-on): Likewise.
41517         * modules/vasprintf-posix (Depends-on): Likewise.
41518         * modules/vfprintf-posix (Depends-on): Likewise.
41519         * modules/vsnprintf-posix (Depends-on): Likewise.
41520         * modules/vsprintf-posix (Depends-on): Likewise.
41521         * doc/functions/fprintf.texi: Update.
41522         * doc/functions/printf.texi: Update.
41523         * doc/functions/snprintf.texi: Update.
41524         * doc/functions/sprintf.texi: Update.
41525         * doc/functions/vfprintf.texi: Update.
41526         * doc/functions/vprintf.texi: Update.
41527         * doc/functions/vsnprintf.texi: Update.
41528         * doc/functions/vsprintf.texi: Update.
41529
41530 2007-11-03  Bruno Haible  <bruno@clisp.org>
41531
41532         * modules/frexp-nolibm-tests: New file.
41533
41534         * modules/frexp-nolibm: New file.
41535         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
41536
41537 2007-11-03  Bruno Haible  <bruno@clisp.org>
41538
41539         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
41540         value is C99 compliant.
41541         Needed for OSF/1 5.1.
41542
41543 2007-11-03  Bruno Haible  <bruno@clisp.org>
41544
41545         Fix out-of-memory handling of vasnprintf.
41546         * lib/printf-parse.c: Include <errno.h>.
41547         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
41548         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
41549         is already set.
41550
41551 2007-11-02  Eric Blake  <ebb9@byu.net>
41552
41553         Fix tests on cygwin.
41554         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
41555
41556 2007-11-01  Bruno Haible  <bruno@clisp.org>
41557
41558         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
41559         warning.
41560         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
41561         needed for POSIX compatibility.
41562
41563 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41564
41565         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
41566         for compatibility with GNU.
41567
41568 2007-11-01  Bruno Haible  <bruno@clisp.org>
41569
41570         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
41571         (putenv): Renamed from rpl_putenv. Change argument type from
41572         'const char *' to 'char *'.
41573         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
41574         of defining putenv in config.h, just set REPLACE_PUTENV.
41575         * modules/putenv (Depends-on): Add stdlib.
41576         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41577         (Include): Use <stdlib.h>.
41578         * lib/stdlib.in.h (putenv): New declaration.
41579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
41580         REPLACE_PUTENV.
41581         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
41582         REPLACE_PUTENV.
41583         Needed for MacOS X 10.5.0.
41584         Reported by Peter O'Gorman <peter@pogma.com>.
41585
41586 2007-11-01  Jim Meyering  <meyering@redhat.com>
41587
41588         Treat an empty date string exactly like "0".
41589         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
41590         if the remaining date string (to be parsed) is empty, use "0".
41591         Reported by Mischa Molhoek and discussed in this thread:
41592         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
41593
41594 2007-10-31  Bruno Haible  <bruno@clisp.org>
41595
41596         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
41597         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
41598         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
41599         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
41600         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
41601         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
41602
41603 2007-10-31  Bruno Haible  <bruno@clisp.org>
41604
41605         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
41606         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
41607         (AC_TYPE_LONG_LONG_INT): Use it.
41608         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
41609         it as well.
41610         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
41611         to m4/longlong.m4.
41612         * modules/stdint (Files): Remove m4/ulonglong.m4.
41613         * modules/strtoull (Files): Use m4/longlong.m4 instead of
41614         m4/ulonglong.m4.
41615         * modules/strtoumax (Files): Likewise.
41616
41617 2007-10-30  Bruno Haible  <bruno@clisp.org>
41618
41619         * modules/xvasprintf-posix: New file.
41620         Suggested by Eric Blake.
41621
41622 2007-10-30  Bruno Haible  <bruno@clisp.org>
41623
41624         * modules/xprintf-posix-tests: New file.
41625         * tests/test-xprintf-posix.sh: New file.
41626         * tests/test-xprintf-posix.c: New file.
41627         * tests/test-xfprintf-posix.c: New file.
41628
41629         * modules/xprintf-posix: New file.
41630
41631 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41632
41633         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
41634         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
41635         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
41636
41637 2007-10-29  Bruno Haible  <bruno@clisp.org>
41638
41639         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
41640         contain the special marker '_cv_'.
41641         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41642         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41643         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41644         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
41645         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41646         Reported by Ralf Wildenhues.
41647
41648 2007-10-29  Bruno Haible  <bruno@clisp.org>
41649
41650         * gnulib-tool (func_import): When --lgpl is not specified, set
41651         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
41652         GPLv3.
41653         Reported by Simon Josefsson.
41654
41655 2007-10-28  Bruno Haible  <bruno@clisp.org>
41656
41657         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
41658         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
41659         HAVE_DECL_ISFINITE.
41660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41661         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
41662         HAVE_DECL_ISFINITE.
41663
41664 2007-10-28  Bruno Haible  <bruno@clisp.org>
41665
41666         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
41667         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
41668
41669 2007-10-28  Bruno Haible  <bruno@clisp.org>
41670
41671         Fix link errors with Sun C 5.0 on Solaris 10.
41672         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
41673         function is declared but not present in the compiler's libm.
41674         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
41675         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
41676         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
41677         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
41678         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
41679         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
41680         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
41681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41682         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
41683         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
41684         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
41685         HAVE_DECL_FLOORL.
41686
41687 2007-10-28  Bruno Haible  <bruno@clisp.org>
41688
41689         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
41690         gl_FUNC_FLOORL. Cache the result.
41691         (gl_FUNC_FLOORL): Use it.
41692         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
41693         gl_FUNC_CEILL. Cache the result.
41694         (gl_FUNC_CEILL): Use it.
41695
41696         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
41697         gl_FUNC_FLOOR. Cache the result.
41698         (gl_FUNC_FLOOR): Use it.
41699         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
41700         gl_FUNC_CEIL. Cache the result.
41701         (gl_FUNC_CEIL): Use it.
41702
41703         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
41704         gl_FUNC_FLOORF. Cache the result.
41705         (gl_FUNC_FLOORF): Use it.
41706         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
41707         gl_FUNC_CEILF. Cache the result.
41708         (gl_FUNC_CEILF): Use it.
41709
41710 2007-10-28  Bruno Haible  <bruno@clisp.org>
41711
41712         * gnulib-tool: Allow specifying the LGPL version number through
41713         --lgpl=2 or --lgpl=3.
41714         (func_usage): Document --lgpl with argument.
41715         Handle --lgpl=... arguments.
41716         (func_import): Recognize also gl_LGPL calls with an argument. When
41717         --lgpl=2 is used and the module's license is just LGPL, report an
41718         error. Set sed_transform_lib_file according to the lgpl variable. In
41719         the generated files, use --lgpl or gl_LGPL invocations with argument,
41720         if necessary.
41721         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
41722         an LGPv2+ license.
41723         * doc/gnulib-tool.texi (Modified imports): Update explanation of
41724         gl_LGPL macro.
41725
41726 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41727             Bruno Haible  <bruno@clisp.org>
41728
41729         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
41730         (u16_uctomb_aux): Likewise.
41731         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
41732         !HAVE_INLINE.
41733         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
41734
41735 2007-10-28  Bruno Haible  <bruno@clisp.org>
41736
41737         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
41738         Invoke AM_GETTEXT_OPTION if it exists.
41739         * modules/vasprintf: Likewise.
41740         * modules/verror: Likewise.
41741         * modules/xprintf: Likewise.
41742         * modules/xvasprintf: Likewise.
41743
41744 2007-10-27  Ben Pfaff  <blp@gnu.org>
41745
41746         * lib/math.in.h: Define isfinite macro and prototypes for
41747         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
41748         implementations.
41749         * m4/math_h.m4: New substitutions for isfinite module.
41750         * lib/isfinite.c: New file.
41751         * m4/isfinite.m4: New file.
41752         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
41753         * modules/isfinite: New file.
41754         * modules/isfinite-tests: New file.
41755         * tests/tests-isfinite.c: New file.
41756         * doc/functions/isfinite.texi: Mention isfinite module.
41757         * MODULES.html.sh: Mention new module.
41758
41759 2007-10-27  Ben Pfaff  <blp@gnu.org>
41760
41761         Ralf Wildenhues reported that Tru64 4.0D declares the round
41762         functions but does not have definitions.
41763         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
41764         cannot be found in any library, set the output variable to
41765         "missing" instead of "".
41766         * m4/round.m4: Also use our substitute if we cannot find round in
41767         any library, even if it is declared.
41768         * m4/roundf.m4: Likewise for roundf.
41769         * m4/roundl.m4: Likewise for roundl.
41770         * lib/math.in.h: Undefine roundf, round, roundl before defining
41771         their replacements, to allow for hypothetical systems where these
41772         may be defined as macros but not available in libraries.
41773
41774 2007-10-27  Bruno Haible  <bruno@clisp.org>
41775
41776         * doc/gnulib.texi: Invoke @firstparagraphindent.
41777         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
41778         changes in gnulib.
41779         (Source changes): New section.
41780
41781 2007-10-26  Bruno Haible  <bruno@clisp.org>
41782
41783         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
41784         borrowed from autoconf.
41785
41786 2007-10-26  Bruno Haible  <bruno@clisp.org>
41787
41788         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
41789         strerror returned the empty string. Needed on HP-UX 11.00.
41790
41791 2007-10-24  Micah Cowan  <micah@cowan.name>
41792
41793         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
41794         * build-aux/bootstrap: Remove support for now-unnecessary option,
41795         --cvs-user, and envvars CVS_USER, CVS_RSH.
41796
41797 2007-10-24  Jim Meyering  <meyering@redhat.com>
41798
41799         Avoid diagnostics from sha1sum when there is no cached checksum.
41800         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
41801         if the po.s1 file hasn't been created yet.
41802
41803         * build-aux/bootstrap: Sync from coreutils:
41804         2007-10-24  Jim Meyering  <meyering@redhat.com>
41805         Get gnulib from the git repository, not from an obsolete cvs one.
41806         * build-aux/bootstrap: Suggestion from Micah Cowan.
41807         2007-10-04  Jim Meyering  <jim@meyering.net>
41808         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
41809         (update_po_files): Work also when there are no .po files in po/.
41810
41811 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41812
41813         * README: Append ".git" to git and cg examples.
41814         Problem reported by Benoit Sigoure.
41815
41816 2007-10-23  Micah Cowan  <micah@cowan.name>
41817
41818         * users.txt: Add wget.
41819
41820 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41821
41822         Fix linking of some unistdio tests on FreeBSD.
41823         * modules/unistdio/u16-vsnprintf-tests
41824         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
41825         * modules/unistdio/u16-vsprintf-tests
41826         (test_u16_vsnprintf1_LDADD): Likewise.
41827         * modules/unistdio/u32-vsnprintf-tests
41828         (test_u32_vsnprintf1_LDADD): Likewise.
41829         * modules/unistdio/u32-vsprintf-tests
41830         (test_u32_vsprintf1_LDADD): Likewise.
41831         * modules/unistdio/u8-vsnprintf-tests
41832         (test_u8_vsnprintf1_LDADD): Likewise.
41833         * modules/unistdio/u8-vsprintf-tests
41834         (test_u8_vsprintf1_LDADD): Likewise.
41835         * modules/unistdio/ulc-vsnprintf-tests
41836         (test_ulc_vsnprintf1_LDADD): Likewise.
41837         * modules/unistdio/ulc-vsprintf-tests
41838         (test_ulc_vsprintf1_LDADD): Likewise.
41839
41840         Fix linking of some uniconv tests on FreeBSD.
41841         * modules/uniconv/u16-conv-from-enc-tests
41842         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
41843         * modules/uniconv/u16-conv-to-enc-tests
41844         (test_u16_conv_to_enc_LDADD): Likewise.
41845         * modules/uniconv/u16-strconv-from-enc-tests
41846         (test_u16_strconv_from_enc_LDADD): Likewise.
41847         * modules/uniconv/u16-strconv-to-enc-tests
41848         (test_u16_strconv_to_enc_LDADD): Likewise.
41849         * modules/uniconv/u32-conv-from-enc-tests
41850         (test_u32_conv_from_enc_LDADD): Likewise.
41851         * modules/uniconv/u32-conv-to-enc-tests
41852         (test_u32_conv_to_enc_LDADD): Likewise.
41853         * modules/uniconv/u32-strconv-from-enc-tests
41854         (test_u32_strconv_from_enc_LDADD): Likewise.
41855         * modules/uniconv/u32-strconv-to-enc-tests
41856         (test_u32_strconv_to_enc_LDADD): Likewise.
41857         * modules/uniconv/u8-conv-from-enc-tests
41858         (test_u8_conv_from_enc_LDADD): Likewise.
41859         * modules/uniconv/u8-conv-to-enc-tests
41860         (test_u8_conv_to_enc_LDADD): Likewise.
41861         * modules/uniconv/u8-strconv-from-enc-tests
41862         (test_u8_strconv_from_enc_LDADD): Likewise.
41863         * modules/uniconv/u8-strconv-to-enc-tests
41864         (test_u8_strconv_to_enc_LDADD): Likewise.
41865
41866 2007-10-22  Bruno Haible  <bruno@clisp.org>
41867
41868         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
41869         size.
41870
41871 2007-10-22  Eric Blake  <ebb9@byu.net>
41872
41873         Tweak x*printf documentation.
41874         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
41875         variable name and comments.
41876         Suggested by Bruno Haible.
41877
41878 2007-10-22  Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/acl.c (copy_acl): Fix file name in comment.
41881
41882 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
41883
41884         Fix Tru64 problem with stdbool.h.
41885         * lib/stdbool.in.h (false, true):
41886         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
41887         Don't declare as an enum in this situation; it runs afoul of Tru64.
41888         Problem reported by Steven M. Schweda in
41889         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
41890
41891 2007-10-22  Eric Blake  <ebb9@byu.net>
41892
41893         Also wrap vf?printf.
41894         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
41895         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
41896         (xvprintf, xvfprintf): New functions.
41897
41898 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41899
41900         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
41901         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
41902
41903         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
41904         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
41905
41906 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
41907
41908         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
41909         by Bruno Haible.
41910
41911 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41912
41913         * lib/getloadavg.c
41914         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
41915         Undef `sys' after including sys/table.h, for Tru64 4.0D.
41916
41917         * tests/test-i-ring.c: Work for C89.
41918
41919 2007-10-22  Bruno Haible  <bruno@clisp.org>
41920
41921         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
41922         -1u, in preprocessor expression, so that we don't test for the bug
41923         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
41924         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
41925
41926 2007-10-22  Eric Blake  <ebb9@byu.net>
41927
41928         * tests/test-yesno.sh: Silence stderr during test.
41929
41930 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41931
41932         * modules/crypto/gc-camellia: New file.
41933
41934         * m4/gc-camellia.m4: New file.
41935
41936         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
41937
41938         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
41939
41940 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41941
41942         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
41943         --help to stdout.  Reported by sms@antinode.org (Steven
41944         M. Schweda).
41945
41946 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41947
41948         * users.txt: Fix link to libksba.
41949
41950 2007-10-21  Ben Pfaff  <blp@gnu.org>
41951
41952         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
41953         round.c roundf implementation that depends on floorf and ceilf to
41954         be tested unconditionally.
41955
41956 2007-10-21  Ben Pfaff  <blp@gnu.org>
41957
41958         * m4/check-libm-func.m4: Removed.
41959         * m4/check-math-lib.m4: New file.
41960         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
41961         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
41962         definition and lack of AC_LIBOBJ([roundf]).
41963         * m4/roundl.m4: Ditto, and similarly for roundl.
41964         * modules/round: Reference new m4 file.
41965         * modules/roundf: Ditto.
41966         * modules/roundl: Ditto.
41967         * tests/test-round2.c (main): Use ROUND instead of round.
41968         Bug report from Bruno Haible.
41969
41970 2007-10-21  Bruno Haible  <bruno@clisp.org>
41971
41972         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
41973         context.
41974
41975 2007-10-21  Bruno Haible  <bruno@clisp.org>
41976
41977         * tests/test-wcwidth.c (main): Allow negative result for some control
41978         characters.
41979
41980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
41981         Needed on OSF/1 5.1.
41982
41983 2007-10-21  Bruno Haible  <bruno@clisp.org>
41984
41985         * tests/test-floorf1.c: Include isnanf.h.
41986         (main): Use isnanf() instead of isnan().
41987         * tests/test-ceilf1.c: Include isnanf.h.
41988         (main): Use isnanf() instead of isnan().
41989         * tests/test-truncf1.c: Include isnanf.h.
41990         (main): Use isnanf() instead of isnan().
41991         * tests/test-roundf1.c: Include isnanf.h.
41992         (main): Use isnanf() instead of isnan().
41993
41994 2007-10-21  Eric Blake  <ebb9@byu.net>
41995
41996         * users.txt: Update URL for m4.
41997
41998 2007-10-21  Bruno Haible  <bruno@clisp.org>
41999
42000         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
42001
42002 2007-10-21  Bruno Haible  <bruno@clisp.org>
42003
42004         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
42005         Git's management files if the CVS files are not present.
42006
42007 2007-10-20  Bruno Haible  <bruno@clisp.org>
42008
42009         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
42010         gcc-3.4.x.
42011
42012 2007-10-20  Ben Pfaff  <blp@gnu.org>
42013
42014         * lib/math.in.h: Declare round, roundf, roundl if we are providing
42015         implementations.
42016         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
42017         * lib/round.c: New file.
42018         * lib/roundf.c: New file.
42019         * lib/roundl.c: New file.
42020         * m4/round.m4: New file.
42021         * m4/roundf.m4: New file.
42022         * m4/roundl.m4: New file.
42023         * m4/check-libm-func-m4: New file.
42024         * modules/math: Replace round, roundf, roundl related @VARS@ in
42025         math.in.h.
42026         * modules/round: New file.
42027         * modules/round-tests: New file.
42028         * modules/roundf: New file.
42029         * modules/roundf-tests: New file.
42030         * modules/roundl: New file.
42031         * modules/roundl-tests: New file.
42032         * tests/test-round1.c: New file.
42033         * tests/test-round2.c: New file.
42034         * tests/test-roundf1.c: New file.
42035         * tests/test-roundf2.c: New file.
42036         * tests/test-roundl.c: New file.
42037         * doc/functions/round.texi: Mention round module.
42038         * doc/functions/roundf.texi: Mention roundf module.
42039         * doc/functions/roundl.texi: Mention roundl module.
42040         * MODULES.html.sh: Mention new modules.
42041         Thanks to Bruno Haible for suggestions.
42042
42043 2007-10-20  Jim Meyering  <meyering@redhat.com>
42044
42045         * lib/xprintf.c: Include <config.h> unconditionally.
42046
42047         Change xprintf's license to GPL.
42048         * modules/xprintf (License): s/LGPL/GPL/, since this module
42049         depends on modules (exit and exitfail) which are GPL.
42050         Suggestion from Bruno Haible.
42051
42052         xprintf fixes.
42053         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
42054         Use a clearer diagnostic.
42055         Patch from Bruno Haible.
42056
42057 2007-10-20  Bruno Haible  <bruno@clisp.org>
42058
42059         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
42060         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
42061         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42062
42063 2007-10-20  Bruno Haible  <bruno@clisp.org>
42064
42065         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
42066         precision in the comparison result > x - 1 or similar.
42067         * tests/test-ceilf2.c (correct_result_p): Likewise.
42068         * tests/test-truncf2.c (correct_result_p): Likewise.
42069         * tests/test-trunc2.c (correct_result_p): Likewise.
42070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42071
42072 2007-10-20  Bruno Haible  <bruno@clisp.org>
42073
42074         * modules/ceil: New file.
42075         * m4/ceil.m4: New file.
42076         * doc/functions/ceil.texi: Mention the 'ceil' module.
42077
42078 2007-10-20  Bruno Haible  <bruno@clisp.org>
42079
42080         * modules/floor: New file.
42081         * m4/floor.m4: New file.
42082         * doc/functions/floor.texi: Mention the 'floor' module.
42083
42084 2007-10-20  Bruno Haible  <bruno@clisp.org>
42085
42086         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
42087         of %a.
42088         * modules/floorf-tests (Depends-on): Likewise.
42089         * modules/truncf-tests (Depends-on): Likewise.
42090         * modules/trunc-tests (Depends-on): Likewise.
42091         Reported by Ben Pfaff.
42092
42093 2007-10-19  Jim Meyering  <meyering@redhat.com>
42094
42095         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
42096         Don't bother testing specific errno values.  Just test ferror.
42097
42098         New module: xprintf
42099         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
42100
42101 2007-10-19  Bruno Haible  <bruno@clisp.org>
42102
42103         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
42104         syntax.
42105         * modules/javaexec (Makefile.am): Likewise.
42106         * modules/relocatable-prog (Makefile.am): Likewise.
42107         Suggested by Jim Meyering.
42108
42109 2007-10-18  Bruno Haible  <bruno@clisp.org>
42110
42111         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
42112         Reported by Jim Meyering.
42113
42114 2007-10-18  Eric Blake  <ebb9@byu.net>
42115
42116         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
42117
42118 2007-10-18  Bruno Haible  <bruno@clisp.org>
42119
42120         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
42121         the format string into writable memory. Needed in Fortify conditions.
42122
42123 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
42124             Bruno Haible  <bruno@clisp.org>
42125
42126         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
42127         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
42128         * modules/trim (Depends-on): Add mbchar.
42129         (configure.ac): Add gl_FUNC_MBRTOWC.
42130         (Makefile.am): Augment lib_SOURCES.
42131
42132 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42133
42134         Modify glob.c to use fstatat and dirfd, to simplify it.
42135         Suggested by Eric Blake.
42136         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
42137         Don't include <stdbool.h>; not used.
42138         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
42139         (link_exists_p): Simplify implementation, since we can now assume
42140         dirfd and fstatat.
42141         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
42142
42143 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42144
42145         * gnulib-tool (func_get_dependencies): Fix sed script to
42146         match only tests.
42147
42148 2007-10-17  Bruno Haible  <bruno@clisp.org>
42149
42150         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
42151         allow locale names without encoding suffix.
42152         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42153         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42154
42155 2007-10-16  Bruno Haible  <bruno@clisp.org>
42156
42157         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
42158         * lib/getgroups.c (getgroups): Likewise.
42159         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
42160
42161 2007-10-16  Bruno Haible  <bruno@clisp.org>
42162
42163         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
42164         * modules/malloc-posix (License): Likewise.
42165         * modules/realloc-posix (License): Likewise.
42166         * modules/calloc-posix (License): Likewise.
42167         * modules/intprops (License): Change from GPL to LGPL, with
42168         Paul Eggert's approval.
42169
42170 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42171
42172         Merge glibc changes into lib/glob.c.
42173
42174         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
42175         2007-10-15 04:59:03 UTC.  Here are the changes:
42176
42177         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
42178
42179         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
42180
42181         * lib/glob.c: Add some branch prediction throughout.
42182
42183         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
42184
42185         [BZ #5103]
42186         * lib/glob.c (glob): Recognize patterns starting \/.
42187
42188         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
42189
42190         [BZ #3996]
42191         * lib/glob.c (attribute_hidden): Define if not defined.
42192         (glob): Unescape dirname, filename or username when needed and not
42193         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
42194         is NULL.  Handle unescaped [ in pattern without closing ].
42195         Don't pass GLOB_CHECK down to recursive glob for directories.
42196         (__glob_pattern_type): New function.
42197         (__glob_pattern_p): Implement using __glob_pattern_type.
42198         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
42199         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
42200         Remove unreachable code.
42201
42202         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
42203
42204         * lib/glob.c (glob_in_dir): Add some comments and asserts to
42205         explain why there are no leaks.
42206
42207         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
42208
42209         [BZ #3253]
42210         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
42211         time, rather allocate increasingly bigger arrays of pointers, if
42212         possible with alloca, if too large with malloc.
42213
42214 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42215
42216         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
42217         Problem reported by H.Merijn Brand in
42218         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
42219         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
42220         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42221
42222 2007-10-15  Bruno Haible  <bruno@clisp.org>
42223
42224         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
42225         with explicit rpl_ prefix.
42226         * lib/fopen.c (fopen): Likewise.
42227         * lib/freopen.c (freopen): Likewise.
42228         * lib/iconv.c (iconv): Likewise.
42229         * lib/iconv_close.c (iconv_close): Likewise.
42230
42231 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42232
42233         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
42234
42235 2007-10-15  Bruno Haible  <bruno@clisp.org>
42236
42237         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
42238         <stddef.h> instead of <stdlib.h> since we only need NULL.
42239         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42240
42241 2007-10-15  Bruno Haible  <bruno@clisp.org>
42242
42243         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
42244         Replace paragraph talking about LIBOBJS.
42245         Reported by Colin Watson <cjwatson@debian.org>.
42246
42247 2007-10-15  Bruno Haible  <bruno@clisp.org>
42248
42249         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
42250         <stdlib.h> before using NULL.
42251
42252 2007-10-15  Simon Josefsson  <simon@josefsson.org>
42253
42254         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
42255         Reported by Albert Chin <china@thewrittenword.com>.
42256
42257 2007-10-14  Bruno Haible  <bruno@clisp.org>
42258
42259         * modules/iconv_open-utf-tests: New file.
42260         * tests/test-iconv-utf.c: New file.
42261
42262         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
42263         * modules/iconv_open-utf: New file.
42264         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
42265         (iconv, iconv_close): New declarations.
42266         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
42267         be defined.
42268         (iconv_open): Add special handling of conversion between UTF-8 and
42269         UTF-{16,32}{BE,LE}.
42270         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
42271         * lib/iconv_close.c: New file.
42272         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
42273         gl_FUNC_ICONV_OPEN.
42274         (gl_FUNC_ICONV_OPEN): Use it.
42275         (gl_FUNC_ICONV_OPEN_UTF): New macro.
42276         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
42277         and REPLACE_ICONV_UTF.
42278         * modules/iconv_open (Depends-on): Add c-strcase.
42279         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
42280         ICONV_CONST.
42281         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
42282
42283 2007-10-13  Albert Chin  <china@thewrittenword.com>
42284             Bruno Haible  <bruno@clisp.org>
42285
42286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
42287         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
42288
42289 2007-10-13  Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
42292         defined, use the ISO C99 inline semantics.
42293         * lib/argp.h (ARGP_EI): Likewise.
42294
42295 2007-10-13  Bruno Haible  <bruno@clisp.org>
42296
42297         Handle 'inline' change in gcc 4.3.0.
42298         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
42299         argp_fmtstream_write, argp_fmtstream_set_lmargin,
42300         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
42301         argp_fmtstream_point): Disable 'extern' declaration if the function
42302         definition is going to be provided inline.
42303         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
42304         semantics, not the ISO C99 inline semantics.
42305         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
42306         'extern' declaration if the function definition is going to be provided
42307         inline.
42308         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
42309         the GNU C inline semantics, not the ISO C99 inline semantics. With
42310         GCC 4.2, avoid a warning.
42311
42312 2007-10-13  Bruno Haible  <bruno@clisp.org>
42313
42314         * lib/freading.h (freading): Enable the use of __freading for
42315         glibc >= 2.7.
42316         * lib/freading.c (freading): Likewise.
42317
42318 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42319
42320         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
42321         "warning: C99 inline functions are not supported; using GNU89".
42322
42323 2007-10-12  Bruno Haible  <bruno@clisp.org>
42324
42325         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
42326         of 2.
42327         * tests/test-ceilf2.c: New file.
42328         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
42329
42330         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
42331         * modules/ceilf-tests: Update.
42332
42333 2007-10-12  Bruno Haible  <bruno@clisp.org>
42334
42335         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
42336         of 2.
42337         * tests/test-floorf2.c: New file.
42338         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
42339
42340         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
42341         * modules/floorf-tests: Update.
42342
42343 2007-10-12  Bruno Haible  <bruno@clisp.org>
42344
42345         * tests/test-trunc2.c: New file.
42346         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
42347
42348         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
42349         * modules/trunc-tests: Update.
42350
42351 2007-10-12  Bruno Haible  <bruno@clisp.org>
42352
42353         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
42354         of 2.
42355         * tests/test-truncf2.c: New file.
42356         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
42357
42358         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
42359         * modules/truncf-tests: Update.
42360
42361 2007-10-11  Eric Blake  <ebb9@byu.net>
42362
42363         Don't claim strerror is broken on Interix.
42364         * doc/functions/strerror.texi (strerror): Known broken systems are
42365         now Solaris 8, and not Interix.
42366         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
42367         Interix on cross-compile.
42368         Reported by Martin Koeppe in
42369         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
42370
42371 2007-10-11  Bruno Haible  <bruno@clisp.org>
42372
42373         * modules/i-ring-tests: New file.
42374         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
42375         instead of assert.
42376
42377 2007-10-11  Bruno Haible  <bruno@clisp.org>
42378
42379         * modules/filenamecat-tests: New file.
42380         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
42381         * lib/filenamecat.c: Remove test code.
42382
42383 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42384
42385         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
42386
42387         * lib/strerror.c: Include <string.h> always, to test interface,
42388         and to remove the need for the dummy.
42389         Include intprops.h to compute width instead of doing it ourselves
42390         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
42391         (strerror): Define it to return NULL if there's no system strerror.
42392         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
42393         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
42394         ancient pre-strerror Unix systems well any more.  Saying "unknown
42395         system error" is enough.
42396         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
42397         simpler strerror.c implementation.
42398         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
42399         Simplify the tests to reflect the simpler strerror implementation.
42400         * modules/strerror (Depends-on): Add intprops.
42401
42402 2007-10-09  Eric Blake  <ebb9@byu.net>
42403
42404         Silence test-fpending.
42405         * modules/fpending-tests (Files): Add wrapper script.
42406         * tests/test-fpending.sh: New file.
42407
42408 2007-10-09  Bruno Haible  <bruno@clisp.org>
42409
42410         * MODULES.html.sh (func_module): Don't create a hyperlink for
42411         function names like 'printf_frexp'.
42412         (Misc): Add crc, memxor.
42413         (Characteristics of floating types): New section.
42414         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
42415         isnanf-nolibm, signbit, trunc, truncf, truncl.
42416         (Enhancements for ISO C 99 functions): New subsection Input/output.
42417         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
42418         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
42419         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
42420         (Compatibility checks for POSIX:2001 functions): Add clock-time.
42421         (Enhancements for POSIX:2001 functions): Add chdir-long.
42422         (File system functions): Add areadlink, chdir-safer, read-file.
42423         Remove cycle-check.
42424         (File system as inode set): New section.
42425         (Date and time): Add gethrxtime.
42426         (Multithreading): Add openmp.
42427         (Internationalization functions): Add localename.
42428         (Unicode string functions): Add unistr/u*-mbsnlen.
42429         (Support for maintaining and releasing projects): Add git-version-gen.
42430         (Lone files): Remove directories.
42431
42432 2007-10-08  Ben Pfaff  <blp@gnu.org>
42433
42434         * lib/xmalloca.h: Fix typo in comment.
42435
42436 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42437
42438         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
42439         when avoiding problems with integer overflow.  Use a portable test
42440         instead.
42441
42442 2007-10-08  Simon Josefsson  <simon@josefsson.org>
42443
42444         * modules/dummy (License): Change to LGPLv2+.
42445         * modules/float (License): Likewise
42446         * modules/realloc (License): Likewise
42447         * modules/stdlib (License): Likewise
42448
42449 2007-10-07  Bruno Haible  <bruno@clisp.org>
42450
42451         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
42452         * floor.c (TWO_MANT_DIG): Likewise.
42453         * ceil.c (TWO_MANT_DIG): Likewise.
42454         Reported by Ben Pfaff.
42455
42456 2007-10-07  Bruno Haible  <bruno@clisp.org>
42457
42458         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
42459         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
42460         * lib/frexp.c (FUNC): Likewise.
42461         * lib/printf-frexp.h (printf_frexp): Likewise.
42462         * lib/printf-frexpl.h (printf_frexpl): Likewise.
42463         * lib/printf-frexp.c (FUNC): Likewise.
42464         Suggested by Jim Meyering.
42465
42466 2007-10-07  Jim Meyering  <meyering@redhat.com>
42467
42468         Make xnanosleep's integer overflow test more robust.
42469         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
42470         so that gcc-4.3.0 doesn't optimize away this test for overflow.
42471
42472 2007-10-07  Bruno Haible  <bruno@clisp.org>
42473
42474         * NEWS: Mention the license change.
42475
42476         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
42477         abbreviations in the modules files.
42478
42479         Change copyright notice from GPLv2+ to GPLv3+.
42480         * README: Change copyright notice.
42481         * MODULES.html.sh: Likewise.
42482         * build-aux/bootstrap.conf: Likewise.
42483         * build-aux/config.libpath: Likewise.
42484         * build-aux/csharpcomp.sh.in: Likewise.
42485         * build-aux/csharpexec.sh.in: Likewise.
42486         * build-aux/install-reloc: Likewise.
42487         * build-aux/javacomp.sh.in: Likewise.
42488         * build-aux/javaexec.sh.in: Likewise.
42489         * build-aux/ldd.sh.in: Likewise.
42490         * build-aux/reloc-ldflags: Likewise.
42491         * build-aux/relocatable.sh.in: Likewise.
42492         * build-aux/x-to-1.in: Likewise.
42493         * check-module: Likewise.
42494         * config/srclistvars.sh: Likewise.
42495         * gnulib-tool: Likewise.
42496         * lib/acl-internal.h: Likewise.
42497         * lib/acl.c: Likewise.
42498         * lib/acl.h: Likewise.
42499         * lib/acl_entries.c: Likewise.
42500         * lib/areadlink-with-size.c: Likewise.
42501         * lib/areadlink.c: Likewise.
42502         * lib/areadlink.h: Likewise.
42503         * lib/argmatch.c: Likewise.
42504         * lib/argmatch.h: Likewise.
42505         * lib/argp-ba.c: Likewise.
42506         * lib/argp-eexst.c: Likewise.
42507         * lib/argp-fmtstream.c: Likewise.
42508         * lib/argp-fmtstream.h: Likewise.
42509         * lib/argp-fs-xinl.c: Likewise.
42510         * lib/argp-help.c: Likewise.
42511         * lib/argp-namefrob.h: Likewise.
42512         * lib/argp-parse.c: Likewise.
42513         * lib/argp-pin.c: Likewise.
42514         * lib/argp-pv.c: Likewise.
42515         * lib/argp-pvh.c: Likewise.
42516         * lib/argp-xinl.c: Likewise.
42517         * lib/argp.h: Likewise.
42518         * lib/at-func.c: Likewise.
42519         * lib/atanl.c: Likewise.
42520         * lib/backupfile.c: Likewise.
42521         * lib/backupfile.h: Likewise.
42522         * lib/basename.c: Likewise.
42523         * lib/binary-io.h: Likewise.
42524         * lib/byteswap.in.h: Likewise.
42525         * lib/c-stack.c: Likewise.
42526         * lib/c-stack.h: Likewise.
42527         * lib/c-strcasestr.c: Likewise.
42528         * lib/c-strcasestr.h: Likewise.
42529         * lib/c-strstr.c: Likewise.
42530         * lib/c-strstr.h: Likewise.
42531         * lib/c-strtod.c: Likewise.
42532         * lib/calloc.c: Likewise.
42533         * lib/canon-host.c: Likewise.
42534         * lib/canon-host.h: Likewise.
42535         * lib/canonicalize-lgpl.c: Likewise.
42536         * lib/canonicalize.c: Likewise.
42537         * lib/canonicalize.h: Likewise.
42538         * lib/ceil.c: Likewise.
42539         * lib/ceilf.c: Likewise.
42540         * lib/ceill.c: Likewise.
42541         * lib/chdir-long.c: Likewise.
42542         * lib/chdir-long.h: Likewise.
42543         * lib/chdir-safer.c: Likewise.
42544         * lib/chdir-safer.h: Likewise.
42545         * lib/chown.c: Likewise.
42546         * lib/classpath.c: Likewise.
42547         * lib/classpath.h: Likewise.
42548         * lib/clean-temp.c: Likewise.
42549         * lib/clean-temp.h: Likewise.
42550         * lib/cloexec.c: Likewise.
42551         * lib/close-stream.c: Likewise.
42552         * lib/closein.c: Likewise.
42553         * lib/closein.h: Likewise.
42554         * lib/closeout.c: Likewise.
42555         * lib/closeout.h: Likewise.
42556         * lib/concat-filename.c: Likewise.
42557         * lib/copy-file.c: Likewise.
42558         * lib/copy-file.h: Likewise.
42559         * lib/count-one-bits.h: Likewise.
42560         * lib/crc.c: Likewise.
42561         * lib/crc.h: Likewise.
42562         * lib/creat-safer.c: Likewise.
42563         * lib/csharpcomp.c: Likewise.
42564         * lib/csharpcomp.h: Likewise.
42565         * lib/csharpexec.c: Likewise.
42566         * lib/csharpexec.h: Likewise.
42567         * lib/cycle-check.c: Likewise.
42568         * lib/cycle-check.h: Likewise.
42569         * lib/diacrit.c: Likewise.
42570         * lib/diacrit.h: Likewise.
42571         * lib/diffseq.h: Likewise.
42572         * lib/dirchownmod.c: Likewise.
42573         * lib/dirent.in.h: Likewise.
42574         * lib/dirfd.c: Likewise.
42575         * lib/dirfd.h: Likewise.
42576         * lib/dirname.c: Likewise.
42577         * lib/dirname.h: Likewise.
42578         * lib/dummy.c: Likewise.
42579         * lib/dup-safer.c: Likewise.
42580         * lib/dup2.c: Likewise.
42581         * lib/eealloc.h: Likewise.
42582         * lib/error.c: Likewise.
42583         * lib/error.h: Likewise.
42584         * lib/euidaccess.c: Likewise.
42585         * lib/exclude.c: Likewise.
42586         * lib/exclude.h: Likewise.
42587         * lib/execute.c: Likewise.
42588         * lib/execute.h: Likewise.
42589         * lib/exitfail.c: Likewise.
42590         * lib/exitfail.h: Likewise.
42591         * lib/expl.c: Likewise.
42592         * lib/fatal-signal.c: Likewise.
42593         * lib/fatal-signal.h: Likewise.
42594         * lib/fbufmode.c: Likewise.
42595         * lib/fbufmode.h: Likewise.
42596         * lib/fchdir.c: Likewise.
42597         * lib/fchmodat.c: Likewise.
42598         * lib/fchownat.c: Likewise.
42599         * lib/fcntl--.h: Likewise.
42600         * lib/fcntl-safer.h: Likewise.
42601         * lib/fcntl.in.h: Likewise.
42602         * lib/fd-safer.c: Likewise.
42603         * lib/fflush.c: Likewise.
42604         * lib/file-has-acl.c: Likewise.
42605         * lib/file-set.c: Likewise.
42606         * lib/file-type.c: Likewise.
42607         * lib/file-type.h: Likewise.
42608         * lib/fileblocks.c: Likewise.
42609         * lib/filemode.c: Likewise.
42610         * lib/filemode.h: Likewise.
42611         * lib/filename.h: Likewise.
42612         * lib/filenamecat.c: Likewise.
42613         * lib/filenamecat.h: Likewise.
42614         * lib/findprog.c: Likewise.
42615         * lib/findprog.h: Likewise.
42616         * lib/float.in.h: Likewise.
42617         * lib/floor.c: Likewise.
42618         * lib/floorf.c: Likewise.
42619         * lib/floorl.c: Likewise.
42620         * lib/fopen-safer.c: Likewise.
42621         * lib/fopen.c: Likewise.
42622         * lib/fpending.c: Likewise.
42623         * lib/fpending.h: Likewise.
42624         * lib/fprintf.c: Likewise.
42625         * lib/fprintftime.h: Likewise.
42626         * lib/fpucw.h: Likewise.
42627         * lib/fpurge.c: Likewise.
42628         * lib/fpurge.h: Likewise.
42629         * lib/freadable.c: Likewise.
42630         * lib/freadable.h: Likewise.
42631         * lib/freadahead.c: Likewise.
42632         * lib/freadahead.h: Likewise.
42633         * lib/freading.c: Likewise.
42634         * lib/freading.h: Likewise.
42635         * lib/free.c: Likewise.
42636         * lib/freopen.c: Likewise.
42637         * lib/frexp.c: Likewise.
42638         * lib/frexpl.c: Likewise.
42639         * lib/fseek.c: Likewise.
42640         * lib/fseterr.c: Likewise.
42641         * lib/fseterr.h: Likewise.
42642         * lib/fstatat.c: Likewise.
42643         * lib/fstrcmp.c: Likewise.
42644         * lib/fstrcmp.h: Likewise.
42645         * lib/fsusage.c: Likewise.
42646         * lib/fsusage.h: Likewise.
42647         * lib/ftell.c: Likewise.
42648         * lib/ftello.c: Likewise.
42649         * lib/fts-cycle.c: Likewise.
42650         * lib/fts.c: Likewise.
42651         * lib/fts_.h: Likewise.
42652         * lib/full-read.c: Likewise.
42653         * lib/full-read.h: Likewise.
42654         * lib/full-write.c: Likewise.
42655         * lib/full-write.h: Likewise.
42656         * lib/fwritable.c: Likewise.
42657         * lib/fwritable.h: Likewise.
42658         * lib/fwriteerror.c: Likewise.
42659         * lib/fwriteerror.h: Likewise.
42660         * lib/fwriting.c: Likewise.
42661         * lib/fwriting.h: Likewise.
42662         * lib/gcd.c: Likewise.
42663         * lib/gcd.h: Likewise.
42664         * lib/getcwd.c: Likewise.
42665         * lib/getdate.h: Likewise.
42666         * lib/getdate.y: Likewise.
42667         * lib/getdomainname.c: Likewise.
42668         * lib/getdomainname.h: Likewise.
42669         * lib/getgroups.c: Likewise.
42670         * lib/gethostname.c: Likewise.
42671         * lib/gethrxtime.c: Likewise.
42672         * lib/gethrxtime.h: Likewise.
42673         * lib/getloadavg.c: Likewise.
42674         * lib/getndelim2.c: Likewise.
42675         * lib/getndelim2.h: Likewise.
42676         * lib/getnline.c: Likewise.
42677         * lib/getnline.h: Likewise.
42678         * lib/getopt.c: Likewise.
42679         * lib/getopt.in.h: Likewise.
42680         * lib/getopt1.c: Likewise.
42681         * lib/getopt_int.h: Likewise.
42682         * lib/getpagesize.h: Likewise.
42683         * lib/getsubopt.c: Likewise.
42684         * lib/gettime.c: Likewise.
42685         * lib/getugroups.c: Likewise.
42686         * lib/getugroups.h: Likewise.
42687         * lib/getusershell.c: Likewise.
42688         * lib/gl_anyavltree_list1.h: Likewise.
42689         * lib/gl_anyavltree_list2.h: Likewise.
42690         * lib/gl_anyhash_list1.h: Likewise.
42691         * lib/gl_anyhash_list2.h: Likewise.
42692         * lib/gl_anylinked_list1.h: Likewise.
42693         * lib/gl_anylinked_list2.h: Likewise.
42694         * lib/gl_anyrbtree_list1.h: Likewise.
42695         * lib/gl_anyrbtree_list2.h: Likewise.
42696         * lib/gl_anytree_list1.h: Likewise.
42697         * lib/gl_anytree_list2.h: Likewise.
42698         * lib/gl_anytree_oset.h: Likewise.
42699         * lib/gl_anytreehash_list1.h: Likewise.
42700         * lib/gl_anytreehash_list2.h: Likewise.
42701         * lib/gl_array_list.c: Likewise.
42702         * lib/gl_array_list.h: Likewise.
42703         * lib/gl_array_oset.c: Likewise.
42704         * lib/gl_array_oset.h: Likewise.
42705         * lib/gl_avltree_list.c: Likewise.
42706         * lib/gl_avltree_list.h: Likewise.
42707         * lib/gl_avltree_oset.c: Likewise.
42708         * lib/gl_avltree_oset.h: Likewise.
42709         * lib/gl_avltreehash_list.c: Likewise.
42710         * lib/gl_avltreehash_list.h: Likewise.
42711         * lib/gl_carray_list.c: Likewise.
42712         * lib/gl_carray_list.h: Likewise.
42713         * lib/gl_linked_list.c: Likewise.
42714         * lib/gl_linked_list.h: Likewise.
42715         * lib/gl_linkedhash_list.c: Likewise.
42716         * lib/gl_linkedhash_list.h: Likewise.
42717         * lib/gl_list.c: Likewise.
42718         * lib/gl_list.h: Likewise.
42719         * lib/gl_oset.c: Likewise.
42720         * lib/gl_oset.h: Likewise.
42721         * lib/gl_rbtree_list.c: Likewise.
42722         * lib/gl_rbtree_list.h: Likewise.
42723         * lib/gl_rbtree_oset.c: Likewise.
42724         * lib/gl_rbtree_oset.h: Likewise.
42725         * lib/gl_rbtreehash_list.c: Likewise.
42726         * lib/gl_rbtreehash_list.h: Likewise.
42727         * lib/gl_sublist.c: Likewise.
42728         * lib/gl_sublist.h: Likewise.
42729         * lib/group-member.c: Likewise.
42730         * lib/group-member.h: Likewise.
42731         * lib/hard-locale.c: Likewise.
42732         * lib/hard-locale.h: Likewise.
42733         * lib/hash-pjw.c: Likewise.
42734         * lib/hash-pjw.h: Likewise.
42735         * lib/hash-triple.c: Likewise.
42736         * lib/hash.c: Likewise.
42737         * lib/hash.h: Likewise.
42738         * lib/human.c: Likewise.
42739         * lib/human.h: Likewise.
42740         * lib/i-ring.c: Likewise.
42741         * lib/i-ring.h: Likewise.
42742         * lib/idcache.c: Likewise.
42743         * lib/imaxabs.c: Likewise.
42744         * lib/imaxdiv.c: Likewise.
42745         * lib/inet_pton.c: Likewise.
42746         * lib/inet_pton.h: Likewise.
42747         * lib/intprops.h: Likewise.
42748         * lib/inttostr.c: Likewise.
42749         * lib/inttostr.h: Likewise.
42750         * lib/inttypes.in.h: Likewise.
42751         * lib/isapipe.c: Likewise.
42752         * lib/isdir.c: Likewise.
42753         * lib/isnan.c: Likewise.
42754         * lib/isnan.h: Likewise.
42755         * lib/isnanf.c: Likewise.
42756         * lib/isnanf.h: Likewise.
42757         * lib/isnanl-nolibm.h: Likewise.
42758         * lib/isnanl.c: Likewise.
42759         * lib/isnanl.h: Likewise.
42760         * lib/javacomp.c: Likewise.
42761         * lib/javacomp.h: Likewise.
42762         * lib/javaexec.c: Likewise.
42763         * lib/javaexec.h: Likewise.
42764         * lib/javaversion.c: Likewise.
42765         * lib/javaversion.h: Likewise.
42766         * lib/javaversion.java: Likewise.
42767         * lib/lbrkprop.h: Likewise.
42768         * lib/lchmod.h: Likewise.
42769         * lib/lchown.c: Likewise.
42770         * lib/ldexpl.c: Likewise.
42771         * lib/linebreak.c: Likewise.
42772         * lib/linebreak.h: Likewise.
42773         * lib/linebuffer.c: Likewise.
42774         * lib/linebuffer.h: Likewise.
42775         * lib/locale.in.h: Likewise.
42776         * lib/logl.c: Likewise.
42777         * lib/long-options.c: Likewise.
42778         * lib/long-options.h: Likewise.
42779         * lib/lstat.c: Likewise.
42780         * lib/lstat.h: Likewise.
42781         * lib/math.in.h: Likewise.
42782         * lib/mbchar.c: Likewise.
42783         * lib/mbchar.h: Likewise.
42784         * lib/mbfile.h: Likewise.
42785         * lib/mbiter.h: Likewise.
42786         * lib/mbscasecmp.c: Likewise.
42787         * lib/mbscasestr.c: Likewise.
42788         * lib/mbschr.c: Likewise.
42789         * lib/mbscspn.c: Likewise.
42790         * lib/mbslen.c: Likewise.
42791         * lib/mbsncasecmp.c: Likewise.
42792         * lib/mbsnlen.c: Likewise.
42793         * lib/mbspbrk.c: Likewise.
42794         * lib/mbspcasecmp.c: Likewise.
42795         * lib/mbsrchr.c: Likewise.
42796         * lib/mbssep.c: Likewise.
42797         * lib/mbsspn.c: Likewise.
42798         * lib/mbsstr.c: Likewise.
42799         * lib/mbstok_r.c: Likewise.
42800         * lib/mbswidth.c: Likewise.
42801         * lib/mbswidth.h: Likewise.
42802         * lib/mbuiter.h: Likewise.
42803         * lib/memcasecmp.c: Likewise.
42804         * lib/memcasecmp.h: Likewise.
42805         * lib/memchr.c: Likewise.
42806         * lib/memcmp.c: Likewise.
42807         * lib/memcoll.c: Likewise.
42808         * lib/memcoll.h: Likewise.
42809         * lib/memcpy.c: Likewise.
42810         * lib/memrchr.c: Likewise.
42811         * lib/mkancesdirs.c: Likewise.
42812         * lib/mkdir-p.c: Likewise.
42813         * lib/mkdir-p.h: Likewise.
42814         * lib/mkdir.c: Likewise.
42815         * lib/mkdirat.c: Likewise.
42816         * lib/mkdtemp.c: Likewise.
42817         * lib/mkstemp-safer.c: Likewise.
42818         * lib/mkstemp.c: Likewise.
42819         * lib/modechange.c: Likewise.
42820         * lib/modechange.h: Likewise.
42821         * lib/mountlist.c: Likewise.
42822         * lib/mountlist.h: Likewise.
42823         * lib/mpsort.c: Likewise.
42824         * lib/nanosleep.c: Likewise.
42825         * lib/obstack.c: Likewise.
42826         * lib/obstack.h: Likewise.
42827         * lib/open-safer.c: Likewise.
42828         * lib/open.c: Likewise.
42829         * lib/openat-die.c: Likewise.
42830         * lib/openat-priv.h: Likewise.
42831         * lib/openat-proc.c: Likewise.
42832         * lib/openat.c: Likewise.
42833         * lib/openat.h: Likewise.
42834         * lib/pagealign_alloc.c: Likewise.
42835         * lib/pagealign_alloc.h: Likewise.
42836         * lib/physmem.c: Likewise.
42837         * lib/physmem.h: Likewise.
42838         * lib/pipe-safer.c: Likewise.
42839         * lib/pipe.c: Likewise.
42840         * lib/pipe.h: Likewise.
42841         * lib/posixtm.c: Likewise.
42842         * lib/posixtm.h: Likewise.
42843         * lib/posixver.c: Likewise.
42844         * lib/printf-frexp.c: Likewise.
42845         * lib/printf-frexp.h: Likewise.
42846         * lib/printf-frexpl.c: Likewise.
42847         * lib/printf-frexpl.h: Likewise.
42848         * lib/printf.c: Likewise.
42849         * lib/progname.c: Likewise.
42850         * lib/progname.h: Likewise.
42851         * lib/progreloc.c: Likewise.
42852         * lib/putenv.c: Likewise.
42853         * lib/quote.c: Likewise.
42854         * lib/quote.h: Likewise.
42855         * lib/quotearg.c: Likewise.
42856         * lib/quotearg.h: Likewise.
42857         * lib/raise.c: Likewise.
42858         * lib/readline.c: Likewise.
42859         * lib/readline.h: Likewise.
42860         * lib/readlink.c: Likewise.
42861         * lib/readtokens.c: Likewise.
42862         * lib/readtokens.h: Likewise.
42863         * lib/readtokens0.c: Likewise.
42864         * lib/readtokens0.h: Likewise.
42865         * lib/readutmp.c: Likewise.
42866         * lib/readutmp.h: Likewise.
42867         * lib/realloc.c: Likewise.
42868         * lib/relocwrapper.c: Likewise.
42869         * lib/rename-dest-slash.c: Likewise.
42870         * lib/rename.c: Likewise.
42871         * lib/rmdir.c: Likewise.
42872         * lib/rpmatch.c: Likewise.
42873         * lib/safe-read.c: Likewise.
42874         * lib/safe-read.h: Likewise.
42875         * lib/safe-write.c: Likewise.
42876         * lib/safe-write.h: Likewise.
42877         * lib/same-inode.h: Likewise.
42878         * lib/same.c: Likewise.
42879         * lib/same.h: Likewise.
42880         * lib/save-cwd.c: Likewise.
42881         * lib/save-cwd.h: Likewise.
42882         * lib/savedir.c: Likewise.
42883         * lib/savedir.h: Likewise.
42884         * lib/savewd.c: Likewise.
42885         * lib/savewd.h: Likewise.
42886         * lib/search.in.h: Likewise.
42887         * lib/setenv.c: Likewise.
42888         * lib/setenv.h: Likewise.
42889         * lib/settime.c: Likewise.
42890         * lib/sh-quote.c: Likewise.
42891         * lib/sh-quote.h: Likewise.
42892         * lib/sig2str.c: Likewise.
42893         * lib/sig2str.h: Likewise.
42894         * lib/signal.in.h: Likewise.
42895         * lib/signbitd.c: Likewise.
42896         * lib/signbitf.c: Likewise.
42897         * lib/signbitl.c: Likewise.
42898         * lib/sigprocmask.c: Likewise.
42899         * lib/sincosl.c: Likewise.
42900         * lib/sleep.c: Likewise.
42901         * lib/sprintf.c: Likewise.
42902         * lib/sqrtl.c: Likewise.
42903         * lib/stat-time.h: Likewise.
42904         * lib/stdio--.h: Likewise.
42905         * lib/stdio-safer.h: Likewise.
42906         * lib/stdlib--.h: Likewise.
42907         * lib/stdlib-safer.h: Likewise.
42908         * lib/stdlib.in.h: Likewise.
42909         * lib/stpcpy.c: Likewise.
42910         * lib/stpncpy.c: Likewise.
42911         * lib/strchrnul.c: Likewise.
42912         * lib/strcspn.c: Likewise.
42913         * lib/strerror.c: Likewise.
42914         * lib/strftime.c: Likewise.
42915         * lib/strftime.h: Likewise.
42916         * lib/striconveh.c: Likewise.
42917         * lib/striconveh.h: Likewise.
42918         * lib/striconveha.c: Likewise.
42919         * lib/striconveha.h: Likewise.
42920         * lib/stripslash.c: Likewise.
42921         * lib/strnlen1.c: Likewise.
42922         * lib/strnlen1.h: Likewise.
42923         * lib/strtod.c: Likewise.
42924         * lib/strtoimax.c: Likewise.
42925         * lib/strtok_r.c: Likewise.
42926         * lib/strtol.c: Likewise.
42927         * lib/strtoll.c: Likewise.
42928         * lib/strtoul.c: Likewise.
42929         * lib/strtoull.c: Likewise.
42930         * lib/sysexits.in.h: Likewise.
42931         * lib/tempname.c: Likewise.
42932         * lib/tempname.h: Likewise.
42933         * lib/timespec.h: Likewise.
42934         * lib/tls.c: Likewise.
42935         * lib/tls.h: Likewise.
42936         * lib/tmpdir.c: Likewise.
42937         * lib/tmpdir.h: Likewise.
42938         * lib/tmpfile-safer.c: Likewise.
42939         * lib/tmpfile.c: Likewise.
42940         * lib/trigl.c: Likewise.
42941         * lib/trigl.h: Likewise.
42942         * lib/trim.c: Likewise.
42943         * lib/trim.h: Likewise.
42944         * lib/trunc.c: Likewise.
42945         * lib/truncf.c: Likewise.
42946         * lib/truncl.c: Likewise.
42947         * lib/tsearch.c: Likewise.
42948         * lib/unicodeio.c: Likewise.
42949         * lib/unicodeio.h: Likewise.
42950         * lib/unistd--.h: Likewise.
42951         * lib/unistd-safer.h: Likewise.
42952         * lib/unistdio/ulc-fprintf.c: Likewise.
42953         * lib/unistdio/ulc-vfprintf.c: Likewise.
42954         * lib/unlinkdir.c: Likewise.
42955         * lib/unlinkdir.h: Likewise.
42956         * lib/unlocked-io.h: Likewise.
42957         * lib/unsetenv.c: Likewise.
42958         * lib/userspec.c: Likewise.
42959         * lib/utime.c: Likewise.
42960         * lib/utimecmp.c: Likewise.
42961         * lib/utimecmp.h: Likewise.
42962         * lib/utimens.c: Likewise.
42963         * lib/verify.h: Likewise.
42964         * lib/verror.c: Likewise.
42965         * lib/verror.h: Likewise.
42966         * lib/version-etc-fsf.c: Likewise.
42967         * lib/version-etc.c: Likewise.
42968         * lib/version-etc.h: Likewise.
42969         * lib/vfprintf.c: Likewise.
42970         * lib/vprintf.c: Likewise.
42971         * lib/vsprintf.c: Likewise.
42972         * lib/w32spawn.h: Likewise.
42973         * lib/wait-process.c: Likewise.
42974         * lib/wait-process.h: Likewise.
42975         * lib/wcwidth.c: Likewise.
42976         * lib/write-any-file.c: Likewise.
42977         * lib/xalloc-die.c: Likewise.
42978         * lib/xalloc.h: Likewise.
42979         * lib/xasprintf.c: Likewise.
42980         * lib/xgetcwd.c: Likewise.
42981         * lib/xgetcwd.h: Likewise.
42982         * lib/xgetdomainname.c: Likewise.
42983         * lib/xgetdomainname.h: Likewise.
42984         * lib/xgethostname.c: Likewise.
42985         * lib/xmalloc.c: Likewise.
42986         * lib/xmalloca.c: Likewise.
42987         * lib/xmalloca.h: Likewise.
42988         * lib/xmemcoll.c: Likewise.
42989         * lib/xnanosleep.c: Likewise.
42990         * lib/xreadlink.c: Likewise.
42991         * lib/xreadlink.h: Likewise.
42992         * lib/xsetenv.c: Likewise.
42993         * lib/xsetenv.h: Likewise.
42994         * lib/xstriconv.c: Likewise.
42995         * lib/xstriconv.h: Likewise.
42996         * lib/xstrndup.c: Likewise.
42997         * lib/xstrndup.h: Likewise.
42998         * lib/xstrtod.c: Likewise.
42999         * lib/xstrtod.h: Likewise.
43000         * lib/xstrtol-error.c: Likewise.
43001         * lib/xstrtol.c: Likewise.
43002         * lib/xstrtol.h: Likewise.
43003         * lib/xtime.h: Likewise.
43004         * lib/xvasprintf.c: Likewise.
43005         * lib/xvasprintf.h: Likewise.
43006         * lib/yesno.c: Likewise.
43007         * lib/yesno.h: Likewise.
43008         * posix-modules: Likewise.
43009         * tests/test-alloca-opt.c: Likewise.
43010         * tests/test-arcfour.c: Likewise.
43011         * tests/test-arctwo.c: Likewise.
43012         * tests/test-argmatch.c: Likewise.
43013         * tests/test-argp-2.sh: Likewise.
43014         * tests/test-argp.c: Likewise.
43015         * tests/test-arpa_inet.c: Likewise.
43016         * tests/test-array_list.c: Likewise.
43017         * tests/test-array_oset.c: Likewise.
43018         * tests/test-atexit.c: Likewise.
43019         * tests/test-avltree_list.c: Likewise.
43020         * tests/test-avltree_oset.c: Likewise.
43021         * tests/test-avltreehash_list.c: Likewise.
43022         * tests/test-base64.c: Likewise.
43023         * tests/test-binary-io.c: Likewise.
43024         * tests/test-byteswap.c: Likewise.
43025         * tests/test-c-ctype.c: Likewise.
43026         * tests/test-c-strcasecmp.c: Likewise.
43027         * tests/test-c-strcasestr.c: Likewise.
43028         * tests/test-c-strncasecmp.c: Likewise.
43029         * tests/test-c-strstr.c: Likewise.
43030         * tests/test-canonicalize-lgpl.c: Likewise.
43031         * tests/test-canonicalize.c: Likewise.
43032         * tests/test-carray_list.c: Likewise.
43033         * tests/test-ceilf.c: Likewise.
43034         * tests/test-ceill.c: Likewise.
43035         * tests/test-count-one-bits.c: Likewise.
43036         * tests/test-crc.c: Likewise.
43037         * tests/test-dirname.c: Likewise.
43038         * tests/test-fbufmode.c: Likewise.
43039         * tests/test-fcntl.c: Likewise.
43040         * tests/test-fflush.c: Likewise.
43041         * tests/test-floorf.c: Likewise.
43042         * tests/test-floorl.c: Likewise.
43043         * tests/test-fopen.c: Likewise.
43044         * tests/test-fprintf-posix.c: Likewise.
43045         * tests/test-fprintf-posix.h: Likewise.
43046         * tests/test-fpurge.c: Likewise.
43047         * tests/test-freadable.c: Likewise.
43048         * tests/test-freadahead.c: Likewise.
43049         * tests/test-freading.c: Likewise.
43050         * tests/test-freopen.c: Likewise.
43051         * tests/test-frexp.c: Likewise.
43052         * tests/test-frexpl.c: Likewise.
43053         * tests/test-fseek.c: Likewise.
43054         * tests/test-fseeko.c: Likewise.
43055         * tests/test-fseterr.c: Likewise.
43056         * tests/test-fstrcmp.c: Likewise.
43057         * tests/test-ftell.c: Likewise.
43058         * tests/test-ftello.c: Likewise.
43059         * tests/test-fwritable.c: Likewise.
43060         * tests/test-fwriting.c: Likewise.
43061         * tests/test-getaddrinfo.c: Likewise.
43062         * tests/test-getpass.c: Likewise.
43063         * tests/test-gettimeofday.c: Likewise.
43064         * tests/test-hmac-md5.c: Likewise.
43065         * tests/test-hmac-sha1.c: Likewise.
43066         * tests/test-iconv.c: Likewise.
43067         * tests/test-iconvme.c: Likewise.
43068         * tests/test-inttypes.c: Likewise.
43069         * tests/test-isnan.c: Likewise.
43070         * tests/test-isnanf.c: Likewise.
43071         * tests/test-isnanl-nolibm.c: Likewise.
43072         * tests/test-isnanl.c: Likewise.
43073         * tests/test-isnanl.h: Likewise.
43074         * tests/test-ldexpl.c: Likewise.
43075         * tests/test-linked_list.c: Likewise.
43076         * tests/test-linkedhash_list.c: Likewise.
43077         * tests/test-locale.c: Likewise.
43078         * tests/test-localename.c: Likewise.
43079         * tests/test-lock.c: Likewise.
43080         * tests/test-lseek.c: Likewise.
43081         * tests/test-malloca.c: Likewise.
43082         * tests/test-math.c: Likewise.
43083         * tests/test-mbscasecmp.c: Likewise.
43084         * tests/test-mbscasestr1.c: Likewise.
43085         * tests/test-mbscasestr2.c: Likewise.
43086         * tests/test-mbscasestr3.c: Likewise.
43087         * tests/test-mbscasestr4.c: Likewise.
43088         * tests/test-mbschr.c: Likewise.
43089         * tests/test-mbscspn.c: Likewise.
43090         * tests/test-mbsncasecmp.c: Likewise.
43091         * tests/test-mbspbrk.c: Likewise.
43092         * tests/test-mbspcasecmp.c: Likewise.
43093         * tests/test-mbsrchr.c: Likewise.
43094         * tests/test-mbsspn.c: Likewise.
43095         * tests/test-mbsstr1.c: Likewise.
43096         * tests/test-mbsstr2.c: Likewise.
43097         * tests/test-mbsstr3.c: Likewise.
43098         * tests/test-md5.c: Likewise.
43099         * tests/test-memmem.c: Likewise.
43100         * tests/test-netinet_in.c: Likewise.
43101         * tests/test-open.c: Likewise.
43102         * tests/test-printf-frexp.c: Likewise.
43103         * tests/test-printf-frexpl.c: Likewise.
43104         * tests/test-printf-posix.c: Likewise.
43105         * tests/test-printf-posix.h: Likewise.
43106         * tests/test-rbtree_list.c: Likewise.
43107         * tests/test-rbtree_oset.c: Likewise.
43108         * tests/test-rbtreehash_list.c: Likewise.
43109         * tests/test-read-file.c: Likewise.
43110         * tests/test-rijndael.c: Likewise.
43111         * tests/test-search.c: Likewise.
43112         * tests/test-signbit.c: Likewise.
43113         * tests/test-sleep.c: Likewise.
43114         * tests/test-snprintf-posix.c: Likewise.
43115         * tests/test-snprintf-posix.h: Likewise.
43116         * tests/test-snprintf.c: Likewise.
43117         * tests/test-sprintf-posix.c: Likewise.
43118         * tests/test-sprintf-posix.h: Likewise.
43119         * tests/test-stat-time.c: Likewise.
43120         * tests/test-stdbool.c: Likewise.
43121         * tests/test-stdint.c: Likewise.
43122         * tests/test-stdio.c: Likewise.
43123         * tests/test-stdlib.c: Likewise.
43124         * tests/test-stpncpy.c: Likewise.
43125         * tests/test-strcasestr.c: Likewise.
43126         * tests/test-striconv.c: Likewise.
43127         * tests/test-striconveh.c: Likewise.
43128         * tests/test-striconveha.c: Likewise.
43129         * tests/test-string.c: Likewise.
43130         * tests/test-sys_select.c: Likewise.
43131         * tests/test-sys_socket.c: Likewise.
43132         * tests/test-sys_stat.c: Likewise.
43133         * tests/test-sys_time.c: Likewise.
43134         * tests/test-sysexits.c: Likewise.
43135         * tests/test-time.c: Likewise.
43136         * tests/test-tls.c: Likewise.
43137         * tests/test-trunc.c: Likewise.
43138         * tests/test-truncf.c: Likewise.
43139         * tests/test-truncl.c: Likewise.
43140         * tests/test-unistd.c: Likewise.
43141         * tests/test-vasnprintf-posix.c: Likewise.
43142         * tests/test-vasnprintf-posix2.c: Likewise.
43143         * tests/test-vasnprintf.c: Likewise.
43144         * tests/test-vasprintf-posix.c: Likewise.
43145         * tests/test-vasprintf.c: Likewise.
43146         * tests/test-verify.c: Likewise.
43147         * tests/test-vfprintf-posix.c: Likewise.
43148         * tests/test-vprintf-posix.c: Likewise.
43149         * tests/test-vsnprintf-posix.c: Likewise.
43150         * tests/test-vsnprintf.c: Likewise.
43151         * tests/test-vsprintf-posix.c: Likewise.
43152         * tests/test-wchar.c: Likewise.
43153         * tests/test-wctype.c: Likewise.
43154         * tests/test-wcwidth.c: Likewise.
43155         * tests/test-xstrtol.c: Likewise.
43156         * tests/test-xvasprintf.c: Likewise.
43157         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
43158         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
43159         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43160         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43161         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43162         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
43163         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43164         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43165         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43166         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
43167         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43168         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43169         * tests/uniname/test-uninames.c: Likewise.
43170         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
43171         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
43172         * tests/unistdio/test-u16-printf1.h: Likewise.
43173         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
43174         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
43175         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
43176         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
43177         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
43178         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
43179         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
43180         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
43181         * tests/unistdio/test-u32-printf1.h: Likewise.
43182         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
43183         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
43184         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
43185         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
43186         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
43187         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
43188         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
43189         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
43190         * tests/unistdio/test-u8-printf1.h: Likewise.
43191         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
43192         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
43193         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
43194         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
43195         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
43196         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
43197         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
43198         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
43199         * tests/unistdio/test-ulc-printf1.h: Likewise.
43200         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
43201         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
43202         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
43203         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
43204         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
43205         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
43206         * tests/uniwidth/test-u16-strwidth.c: Likewise.
43207         * tests/uniwidth/test-u16-width.c: Likewise.
43208         * tests/uniwidth/test-u32-strwidth.c: Likewise.
43209         * tests/uniwidth/test-u32-width.c: Likewise.
43210         * tests/uniwidth/test-u8-strwidth.c: Likewise.
43211         * tests/uniwidth/test-u8-width.c: Likewise.
43212         * tests/uniwidth/test-uc_width.c: Likewise.
43213         * config/srclist-update: Likewise.
43214         (fixlicense): Update to GPLv3+.
43215
43216         Change copyright notice from LGPLv2.1+ to LGPLv3+.
43217         * tests/test-tsearch.c: Change copyright notice.
43218
43219         Change copyright notice from LGPLv2.0+ to LGPLv3+.
43220         * lib/c-strcaseeq.h: Change copyright notice.
43221         * lib/streq.h: Likewise.
43222         * lib/uniconv.h: Likewise.
43223         * lib/uniconv/u-conv-from-enc.h: Likewise.
43224         * lib/uniconv/u-conv-to-enc.h: Likewise.
43225         * lib/uniconv/u-strconv-from-enc.h: Likewise.
43226         * lib/uniconv/u-strconv-to-enc.h: Likewise.
43227         * lib/uniconv/u16-conv-from-enc.c: Likewise.
43228         * lib/uniconv/u16-conv-to-enc.c: Likewise.
43229         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
43230         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
43231         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
43232         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
43233         * lib/uniconv/u32-conv-from-enc.c: Likewise.
43234         * lib/uniconv/u32-conv-to-enc.c: Likewise.
43235         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
43236         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
43237         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
43238         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
43239         * lib/uniconv/u8-conv-from-enc.c: Likewise.
43240         * lib/uniconv/u8-conv-to-enc.c: Likewise.
43241         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
43242         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
43243         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
43244         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
43245         * lib/uniname.h: Likewise.
43246         * lib/uniname/uniname.c: Likewise.
43247         * lib/unistdio.h: Likewise.
43248         * lib/unistdio/u-asnprintf.h: Likewise.
43249         * lib/unistdio/u-asprintf.h: Likewise.
43250         * lib/unistdio/u-printf-args.c: Likewise.
43251         * lib/unistdio/u-printf-args.h: Likewise.
43252         * lib/unistdio/u-printf-parse.h: Likewise.
43253         * lib/unistdio/u-snprintf.h: Likewise.
43254         * lib/unistdio/u-sprintf.h: Likewise.
43255         * lib/unistdio/u-vasprintf.h: Likewise.
43256         * lib/unistdio/u-vsnprintf.h: Likewise.
43257         * lib/unistdio/u-vsprintf.h: Likewise.
43258         * lib/unistdio/u16-asnprintf.c: Likewise.
43259         * lib/unistdio/u16-asprintf.c: Likewise.
43260         * lib/unistdio/u16-printf-parse.c: Likewise.
43261         * lib/unistdio/u16-snprintf.c: Likewise.
43262         * lib/unistdio/u16-sprintf.c: Likewise.
43263         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
43264         * lib/unistdio/u16-u16-asprintf.c: Likewise.
43265         * lib/unistdio/u16-u16-snprintf.c: Likewise.
43266         * lib/unistdio/u16-u16-sprintf.c: Likewise.
43267         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
43268         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
43269         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
43270         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
43271         * lib/unistdio/u16-vasnprintf.c: Likewise.
43272         * lib/unistdio/u16-vasprintf.c: Likewise.
43273         * lib/unistdio/u16-vsnprintf.c: Likewise.
43274         * lib/unistdio/u16-vsprintf.c: Likewise.
43275         * lib/unistdio/u32-asnprintf.c: Likewise.
43276         * lib/unistdio/u32-asprintf.c: Likewise.
43277         * lib/unistdio/u32-printf-parse.c: Likewise.
43278         * lib/unistdio/u32-snprintf.c: Likewise.
43279         * lib/unistdio/u32-sprintf.c: Likewise.
43280         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
43281         * lib/unistdio/u32-u32-asprintf.c: Likewise.
43282         * lib/unistdio/u32-u32-snprintf.c: Likewise.
43283         * lib/unistdio/u32-u32-sprintf.c: Likewise.
43284         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
43285         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
43286         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
43287         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
43288         * lib/unistdio/u32-vasnprintf.c: Likewise.
43289         * lib/unistdio/u32-vasprintf.c: Likewise.
43290         * lib/unistdio/u32-vsnprintf.c: Likewise.
43291         * lib/unistdio/u32-vsprintf.c: Likewise.
43292         * lib/unistdio/u8-asnprintf.c: Likewise.
43293         * lib/unistdio/u8-asprintf.c: Likewise.
43294         * lib/unistdio/u8-printf-parse.c: Likewise.
43295         * lib/unistdio/u8-snprintf.c: Likewise.
43296         * lib/unistdio/u8-sprintf.c: Likewise.
43297         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
43298         * lib/unistdio/u8-u8-asprintf.c: Likewise.
43299         * lib/unistdio/u8-u8-snprintf.c: Likewise.
43300         * lib/unistdio/u8-u8-sprintf.c: Likewise.
43301         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
43302         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
43303         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
43304         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
43305         * lib/unistdio/u8-vasnprintf.c: Likewise.
43306         * lib/unistdio/u8-vasprintf.c: Likewise.
43307         * lib/unistdio/u8-vsnprintf.c: Likewise.
43308         * lib/unistdio/u8-vsprintf.c: Likewise.
43309         * lib/unistdio/ulc-asnprintf.c: Likewise.
43310         * lib/unistdio/ulc-asprintf.c: Likewise.
43311         * lib/unistdio/ulc-printf-parse.c: Likewise.
43312         * lib/unistdio/ulc-snprintf.c: Likewise.
43313         * lib/unistdio/ulc-sprintf.c: Likewise.
43314         * lib/unistdio/ulc-vasnprintf.c: Likewise.
43315         * lib/unistdio/ulc-vasprintf.c: Likewise.
43316         * lib/unistdio/ulc-vsnprintf.c: Likewise.
43317         * lib/unistdio/ulc-vsprintf.c: Likewise.
43318         * lib/unistr.h: Likewise.
43319         * lib/unistr/u-cpy-alloc.h: Likewise.
43320         * lib/unistr/u-cpy.h: Likewise.
43321         * lib/unistr/u-endswith.h: Likewise.
43322         * lib/unistr/u-move.h: Likewise.
43323         * lib/unistr/u-set.h: Likewise.
43324         * lib/unistr/u-startswith.h: Likewise.
43325         * lib/unistr/u-stpcpy.h: Likewise.
43326         * lib/unistr/u-stpncpy.h: Likewise.
43327         * lib/unistr/u-strcat.h: Likewise.
43328         * lib/unistr/u-strcpy.h: Likewise.
43329         * lib/unistr/u-strcspn.h: Likewise.
43330         * lib/unistr/u-strdup.h: Likewise.
43331         * lib/unistr/u-strlen.h: Likewise.
43332         * lib/unistr/u-strncat.h: Likewise.
43333         * lib/unistr/u-strncpy.h: Likewise.
43334         * lib/unistr/u-strnlen.h: Likewise.
43335         * lib/unistr/u-strpbrk.h: Likewise.
43336         * lib/unistr/u-strspn.h: Likewise.
43337         * lib/unistr/u-strstr.h: Likewise.
43338         * lib/unistr/u-strtok.h: Likewise.
43339         * lib/unistr/u16-check.c: Likewise.
43340         * lib/unistr/u16-chr.c: Likewise.
43341         * lib/unistr/u16-cmp.c: Likewise.
43342         * lib/unistr/u16-cpy-alloc.c: Likewise.
43343         * lib/unistr/u16-cpy.c: Likewise.
43344         * lib/unistr/u16-endswith.c: Likewise.
43345         * lib/unistr/u16-mblen.c: Likewise.
43346         * lib/unistr/u16-mbsnlen.c: Likewise.
43347         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43348         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43349         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43350         * lib/unistr/u16-mbtouc.c: Likewise.
43351         * lib/unistr/u16-mbtoucr.c: Likewise.
43352         * lib/unistr/u16-move.c: Likewise.
43353         * lib/unistr/u16-next.c: Likewise.
43354         * lib/unistr/u16-prev.c: Likewise.
43355         * lib/unistr/u16-set.c: Likewise.
43356         * lib/unistr/u16-startswith.c: Likewise.
43357         * lib/unistr/u16-stpcpy.c: Likewise.
43358         * lib/unistr/u16-stpncpy.c: Likewise.
43359         * lib/unistr/u16-strcat.c: Likewise.
43360         * lib/unistr/u16-strchr.c: Likewise.
43361         * lib/unistr/u16-strcmp.c: Likewise.
43362         * lib/unistr/u16-strcpy.c: Likewise.
43363         * lib/unistr/u16-strcspn.c: Likewise.
43364         * lib/unistr/u16-strdup.c: Likewise.
43365         * lib/unistr/u16-strlen.c: Likewise.
43366         * lib/unistr/u16-strmblen.c: Likewise.
43367         * lib/unistr/u16-strmbtouc.c: Likewise.
43368         * lib/unistr/u16-strncat.c: Likewise.
43369         * lib/unistr/u16-strncmp.c: Likewise.
43370         * lib/unistr/u16-strncpy.c: Likewise.
43371         * lib/unistr/u16-strnlen.c: Likewise.
43372         * lib/unistr/u16-strpbrk.c: Likewise.
43373         * lib/unistr/u16-strrchr.c: Likewise.
43374         * lib/unistr/u16-strspn.c: Likewise.
43375         * lib/unistr/u16-strstr.c: Likewise.
43376         * lib/unistr/u16-strtok.c: Likewise.
43377         * lib/unistr/u16-to-u32.c: Likewise.
43378         * lib/unistr/u16-to-u8.c: Likewise.
43379         * lib/unistr/u16-uctomb-aux.c: Likewise.
43380         * lib/unistr/u16-uctomb.c: Likewise.
43381         * lib/unistr/u32-check.c: Likewise.
43382         * lib/unistr/u32-chr.c: Likewise.
43383         * lib/unistr/u32-cmp.c: Likewise.
43384         * lib/unistr/u32-cpy-alloc.c: Likewise.
43385         * lib/unistr/u32-cpy.c: Likewise.
43386         * lib/unistr/u32-endswith.c: Likewise.
43387         * lib/unistr/u32-mblen.c: Likewise.
43388         * lib/unistr/u32-mbsnlen.c: Likewise.
43389         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43390         * lib/unistr/u32-mbtouc.c: Likewise.
43391         * lib/unistr/u32-mbtoucr.c: Likewise.
43392         * lib/unistr/u32-move.c: Likewise.
43393         * lib/unistr/u32-next.c: Likewise.
43394         * lib/unistr/u32-prev.c: Likewise.
43395         * lib/unistr/u32-set.c: Likewise.
43396         * lib/unistr/u32-startswith.c: Likewise.
43397         * lib/unistr/u32-stpcpy.c: Likewise.
43398         * lib/unistr/u32-stpncpy.c: Likewise.
43399         * lib/unistr/u32-strcat.c: Likewise.
43400         * lib/unistr/u32-strchr.c: Likewise.
43401         * lib/unistr/u32-strcmp.c: Likewise.
43402         * lib/unistr/u32-strcpy.c: Likewise.
43403         * lib/unistr/u32-strcspn.c: Likewise.
43404         * lib/unistr/u32-strdup.c: Likewise.
43405         * lib/unistr/u32-strlen.c: Likewise.
43406         * lib/unistr/u32-strmblen.c: Likewise.
43407         * lib/unistr/u32-strmbtouc.c: Likewise.
43408         * lib/unistr/u32-strncat.c: Likewise.
43409         * lib/unistr/u32-strncmp.c: Likewise.
43410         * lib/unistr/u32-strncpy.c: Likewise.
43411         * lib/unistr/u32-strnlen.c: Likewise.
43412         * lib/unistr/u32-strpbrk.c: Likewise.
43413         * lib/unistr/u32-strrchr.c: Likewise.
43414         * lib/unistr/u32-strspn.c: Likewise.
43415         * lib/unistr/u32-strstr.c: Likewise.
43416         * lib/unistr/u32-strtok.c: Likewise.
43417         * lib/unistr/u32-to-u16.c: Likewise.
43418         * lib/unistr/u32-to-u8.c: Likewise.
43419         * lib/unistr/u32-uctomb.c: Likewise.
43420         * lib/unistr/u8-check.c: Likewise.
43421         * lib/unistr/u8-chr.c: Likewise.
43422         * lib/unistr/u8-cmp.c: Likewise.
43423         * lib/unistr/u8-cpy-alloc.c: Likewise.
43424         * lib/unistr/u8-cpy.c: Likewise.
43425         * lib/unistr/u8-endswith.c: Likewise.
43426         * lib/unistr/u8-mblen.c: Likewise.
43427         * lib/unistr/u8-mbsnlen.c: Likewise.
43428         * lib/unistr/u8-mbtouc-aux.c: Likewise.
43429         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43430         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43431         * lib/unistr/u8-mbtouc.c: Likewise.
43432         * lib/unistr/u8-mbtoucr.c: Likewise.
43433         * lib/unistr/u8-move.c: Likewise.
43434         * lib/unistr/u8-next.c: Likewise.
43435         * lib/unistr/u8-prev.c: Likewise.
43436         * lib/unistr/u8-set.c: Likewise.
43437         * lib/unistr/u8-startswith.c: Likewise.
43438         * lib/unistr/u8-stpcpy.c: Likewise.
43439         * lib/unistr/u8-stpncpy.c: Likewise.
43440         * lib/unistr/u8-strcat.c: Likewise.
43441         * lib/unistr/u8-strchr.c: Likewise.
43442         * lib/unistr/u8-strcmp.c: Likewise.
43443         * lib/unistr/u8-strcpy.c: Likewise.
43444         * lib/unistr/u8-strcspn.c: Likewise.
43445         * lib/unistr/u8-strdup.c: Likewise.
43446         * lib/unistr/u8-strlen.c: Likewise.
43447         * lib/unistr/u8-strmblen.c: Likewise.
43448         * lib/unistr/u8-strmbtouc.c: Likewise.
43449         * lib/unistr/u8-strncat.c: Likewise.
43450         * lib/unistr/u8-strncmp.c: Likewise.
43451         * lib/unistr/u8-strncpy.c: Likewise.
43452         * lib/unistr/u8-strnlen.c: Likewise.
43453         * lib/unistr/u8-strpbrk.c: Likewise.
43454         * lib/unistr/u8-strrchr.c: Likewise.
43455         * lib/unistr/u8-strspn.c: Likewise.
43456         * lib/unistr/u8-strstr.c: Likewise.
43457         * lib/unistr/u8-strtok.c: Likewise.
43458         * lib/unistr/u8-to-u16.c: Likewise.
43459         * lib/unistr/u8-to-u32.c: Likewise.
43460         * lib/unistr/u8-uctomb-aux.c: Likewise.
43461         * lib/unistr/u8-uctomb.c: Likewise.
43462         * lib/unitypes.h: Likewise.
43463         * lib/uniwidth.h: Likewise.
43464         * lib/uniwidth/cjk.h: Likewise.
43465         * lib/uniwidth/u16-strwidth.c: Likewise.
43466         * lib/uniwidth/u16-width.c: Likewise.
43467         * lib/uniwidth/u32-strwidth.c: Likewise.
43468         * lib/uniwidth/u32-width.c: Likewise.
43469         * lib/uniwidth/u8-strwidth.c: Likewise.
43470         * lib/uniwidth/u8-width.c: Likewise.
43471         * lib/uniwidth/width.c: Likewise.
43472
43473 2007-10-07  Bruno Haible  <bruno@clisp.org>
43474
43475         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
43476         The file is still under LGPL (see modules/inttypes).
43477
43478 2007-10-06  Bruno Haible  <bruno@clisp.org>
43479
43480         * modules/trunc (Dependencies): Add 'extensions'.
43481         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
43482         Reported by Ben Pfaff <blp@gnu.org>.
43483
43484 2007-10-06  Bruno Haible  <bruno@clisp.org>
43485
43486         * modules/freopen-tests: New file.
43487         * tests/test-freopen.c: New file.
43488
43489         * modules/fopen-tests: New file.
43490         * tests/test-fopen.c: New file.
43491
43492         * modules/fopen: New file.
43493         * lib/fopen.c: New file.
43494         * m4/fopen.m4: New file.
43495         * modules/freopen: New file.
43496         * lib/freopen.c: New file.
43497         * m4/freopen.m4: New file.
43498         * lib/stdio.in.h (fopen, freopen): New declarations.
43499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
43500         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43501         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
43502         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43503         * doc/functions/fopen.texi: Mention the 'fopen' module.
43504         * doc/functions/freopen.texi: Mention the 'freopen' module.
43505
43506 2007-10-06  Bruno Haible  <bruno@clisp.org>
43507
43508         * modules/open-tests: New file.
43509         * tests/test-open.c: New file.
43510
43511         * modules/open: New file.
43512         * lib/open.c: New file.
43513         * m4/open.m4: New file.
43514         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
43515         lib/open.c does.
43516         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
43517         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
43518         macros.
43519         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
43520         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
43521         REPLACE_OPEN.
43522         * doc/functions/open.texi: Mention the 'open' module.
43523
43524 2007-10-04  Bruno Haible  <bruno@clisp.org>
43525
43526         * modules/ceill-tests: New file.
43527         * tests/test-ceill.c: New file.
43528
43529         * modules/ceill: New file.
43530         * lib/ceill.c: Replace entire file.
43531         * m4/ceill.m4: New file.
43532         * lib/math.in.h (ceill): Replace declaration.
43533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
43534         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
43535         * doc/functions/ceill.texi: Mention the 'ceill' module.
43536         * modules/mathl (Files): Remove lib/ceill.c.
43537         (Depends-on): Add ceill.
43538
43539 2007-10-04  Bruno Haible  <bruno@clisp.org>
43540
43541         * modules/ceilf-tests: New file.
43542         * tests/test-ceilf.c: New file.
43543
43544         * modules/ceilf: New file.
43545         * lib/ceil.c: New file.
43546         * lib/ceilf.c: New file.
43547         * m4/ceilf.m4: New file.
43548         * lib/math.in.h (ceilf): New declaration.
43549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
43550         HAVE_DECL_CEILF.
43551         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
43552         HAVE_DECL_CEILF.
43553         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
43554
43555 2007-10-04  Bruno Haible  <bruno@clisp.org>
43556
43557         * modules/floorl-tests: New file.
43558         * tests/test-floorl.c: New file.
43559
43560         * modules/floorl: New file.
43561         * lib/floorl.c: Replace entire file.
43562         * m4/floorl.m4: New file.
43563         * lib/math.in.h (floorl): Replace declaration.
43564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
43565         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
43566         * doc/functions/floorl.texi: Mention the 'floorl' module.
43567         * modules/mathl (Files): Remove lib/floorl.c.
43568         (Depends-on): Add floorl.
43569
43570 2007-10-04  Bruno Haible  <bruno@clisp.org>
43571
43572         * modules/floorf-tests: New file.
43573         * tests/test-floorf.c: New file.
43574
43575         * modules/floorf: New file.
43576         * lib/floor.c: New file.
43577         * lib/floorf.c: New file.
43578         * m4/floorf.m4: New file.
43579         * lib/math.in.h (floorf): New declaration.
43580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
43581         HAVE_DECL_FLOORF.
43582         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
43583         HAVE_DECL_FLOORF.
43584         * doc/functions/floorf.texi: Mention the 'floorf' module.
43585
43586 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
43587             Bruno Haible  <bruno@clisp.org>
43588
43589         Advertise for the Git server instead of the CVS server.
43590         * doc/gnulib-intro.texi (Steady Development): Mention the Git
43591         repository instead of the CVS one.
43592         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
43593         about all VCS systems generically.
43594         * doc/gnulib.texi (Introduction): Capitalize `Git'.
43595
43596 2007-10-04  Bruno Haible  <bruno@clisp.org>
43597
43598         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
43599         means.
43600         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
43601
43602 2007-10-04  Bruno Haible  <bruno@clisp.org>
43603
43604         * modules/truncl-tests: New file.
43605         * tests/test-truncl.c: New file.
43606
43607         * modules/truncl: New file.
43608         * lib/truncl.c: New file.
43609         * m4/truncl.m4: New file.
43610         * lib/math.in.h (truncl): New declaration.
43611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
43612         HAVE_DECL_TRUNCL.
43613         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
43614         HAVE_DECL_TRUNCL.
43615         * doc/functions/truncl.texi: Mention the 'truncl' module.
43616
43617 2007-10-04  Bruno Haible  <bruno@clisp.org>
43618
43619         * modules/truncf-tests: New file.
43620         * tests/test-truncf.c: New file.
43621
43622         * modules/truncf: New file.
43623         * lib/trunc.c: Make paramerizable through USE_* macros.
43624         * lib/truncf.c: New file.
43625         * m4/truncf.m4: New file.
43626         * lib/math.in.h (truncf): New declaration.
43627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
43628         HAVE_DECL_TRUNCF.
43629         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
43630         HAVE_DECL_TRUNCF.
43631         * doc/functions/truncf.texi: Mention the 'truncf' module.
43632
43633 2007-10-03  Bruno Haible  <bruno@clisp.org>
43634
43635         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43636         augmentation also for tests modules.
43637         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
43638         * modules/atexit-tests (Makefile.am): Likewise.
43639         * modules/binary-io-tests (Makefile.am): Likewise.
43640         * modules/c-strcase-tests (Makefile.am): Likewise.
43641         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
43642         * modules/canonicalize-tests (Makefile.am): Likewise.
43643         * modules/closein-tests (Makefile.am): Likewise.
43644         * modules/fprintf-posix-tests (Makefile.am): Likewise.
43645         * modules/freadahead-tests (Makefile.am): Likewise.
43646         * modules/fseek-tests (Makefile.am): Likewise.
43647         * modules/fseeko-tests (Makefile.am): Likewise.
43648         * modules/ftell-tests (Makefile.am): Likewise.
43649         * modules/ftello-tests (Makefile.am): Likewise.
43650         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
43651         * modules/isnanl-tests (Makefile.am): Likewise.
43652         * modules/lseek-tests (Makefile.am): Likewise.
43653         * modules/mbscasecmp-tests (Makefile.am): Likewise.
43654         * modules/mbscasestr-tests (Makefile.am): Likewise.
43655         * modules/mbschr-tests (Makefile.am): Likewise.
43656         * modules/mbscspn-tests (Makefile.am): Likewise.
43657         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
43658         * modules/mbspbrk-tests (Makefile.am): Likewise.
43659         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
43660         * modules/mbsrchr-tests (Makefile.am): Likewise.
43661         * modules/mbsspn-tests (Makefile.am): Likewise.
43662         * modules/mbsstr-tests (Makefile.am): Likewise.
43663         * modules/printf-posix-tests (Makefile.am): Likewise.
43664         * modules/snprintf-posix-tests (Makefile.am): Likewise.
43665         * modules/sprintf-posix-tests (Makefile.am): Likewise.
43666         * modules/tsearch-tests (Makefile.am): Likewise.
43667         * modules/uniname/uniname-tests (Makefile.am): Likewise.
43668         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
43669         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
43670         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
43671         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
43672         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
43673         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
43674         * modules/vprintf-posix-tests (Makefile.am): Likewise.
43675         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
43676         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
43677         * modules/xstrtoimax-tests (Makefile.am): Likewise.
43678         * modules/xstrtol-tests (Makefile.am): Likewise.
43679         * modules/xstrtoumax-tests (Makefile.am): Likewise.
43680         * modules/yesno-tests (Makefile.am): Likewise.
43681
43682 2007-10-03  Bruno Haible  <bruno@clisp.org>
43683
43684         * modules/trunc-tests: New file.
43685         * tests/test-trunc.c: New file.
43686
43687         * modules/trunc: New file.
43688         * lib/trunc.c: New file.
43689         * m4/trunc.m4: New file.
43690         * lib/math.in.h (trunc): New declaration.
43691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
43692         HAVE_DECL_TRUNC.
43693         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
43694         HAVE_DECL_TRUNC.
43695         * doc/functions/trunc.texi: Mention the 'trunc' module.
43696
43697 2007-10-03  Bruno Haible  <bruno@clisp.org>
43698
43699         * tests/test-fpending.c: New file, mostly copied
43700         from coreutils/lib/t-fpending.c.
43701         * modules/fpending-tests: New file.
43702
43703 2007-10-03  Bruno Haible  <bruno@clisp.org>
43704
43705         Port the stdio extensions to QNX (untested).
43706         * lib/fseterr.c (fseterr): Add support for QNX.
43707         * lib/fbufmode.c (fbufmode): Likewise.
43708         * lib/freadable.c (freadable): Likewise.
43709         * lib/fwritable.c (fwritable): Likewise.
43710         * lib/freading.c (freading): Likewise.
43711         * lib/fwriting.c (fwriting): Likewise.
43712         * lib/freadahead.c (freadahed): Likewise.
43713         * lib/fpurge.c (fpurge): Likewise.
43714         * lib/fseeko.c (rpl_fseeko): Likewise.
43715
43716 2007-10-03  Bruno Haible  <bruno@clisp.org>
43717             Jim Meyering  <jim@meyering.net>
43718             Eric Blake  <ebb9@byu.net>
43719
43720         * doc/relocatable.texi: Use @command instead of @program.
43721
43722 2007-10-02  Jim Meyering  <jim@meyering.net>
43723
43724         Perform one more "_.h" -> ".in.h" substitution.
43725         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
43726         instead of unistd_.h here, too.
43727
43728 2007-10-01  Bruno Haible  <bruno@clisp.org>
43729
43730         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
43731         Needed for the alloca-opt module.
43732
43733 2007-09-30  Bruno Haible  <bruno@clisp.org>
43734
43735         * lib/alloca.in.h: Renamed from lib/alloca_.h.
43736         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
43737         alloca_.h.
43738         * lib/argz.in.h: Renamed from lib/argz_.h.
43739         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
43740         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
43741         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
43742         byteswap_.h.
43743         * lib/dirent.in.h: Renamed from lib/dirent_.h.
43744         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
43745         dirent_.h.
43746         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
43747         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
43748         fcntl_.h.
43749         * lib/float.in.h: Renamed from lib/float_.h.
43750         * modules/float (Files, Makefile.am): Use float.in.h instead of
43751         float_.h.
43752         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
43753         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
43754         fnmatch_.h.
43755         * lib/getopt.in.h: Renamed from lib/getopt_.h.
43756         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
43757         getopt_.h.
43758         * lib/glob.in.h: Renamed from lib/glob_.h.
43759         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
43760         * lib/iconv.in.h: Renamed from lib/iconv_.h.
43761         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
43762         iconv_.h.
43763         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
43764         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
43765         inttypes_.h.
43766         * lib/locale.in.h: Renamed from lib/locale_.h.
43767         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
43768         locale_.h.
43769         * lib/math.in.h: Renamed from lib/math_.h.
43770         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
43771         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
43772         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
43773         of netinet_in_.h. Add dependency.
43774         * lib/poll.in.h: Renamed from lib/poll_.h.
43775         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
43776         * lib/search.in.h: Renamed from lib/search_.h.
43777         * modules/search (Files, Makefile.am): Use search.in.h instead of
43778         search_.h.
43779         * lib/signal.in.h: Renamed from lib/signal_.h.
43780         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
43781         _signal.h.
43782         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
43783         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
43784         stdbool_.h.
43785         * lib/stdint.in.h: Renamed from lib/stdint_.h.
43786         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
43787         stdint_.h.
43788         * lib/stdio.in.h: Renamed from lib/stdio_.h.
43789         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
43790         stdio_.h.
43791         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
43792         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
43793         stdlib_.h.
43794         * lib/string.in.h: Renamed from lib/string_.h.
43795         * modules/string (Files, Makefile.am): Use string.in.h instead of
43796         string_.h.
43797         * doc/gnulib-tool.texi (Initial import): Update.
43798         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
43799         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
43800         of sys_select_.h. Add dependency.
43801         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
43802         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
43803         of sys_socket_.h.
43804         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
43805         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
43806         sys_stat_.h.
43807         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
43808         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
43809         sys_time_.h.
43810         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
43811         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
43812         sysexits_.h.
43813         * lib/time.in.h: Renamed from lib/time_.h.
43814         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
43815         * lib/unistd.in.h: Renamed from lib/unistd_.h.
43816         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
43817         unistd_.h.
43818         * lib/wchar.in.h: Renamed from lib/wchar_.h.
43819         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
43820         wchar_.h.
43821         * lib/wctype.in.h: Renamed from lib/wctype_.h.
43822         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
43823         wctype_.h.
43824         * build-aux/bootstrap (slurp): Update.
43825         * lib/.cppi-disable: Update.
43826
43827 2007-09-30  Bruno Haible  <bruno@clisp.org>
43828
43829         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
43830         Needed on BeOS.
43831
43832 2007-09-30  Bruno Haible  <bruno@clisp.org>
43833
43834         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
43835
43836 2007-09-29  Bruno Haible  <bruno@clisp.org>
43837
43838         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
43839
43840 2007-09-29  Bruno Haible  <bruno@clisp.org>
43841
43842         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
43843         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
43844         * build-aux/install-reloc: Compile also areadlink.c.
43845         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
43846
43847 2007-09-29  Bruno Haible  <bruno@clisp.org>
43848
43849         * gnulib-tool (func_emit_initmacro_done): Indentation.
43850
43851 2007-09-29  Bruno Haible  <bruno@clisp.org>
43852
43853         * README: Add CVS checkout update instructions.
43854         Info from Bob Proulx <bob@proulx.com>.
43855
43856 2007-09-28  Eric Blake  <ebb9@byu.net>
43857
43858         Provide move-if-change.
43859         * build-aux/move-if-change: New file, based on best practice
43860         rather than any canonical upstream location.
43861
43862 2007-09-28  Jim Meyering  <jim@meyering.net>
43863
43864         Fix canonicalize loop-detection corner case.
43865         Do not attempt to stat the symlink values stored via seen_triple.
43866         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
43867         on linux-2.6.18, (but not 2.6.22).
43868         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
43869         triple_compare.  The former compares dev,ino,filename, while the latter
43870         would actually stat dirname(filename) when dev and ino were equal.
43871         * lib/hash-triple.c: Install <string.h>.
43872         (STREQ): Define.
43873         (triple_compare_ino_str): New function.
43874         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
43875
43876 2007-09-28  Eric Blake  <ebb9@byu.net>
43877
43878         Enforce that AC_REPLACE_FUNCS files exist.
43879         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
43880         override check for typos.
43881
43882         Fix test-closein on Solaris 10.
43883         * tests/test-closein.c (main): Don't assume stdin can be inherited
43884         closed on all systems.
43885         * tests/test-closein.sh: Likewise.
43886         Reported by Piotr Tarnowski.
43887
43888 2007-09-28  Jim Meyering  <jim@meyering.net>
43889
43890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
43891
43892 2007-09-27  Jim Meyering  <jim@meyering.net>
43893
43894         canonicalize: Avoid a false-positive cycle failure.
43895         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
43896         Sort.  Remove cycle-check.
43897         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
43898         not cycle-check.h.
43899         (seen_triple): New function.
43900         (canonicalize_filename_mode): Use it instead of cycle-check.
43901         * tests/test-canonicalize.c: Add a test for this bug.
43902         * tests/test-canonicalize.sh: Set up and run the test.
43903
43904         New module, file-set, from coreutils.
43905         * modules/file-set: Define it.
43906         * lib/file-set.c, lib/file-set.h: Implement.
43907
43908         New module, hash-triple, from coreutils.
43909         * modules/hash-triple: Define it.
43910         * lib/hash-triple.c, lib/hash-triple.h: Implement.
43911
43912 2007-09-25  Eric Blake  <ebb9@byu.net>
43913
43914         Fix strerror on Interix.
43915         * lib/string_.h (strerror): Declare replacement.
43916         * doc/functions/strerror.texi (strerror): Document the Interix
43917         shortcoming.
43918         * modules/string (Makefile.am): Support new hooks.
43919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
43920         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
43921         gl_FUNC_STRERROR_SEPARATE.
43922         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
43923         * lib/strerror.c (rpl_strerror): Provide replacement.
43924         * modules/strerror (Depends-on): Add string.
43925         (configure.ac): Detect use of module.
43926         * tests/test-strerror.c: New file.
43927         * modules/strerror-tests: New test module.
43928         * modules/argp (Depends-on): Add strerror.
43929         * modules/error (Depends-on): Likewise.
43930         Reported by Martin Koeppe.
43931
43932 2007-09-24  Bruno Haible  <bruno@clisp.org>
43933
43934         * README: Update git instructions.
43935
43936 2007-09-24  Eric Blake  <ebb9@byu.net>
43937
43938         Revert fpending breakage from 2007-09-08.
43939         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
43940         __fpending.c.
43941
43942 2007-09-24  Jim Meyering  <jim@meyering.net>
43943
43944         filenamecat.c: Add a test.
43945         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
43946         showing how the function works when DIR is the empty string.
43947
43948 2007-09-21  Simon Josefsson  <simon@josefsson.org>
43949
43950         * tests/test-canonicalize.sh: Turn on executable bit.
43951
43952 2007-09-19  Eric Blake  <ebb9@byu.net>
43953
43954         * README: Update CVS instructions.
43955
43956 2007-09-18  Bruno Haible  <bruno@clisp.org>
43957
43958         * modules/areadlink: New file.
43959         * lib/areadlink.h (areadlink): New declaration.
43960         * lib/areadlink.c: New file, based on lib/xreadlink.c.
43961
43962 2007-09-17  Jim Meyering  <jim@meyering.net>
43963
43964         * lib/savewd.c (ESTALE) [!defined]: Define.
43965         Reported to be required on Interix by Martin Koeppe.
43966
43967 2007-09-17  Bruno Haible  <bruno@clisp.org>
43968
43969         * gnulib-tool (func_version): Use $version.
43970
43971 2007-09-16  Bruno Haible  <bruno@clisp.org>
43972
43973         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
43974         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
43975         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
43976         Reported by Greg Schafer <gschafer@zip.com.au>.
43977
43978 2007-09-15  Bruno Haible  <bruno@clisp.org>
43979
43980         * gnulib-tool (sed): Try a little harder to make bash understand the
43981         alias.
43982         Reported by Bruce Korb <bruce.korb@gmail.com>.
43983
43984 2007-09-13  Eric Blake  <ebb9@byu.net>
43985
43986         * ChangeLog: Remove conflict markers.
43987
43988 2007-09-13  Simon Josefsson  <simon@josefsson.org>
43989
43990         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
43991         Reported by Bruno Haible <bruno@clisp.org>.
43992
43993 2007-09-12  Bruno Haible  <bruno@clisp.org>
43994
43995         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
43996         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
43997         is not defined.
43998
43999 2007-09-12  Eric Blake  <ebb9@byu.net>
44000
44001         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
44002         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
44003         Autoconf definition.
44004         * modules/euidaccess (Depends-on): Add extensions, for
44005         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
44006         * modules/fnmatch (Depends-on): Likewise.
44007         * modules/getaddrinfo (Depends-on): Likewise.
44008         * modules/getdelim (Depends-on): Likewise.
44009         * modules/getline (Depends-on): Likewise.
44010         * modules/getsubopt (Depends-on): Likewise.
44011         * modules/gettext (Depends-on): Likewise.
44012         * modules/group-member (Depends-on): Likewise.
44013         * modules/mbchar (Depends-on): Likewise.
44014         * modules/memmem (Depends-on): Likewise.
44015         * modules/mempcpy (Depends-on): Likewise.
44016         * modules/memrchr (Depends-on): Likewise.
44017         * modules/pagealign_alloc (Depends-on): Likewise.
44018         * modules/readutmp (Depends-on): Likewise.
44019         * modules/stpcpy (Depends-on): Likewise.
44020         * modules/stpncpy (Depends-on): Likewise.
44021         * modules/strchrnul (Depends-on): Likewise.
44022         * modules/strndup (Depends-on): Likewise.
44023         * modules/strsep (Depends-on): Likewise.
44024         * modules/strverscmp (Depends-on): Likewise.
44025         * modules/vasprintf (Depends-on): Likewise.
44026         * modules/wcwidth (Depends-on): Likewise.
44027         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
44028         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
44029         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
44030         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
44031         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44032         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44033         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
44034         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44035         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
44036         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
44037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44038         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44039         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44040         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44041         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
44042         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44043         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44044         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44045         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44046         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44047         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44048         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44049         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44050         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
44051         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
44052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44053         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
44054         so that lock.m4 can be used in gettext without extensions module.
44055
44056 2007-09-11  Bruno Haible  <bruno@clisp.org>
44057
44058         * m4/isc-posix.m4: Remove file.
44059         Suggested by Eric Blake.
44060
44061 2007-09-11  Eric Blake  <ebb9@byu.net>
44062
44063         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
44064
44065 2007-09-10  Bruno Haible  <bruno@clisp.org>
44066
44067         * posix-modules: Fix typo in error message.
44068         Reported by Matt <mkraai@beckman.com>.
44069
44070 2007-09-09  Bruno Haible  <bruno@clisp.org>
44071
44072         * doc/functions/getdelim.texi: Update list of platforms lacking the
44073         function.
44074         * doc/functions/getline.texi: Likewise.
44075
44076 2007-09-09  Jim Meyering  <jim@meyering.net>
44077
44078         * lib/hash.c (hash_initialize): Detect calloc failure.
44079         Reported by Bruno Haible.
44080
44081 2007-09-09  Bruno Haible  <bruno@clisp.org>
44082
44083         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
44084         malloc or realloc fails.
44085
44086 2007-09-09  Bruno Haible  <bruno@clisp.org>
44087
44088         * modules/getcwd (Depends-on): Add malloc-posix.
44089         * modules/glob (Depends-on): Likewise.
44090         * modules/putenv (Depends-on): Likewise.
44091         * modules/strdup (Depends-on): Likewise.
44092         * modules/getdelim (Depends-on): Add realloc-posix.
44093         * modules/read-file (Depends-on): Likewise.
44094
44095 2007-09-09  Bruno Haible  <bruno@clisp.org>
44096
44097         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
44098         (gl_FUNC_MALLOC_POSIX): Require it.
44099         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
44100         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
44101         * modules/realloc (Files): Add m4/malloc.m4.
44102         * modules/calloc (Files): Likewise.
44103
44104 2007-09-09  Bruno Haible  <bruno@clisp.org>
44105
44106         * modules/malloc-posix: New file.
44107         * modules/malloc (Depends-on): Add malloc-posix.
44108         * lib/malloc.c: Include errno.h.
44109         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
44110         and a POSIX-compatible malloc into a single function. Set ENOMEM
44111         when returning NULL.
44112         * m4/malloc.m4: New file.
44113         * doc/functions/malloc.texi: Mention the malloc-posix module.
44114         * lib/stdlib_.h (malloc): New declaration.
44115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44116         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
44117         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
44118         and HAVE_MALLOC_POSIX.
44119
44120 2007-09-09  Bruno Haible  <bruno@clisp.org>
44121
44122         * modules/realloc-posix: New file.
44123         * modules/realloc (Depends-on): Add realloc-posix.
44124         * lib/realloc.c: Include errno.h.
44125         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
44126         and a POSIX-compatible realloc into a single function. Set ENOMEM
44127         when returning NULL.
44128         * m4/realloc.m4: New file.
44129         * doc/functions/realloc.texi: Mention the realloc-posix module.
44130         * lib/stdlib_.h (realloc): New declaration.
44131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44132         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
44133         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
44134         and HAVE_REALLOC_POSIX.
44135
44136 2007-09-09  Bruno Haible  <bruno@clisp.org>
44137
44138         * modules/calloc-posix: New file.
44139         * modules/calloc (Depends-on): Add calloc-posix.
44140         * lib/calloc.c: Include errno.h.
44141         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
44142         and a POSIX-compatible calloc into a single function. Set ENOMEM
44143         when returning NULL.
44144         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
44145         * doc/functions/calloc.texi: Mention the calloc-posix module.
44146         * lib/stdlib_.h (calloc): New declaration.
44147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44148         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
44149         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
44150         and HAVE_CALLOC_POSIX.
44151
44152 2007-09-09  Bruno Haible  <bruno@clisp.org>
44153
44154         Allow for modules to show an arbitrary notice.
44155         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
44156         * gnulib-tool: New option --extract-notice.
44157         (func_usage): Document it.
44158         (sed_extract_prog): Update.
44159         (func_get_notice): New function.
44160         (func_modules_notice): New function.
44161         (func_import, func_create_testdir): Invoke it.
44162         Suggested by Jim Meyering.
44163
44164 2007-09-09  Bruno Haible  <bruno@clisp.org>
44165
44166         * gnulib-tool: New options --verbose, --quiet.
44167         (func_usage): Document them.
44168         (verbose): New variable.
44169         (func_execute_command): New function.
44170         (func_import): Don't show the module list and the file list if
44171         $verbose < 0.
44172         (func_create_testdir): Likewise. Use func_execute_command.
44173         (func_create_megatestdir): Use func_execute_command.
44174
44175 2007-09-08  Bruno Haible  <bruno@clisp.org>
44176
44177         * gnulib-tool (func_import): Prefer rsync over wget when available,
44178         for fetching the PO files.
44179
44180 2007-09-08  Bruno Haible  <bruno@clisp.org>
44181
44182         * posix-modules: New file. Portions copied from gnulib-tool.
44183         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
44184
44185 2007-09-08  Jim Meyering  <jim@meyering.net>
44186
44187         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
44188         * lib/fpending.h: Rename from __fpending.h.
44189         * lib/fpending.c: Rename from __fpending.c.
44190         Include "fpending.h", not "__fpending.h".
44191         * lib/__fpending.h, lib/__fpending.c: Remove files.
44192         * modules/fpending (Files): Reflect new file names.
44193         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
44194
44195 2007-09-08  Bruno Haible  <bruno@clisp.org>
44196
44197         * m4/inttypes-h.m4: Remove stub file.
44198
44199 2007-09-07  Simon Josefsson  <simon@josefsson.org>
44200
44201         * doc/headers/stdint.texi: Discuss #include_next issue.
44202
44203 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44204
44205         * build-aux/bootstrap: Remove obsolete comment about wget --help.
44206
44207 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44208
44209         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
44210         in variable name.
44211
44212 2007-09-03  Jim Meyering  <jim@meyering.net>
44213
44214         New module: git-version-gen.
44215         * modules/git-version-gen: New file.
44216
44217         Import changes from coreutils for bootstrap script.
44218
44219         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
44220
44221         bootstrap: uses rsync to download the .po files
44222         * build-aux/bootstrap (po_download_command_format): New global.
44223         (download_po_files): Use rsync.
44224         (update_po_files): Don't remove .po files after download,
44225         so future rsync runs can take advantage of the copies.
44226
44227         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
44228
44229         Solve the unnecessary-.po-file-regeneration problem once and for all.
44230         * build-aux/bootstrap (download_po_files): New function, renamed from
44231         get_translations.  Now, downloads, but doesn't update LINGUAS.
44232         (update_po_files): New function.
44233
44234         bootstrap: Ignore more.
44235         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
44236         uniwidth to e.g., lib/.gitignore.
44237         (slurp): Handle the sys_stat_.h -> sys mapping, too.
44238
44239         * build-aux/bootstrap: New setting: vc_ignore.
44240         (insert_sorted_if_absent): Create $file if absent.
44241         Adapt to new, possibly empty, list: $vc_ignore.
44242
44243         bootstrap: generate more ignorable names
44244         * build-aux/bootstrap (slurp): When generating ignorable names,
44245         also map .sin to .sed, .gperf to .c, and .y to .c.
44246
44247 2007-09-03  Jim Meyering  <jim@meyering.net>
44248
44249         * build-aux/git-version-gen: New file, from coreutils.  For details, see
44250         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
44251
44252 2007-09-02  Bruno Haible  <bruno@clisp.org>
44253
44254         Fix mis-recognition of 'mcs' on QNX 6.
44255         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
44256         output contains the string "Mono".
44257         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
44258         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
44259
44260 2007-09-01  Bruno Haible  <bruno@clisp.org>
44261
44262         Fix collision between uniwidth/* and linebreak modules.
44263         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
44264         u32_width): Remove declarations.
44265         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
44266         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
44267         streq3, streq2, streq1, streq0): Remove functions.
44268         (STREQ): Remove macro.
44269         (is_cjk_encoding): Remove function.
44270         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
44271         (uc_width, u8_width, u16_width, u32_width): Remove functions.
44272         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
44273         * NEWS: Document the change.
44274
44275 2007-09-01  Bruno Haible  <bruno@clisp.org>
44276
44277         * lib/streq.h: Add double-inclusion guard.
44278
44279 2007-09-01  Karl Berry  <karl@gnu.org>
44280
44281         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
44282
44283 2007-08-28  Jim Meyering  <jim@meyering.net>
44284
44285         Rename mreadlink_with_size to areadlink_with_size.
44286         * NEWS: Document the change.
44287         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
44288         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
44289         * lib/mreadlink.h: Rename this to...
44290         * lib/areadlink.h: ...this.
44291         * modules/mreadlink-with-size: Rename this to...
44292         * modules/areadlink-with-size: ...this.
44293         * lib/canonicalize.c: Reflect the renaming.
44294         * modules/canonicalize: Likewise.
44295
44296 2007-08-26  Bruno Haible  <bruno@clisp.org>
44297
44298         * gnulib-tool (func_import): When deciding which files to remove,
44299         consider also dangling symbolic links.
44300         Reported by Eric Blake.
44301
44302 2007-08-26  Bruno Haible  <bruno@clisp.org>
44303
44304         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
44305
44306 2007-08-23  Simon Josefsson  <simon@josefsson.org>
44307
44308         * lib/readline.c: Don't include getline.h, the prototype is now
44309         found in stdio.h.
44310
44311 2007-08-23  Jim Meyering  <jim@meyering.net>
44312
44313         Getdelim touchup.
44314         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
44315         around the funlockfile call, since funlockfile never sets errno.
44316         Don't set errno upon failed realloc.
44317
44318 2007-08-22  Eric Blake  <ebb9@byu.net>
44319
44320         Getline touchups.
44321         * lib/getdelim.c (getdelim): Revert regression that required *n to
44322         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
44323         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
44324         getdelim, rather than whether implementation is missing.
44325         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
44326         * lib/stdio_.h (getline): Also declare if replacement is
44327         required.
44328         * doc/functions/getdelim.texi: New file.
44329         * doc/functions/getline.texi: Likewise.
44330         * doc/gnulib.texi (Function Substitutes): Add new files.
44331         Reported by Bruno Haible.
44332
44333 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
44334
44335         * users.txt: Add Guile.
44336
44337 2007-08-22  Eric Blake  <ebb9@byu.net>
44338
44339         * tests/test-getdelim.c (main): Use remove, not unlink.
44340         * tests/test-getline.c (main): Likewise.
44341
44342         Move getline and getdelim into stdio.h, per POSIX 200x.
44343         * modules/getline (Files): Remove getline.h.
44344         (Depends-on): Add stdio.
44345         (configure.ac): Add module indicator.
44346         * modules/getdelim (Files): Remove getdelim.h.
44347         (Depends-on): Add stdio.
44348         (configure.ac): Add module indicator.
44349         * modules/stdio (Makefile.am): Work with new indicators.
44350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44351         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
44352         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44353         * lib/getdelim.h: Delete.
44354         * lib/getline.h: Delete.
44355         * lib/stdio_.h (getdelim, getline): Declare.
44356         * modules/getdelim-tests: New module.
44357         * modules/getline-tests: Likewise.
44358         * tests/test-getdelim.c: New file.
44359         * tests/test-getline.c: Likewise.
44360         * NEWS: Document the change.
44361         * lib/getline.c: Update choice of header.
44362         * lib/csharpcomp.c: Likewise.
44363         * lib/getpass.c: Likewise.
44364         * lib/javacomp.c: Likewise.
44365         * lib/javaversion.c: Likewise.
44366         * lib/yesno.c: Likewise.
44367         * lib/getdelim.c: Likewise.
44368         (getdelim): Set errno on failure, and avoid memory leak.
44369
44370 2007-08-19  Bruno Haible  <bruno@clisp.org>
44371
44372         * modules/closein (Depends-on): Add freadahead.
44373         * lib/closein.c: Include freadahead.h.
44374         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
44375         is zero.
44376
44377 2007-08-19  Bruno Haible  <bruno@clisp.org>
44378
44379         * modules/freadahead-tests: New file.
44380         * tests/test-freadahead.sh: New file.
44381         * tests/test-freadahead.c: New file.
44382
44383         * modules/freadahead: New file.
44384         * lib/freadahead.h: New file.
44385         * lib/freadahead.c: New file.
44386         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
44387         fbufmode, fpurge, freadable, fwritable.
44388
44389 2007-08-19  Eric Blake  <ebb9@byu.net>
44390
44391         Test yesno in combination with closein.
44392         * lib/yesno.c (yesno): Document use of stdin.
44393         * modules/yesno-tests (Files): New module.
44394         * tests/test-yesno.c (main): New file.
44395         * tests/test-yesno.sh: Likewise.
44396
44397 2007-08-19  Bruno Haible  <bruno@clisp.org>
44398
44399         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
44400         * lib/fseeko.c (rpl_fseeko): Likewise.
44401         * lib/fseterr.c (fseterr): Likewise.
44402
44403 2007-08-19  Bruno Haible  <bruno@clisp.org>
44404
44405         * tests/test-lseek.c (main): Disable a test for BeOS.
44406         * doc/functions/lseek.texi: Document the BeOS bug.
44407
44408 2007-08-19  Bruno Haible  <bruno@clisp.org>
44409             Eric Blake  <ebb9@byu.net>
44410
44411         * lib/lseek.c: Include <sys/stat.h>.
44412         (rpl_lseek): Add workaround code also for Unix platforms.
44413         Needed for BeOS.
44414         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
44415         * doc/functions/lseek.texi: Document BeOS definiency.
44416
44417 2007-08-18  Bruno Haible  <bruno@clisp.org>
44418
44419         * modules/fstrcmp-tests: New file.
44420         * tests/test-fstrcmp.c: New file.
44421
44422 2007-08-18  Bruno Haible  <bruno@clisp.org>
44423
44424         * modules/fstrcmp: New file, from GNU gettext with modifications.
44425         * lib/fstrcmp.h: New file, from GNU gettext.
44426         * lib/fstrcmp.c: New file, from GNU gettext.
44427         * MODULES.html.sh (String handling): Add fstrcmp.
44428
44429 2007-08-18  Bruno Haible  <bruno@clisp.org>
44430
44431         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
44432         'bool'.
44433         (diag, compareseq): Remove const from the ctxt argument.
44434         (USE_HEURISTIC): Undefine at the end.
44435
44436 2007-08-18  Jim Meyering  <jim@meyering.net>
44437
44438         New file: lib/idcache.h
44439         * NEWS: Mention the addition.
44440         * modules/idcache (Files): Add lib/idcache.h
44441         * lib/idcache.c: Include "idcache.h".
44442         Don't include <sys/types.h>.
44443         Add a FIXME comment.
44444         Move file-scoped "static" declarations to the top.
44445         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
44446
44447 2007-08-17  Bruno Haible  <bruno@clisp.org>
44448         and Paul Eggert  <eggert@cs.ucla.edu>
44449
44450         * MODULES.html.sh: Add diffseq.
44451         * modules/diffseq: New file.
44452         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
44453         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
44454
44455 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44456
44457         Import changes from coreutils for bootstrap script.
44458
44459         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
44460
44461         * build-aux/bootstrap (slurp): Work even in environments where
44462         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
44463         current code does not slurp files whose names start with ".", and
44464         this looks like it might be a troublesome area.
44465
44466         2007-07-11  Jim Meyering  <jim@meyering.net>
44467
44468         If there's a GPL vN copyright comment, require that N == 3.
44469
44470         2007-07-08  Jim Meyering  <jim@meyering.net>
44471
44472         Run the coreutils-specific code only if tests/Makefile.am.in exists.
44473         * build-aux/bootstrap (mam_template): Move definition out of loop.
44474
44475         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
44476
44477         * build-aux/bootstrap (symlink_to_dir): Rename function from
44478         symlink_to_gnulib.  Add a directory parameter.  Update all
44479         callers.
44480         (cp_mark_as_generated): Also check for -- and link to -- files in
44481         gl/.
44482
44483         2007-07-08  Jim Meyering  <jim@meyering.net>
44484
44485         Adapt to deeper hierarchy in gnulib.
44486         * build-aux/bootstrap (symlink_to_dir): If the destination
44487         directory doesn't exist, create it. This is required at least for
44488         "lib/uniwidth/cjk.h".
44489
44490         2007-05-15  Jim Meyering  <jim@meyering.net>
44491
44492         * build-aux/bootstrap: Now that generated Makefile.am files
44493         are no longer under version control, they must be created at
44494         bootstrap time.
44495
44496 2007-08-14  Ben Pfaff  <blp@gnu.org>
44497
44498         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
44499
44500 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44501
44502         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
44503         given the changes below.
44504         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
44505         even on hosts that have padding bits beyond the supported 64.
44506
44507 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44508
44509         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
44510         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
44511         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
44512         depends on it.
44513         (xstrtol_error): Remove.
44514         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
44515         but with a different signature.
44516         (ATTRIBUTE_NORETURN, __attribute__): New macros.
44517         * lib/xstrtol-error.c: Include exitfail.h.
44518         (xstrtol_fatal): New function, with a different signature from the
44519         old xstrtol_error, so that the caller need not worry about passing
44520         in an exit status, or about storage management of the option argument.
44521         (xstrtol_error): Now a static function.  Redo signature to
44522         implement xstrtol_fatal.  Output the correct number of hyphens in
44523         front of the option so that the caller need not worry about
44524         storage management.
44525         (N_): New macro.
44526         (_): Remove; not used now.
44527         * modules/xstrtol: Depend on getopt.
44528         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
44529         of old STRTOL_FATAL_ERROR macro.
44530         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
44531         of test program.
44532         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
44533         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
44534
44535 2007-08-08  Eric Blake  <ebb9@byu.net>
44536
44537         * lib/xstrtol-error.c: Add missing include.
44538
44539         Move xstrtol messages into gnulib domain, when --pobase is used.
44540         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
44541         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
44542         * modules/xstrtol (Files): Distribute new file.
44543         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
44544         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
44545         * tests/test-xstrtol.c: ...into new file.
44546         * tests/test-xstrtoul.c: Also test xstrtoul.
44547         * tests/test-xstrtoimax.c: Also test xstrtoimax.
44548         * tests/test-xstrtoumax.c: Also test xstrtoumax.
44549         * tests/test-xstrtol.sh: Drive the tests.
44550         * tests/test-xstrtoimax.sh: Likewise.
44551         * tests/test-xstrtoumax.sh: Likewise.
44552         * modules/xstrtol-tests: New module.
44553         * modules/xstrtoimax-tests: Likewise.
44554         * modules/xstrtoumax-tests: Likewise.
44555
44556 2007-08-08  Jim Meyering  <jim@meyering.net>
44557
44558         New function: mfile_name_concat.
44559         * lib/filenamecat.c (mfile_name_concat): New function, just like
44560         file_name_concat, but return NULL upon failure rather than exiting
44561         with a diagnostic.
44562         * lib/filenamecat.h: Declare it.
44563
44564 2007-08-07  Bruno Haible  <bruno@clisp.org>
44565
44566         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
44567         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
44568         warning from gcc.
44569         Reported by Eric Blake.
44570
44571 2007-08-07  Simon Josefsson  <simon@josefsson.org>
44572
44573         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
44574         * modules/crypto/arcfour (License): Likewise.
44575         * modules/crypto/des-tests (License): Likewise.
44576         * modules/crypto/gc-arctwo-tests (License): Likewise.
44577         * modules/crypto/gc-des-tests (License): Likewise.
44578         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
44579         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
44580         * modules/crypto/gc-md2-tests (License): Likewise.
44581         * modules/crypto/gc-md4-tests (License): Likewise.
44582         * modules/crypto/gc-md5-tests (License): Likewise.
44583         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
44584         * modules/crypto/gc-rijndael-tests (License): Likewise.
44585         * modules/crypto/gc-sha1-tests (License): Likewise.
44586         * modules/crypto/gc-tests (License): Likewise.
44587         * modules/crypto/hmac-md5 (License): Likewise.
44588         * modules/crypto/hmac-sha1 (License): Likewise.
44589         * modules/crypto/md2-tests (License): Likewise.
44590         * modules/crypto/md4-tests (License): Likewise.
44591         * modules/crypto/md5 (License): Likewise.
44592         * modules/crypto/rijndael (License): Likewise.
44593         * modules/crypto/sha1 (License): Likewise.
44594         * modules/memxor (License): Likewise.
44595
44596 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44597         and Bruno Haible  <bruno@clisp.org>
44598
44599         * NEWS: Describe interface changes to human, xstrtol.
44600         * lib/human.h: Include <xstrtol.h>.
44601         (human_options): Return enum strtol_error, not int.  Remove
44602         bool arg; take int * instead.
44603         * lib/human.c: Don't include "gettext.h".
44604         (_): Remove; no longer used.
44605         Don't include <xstrtol.h>, since human.h does it.
44606         (human_options): Adjust to abovementioned interface changes.
44607         Do not report error to stderr; that's now the caller's
44608         responsibility.
44609         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
44610         interface change.
44611         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
44612         Str, Argument_type_string.  All uses changed.  Put " argument"
44613         in diagnostics to make them clearer.  Change wording of suffix
44614         message for clarity.
44615         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
44616         Argument_type_string.
44617         (STRTOL_FATAL_WARN): Remove; no longer used.
44618         * modules/human (Depends-on): Remove gettext-h.
44619
44620 2007-08-06  Simon Josefsson  <simon@josefsson.org>
44621
44622         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
44623
44624 2007-07-31  Bruno Haible  <bruno@clisp.org>
44625
44626         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
44627         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
44628         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
44629
44630 2007-07-31  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
44633         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
44634
44635 2007-07-30  Bruno Haible  <bruno@clisp.org>
44636
44637         * modules/base64 (License): Use the synonymous term "LGPLv2+".
44638         * modules/c-ctype (License): Likewise.
44639         * modules/c-strcase (License): Likewise.
44640         * modules/check-version (License): Likewise.
44641         * modules/iconv (License): Likewise.
44642         * modules/iconv_open (License): Likewise.
44643         * modules/read-file (License): Likewise.
44644         * modules/striconv (License): Likewise.
44645         * modules/strverscmp (License): Likewise.
44646         * modules/vasprintf (License): Likewise.
44647         * modules/crypto/des (License): Likewise.
44648         * modules/crypto/gc (License): Likewise.
44649         * modules/crypto/gc-arcfour (License): Likewise.
44650         * modules/crypto/gc-arctwo (License): Likewise.
44651         * modules/crypto/gc-des (License): Likewise.
44652         * modules/crypto/gc-hmac-md5 (License): Likewise.
44653         * modules/crypto/gc-hmac-sha1 (License): Likewise.
44654         * modules/crypto/gc-md2 (License): Likewise.
44655         * modules/crypto/gc-md4 (License): Likewise.
44656         * modules/crypto/gc-md5 (License): Likewise.
44657         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
44658         * modules/crypto/gc-random (License): Likewise.
44659         * modules/crypto/gc-rijndael (License): Likewise.
44660         * modules/crypto/gc-sha1 (License): Likewise.
44661         * modules/crypto/md2 (License): Likewise.
44662         * modules/crypto/md4 (License): Likewise.
44663
44664 2007-07-30  Jim Meyering  <jim@meyering.net>
44665
44666         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
44667         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
44668         it has valid stat data.  This bug would cause du not to count the
44669         sizes of inaccessible directories.
44670         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
44671         in <http://bugzilla.redhat.com/250077>.
44672
44673 2007-07-25  Peter O'Gorman  <peter@pogma.com>
44674             Bruno Haible  <bruno@clisp.org>
44675
44676         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
44677         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
44678         #include_next, gives a diagnostic about it, but reports no error in
44679         the exit code.
44680         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44681
44682 2007-07-24  Ben Pfaff  <blp@gnu.org>
44683
44684         Improve name: "count-one-bits" is better than "popcount".
44685         * MODULES.html.sh: Update name.
44686         * lib/popcount.h: Renamed lib/count-one-bits.h.
44687         (popcount): Renamed count_one_bits.
44688         (popcountl): Renamed count_one_bits_l.
44689         (popcountll): Renamed count_one_bits_ll.
44690         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
44691         * modules/popcount: Renamed module/count-one-bits.
44692         * modules/popcount-tests: Renamed module/count-one-bits-tests.
44693         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
44694
44695 2007-07-23  Ben Pfaff  <blp@gnu.org>
44696
44697         * lib/popcount.h (popcount32): Reduce size of constants, to allow
44698         better code generation, and add U to large constants to avoid
44699         warnings, in non-GCC case.
44700         Suggested by Bruno Haible.
44701
44702 2007-07-23  Ben Pfaff  <blp@gnu.org>
44703
44704         * lib/popcount.h: Use verify_true instead of if...abort.
44705         * modules/popcount: Depend on verify module.
44706         Suggested by Jim Meyering.
44707
44708 2007-07-23  Bruno Haible  <bruno@clisp.org>
44709
44710         * gnulib-tool (func_import): Create a .cvsignore file also when the
44711         directory is not yet in CVS but the toplevel directory is. When
44712         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
44713         Reported by Karl Berry.
44714
44715 2007-07-22  Ben Pfaff  <blp@gnu.org>
44716
44717         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
44718         case.
44719         Suggested by Eric Blake.
44720
44721 2007-07-22  Ben Pfaff  <blp@gnu.org>
44722
44723         New module: popcount.
44724         * MODULES.html.sh: Add popcount.
44725         * modules/popcount: New file.
44726         * modules/popcount-tests: New file.
44727         * tests/test-popcount.c: New file.
44728         * lib/popcount.h: New file.
44729         * m4/popcount.m4: New file.
44730
44731 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44732
44733         * build-aux/announce-gen: Update to GPLv3.
44734
44735         * build-aux/config.guess: Update from config.
44736
44737 2007-07-21  Bruno Haible  <bruno@clisp.org>
44738
44739         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
44740         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
44741
44742 2007-07-20  Jim Meyering  <jim@meyering.net>
44743
44744         * check-module: Diagnose a self-dependency.
44745
44746 2007-07-19  Bruno Haible  <bruno@clisp.org>
44747
44748         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
44749         empty.
44750         Reported by Eric Blake.
44751
44752 2007-07-18  Bruno Haible  <bruno@clisp.org>
44753
44754         * gnulib-tool: New options --po-base, --po-domain.
44755         (func_usage): Document them.
44756         (pobase, po_domain): New variables.
44757         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
44758         DEFAULT_TEXT_DOMAIN.
44759         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
44760         (func_import): Consider pobase and po_domain. Create a po/ directory.
44761         (func_create_testdir): Set pobase and po_domain to empty.
44762         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
44763         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
44764
44765 2007-07-18  Bruno Haible  <bruno@clisp.org>
44766
44767         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44768         EXTRA_DIST augmentation for files in build-aux/.
44769
44770 2007-07-16  Bruno Haible  <bruno@clisp.org>
44771
44772         * modules/lseek (License): Use the synonymous term "LGPLv2+".
44773         * modules/getdelim (License): Likewise.
44774
44775 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44776
44777         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
44778         * modules/d-type (License): Likewise.
44779         * modules/extensions (License): Likewise.
44780         * modules/fnmatch (License): Likewise.
44781         * modules/fseeko (License): Likewise.
44782         * modules/getaddrinfo (License): Likewise.
44783         * modules/getline (License): Likewise.
44784         * modules/getlogin_r (License): Likewise.
44785         * modules/getpass (License): Likewise.
44786         * modules/gettimeofday (License): Likewise.
44787         * modules/glob (License): Likewise.
44788         * modules/inet_ntop (License): Likewise.
44789         * modules/malloc (License): Likewise.
44790         * modules/malloca (License): Likewise.
44791         * modules/memmem (License): Likewise.
44792         * modules/mempcpy (License): Likewise.
44793         * modules/memset (License): Likewise.
44794         * modules/minmax (License): Likewise.
44795         * modules/mktime (License): Likewise.
44796         * modules/netinet_in (License): Likewise.
44797         * modules/pathmax (License): Likewise.
44798         * modules/poll (License): Likewise.
44799         * modules/regex (License): Likewise.
44800         * modules/snprintf (License): Likewise.
44801         * modules/stdbool (License): Likewise.
44802         * modules/stdint (License): Likewise.
44803         * modules/stdio (License): Likewise.
44804         * modules/strcase (License): Likewise.
44805         * modules/strcasestr (License): Likewise.
44806         * modules/strdup (License): Likewise.
44807         * modules/string (License): Likewise.
44808         * modules/strndup (License): Likewise.
44809         * modules/strnlen (License): Likewise.
44810         * modules/strpbrk (License): Likewise.
44811         * modules/strptime (License): Likewise.
44812         * modules/strsep (License): Likewise.
44813         * modules/sys_select (License): Likewise.
44814         * modules/sys_socket (License): Likewise.
44815         * modules/sys_stat (License): Likewise.
44816         * modules/sys_time (License): Likewise.
44817         * modules/time (License): Likewise.
44818         * modules/time_r (License): Likewise.
44819         * modules/timegm (License): Likewise.
44820         * modules/unistd (License): Likewise.
44821         * modules/vsnprintf (License): Likewise.
44822         * modules/wctype (License): Likewise.
44823
44824 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44825
44826         * modules/argz (License): LGPLv2+.
44827
44828 2007-07-15  Karl Berry  <karl@gnu.org>
44829
44830         * doc/gnulib.texi: revise node structure per new fdl.texi.
44831
44832 2007-07-14  Bruno Haible  <bruno@clisp.org>
44833
44834         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
44835         the output file.
44836         * lib/uniname/uninames.h: Regenerated.
44837
44838 2007-07-14  Karl Berry  <karl@gnu.org>
44839
44840         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
44841         omitting sectioning and index commands.
44842
44843 2007-07-13  Bruno Haible  <bruno@clisp.org>
44844
44845         New gnulib-tool option --more-symlinks.
44846         * gnulib-tool (func_usage): Document --more-symlinks.
44847         (do_copyrights): New variable.
44848         Recognize option --more-symlinks.
44849         (func_import): Don't add a copyright notice transform to
44850         sed_transform_lib_file if do_copyrights is empty.
44851
44852 2007-07-13  Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/vasnprintf.c (decimal_point_char): Define also if
44855         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
44856         && !NEED_PRINTF_DIRECTIVE_A.
44857         Reported by Clemens Koller <clemens.koller@anagramm.de> via
44858         Gary V. Vaughan <gary@gnu.org>.
44859
44860 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
44861
44862         * lib/inttypes_.h: Undo previous change, since it was fixed
44863         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
44864
44865 2007-07-13  Bruno Haible  <bruno@clisp.org>
44866
44867         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
44868         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
44869
44870 2007-07-13  Jim Meyering  <jim@meyering.net>
44871
44872         df: Don't fail for Tru64's "file-on-file mount".
44873         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
44874         so we fall through and use statfs instead.  Details here:
44875         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
44876         Reported by Albert Chin.
44877
44878 2007-07-13  Bruno Haible  <bruno@clisp.org>
44879
44880         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
44881         * modules/configmake (License): Likewise.
44882         * modules/gettext (License): Likewise.
44883         * modules/gettext-h (License): Likewise.
44884         * modules/include_next (License): Likewise.
44885         * modules/link-warning (License): Likewise.
44886         * modules/localcharset (License): Likewise.
44887         * modules/localename (License): Likewise.
44888         * modules/lock (License): Likewise.
44889         * modules/relocatable-lib-lgpl (License): Likewise.
44890         * modules/size_max (License): Likewise.
44891         * modules/vasnprintf (License): Likewise.
44892         * modules/wchar (License): Likewise.
44893         * modules/xsize (License): Likewise.
44894
44895 2007-07-13  Bruno Haible  <bruno@clisp.org>
44896
44897         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
44898         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
44899
44900 2007-07-12  Bruno Haible  <bruno@clisp.org>
44901
44902         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
44903         in the modules files.
44904
44905 2007-07-11  Karl Berry  <karl@gnu.org>
44906
44907         * MODULES.html.sh (func_module): use
44908          sed -e '\|^'"${includefile}"'$|d'
44909          instead of /.../d, to avoid errors on $includefile's containing /.
44910
44911 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44912
44913         * gnulib-tool (func_import): Avoid duplication of --avoid
44914         statements
44915         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
44916         names to `_' in variable names.
44917
44918 2007-07-10  Eric Blake  <ebb9@byu.net>
44919
44920         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
44921         * NEWS: Document this change.
44922
44923 2007-07-08  Bruno Haible  <bruno@clisp.org>
44924
44925         Update to Unicode 5.0.
44926         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
44927         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
44928         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
44929         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
44930         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
44931         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
44932         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
44933         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
44934         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
44935         U+10A3F, U+1D242..U+1D244.
44936         (nonspacing_table_ind): Update.
44937         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
44938         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
44939
44940 2007-07-08  Bruno Haible  <bruno@clisp.org>
44941
44942         Update to Unicode 5.0.
44943         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
44944         code transform. Extend the name index field of unicode_name_to_code and
44945         unicode_code_to_name from 16 to 24 bits.
44946         * lib/uniname/uniname.c (unicode_character_name,
44947         unicode_name_character): Add the range 0x12xxx to the code transform.
44948         * lib/uniname/uninames.h: Regenerated.
44949         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
44950
44951 2007-07-07  Bruno Haible  <bruno@clisp.org>
44952
44953         * modules/wcwidth-tests: New file.
44954         * tests/test-wcwidth.c: New file.
44955
44956         Work around MacOS X wcwidth() bug.
44957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
44958         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
44959         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
44960         original wcwidth in non-UTF-8 locales.
44961         * modules/wcwidth (Depends-on): Add localcharset, streq,
44962         uniwidth/width.
44963         * doc/functions/wcwidth.texi: Update.
44964
44965 2007-07-07  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
44968         (wcwidth): New declaration.
44969         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
44970         macros.
44971         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
44972         here. Prepare for creating <wchar.h> unconditionally.
44973         * modules/wchar (Depends-on): Add link-warning.
44974         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
44975         REPLACE_WCWIDTH, and GL_LINK_WARNING.
44976         * lib/wcwidth.h: Remove file.
44977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
44978         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
44979         * modules/wcwidth (Files): Remove lib/wcwidth.h.
44980         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
44981         (Include): Replace wcwidth.h with <wchar.h>.
44982         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
44983         * lib/mbchar.h: Don't include wcwidth.h.
44984         * lib/mbswidth.c: Likewise.
44985         * NEWS: Mention the change.
44986
44987 2007-07-07  Bruno Haible  <bruno@clisp.org>
44988
44989         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
44990         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
44991         definition with an external declaration.
44992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
44993         defined as a function. Remove AC_C_INLINE requirement.
44994         * modules/wcwidth (Files): Add lib/wcwidth.c.
44995         (Makefile.am): Remove redundant statement.
44996
44997 2007-07-07  Bruno Haible  <bruno@clisp.org>
44998
44999         * MODULES.html.sh (Unicode string functions): Add the new modules.
45000
45001         * tests/uniwidth/test-u32-strwidth.c: New file.
45002         * modules/uniwidth/u32-strwidth-tests: New file.
45003
45004         * lib/uniwidth/u32-strwidth.c: New file.
45005         * modules/uniwidth/u32-strwidth: New file.
45006
45007         * tests/uniwidth/test-u16-strwidth.c: New file.
45008         * modules/uniwidth/u16-strwidth-tests: New file.
45009
45010         * lib/uniwidth/u16-strwidth.c: New file.
45011         * modules/uniwidth/u16-strwidth: New file.
45012
45013         * tests/uniwidth/test-u8-strwidth.c: New file.
45014         * modules/uniwidth/u8-strwidth-tests: New file.
45015
45016         * lib/uniwidth/u8-strwidth.c: New file.
45017         * modules/uniwidth/u8-strwidth: New file.
45018
45019         * tests/uniwidth/test-u32-width.c: New file.
45020         * modules/uniwidth/u32-width-tests: New file.
45021
45022         * lib/uniwidth/u32-width.c: New file.
45023         * modules/uniwidth/u32-width: New file.
45024
45025         * tests/uniwidth/test-u16-width.c: New file.
45026         * modules/uniwidth/u16-width-tests: New file.
45027
45028         * lib/uniwidth/u16-width.c: New file.
45029         * modules/uniwidth/u16-width: New file.
45030
45031         * tests/uniwidth/test-u8-width.c: New file.
45032         * modules/uniwidth/u8-width-tests: New file.
45033
45034         * lib/uniwidth/u8-width.c: New file.
45035         * modules/uniwidth/u8-width: New file.
45036
45037         * tests/uniwidth/test-uc_width.c: New file.
45038         * modules/uniwidth/width-tests: New file.
45039
45040         * lib/uniwidth/width.c: New file, from GNU libiconv.
45041         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
45042         * modules/uniwidth/width: New file.
45043
45044         * lib/uniwidth.h: New file, from GNU libiconv.
45045         * modules/uniwidth/base: New file.
45046
45047 2007-07-07  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/uniname.h: New file, from GNU gettext.
45050         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
45051         * lib/uniname/uninames.h: New file, from GNU gettext.
45052         * lib/uniname/uniname.c: New file, from GNU gettext.
45053         * tests/uniname/test-uninames.sh: New file.
45054         * tests/uniname/test-uninames.c: New file, from GNU gettext.
45055         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
45056         * modules/uniname/base: New file.
45057         * modules/uniname/uniname: New file.
45058         * modules/uniname/uniname-tests: New file.
45059         * MODULES.html.sh (Unicode string functions): Add the new modules.
45060
45061 2007-07-06  Bruno Haible  <bruno@clisp.org>
45062
45063         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
45064
45065 2007-07-06  Bruno Haible  <bruno@clisp.org>
45066
45067         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
45068         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
45069         includes <cygwin/sys_time.h> which includes <sys/select.h> which
45070         include <sys/time.h>.
45071         Reported by Eric Blake.
45072
45073 2007-07-06  Eric Blake  <ebb9@byu.net>
45074
45075         Fix testing canonicalize on cygwin.
45076         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45077         Revert patch from 2007-06-19.
45078         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
45079         canonicalize module is also in use.
45080         * tests/test-canonicalize.c: New file.
45081         * tests/test-canonicalize.sh: Likewise.
45082         * modules/canonicalize-tests: Likewise.
45083
45084 2007-07-06  Jim Meyering  <jim@meyering.net>
45085
45086         * lib/getugroups.c (getugroups): Detect getgrent failure.
45087         Adjust comment to reflect reality: this function may return -1.
45088
45089 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
45090
45091         * build-aux/bootstrap (TP_URL,get_translations): Update to use
45092         the new TP address.
45093         (usage): Fix typo
45094         (gnulib_mk): New variable.
45095
45096 2007-07-05  Jim Meyering  <jim@meyering.net>
45097
45098         Don't let endgrent clobber errno, no matter how improbable.
45099         * lib/getugroups.c (getugroups): Save and restore errno around
45100         endgrent call.
45101
45102         Close the group DB even when failing with 2^31 or more members.
45103         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
45104
45105 2007-07-04  Jim Meyering  <jim@meyering.net>
45106
45107         * lib/getugroups.h: New file.
45108         * lib/getugroups.c: Include "getugroups.h".
45109         Remove uses of "register" keyword.
45110         Move local variable, "cp", down into scope where used.
45111         Give "username" parameter the "const" attribute.
45112         * modules/getugroups (Files): Add lib/getugroups.h
45113
45114 2007-07-04  Karl Berry  <karl@gnu.org>
45115
45116         * MODULES.html.sh (func_all_modules): Complete rename of
45117         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
45118
45119 2007-07-02  Bruno Haible  <bruno@clisp.org>
45120
45121         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
45122         mode, when inttypes.h comes from gnulib.
45123         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45124
45125 2007-07-02  Simon Josefsson  <simon@josefsson.org>
45126
45127         * NEWS: Mention lgpl module name change.
45128
45129         * modules/lgpl-2.1: Renamed from lgpl.
45130
45131         * NEWS: Mention gpl module name change.
45132
45133         * modules/gpl-3.0: New file, based on gpl-2.0.
45134
45135         * modules/gpl-2.0: Renamed from gpl.
45136
45137         * modules/gpl: Fix filename, doc/gpl.texi is now found at
45138         doc/gpl-2.0.texi.
45139
45140 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45141
45142         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
45143         #define __STDC_LIMIT_MACROS temporarily while including
45144         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
45145         Problem reported by Joel E. Denny in
45146         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
45147
45148 2007-07-01  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/unistdio.h: New file.
45151         * lib/unistdio/u-asnprintf.h: New file.
45152         * lib/unistdio/u-asprintf.h: New file.
45153         * lib/unistdio/u-printf-args.c: New file.
45154         * lib/unistdio/u-printf-args.h: New file.
45155         * lib/unistdio/u-printf-parse.h: New file.
45156         * lib/unistdio/u-snprintf.h: New file.
45157         * lib/unistdio/u-sprintf.h: New file.
45158         * lib/unistdio/u-vasprintf.h: New file.
45159         * lib/unistdio/u-vsnprintf.h: New file.
45160         * lib/unistdio/u-vsprintf.h: New file.
45161         * lib/unistdio/ulc-asnprintf.c: New file.
45162         * lib/unistdio/ulc-asprintf.c: New file.
45163         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
45164         * lib/unistdio/ulc-printf-parse.c: New file.
45165         * lib/unistdio/ulc-snprintf.c: New file.
45166         * lib/unistdio/ulc-sprintf.c: New file.
45167         * lib/unistdio/ulc-vasnprintf.c: New file.
45168         * lib/unistdio/ulc-vasprintf.c: New file.
45169         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
45170         * lib/unistdio/ulc-vsnprintf.c: New file.
45171         * lib/unistdio/ulc-vsprintf.c: New file.
45172         * lib/unistdio/u8-asnprintf.c: New file.
45173         * lib/unistdio/u8-asprintf.c: New file.
45174         * lib/unistdio/u8-printf-parse.c: New file.
45175         * lib/unistdio/u8-snprintf.c: New file.
45176         * lib/unistdio/u8-sprintf.c: New file.
45177         * lib/unistdio/u8-vasnprintf.c: New file.
45178         * lib/unistdio/u8-vasprintf.c: New file.
45179         * lib/unistdio/u8-vsnprintf.c: New file.
45180         * lib/unistdio/u8-vsprintf.c: New file.
45181         * lib/unistdio/u8-u8-asnprintf.c: New file.
45182         * lib/unistdio/u8-u8-asprintf.c: New file.
45183         * lib/unistdio/u8-u8-snprintf.c: New file.
45184         * lib/unistdio/u8-u8-sprintf.c: New file.
45185         * lib/unistdio/u8-u8-vasnprintf.c: New file.
45186         * lib/unistdio/u8-u8-vasprintf.c: New file.
45187         * lib/unistdio/u8-u8-vsnprintf.c: New file.
45188         * lib/unistdio/u8-u8-vsprintf.c: New file.
45189         * lib/unistdio/u16-asnprintf.c: New file.
45190         * lib/unistdio/u16-asprintf.c: New file.
45191         * lib/unistdio/u16-printf-parse.c: New file.
45192         * lib/unistdio/u16-snprintf.c: New file.
45193         * lib/unistdio/u16-sprintf.c: New file.
45194         * lib/unistdio/u16-vasnprintf.c: New file.
45195         * lib/unistdio/u16-vasprintf.c: New file.
45196         * lib/unistdio/u16-vsnprintf.c: New file.
45197         * lib/unistdio/u16-vsprintf.c: New file.
45198         * lib/unistdio/u16-u16-asnprintf.c: New file.
45199         * lib/unistdio/u16-u16-asprintf.c: New file.
45200         * lib/unistdio/u16-u16-snprintf.c: New file.
45201         * lib/unistdio/u16-u16-sprintf.c: New file.
45202         * lib/unistdio/u16-u16-vasnprintf.c: New file.
45203         * lib/unistdio/u16-u16-vasprintf.c: New file.
45204         * lib/unistdio/u16-u16-vsnprintf.c: New file.
45205         * lib/unistdio/u16-u16-vsprintf.c: New file.
45206         * lib/unistdio/u32-asnprintf.c: New file.
45207         * lib/unistdio/u32-asprintf.c: New file.
45208         * lib/unistdio/u32-printf-parse.c: New file.
45209         * lib/unistdio/u32-snprintf.c: New file.
45210         * lib/unistdio/u32-sprintf.c: New file.
45211         * lib/unistdio/u32-vasnprintf.c: New file.
45212         * lib/unistdio/u32-vasprintf.c: New file.
45213         * lib/unistdio/u32-vsnprintf.c: New file.
45214         * lib/unistdio/u32-vsprintf.c: New file.
45215         * lib/unistdio/u32-u32-asnprintf.c: New file.
45216         * lib/unistdio/u32-u32-asprintf.c: New file.
45217         * lib/unistdio/u32-u32-snprintf.c: New file.
45218         * lib/unistdio/u32-u32-sprintf.c: New file.
45219         * lib/unistdio/u32-u32-vasnprintf.c: New file.
45220         * lib/unistdio/u32-u32-vasprintf.c: New file.
45221         * lib/unistdio/u32-u32-vsnprintf.c: New file.
45222         * lib/unistdio/u32-u32-vsprintf.c: New file.
45223         * tests/unistdio/test-ulc-asnprintf1.c: New file.
45224         * tests/unistdio/test-ulc-asnprintf1.h: New file.
45225         * tests/unistdio/test-ulc-printf1.h: New file.
45226         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
45227         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
45228         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
45229         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
45230         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
45231         * tests/unistdio/test-ulc-vasprintf1.c: New file.
45232         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
45233         * tests/unistdio/test-ulc-vsprintf1.c: New file.
45234         * tests/unistdio/test-u8-asnprintf1.c: New file.
45235         * tests/unistdio/test-u8-asnprintf1.h: New file.
45236         * tests/unistdio/test-u8-printf1.h: New file.
45237         * tests/unistdio/test-u8-vasnprintf1.c: New file.
45238         * tests/unistdio/test-u8-vasnprintf2.c: New file.
45239         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
45240         * tests/unistdio/test-u8-vasnprintf3.c: New file.
45241         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
45242         * tests/unistdio/test-u8-vasprintf1.c: New file.
45243         * tests/unistdio/test-u8-vsnprintf1.c: New file.
45244         * tests/unistdio/test-u8-vsprintf1.c: New file.
45245         * tests/unistdio/test-u16-asnprintf1.c: New file.
45246         * tests/unistdio/test-u16-asnprintf1.h: New file.
45247         * tests/unistdio/test-u16-printf1.h: New file.
45248         * tests/unistdio/test-u16-vasnprintf1.c: New file.
45249         * tests/unistdio/test-u16-vasnprintf2.c: New file.
45250         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
45251         * tests/unistdio/test-u16-vasnprintf3.c: New file.
45252         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
45253         * tests/unistdio/test-u16-vasprintf1.c: New file.
45254         * tests/unistdio/test-u16-vsnprintf1.c: New file.
45255         * tests/unistdio/test-u16-vsprintf1.c: New file.
45256         * tests/unistdio/test-u32-asnprintf1.c: New file.
45257         * tests/unistdio/test-u32-asnprintf1.h: New file.
45258         * tests/unistdio/test-u32-printf1.h: New file.
45259         * tests/unistdio/test-u32-vasnprintf1.c: New file.
45260         * tests/unistdio/test-u32-vasnprintf2.c: New file.
45261         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
45262         * tests/unistdio/test-u32-vasnprintf3.c: New file.
45263         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
45264         * tests/unistdio/test-u32-vasprintf1.c: New file.
45265         * tests/unistdio/test-u32-vsnprintf1.c: New file.
45266         * tests/unistdio/test-u32-vsprintf1.c: New file.
45267         * modules/unistdio/base: New file.
45268         * modules/unistdio/u-printf-args: New file.
45269         * modules/unistdio/ulc-asnprintf: New file.
45270         * modules/unistdio/ulc-asprintf: New file.
45271         * modules/unistdio/ulc-fprintf: New file.
45272         * modules/unistdio/ulc-printf-parse: New file.
45273         * modules/unistdio/ulc-snprintf: New file.
45274         * modules/unistdio/ulc-sprintf: New file.
45275         * modules/unistdio/ulc-vasnprintf: New file.
45276         * modules/unistdio/ulc-vasprintf: New file.
45277         * modules/unistdio/ulc-vfprintf: New file.
45278         * modules/unistdio/ulc-vsnprintf: New file.
45279         * modules/unistdio/ulc-vsprintf: New file.
45280         * modules/unistdio/u8-asnprintf: New file.
45281         * modules/unistdio/u8-asprintf: New file.
45282         * modules/unistdio/u8-printf-parse: New file.
45283         * modules/unistdio/u8-snprintf: New file.
45284         * modules/unistdio/u8-sprintf: New file.
45285         * modules/unistdio/u8-vasnprintf: New file.
45286         * modules/unistdio/u8-vasprintf: New file.
45287         * modules/unistdio/u8-vsnprintf: New file.
45288         * modules/unistdio/u8-vsprintf: New file.
45289         * modules/unistdio/u8-u8-asnprintf: New file.
45290         * modules/unistdio/u8-u8-asprintf: New file.
45291         * modules/unistdio/u8-u8-snprintf: New file.
45292         * modules/unistdio/u8-u8-sprintf: New file.
45293         * modules/unistdio/u8-u8-vasnprintf: New file.
45294         * modules/unistdio/u8-u8-vasprintf: New file.
45295         * modules/unistdio/u8-u8-vsnprintf: New file.
45296         * modules/unistdio/u8-u8-vsprintf: New file.
45297         * modules/unistdio/u16-asnprintf: New file.
45298         * modules/unistdio/u16-asprintf: New file.
45299         * modules/unistdio/u16-printf-parse: New file.
45300         * modules/unistdio/u16-snprintf: New file.
45301         * modules/unistdio/u16-sprintf: New file.
45302         * modules/unistdio/u16-vasnprintf: New file.
45303         * modules/unistdio/u16-vasprintf: New file.
45304         * modules/unistdio/u16-vsnprintf: New file.
45305         * modules/unistdio/u16-vsprintf: New file.
45306         * modules/unistdio/u16-u16-asnprintf: New file.
45307         * modules/unistdio/u16-u16-asprintf: New file.
45308         * modules/unistdio/u16-u16-snprintf: New file.
45309         * modules/unistdio/u16-u16-sprintf: New file.
45310         * modules/unistdio/u16-u16-vasnprintf: New file.
45311         * modules/unistdio/u16-u16-vasprintf: New file.
45312         * modules/unistdio/u16-u16-vsnprintf: New file.
45313         * modules/unistdio/u16-u16-vsprintf: New file.
45314         * modules/unistdio/u32-asnprintf: New file.
45315         * modules/unistdio/u32-asprintf: New file.
45316         * modules/unistdio/u32-printf-parse: New file.
45317         * modules/unistdio/u32-snprintf: New file.
45318         * modules/unistdio/u32-sprintf: New file.
45319         * modules/unistdio/u32-vasnprintf: New file.
45320         * modules/unistdio/u32-vasprintf: New file.
45321         * modules/unistdio/u32-vsnprintf: New file.
45322         * modules/unistdio/u32-vsprintf: New file.
45323         * modules/unistdio/u32-u32-asnprintf: New file.
45324         * modules/unistdio/u32-u32-asprintf: New file.
45325         * modules/unistdio/u32-u32-snprintf: New file.
45326         * modules/unistdio/u32-u32-sprintf: New file.
45327         * modules/unistdio/u32-u32-vasnprintf: New file.
45328         * modules/unistdio/u32-u32-vasprintf: New file.
45329         * modules/unistdio/u32-u32-vsnprintf: New file.
45330         * modules/unistdio/u32-u32-vsprintf: New file.
45331         * modules/unistdio/ulc-asnprintf-tests: New file.
45332         * modules/unistdio/ulc-vasnprintf-tests: New file.
45333         * modules/unistdio/ulc-vasprintf-tests: New file.
45334         * modules/unistdio/ulc-vsnprintf-tests: New file.
45335         * modules/unistdio/ulc-vsprintf-tests: New file.
45336         * modules/unistdio/u8-asnprintf-tests: New file.
45337         * modules/unistdio/u8-vasnprintf-tests: New file.
45338         * modules/unistdio/u8-vasprintf-tests: New file.
45339         * modules/unistdio/u8-vsnprintf-tests: New file.
45340         * modules/unistdio/u8-vsprintf-tests: New file.
45341         * modules/unistdio/u16-asnprintf-tests: New file.
45342         * modules/unistdio/u16-vasnprintf-tests: New file.
45343         * modules/unistdio/u16-vasprintf-tests: New file.
45344         * modules/unistdio/u16-vsnprintf-tests: New file.
45345         * modules/unistdio/u16-vsprintf-tests: New file.
45346         * modules/unistdio/u32-asnprintf-tests: New file.
45347         * modules/unistdio/u32-vasnprintf-tests: New file.
45348         * modules/unistdio/u32-vasprintf-tests: New file.
45349         * modules/unistdio/u32-vsnprintf-tests: New file.
45350         * modules/unistdio/u32-vsprintf-tests: New file.
45351         * MODULES.html.sh (Unicode string functions): Add the new modules.
45352
45353 2007-07-01  Bruno Haible  <bruno@clisp.org>
45354
45355         * lib/sprintf.c (sprintf): Limit the available length estimation,
45356         to avoid address wraparound.
45357         * lib/vsprintf.c (vsprintf): Likewise.
45358         * modules/sprintf-posix (Dependencies): Add stdint.
45359         * modules/vsprintf-posix (Dependencies): Likewise.
45360
45361 2007-07-01  Bruno Haible  <bruno@clisp.org>
45362
45363         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
45364         Windows PATH as well. Conservative double-quoting. Comments.
45365
45366 2007-07-01  Bruno Haible  <bruno@clisp.org>
45367             Eric Blake  <ebb9@byu.net>
45368             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45369
45370         * gnulib-tool (self_abspathname): Fix algorithm to cope with
45371         empty components in $PATH, denoting '.'.
45372
45373 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45374
45375         * gnulib-tool: Fix indentation.
45376         (func_create_megatestdir): Likewise.
45377         Report by Bruno Haible.
45378
45379 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45380
45381         Sync from Automake.
45382         * build-aux/gnupload: Fix shell portability issues with for loops.
45383         Report by Karl Berry.
45384
45385 2007-06-29  Simon Josefsson  <simon@josefsson.org>
45386
45387         * build-aux/maint.mk (POURL): Use translationproject.org.
45388
45389 2007-06-27  Simon Josefsson  <simon@josefsson.org>
45390             Bruno Haible  <bruno@clisp.org>
45391
45392         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
45393         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
45394         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
45395         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
45396         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
45397
45398 2007-06-27  Bruno Haible  <bruno@clisp.org>
45399
45400         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
45401         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
45402
45403 2007-06-26  Karl Berry  <karl@gnu.org>
45404
45405         * MODULES.html.sh: remove xreadlink-with-size.
45406
45407 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45408
45409         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
45410         method that I hope also handles the double-include problem noted
45411         by Bruno Haible in
45412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
45413
45414 2007-06-23  Bruno Haible  <bruno@clisp.org>
45415
45416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45417         Don't let the 'mostlyclean' target fail if the last subdirectory could
45418         not be removed.
45419         Reported by Karl Berry.
45420
45421 2007-06-23  Bruno Haible  <bruno@clisp.org>
45422
45423         * gnulib-tool (echo): Add a speedier workaround for ksh.
45424         * tests/test-echo.sh: Likewise.
45425
45426 2007-06-23  Bruno Haible  <bruno@clisp.org>
45427
45428         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
45429         * tests/test-echo.sh: Likewise.
45430
45431 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45432
45433         * gnulib-tool (IFS): Initialize early, so we don't set it to
45434         empty later.
45435         (self_abspathname): Rewrite algorithm to set it, reindent.
45436         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
45437         (func_create_megatestdir): Merge some sed scripts.
45438
45439 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45440
45441         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
45442         exposed by Sun Studio 11 cc on Solaris 8.
45443
45444 2007-06-22  Bruno Haible  <bruno@clisp.org>
45445
45446         * gnulib-tool (echo): Ensure the echo primitive does not interpret
45447         backslashes.
45448         * tests/test-echo.sh: New file.
45449
45450 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45451
45452         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
45453         simplify `sed_replace_build_aux' scripts, they are portable but
45454         echoing them with `echo' is not.
45455         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
45456
45457 2007-06-21  Karl Berry  <karl@gnu.org>
45458
45459         * config/srclist.txt: guess we can't handle the licenses via
45460         srclist at the moment.
45461
45462 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45463
45464         * MODULES.html.sh: Add include_next.
45465         * modules/include_next: New file.
45466
45467 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45468
45469         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
45470         INCLUDE_NEXT.
45471         (gl_CHECK_NEXT_HEADERS): New macro.
45472         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
45473         the obsolescent gl_ABSOLUTE_HEADER.
45474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
45475         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
45476         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
45477         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45478         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45479         * m4/math_h.m4 (gl_MATH_H): Likewise.
45480         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45481         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
45482         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45483         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45484         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
45485         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
45486         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
45487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45488         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45490         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
45491         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45492         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45493         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45494         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45495         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45496         * m4/inttypes.m4 (gl_INTTYPES_H): Define
45497         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
45498         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
45499         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
45500         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
45501         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
45502         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
45503         * lib/float_.h: Likewise.
45504         * lib/inttypes_.h: Likewise.
45505         * lib/math_.h: Likewise.
45506         * lib/search_.h: Likewise.
45507         * lib/signal_.h: Likewise.
45508         * lib/stdint_.h: Likewise.
45509         * lib/stdio_.h: Likewise.
45510         * lib/stdlib_.h: Likewise.
45511         * lib/string_.h: Likewise.
45512         * lib/sys_stat_.h: Likewise.
45513         * lib/sys_time_.h: Likewise.
45514         * lib/time_.h: Likewise.
45515         * lib/unistd_.h: Likewise.
45516         * lib/wchar_.h: Likewise.
45517         * lib/wctype_.h: Likewise.
45518         * lib/dirent_.h: Likewise.
45519         * lib/iconv_.h: Likewise.
45520         * lib/locale_.h: Likewise.
45521         * lib/netinet_in_.h: Likewise.
45522         * lib/sys_select_.h: Likewise.
45523         * lib/sys_socket_.h: Likewise.
45524         * lib/sysexits_.h: Likewise.
45525         * modules/fcntl (Depends-on): Depend on include_next, not
45526         absolute_header.
45527         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
45528         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
45529         * modules/fchdir: Likewise.
45530         * modules/float: Likewise.
45531         * modules/iconv_open: Likewise.
45532         * modules/inttypes: Likewise.
45533         * modules/locale: Likewise.
45534         * modules/math: Likewise.
45535         * modules/netinet_in: Likewise.
45536         * modules/search: Likewise.
45537         * modules/signal: Likewise.
45538         * modules/stdint: Likewise.
45539         * modules/stdio: Likewise.
45540         * modules/stdlib: Likewise.
45541         * modules/string: Likewise.
45542         * modules/sys_select: Likewise.
45543         * modules/sys_socket: Likewise.
45544         * modules/sys_stat: Likewise.
45545         * modules/sys_time: Likewise.
45546         * modules/sysexits: Likewise.
45547         * modules/time: Likewise.
45548         * modules/unistd: Likewise.
45549         * modules/wchar: Likewise.
45550         * modules/wctype: Likewise.
45551         * modules/sys_stat: Change maintainer to "all".
45552         * modules/unistd: Likewise.
45553
45554 2007-06-20  Karl Berry  <karl@gnu.org>
45555
45556         * config/srclist.txt: track www changes in license files.
45557
45558 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
45559
45560         * build-aux/bootstrap: Remove stray dot.
45561         Make sure build_aux settings are honored when linking
45562         gnulib_extra_files.
45563
45564 2007-06-19  Eric Blake  <ebb9@byu.net>
45565
45566         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45567         Allow compilation on cygwin.
45568
45569 2007-06-19  Jim Meyering  <jim@meyering.net>
45570
45571         xreadlink-with-size: Remove module.  No longer used.
45572         Ex-callers now use xreadlink or mreadlink-with-size.
45573         * modules/xreadlink-with-size: Remove module.
45574         * lib/xreadlink-with-size.c: Remove file.
45575         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
45576         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
45577         just before the function definition *is* accurate.
45578
45579         Eliminate one way canonicalize_filename_mode could exit.
45580         * lib/canonicalize.c (canonicalize_filename_mode):
45581         Use mreadlink_with_size, not xreadlink_with_size.
45582
45583 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
45584
45585         Detect porting problems to FreeBSD/arm, which has time_t wider than
45586         long int.  Original problem reported for GNU diff by Xin Li in
45587         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
45588         * modules/getdate (Depends-on): Add intprops, verify.
45589         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
45590         is an integer type no wider than long int.
45591
45592 2007-06-18  Jim Meyering  <jim@meyering.net>
45593
45594         New module: mreadlink-with-size.
45595         * MODULES.html.sh: Add mreadlink-with-size.
45596         * modules/mreadlink-with-size: New module
45597         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
45598         not xreadlink-with-size.
45599         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
45600
45601 2007-06-16  Bruno Haible  <bruno@clisp.org>
45602
45603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
45604         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
45605         Reported by Gary V. Vaughan <gary@gnu.org>.
45606
45607 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
45608
45609         Revamp lchown so that it lives in unistd.h where it belongs.
45610         * lib/lchown.h: Remove.
45611         * lib/dirchownmod.c: Don't include lib/lchown.h.
45612         * lib/fchownat.c: Likewise.
45613         * lib/openat.c: Likewise.
45614         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
45615         does not follow symlinks.
45616         (EOPNOTSUPP): Define if not defined.
45617         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
45618         is defined to 0.
45619         (lchown): New decl.
45620         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
45621         Do not check for lchown decl.
45622         Set REPLACE_LCHOWN.
45623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
45624         REPLACE_LCHOWN.
45625         * modules/chown: Make it clear it follows symlinks.
45626         * modules/lchown: Make it clear it doesn't follow symlinks.
45627         (Files): Remove lib/lchown.h
45628         (Depends-on): Add unistd.
45629         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
45630         (Include): Include <unistd.h>, not "lchown.h".
45631         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
45632         REPLACE_LCHOWN.
45633
45634 2007-06-15  Jim Meyering  <jim@meyering.net>
45635
45636         Change license (GPL to LGPL) of fsusage and dependents.
45637         * modules/fsusage (License): Change to LGPL.
45638         * modules/full-read (License): Likewise.
45639         * modules/full-write (License): Likewise.
45640         * modules/safe-read (License): Likewise.
45641         * modules/safe-write (License): Likewise.
45642
45643 2007-06-14  Ben Pfaff  <blp@gnu.org>
45644
45645         Missing part of allocsa -> malloca transition.
45646         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
45647         gl_MALLOCA.
45648
45649 2007-06-12  Bruno Haible  <bruno@clisp.org>
45650
45651         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
45652         to ia64, x86_64, i386.
45653         Reported by Eric Blake.
45654
45655 2007-06-12  Bruno Haible  <bruno@clisp.org>
45656
45657         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
45658         cross-compiling to x86_64.
45659
45660 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
45661
45662         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
45663         glitch reported by Ralf Wildenhues in
45664         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
45665
45666         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
45667         Vin Shelton.
45668
45669 2007-06-11  Bruno Haible  <bruno@clisp.org>
45670
45671         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
45672         replacement string.
45673         Reported by Eric Blake.
45674
45675 2007-06-10  Bruno Haible  <bruno@clisp.org>
45676
45677         Prepare vasnprintf code for use with Unicode strings.
45678         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
45679         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
45680         TYPE_U32_STRING.
45681         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
45682         a_u32_string variants.
45683         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45684         * lib/printf-args.c: Don't include config.h and the specification
45685         header if PRINTF_FETCHARGS is already defined.
45686         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45687         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
45688         TYPE_U16_STRING, TYPE_U32_STRING.
45689         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
45690         u16_directive, u16_directives, u32_directive, u32_directives): New
45691         types.
45692         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
45693         New declarations.
45694         * lib/printf-parse.c: Don't include config.h and the specification
45695         header if PRINTF_PARSE is already defined. Eliminate the set of
45696         parameters for WIDE_CHAR_VERSION; the user of this file must provide
45697         them now. Include c-ctype.h.
45698         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
45699         directive and CHAR_T_ONLY_ASCII.
45700         * lib/vasnprintf.c: Don't include config.h and the specification header
45701         if VASNPRINTF is already defined.
45702         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
45703         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
45704         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
45705         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
45706         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
45707         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
45708         code accordingly.
45709         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
45710         pad_ourselves also in this case, with the 'c' and 's' directives, and
45711         with a different notion of "width".
45712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
45713
45714 2007-06-10  Bruno Haible  <bruno@clisp.org>
45715
45716         * modules/unistr/u32-mbsnlen: New file.
45717         * lib/unistr/u32-mbsnlen.c: New file.
45718
45719         * modules/unistr/u16-mbsnlen: New file.
45720         * lib/unistr/u16-mbsnlen.c: New file.
45721
45722         * modules/unistr/u8-mbsnlen: New file.
45723         * lib/unistr/u8-mbsnlen.c: New file.
45724
45725         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
45726         declarations.
45727
45728 2007-06-10  Bruno Haible  <bruno@clisp.org>
45729
45730         * lib/string_.h (mbsnlen): New declaration.
45731         * lib/mbsnlen.c: New file.
45732         * m4/mbsnlen.m4: New file.
45733         * modules/mbsnlen: New file.
45734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
45735         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
45736         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
45737
45738 2007-06-10  Bruno Haible  <bruno@clisp.org>
45739
45740         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
45741
45742 2007-06-10  Bruno Haible  <bruno@clisp.org>
45743
45744         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
45745         * lib/mbuiter.h: Likewise.
45746
45747 2007-06-10  Bruno Haible  <bruno@clisp.org>
45748
45749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
45750         declaration.
45751
45752 2007-06-10  Karl Berry  <karl@gnu.org>
45753
45754         * config/srclist.txt: remove gettext entries, Bruno prefers
45755         to update individually.
45756
45757 2007-06-10  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
45760         'maxlen'. Ensure only length + width bytes are allocated, not
45761         length + 1 + width.
45762
45763 2007-06-09  Bruno Haible  <bruno@clisp.org>
45764
45765         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
45766         (CHAR_T): Remove macro.
45767         (VASNPRINTF): Update.
45768
45769 2007-06-09  Bruno Haible  <bruno@clisp.org>
45770
45771         * MODULES.html.sh (Unicode string functions): Add the new modules.
45772
45773         * modules/uniconv/u32-conv-to-enc: New file.
45774         * lib/uniconv/u32-conv-to-enc.c: New file.
45775         * modules/uniconv/u32-conv-to-enc-tests: New file.
45776         * tests/uniconv/test-u32-conv-to-enc.c: New file.
45777
45778         * modules/uniconv/u16-conv-to-enc: New file.
45779         * lib/uniconv/u16-conv-to-enc.c: New file.
45780         * lib/uniconv/u-conv-to-enc.h: New file.
45781         * modules/uniconv/u16-conv-to-enc-tests: New file.
45782         * tests/uniconv/test-u16-conv-to-enc.c: New file.
45783
45784         * modules/uniconv/u8-conv-to-enc: New file.
45785         * lib/uniconv/u8-conv-to-enc.c: New file.
45786         * modules/uniconv/u8-conv-to-enc-tests: New file.
45787         * tests/uniconv/test-u8-conv-to-enc.c: New file.
45788
45789         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45790         u32_conv_to_encoding): New declarations.
45791
45792 2007-06-09  Bruno Haible  <bruno@clisp.org>
45793
45794         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
45795
45796 2007-06-09  Bruno Haible  <bruno@clisp.org>
45797
45798         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
45799         * modules/malloca: Renamed from modules/allocsa, updated.
45800         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
45801         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
45802         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
45803         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
45804         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
45805         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
45806         * modules/xmalloca: Renamed from modules/xallocsa, updated.
45807         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
45808         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
45809         * modules/c-strcasestr (Depends-on): Update.
45810         * lib/c-strcasestr.c: Update.
45811         * modules/c-strstr (Depends-on): Update.
45812         * lib/c-strstr.c: Update.
45813         * modules/canonicalize-lgpl (Depends-on): Update.
45814         * lib/canonicalize-lgpl.c: Update.
45815         * modules/clean-temp (Depends-on): Update.
45816         * lib/clean-temp.c: Update.
45817         * modules/csharpcomp (Depends-on): Update.
45818         * lib/csharpcomp.c: Update.
45819         * modules/csharpexec (Depends-on): Update.
45820         * lib/csharpexec.c: Update.
45821         * modules/javacomp (Depends-on): Update.
45822         * lib/javacomp.c: Update.
45823         * modules/javaexec (Depends-on): Update.
45824         * lib/javaexec.c: Update.
45825         * modules/mbscasestr (Depends-on): Update.
45826         * lib/mbscasestr.c: Update.
45827         * modules/mbsstr (Depends-on): Update.
45828         * lib/mbsstr.c: Update.
45829         * modules/setenv (Depends-on): Update.
45830         * lib/setenv.c: Update.
45831         * modules/strcasestr (Depends-on): Update.
45832         * lib/strcasestr.c: Update.
45833         * modules/striconveha (Depends-on): Update.
45834         * lib/striconveha.c: Update.
45835         * modules/relocatable-prog-wrapper (Files): Update.
45836         * lib/relocwrapper.c: Update.
45837         * build-aux/install-reloc: Update.
45838         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
45839
45840 2007-06-08  Bruno Haible  <bruno@clisp.org>
45841
45842         Port to uClibc.
45843         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
45844         * lib/fpurge.c (fpurge): Likewise.
45845         * lib/freading.c (freading): Likewise.
45846         * lib/fseeko.c (rpl_fseeko): Likewise.
45847         * lib/fseterr.c (fseterr): Likewise.
45848         * lib/fwriting.c (fwriting): Likewise.
45849         * tests/test-fflush.c (main): Avoid a failure on uClibc.
45850
45851 2007-06-08  Bruno Haible  <bruno@clisp.org>
45852
45853         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
45854         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
45855         * modules/gettext (Files): Add m4/intlmacosx.m4.
45856
45857 2007-06-07  Bruno Haible  <bruno@clisp.org>
45858
45859         * modules/localename-tests: New file.
45860         * tests/test-localename.c: New file.
45861
45862         New module 'localename'.
45863         * lib/localename.h: New file.
45864         * lib/localename.c: New file, from GNU gettext.
45865         * m4/localename.m4: New file.
45866         * modules/localename: New file.
45867
45868 2007-06-07  Bruno Haible  <bruno@clisp.org>
45869
45870         Work around the lack of <wchar.h> on some builds of uClibc.
45871         * doc/headers/wchar.texi: Update.
45872         * lib/wchar_.h: Include <wchar.h> only if it exists.
45873         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
45874         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
45875         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
45876         doesn't exist.
45877         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
45878         * modules/mbfile (Depends-on): Add wchar.
45879         * modules/mbiter (Depends-on): Likewise.
45880         * modules/mbuiter (Depends-on): Likewise.
45881         Reported by Simon Josefsson.
45882
45883 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
45884
45885         Work around problem reported by Steven M. Schweda in
45886         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
45887         Tru64 5.1B with the Compaq compiler environment installed declares
45888         an 'isblank' function but does not define it in the C library.
45889         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
45890         * lib/regex_internal.h (isblank): Likewise.
45891         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
45892         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45893
45894 2007-06-05  Bruno Haible  <bruno@clisp.org>
45895
45896         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
45897         ia64.
45898         * modules/printf-safe: New file.
45899         * modules/fprintf-posix (Depends-on): Add printf-safe.
45900         * modules/printf-posix (Depends-on): Likewise.
45901         * modules/snprintf-posix (Depends-on): Likewise.
45902         * modules/sprintf-posix (Depends-on): Likewise.
45903         * modules/vasnprintf-posix (Depends-on): Likewise.
45904         * modules/vasprintf-posix (Depends-on): Likewise.
45905         * modules/vfprintf-posix (Depends-on): Likewise.
45906         * modules/vprintf-posix (Depends-on): Likewise.
45907         * modules/vsnprintf-posix (Depends-on): Likewise.
45908         * modules/vsprintf-posix (Depends-on): Likewise.
45909         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
45910         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
45911         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
45912         "no" on i386, x86_64, ia64.
45913         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
45914         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45915         on i386, x86_64, ia64.
45916         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
45917         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45918         on i386, x86_64, ia64.
45919         * tests/test-vasnprintf-posix.c: Include float.h.
45920         (LDBL80_WORDS): New macro.
45921         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45922         on i386, x86_64, ia64.
45923         * tests/test-vasprintf-posix.c: Include float.h.
45924         (LDBL80_WORDS): New macro.
45925         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45926         on i386, x86_64, ia64.
45927         * tests/test-snprintf-posix.c: Include float.h.
45928         * tests/test-sprintf-posix.c: Likewise.
45929         * tests/test-vsnprintf-posix.c: Likewise.
45930         * tests/test-vsprintf-posix.c: Likewise.
45931
45932 2007-06-05  Bruno Haible  <bruno@clisp.org>
45933
45934         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
45935         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
45936         non-IEEE numbers on i386, x86_64, ia64.
45937         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
45938         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
45939         * tests/test-isnanl.h: Include float.h.
45940         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
45941
45942 2007-06-05  Bruno Haible  <bruno@clisp.org>
45943
45944         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
45945         also the %a / %A. Handle the %a / %A code before this extra handling.
45946
45947 2007-06-05  Bruno Haible  <bruno@clisp.org>
45948
45949         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
45950         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
45951
45952 2007-06-05  Bruno Haible  <bruno@clisp.org>
45953
45954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
45955         typo in variable name.
45956
45957 2007-06-05  Eric Blake  <ebb9@byu.net>
45958
45959         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
45960         Reported by Simon Josefsson.
45961
45962 2007-06-04  Bruno Haible  <bruno@clisp.org>
45963
45964         Avoid test failures on some PowerPC platforms.
45965         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
45966         Define differently for PowerPC.
45967         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
45968         Reported by Gary V. Vaughan <gary@gnu.org>.
45969
45970 2007-06-02  Bruno Haible  <bruno@clisp.org>
45971
45972         Fix test-stdint failure on FreeBSD/ia64.
45973         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
45974         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
45975         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
45976         * doc/headers/stdint.texi: Update.
45977
45978 2007-06-01  Bruno Haible  <bruno@clisp.org>
45979
45980         * tests/test-binary-io.c (main): Pass a third argument to open().
45981         Reported by Gary V. Vaughan <gary@gnu.org>.
45982
45983 2007-06-01  Bruno Haible  <bruno@clisp.org>
45984
45985         * doc/functions/frexpl.texi: Update for mingw.
45986
45987 2007-06-01  Bruno Haible  <bruno@clisp.org>
45988
45989         * tests/test-lseek.c (main): Disable test of errno for invalid third
45990         argument.
45991         * doc/functions/lseek.texi: Update.
45992         Reported by Gary V. Vaughan <gary@gnu.org>.
45993
45994 2007-05-28  Bruno Haible  <bruno@clisp.org>
45995
45996         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
45997
45998 2007-05-31  Eric Blake  <ebb9@byu.net>
45999
46000         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
46001         cross compiling.
46002
46003 2007-05-30  Eric Blake  <ebb9@byu.net>
46004         and Bruno Haible  <bruno@clisp.org>
46005
46006         Work around mingw test failures exposed by m4-1.4.9b.
46007         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
46008         * tests/test-unistd.c: Disable uid_t and git_t tests for the
46009         moment.
46010
46011 2007-05-30  Bruno Haible  <bruno@clisp.org>
46012
46013         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
46014         assuming that they are closed. Needed on HP-UX 11.
46015
46016 2007-05-29  Bruno Haible  <bruno@clisp.org>
46017
46018         Fix a problem with #include_next.
46019         * lib/dirent_.h: Split the double-inclusion guard.
46020         * lib/fcntl_.h: Likewise.
46021         * lib/float_.h: Likewise.
46022         * lib/iconv_.h: Likewise.
46023         * lib/inttypes_.h: Likewise.
46024         * lib/locale_.h: Likewise.
46025         * lib/math_.h: Likewise.
46026         * lib/netinet_in_.h: Likewise.
46027         * lib/search_.h: Likewise.
46028         * lib/signal_.h: Likewise.
46029         * lib/stdint_.h: Likewise.
46030         * lib/stdio_.h: Likewise.
46031         * lib/stdlib_.h: Likewise.
46032         * lib/string_.h: Likewise.
46033         * lib/sys_select_.h: Likewise.
46034         * lib/sys_socket_.h: Likewise.
46035         * lib/sys_stat_.h: Likewise.
46036         * lib/sys_time_.h: Likewise.
46037         * lib/sysexits_.h: Likewise.
46038         * lib/time_.h: Likewise.
46039         * lib/unistd_.h: Likewise.
46040         * lib/wchar_.h: Likewise.
46041         * lib/wctype_.h: Likewise.
46042
46043 2007-05-29  Bruno Haible  <bruno@clisp.org>
46044
46045         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
46046         for the moment.
46047
46048 2007-05-29  Bruno Haible  <bruno@clisp.org>
46049
46050         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
46051         invocation.
46052         Reported by Eric Blake.
46053
46054 2007-05-29  Bruno Haible  <bruno@clisp.org>
46055
46056         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
46057         compiling case.
46058
46059 2007-05-29  Eric Blake  <ebb9@byu.net>
46060             Bruno Haible  <bruno@clisp.org>
46061
46062         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
46063         cross compiles.
46064
46065 2007-05-28  Eric Blake  <ebb9@byu.net>
46066
46067         * modules/closein-tests (test_closein_LDADD): Support test on
46068         cygwin with libtool.
46069
46070 2007-05-28  Bruno Haible  <bruno@clisp.org>
46071
46072         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
46073         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46074         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46075         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46076         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46077         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46078         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46079         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46080         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46081
46082 2007-05-28  Eric Blake  <ebb9@byu.net>
46083
46084         Unconditionally include <config.h> in unit tests.
46085         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
46086         * tests/test-allocsa.c, tests/test-arcfour.c,
46087         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
46088         tests/test-array_list.c, tests/test-array_oset.c,
46089         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
46090         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
46091         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
46092         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
46093         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
46094         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
46095         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
46096         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
46097         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
46098         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
46099         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
46100         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
46101         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
46102         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
46103         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
46104         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
46105         test-md5.c, test-memmem.c, test-printf-posix.c,
46106         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
46107         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
46108         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
46109         test-strcasestr.c, test-striconv.c, test-striconveh.c,
46110         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
46111         test-vasnprintf-posix2.c, test-vasnprintf.c,
46112         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
46113         test-vfprintf-posix.c, test-vprintf-posix.c,
46114         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
46115         test-xvasprintf.c: Likewise.
46116
46117 2007-05-28  Bruno Haible  <bruno@clisp.org>
46118
46119         * gnulib-tool (func_import): Remember the --with-tests command-line
46120         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
46121         Reported by Eric Blake.
46122
46123 2007-05-28  Bruno Haible  <bruno@clisp.org>
46124
46125         * modules/ftell-tests: New file.
46126         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
46127         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
46128
46129         * lib/ftell.c: New file.
46130         * modules/ftell: New file.
46131         * m4/ftell.m4: New file.
46132         * doc/functions/ftell.texi: Update.
46133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
46134         REPLACE_FTELL.
46135         * lib/stdio_.h (rpl_ftell): New declaration.
46136         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
46137         REPLACE_FTELL.
46138
46139 2007-05-28  Eric Blake  <ebb9@byu.net>
46140
46141         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
46142
46143 2007-05-28  Bruno Haible  <bruno@clisp.org>
46144
46145         * modules/fseek-tests: New file.
46146         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
46147         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
46148
46149         * lib/fseek.c: New file.
46150         * modules/fseek: New file.
46151         * m4/fseek.m4: New file.
46152         * doc/functions/fseek.texi: Update.
46153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
46154         REPLACE_FSEEK.
46155         * lib/stdio_.h (rpl_fseek): New declaration.
46156         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
46157         REPLACE_FSEEK.
46158
46159 2007-05-28  Bruno Haible  <bruno@clisp.org>
46160
46161         * lib/stdio_.h (fflush): More comments.
46162
46163 2007-05-28  Bruno Haible  <bruno@clisp.org>
46164
46165         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
46166         runtime test.
46167
46168 2007-05-28  Eric Blake  <ebb9@byu.net>
46169
46170         Improve lseek module.
46171         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
46172         * lib/unistd_.h (lseek): Scale back link warning message.
46173         * tests/test-lseek.c: Beef up test.
46174         * tests/test-lseek.sh: Exercise more facets of lseek.
46175         Reported by Bruno Haible.
46176
46177 2007-05-28  Bruno Haible  <bruno@clisp.org>
46178
46179         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
46180         to define.
46181
46182 2007-05-27  Bruno Haible  <bruno@clisp.org>
46183
46184         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
46185
46186 2007-05-27  Bruno Haible  <bruno@clisp.org>
46187
46188         * modules/openmp: New file.
46189         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
46190         Noah Misch.
46191
46192 2007-05-26  Bruno Haible  <bruno@clisp.org>
46193
46194         * modules/chdir-long (Depends-on): Add fchdir.
46195         * modules/chdir-safer (Depends-on): Likewise.
46196         * modules/fts (Depends-on): Likewise.
46197         * modules/fts-lgpl (Depends-on): Likewise.
46198         * modules/openat (Depends-on): Likewise.
46199         * modules/savewd (Depends-on): Likewise.
46200
46201 2007-05-24  Eric Blake  <ebb9@byu.net>
46202
46203         Fix lseek on mingw.
46204         * modules/lseek: New module.
46205         * m4/lseek.m4: New file.
46206         * lib/lseek.c: New file.
46207         * modules/lseek-tests: New file.
46208         * tests/test-lseek.c: New file.
46209         * tests/test-lseek.sh: New file.
46210         * MODULES.html.sh: Document lseek module.
46211         * modules/fflush (Depends-on): Add lseek, fseeko.
46212         * modules/fseeko (Depends-on): Likewise.
46213         * modules/ftello (Depends-on): Likewise.
46214         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
46215         broken.
46216         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
46217         broken.
46218         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
46219         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
46220         * lib/ftello.c (rpl_ftello): Likewise.
46221         * tests/test-fseeko.c (main): Test this.
46222         * tests/test-fseeko.sh: Likewise.
46223         * tests/test-ftello.c (main): Likewise.
46224         * tests/test-ftello.sh: Likewise.
46225         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
46226         implies replacing fseek.
46227         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
46228         HAVE_FTELLO.
46229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
46230         * modules/unistd (Makefile.am): Likewise.
46231         * lib/unistd_.h (lseek): Declare a replacement.
46232         * doc/functions/lseek.texi (lseek): Document this fix.
46233         * doc/functions/fseek.texi (fseek): Likewise.
46234         * doc/functions/ftell.texi (ftell): Likewise.
46235
46236 2007-05-24  Bruno Haible  <bruno@clisp.org>
46237
46238         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
46239         in the printed representation of a NaN.
46240         * tests/test-vasprintf-posix.c (test_function): Likewise.
46241         * tests/test-snprintf-posix.h (test_function): Likewise.
46242         * tests/test-sprintf-posix.h (test_function): Likewise.
46243         Reported by Eric Blake.
46244
46245 2007-05-23  Eric Blake  <ebb9@byu.net>
46246
46247         Fix fseeko/ftello on cygwin 1.5.24.
46248         * doc/functions/fseeko.texi (fseeko): Document the fix.
46249         * doc/functions/ftello.texi (ftello): Document the fix.
46250         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
46251         * doc/functions/stdout.text (stdout): New file.
46252         * doc/functions/stderr.text (stderr): New file.
46253         * doc/gnulib.texi (Function Substitutes): Use new files.
46254         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
46255         prior to 1.7.0.
46256         * tests/test-ftello.c (main): Likewise for ftello.
46257         * tests/test-fseeko.sh: New file.
46258         * tests/test-ftello.sh: New file.
46259         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
46260         with seekable stdin.
46261         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
46262         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
46263         (gl_REPLACE_FSEEKO): New macro.
46264         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
46265         * modules/fseeko (Files): Distribute fseeko.c.
46266         * modules/ftello (Files): Distribute ftello.c.
46267         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
46268         mode.
46269         * lib/ftello.c (rpl_ftello): New file.
46270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
46271         fseeko, ftello.
46272         (gl_STDIN_LARGE_OFFSET): New macro.
46273         * modules/stdio (Makefile.am): Perform the replacement.
46274         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
46275
46276 2007-05-23  Bruno Haible  <bruno@clisp.org>
46277
46278         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
46279         GNULIB_POSIXCHECK is defined.
46280
46281 2007-05-21  Bruno Haible  <bruno@clisp.org>
46282
46283         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
46284         Check also the output for NaN arguments. When cross-compiling, guess
46285         no on IRIX.
46286         * lib/vasnprintf.c: Update comments.
46287         * tests/test-vasnprintf-posix.c (strisnan): New function.
46288         (test_function): Use it.
46289         * tests/test-vasprintf-posix.c (strisnan): New function.
46290         (test_function): Use it.
46291         * tests/test-snprintf-posix.h (strisnan): New function.
46292         (test_function): Use it.
46293         * tests/test-sprintf-posix.h (strisnan): New function.
46294         (test_function): Use it.
46295         Reported by Eric Blake.
46296
46297 2007-05-20  Bruno Haible  <bruno@clisp.org>
46298
46299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
46300         numbers that fails on BeOS.
46301         * doc/functions/frexpl.texi: Update.
46302
46303 2007-05-20  Jim Meyering  <jim@meyering.net>
46304
46305         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
46306         forced upon us by glibc-2.6.
46307
46308 2007-05-20  Bruno Haible  <bruno@clisp.org>
46309
46310         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
46311         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
46312         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
46313         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
46314         NEED_PRINTF_INFINITE.
46315         (is_infinitel): New function.
46316         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
46317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
46318         gl_PREREQ_VASNPRINTF_INFINITE.
46319         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
46320         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46321         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
46322         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
46323         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
46324         gl_PREREQ_VASNPRINTF_INFINITE.
46325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46326         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46328         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46329         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46331         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46332         * doc/functions/fprintf.texi: Update.
46333         * doc/functions/printf.texi: Update.
46334         * doc/functions/snprintf.texi: Update.
46335         * doc/functions/sprintf.texi: Update.
46336         * doc/functions/vfprintf.texi: Update.
46337         * doc/functions/vprintf.texi: Update.
46338         * doc/functions/vsnprintf.texi: Update.
46339         * doc/functions/vsprintf.texi: Update.
46340
46341 2007-05-20  Bruno Haible  <bruno@clisp.org>
46342
46343         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
46344         was not found in libc.
46345         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46346
46347 2007-05-20  Bruno Haible  <bruno@clisp.org>
46348
46349         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46350         printed as "-nan" instead of "nan".
46351         * tests/test-vasprintf-posix.c (test_function): Likewise.
46352         * tests/test-snprintf-posix.h (test_function): Likewise.
46353         * tests/test-sprintf-posix.h (test_function): Likewise.
46354         Needed for HP-UX 11.
46355
46356 2007-05-20  Jim Meyering  <jim@meyering.net>
46357
46358         Fix buggy test for the fchownat-deref bug.
46359         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
46360         symlink required for the run-test.  Without it, this test would
46361         always declare that fchownat doesn't work, and client code would
46362         unnecessarily use the replacement function with fixed libc.
46363         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
46364         Reported by Greg Schafer.
46365
46366 2007-05-19  Bruno Haible  <bruno@clisp.org>
46367
46368         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
46369         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
46370         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
46371         Needed for IRIX 6.5 and Solaris 2.5.1.
46372
46373 2007-05-19  Bruno Haible  <bruno@clisp.org>
46374
46375         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
46376         (test_function): Skip tests involving -0.0 on platforms where
46377         -0.0 = 0.0.
46378         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
46379         (test_function): Skip tests involving -0.0 on platforms where
46380         -0.0 = 0.0.
46381         * tests/test-snprintf-posix.h (have_minus_zero): New function.
46382         (test_function): Skip tests involving -0.0 on platforms where
46383         -0.0 = 0.0.
46384         * tests/test-sprintf-posix.h (have_minus_zero): New function.
46385         (test_function): Skip tests involving -0.0 on platforms where
46386         -0.0 = 0.0.
46387         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
46388         tests.
46389         * tests/test-printf-posix.h (test_function): Likewise.
46390         * tests/test-printf-posix.output: Remove all -0.0 related results.
46391         Needed for IRIX 6.5.
46392
46393 2007-05-19  Bruno Haible  <bruno@clisp.org>
46394
46395         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46396         printed as "nan0x7fffffff" instead of "nan".
46397         * tests/test-vasprintf-posix.c (test_function): Likewise.
46398         * tests/test-snprintf-posix.h (test_function): Likewise.
46399         * tests/test-sprintf-posix.h (test_function): Likewise.
46400         * tests/test-fprintf-posix.h (NaN): Remove macro.
46401         (test_function): Remove all NaN related tests.
46402         * tests/test-printf-posix.h (NaN): Remove macro.
46403         (test_function): Remove all NaN related tests.
46404         * tests/test-printf-posix.output: Remove all NaN related results.
46405         Needed for IRIX 6.5.
46406
46407 2007-05-19  Bruno Haible  <bruno@clisp.org>
46408
46409         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
46410         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46411
46412 2007-05-19  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/float_.h: New file.
46415         * m4/float_h.m4: New file.
46416         * modules/float: New file.
46417         * modules/isnanl (Dependencies): Add float.
46418         * modules/isnanl-nolibm (Dependencies): Likewise.
46419         * modules/mathl (Dependencies): Likewise.
46420         * modules/printf-frexpl (Dependencies): Likewise.
46421         * modules/signbit (Dependencies): Likewise.
46422         * modules/vasnprintf (Dependencies): Likewise.
46423         * doc/headers/float.texi: Update.
46424
46425 2007-05-19  Jim Meyering  <jim@meyering.net>
46426
46427         * lib/utimens.c (gl_futimens): Rename from futimens,
46428         now that glibc-2.6 declares futimens.
46429         * lib/utimens.h: Likewise.
46430
46431 2007-05-19  Bruno Haible  <bruno@clisp.org>
46432
46433         Avoid test failures on mingw.
46434         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
46435         * tests/test-printf-posix.sh: Likewise.
46436         * tests/test-vfprintf-posix.sh: Likewise.
46437         * tests/test-vprintf-posix.sh: Likewise.
46438
46439 2007-05-19  Bruno Haible  <bruno@clisp.org>
46440
46441         Fix *printf result for NaN, Inf, -0.0 on mingw.
46442         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
46443         * lib/vasnprintf.c: Include math.h and isnan.h.
46444         (is_infinite_or_zero): New function.
46445         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
46446         values in the %f, %F, %e, %E, %g, %G directives.
46447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
46448         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46449         gl_PRINTF_INFINITE and test its result. Invoke
46450         gl_PREREQ_VASNPRINTF_INFINITE.
46451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46458         * doc/functions/fprintf.texi: Update.
46459         * doc/functions/printf.texi: Update.
46460         * doc/functions/snprintf.texi: Update.
46461         * doc/functions/sprintf.texi: Update.
46462         * doc/functions/vfprintf.texi: Update.
46463         * doc/functions/vprintf.texi: Update.
46464         * doc/functions/vsnprintf.texi: Update.
46465         * doc/functions/vsprintf.texi: Update.
46466
46467 2007-05-19  Bruno Haible  <bruno@clisp.org>
46468
46469         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
46470         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
46471         Instead of multiplying with 10^k, set extra_zeroes to k.
46472         (scale10_round_long_double): Remove function.
46473
46474 2007-05-18  Bruno Haible  <bruno@clisp.org>
46475
46476         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
46477         introduced on 2007-05-06.
46478
46479 2007-05-18  Bruno Haible  <bruno@clisp.org>
46480
46481         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
46482         %g directives.
46483         * tests/test-vasprintf-posix.c (test_function): Likewise.
46484         * tests/test-snprintf-posix.h (test_function): Likewise.
46485         * tests/test-sprintf-posix.h (test_function): Likewise.
46486
46487 2007-05-18  Bruno Haible  <bruno@clisp.org>
46488
46489         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
46490         (strmatch): New function.
46491         (test_function): Test the %f directive on numbers of various exponents.
46492         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
46493         (strmatch): New function.
46494         (test_function): Test the %f directive on numbers of various exponents.
46495         * tests/test-snprintf-posix.h (strmatch): New function.
46496         (test_function): Test the %f directive on numbers of various exponents.
46497         * tests/test-sprintf-posix.h (strmatch): New function.
46498         (test_function): Test the %f directive on numbers of various exponents.
46499         * tests/test-snprintf-posix.c (SIZEOF): New macro.
46500         * tests/test-sprintf-posix.c (SIZEOF): New macro.
46501         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
46502         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
46503
46504 2007-05-18  Bruno Haible  <bruno@clisp.org>
46505
46506         Add support for 'long double' number output.
46507         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
46508         * lib/vasnprintf.c: Include math.h and float+.h.
46509         (mp_limb_t): New type.
46510         (GMP_LIMB_BITS): New macro.
46511         (mp_twolimb_t): New type.
46512         (GMP_TWOLIMB_BITS): New macro.
46513         (mpn_t): New type.
46514         (multiply, divide, convert_to_decimal, decode_long_double,
46515         scale10_round_long_double, scale10_round_decimal_long_double,
46516         floorlog10l): New functions.
46517         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
46518         for the %f, %F, %e, %E, %g, %G directives.
46519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
46520         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46521         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
46522         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
46523         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46524         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46525         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46526         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46527         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46529         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46530         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
46531         * modules/snprintf-posix (Depends-on): Likewise.
46532         * modules/sprintf-posix (Depends-on): Likewise.
46533         * modules/vasnprintf-posix (Depends-on): Likewise.
46534         * modules/vasprintf-posix (Depends-on): Likewise.
46535         * modules/vfprintf-posix (Depends-on): Likewise.
46536         * modules/vsnprintf-posix (Depends-on): Likewise.
46537         * modules/vsprintf-posix (Depends-on): Likewise.
46538         * modules/vasnprintf (Files): Add lib/float+.h.
46539         * doc/functions/fprintf.texi: Update.
46540         * doc/functions/printf.texi: Update.
46541         * doc/functions/snprintf.texi: Update.
46542         * doc/functions/sprintf.texi: Update.
46543         * doc/functions/vfprintf.texi: Update.
46544         * doc/functions/vprintf.texi: Update.
46545         * doc/functions/vsnprintf.texi: Update.
46546         * doc/functions/vsprintf.texi: Update.
46547
46548 2007-05-18  Bruno Haible  <bruno@clisp.org>
46549
46550         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
46551
46552 2007-05-18  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
46555         for printing 64-bit integers. Needed for mingw.
46556
46557 2007-05-18  Bruno Haible  <bruno@clisp.org>
46558
46559         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46560         gl_FUNC_FREXPL_WORKS.
46561         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
46562
46563 2007-05-18  Bruno Haible  <bruno@clisp.org>
46564
46565         * modules/frexpl-nolibm-tests: New file.
46566
46567         * modules/frexpl-nolibm: New file.
46568         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
46569
46570 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46571
46572         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
46573         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46574         GCC 4.2, which otherwise issues a lot of warnings.
46575         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
46576         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
46577         Likewise.
46578         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
46579         * modules/iconv_open (iconv.h): Likewise.
46580         * modules/locale (locale.h): Likewise.
46581         * modules/netinet_in (netinet/in.h): Likewise.
46582         * modules/sys_select (sys_select.h): Likewise.
46583         * modules/sys_socket (sys/socket.h): Likewise.
46584         * modules/sys_stat (sys/stat.h): Likewise.
46585         * modules/sysexits (sysexits.h): Likewise.
46586         * modules/unistd (unistd.h): Likewise.
46587
46588 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46589
46590         * modules/closein-tests (Makefile.am): Distribute
46591         `test-closein.sh'.
46592
46593 2007-05-17  Bruno Haible  <bruno@clisp.org>
46594
46595         * tests/test-printf-posix.output: Renamed from
46596         tests/test-fprintf-posix.out.
46597         * modules/fprintf-posix-tests: Update.
46598         * modules/printf-posix-tests: Update.
46599         * modules/vfprintf-posix-tests: Update.
46600         * modules/vprintf-posix-tests: Update.
46601         * tests/test-fprintf-posix.sh: Update.
46602         * tests/test-printf-posix.sh: Update.
46603         * tests/test-vfprintf-posix.sh: Update.
46604         * tests/test-vprintf-posix.sh: Update.
46605         Reported by Ralf Wildenhues.
46606
46607 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46608
46609         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
46610         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46611         GCC 4.2, which otherwise issues a lot of warnings.
46612         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
46613         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
46614         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
46615         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
46616         it should no longer be needed.
46617         * lib/string_.h: Likewise.
46618         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
46619         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
46620         * modules/inttypes (inttypes.h): Likewise.
46621         * modules/math (math.h): Likewise.
46622         * modules/search (search.h): Likewise.
46623         * modules/signal (signal.h): Likewise.
46624         * modules/stdint (stdint.h): Likewise.
46625         * modules/stdio (stdio.h): Likewise.
46626         * modules/stdlib (stdlib.h): Likewise.
46627         * modules/string (string.h): Likewise.
46628         * modules/sys_time (sys/time.h): Likewise.
46629         * modules/time (time.h): Likewise.
46630         * modules/wchar (wchar.h): Likewise.
46631         * modules/wctype (wtype.h): Likewise.
46632
46633 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46634
46635         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
46636
46637 2007-05-13  Bruno Haible  <bruno@clisp.org>
46638
46639         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
46640         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46641         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
46642         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46643         (gl_PREREQ_STRTOK_R): Don't require it here.
46644
46645 2007-05-13  Bruno Haible  <bruno@clisp.org>
46646
46647         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
46648         when used in C++ mode.
46649
46650 2007-05-12  Bruno Haible  <bruno@clisp.org>
46651
46652         * lib/linebuffer.h: Tweak doc.
46653         * lib/linebuffer.c: Likewise.
46654
46655 2007-05-12  James Youngman  <jay@gnu.org>
46656
46657         * lib/linebuffer.c (readlinebuffer_delim): New function,
46658         like readlinebuffer, but use a caller-specified delimiter.
46659         (readlinebuffer): Just call readlinebuffer_delim with '\n'
46660         as the delimiter.
46661         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
46662
46663 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46664
46665         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
46666         * modules/openat (Files): Remove openat-die.c.
46667         (Depends-on): Add openat-die.
46668         * modules/openat-die: New module.
46669
46670 2007-05-06  Bruno Haible  <bruno@clisp.org>
46671
46672         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
46673         Update with info about Cygwin.
46674         * doc/functions/fprintf.texi: Update.
46675         * doc/functions/printf.texi: Update.
46676         * doc/functions/snprintf.texi: Update.
46677         * doc/functions/sprintf.texi: Update.
46678         * doc/functions/vfprintf.texi: Update.
46679         * doc/functions/vprintf.texi: Update.
46680         * doc/functions/vsnprintf.texi: Update.
46681         * doc/functions/vsprintf.texi: Update.
46682         Reported by Eric Blake.
46683
46684 2007-05-06  Bruno Haible  <bruno@clisp.org>
46685
46686         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
46687         padding ourselves for the floating-point directives.
46688         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
46689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
46690         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46691         gl_PRINTF_FLAG_ZERO and test its result. Invoke
46692         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
46693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46694         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
46695         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46696         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46697         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46699         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46700         * tests/test-snprintf-posix.h (test_function): Also check the width
46701         and some flags in the %f directive.
46702         * tests/test-sprintf-posix.h (test_function): Likewise.
46703         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46704         * tests/test-vasprintf-posix.c (test_function): Likewise.
46705         * doc/functions/fprintf.texi: Update.
46706         * doc/functions/printf.texi: Update.
46707         * doc/functions/snprintf.texi: Update.
46708         * doc/functions/sprintf.texi: Update.
46709         * doc/functions/vfprintf.texi: Update.
46710         * doc/functions/vprintf.texi: Update.
46711         * doc/functions/vsnprintf.texi: Update.
46712         * doc/functions/vsprintf.texi: Update.
46713
46714 2007-05-06  Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
46717         pass the ' flag character to sprintf or snprintf.
46718         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
46719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
46720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46721         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
46722         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
46723         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46724         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
46725         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46726         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46727         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46728         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46729         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46730         * tests/test-snprintf-posix.h (test_function): Also check the grouping
46731         flag.
46732         * tests/test-sprintf-posix.h (test_function): Likewise.
46733         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46734         * tests/test-vasprintf-posix.c (test_function): Likewise.
46735         * doc/functions/fprintf.texi: Update.
46736         * doc/functions/printf.texi: Update.
46737         * doc/functions/snprintf.texi: Update.
46738         * doc/functions/sprintf.texi: Update.
46739         * doc/functions/vfprintf.texi: Update.
46740         * doc/functions/vprintf.texi: Update.
46741         * doc/functions/vsnprintf.texi: Update.
46742         * doc/functions/vsprintf.texi: Update.
46743
46744 2007-05-01  Bruno Haible  <bruno@clisp.org>
46745
46746         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
46747
46748 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
46749
46750         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
46751         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
46752
46753 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46754
46755         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
46756         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
46757         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
46758
46759 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
46760
46761         * lib/argp-help.c (struct hol_entry): New member `ord'.
46762         (HOL_ENTRY_PTRCMP): Use ord for comparison
46763         (hol_sort): Initialize ord.
46764
46765 2007-05-01  Bruno Haible  <bruno@clisp.org>
46766
46767         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
46768         Reported by Eric Blake.
46769         * doc/gnulib.texi (Function Substitutes): Update.
46770
46771 2007-05-01  Bruno Haible  <bruno@clisp.org>
46772
46773         * doc/functions.texi: Remove file, now redundant through
46774         doc/functions/*.texi.
46775
46776 2007-05-01  Bruno Haible  <bruno@clisp.org>
46777
46778         * modules/argp (Depends-on): Add sleep.
46779
46780 2007-05-01  Bruno Haible  <bruno@clisp.org>
46781
46782         * modules/sleep-tests: New file.
46783         * tests/test-sleep.c: New file.
46784
46785         * modules/sleep: New file.
46786         * lib/sleep.c: New file.
46787         * m4/sleep.m4: New file.
46788         * lib/unistd_.h (sleep): New declaration.
46789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
46790         HAVE_SLEEP.
46791         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
46792         * doc/functions/sleep.texi: Document the sleep module.
46793
46794 2007-05-01  Bruno Haible  <bruno@clisp.org>
46795
46796         * lib/sigprocmask.h: Remove file.
46797         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
46798         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
46799         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
46800         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
46801         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
46802         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
46803         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
46804         HAVE_SIGSET_T as a shell variable.
46805         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
46806         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
46807         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
46808         (Depends-on): Add signal. Remove verify.
46809         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
46810         (Include): Mention <signal.h> instead of sigprocmask.h.
46811         * NEWS: Mention the change.
46812         * lib/fatal-signal.c: Don't include sigprocmask.h.
46813
46814 2007-05-01  Bruno Haible  <bruno@clisp.org>
46815
46816         * modules/signal: New file.
46817         * lib/signal_.h: New file.
46818         * m4/signal_h.m4: New file.
46819
46820 2007-05-01  Bruno Haible  <bruno@clisp.org>
46821
46822         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
46823         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
46824         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
46825         HAVE_WCTYPE_CTMP_BUG into wctype.h.
46826
46827 2007-05-01  Bruno Haible  <bruno@clisp.org>
46828
46829         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
46830         configure time.
46831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
46832         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
46833         * modules/sys_stat (Makefile.am): Substitute their values into
46834         sys/stat.h.
46835
46836 2007-05-01  Bruno Haible  <bruno@clisp.org>
46837
46838         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
46839         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
46840         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
46841
46842 2007-05-01  Bruno Haible  <bruno@clisp.org>
46843
46844         * doc/header/assert.texi: Undo last change: don't mention the gnulib
46845         'assert' module here.
46846
46847 2007-05-01  Bruno Haible  <bruno@clisp.org>
46848
46849         * doc/functions/*.texi: New files.
46850         * doc/functions/google-ranking.txt: New file.
46851         * doc/gnulib.texi (Function Substitutes): New chapter.
46852         (ctime, inet_ntoa): Remove sections.
46853         * doc/ctime.texi: Remove file.
46854         * doc/inet_ntoa.texi: Remove file.
46855         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
46856         dependencies.
46857         (%.info): New rule, specifying a --reference-limit.
46858
46859 2007-05-01  Bruno Haible  <bruno@clisp.org>
46860
46861         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
46862
46863 2007-05-01  Bruno Haible  <bruno@clisp.org>
46864
46865         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
46866         the portability of 'mkdir' to mingw systems.
46867
46868 2007-05-01  Bruno Haible  <bruno@clisp.org>
46869
46870         * doc/headers/google-ranking.txt: New file.
46871
46872 2007-04-30  Eric Blake  <ebb9@byu.net>
46873
46874         Prefer fseeko to fseek.
46875         * modules/getpass (Depends-on): Add fseeko.
46876         * lib/getpass.c (getpass): Use fseeko, not fseek.
46877
46878 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
46879
46880         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
46881         assumes the sorting is stable, while most qsort implementations
46882         are not.  Use argument addresses to ensure they never compare as
46883         equal.
46884
46885         * tests/test-argp-2.sh (usage-indent test): Fix output
46886         (func_compare): Restore diff options
46887         * tests/test-argp.c: Restore #include "progname.h"
46888
46889 2007-04-29  Bruno Haible  <bruno@clisp.org>
46890
46891         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
46892         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46893         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
46894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46895         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
46896         (configure.ac): Define CHECK_SNPRINTF_POSIX.
46897         (TESTS, check_PROGRAMS): Add test-snprintf.
46898         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
46899         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
46900         (TESTS, check_PROGRAMS): Add test-vsnprintf.
46901         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
46902         assertions that fail on HP-UX, OSF/1, or IRIX.
46903         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
46904
46905 2007-04-29  Bruno Haible  <bruno@clisp.org>
46906
46907         * MODULES.html.sh (posix_functions): Remove 'contents'.
46908
46909 2007-04-29  Karl Berry  <karl@gnu.org>
46910
46911         * config/srclist.txt (gendocs_template_min): new entry.
46912
46913 2007-04-29  Bruno Haible  <bruno@clisp.org>
46914
46915         Work around fpurge bug on BSD systems.
46916         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
46917         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
46918         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
46919         fpurge to rpl_fpurge if the system already has this function.
46920         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
46921         the case where the system already has this function. Correct invariants
46922         on BSD systems.
46923         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
46924         BSD systems.
46925
46926 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46927
46928         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
46929         proposed by Sven Verdoolaege.
46930
46931         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
46932         options.
46933         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
46934         (usage and help tests): Update
46935
46936 2007-04-29  Bruno Haible  <bruno@clisp.org>
46937
46938         * tests/test-fflush.c (main): Use a file of size 17, not 10.
46939         Print more information in case of failure. Disable a test on BeOS.
46940
46941 2007-04-29  Bruno Haible  <bruno@clisp.org>
46942
46943         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
46944         This helps debugging on systems on which no gdb is available.
46945
46946 2007-04-29  Bruno Haible  <bruno@clisp.org>
46947
46948         * lib/freading.h: Improve comments.
46949         * lib/fwriting.h: Likewise.
46950         * tests/test-freading.c (main): Don't check freading immediately after
46951         repositioning. Needed for glibc.
46952
46953 2007-04-29  Bruno Haible  <bruno@clisp.org>
46954
46955         * lib/freading.c (freading): Trivial simplification.
46956
46957 2007-04-28  Bruno Haible  <bruno@clisp.org>
46958
46959         * tests/test-fwriting.c (main): Also test the interaction between
46960         fflush and fwriting.
46961         * modules/fwriting-tests (Depends-on): Add fflush.
46962
46963         * tests/test-freading.c (main): Also test the interaction between
46964         fflush and freading.
46965         * modules/freading-tests (Depends-on): Add fflush.
46966
46967 2007-04-28  Bruno Haible  <bruno@clisp.org>
46968
46969         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
46970         fseeko and ftello.
46971         Suggested by Eric Blake.
46972
46973 2007-04-28  Jim Meyering  <jim@meyering.net>
46974
46975         Avoid false-negative in gl_STDINT_H's C99 conformance test.
46976         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
46977         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
46978
46979 2007-04-27  Eric Blake  <ebb9@byu.net>
46980
46981         * doc/headers/assert.texi (assert.h): Document assert module use.
46982
46983 2007-04-27  Bruno Haible  <bruno@clisp.org>
46984
46985         * doc/headers/*.texi: New files.
46986         * doc/gnulib.texi (Header File Substitutes): New chapter.
46987         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
46988         dependencies.
46989         (standards.info ,standards.html, standards.dvi): Update dependencies.
46990         (mostlyclean, clean): New targets.
46991
46992 2007-04-27  Bruno Haible  <bruno@clisp.org>
46993
46994         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
46995         * modules/sysexits (Files, Makefile.am): Update.
46996
46997         * lib/sys_socket_.h: Renamed from lib/socket_.h.
46998         * modules/sys_socket (Files, Makefile.am): Update.
46999
47000         * lib/sys_stat_.h: Renamed from lib/stat_.h.
47001         * modules/sys_stat (Files, Makefile.am): Update.
47002
47003 2007-04-27  Eric Blake  <ebb9@byu.net>
47004
47005         * lib/freading.h: Improve comments.
47006         * lib/fwriting.h: Likewise.
47007         * lib/fflush.c: Likewise.
47008
47009         Fix closein for mingw.
47010         * modules/closein-tests: Add tests for closein.
47011         * tests/test-closein.c: New file.
47012         * tests/test-closein.sh: Likewise.
47013         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
47014         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
47015
47016 2007-04-27  Bruno Haible  <bruno@clisp.org>
47017
47018         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
47019         version is < 6.
47020         * lib/math_.h [__DECC]: Likewise.
47021         * lib/stdio_.h [__DECC]: Likewise.
47022         * lib/stdlib_.h [__DECC]: Likewise.
47023         * lib/string_.h [__DECC]: Likewise.
47024         * lib/time_.h [__DECC]: Likewise.
47025         * lib/wchar_.h [__DECC]: Likewise.
47026         * lib/wctype_.h [__DECC]: Likewise.
47027
47028 2007-04-27  Bruno Haible  <bruno@clisp.org>
47029
47030         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
47031
47032 2007-04-27  Bruno Haible  <bruno@clisp.org>
47033
47034         * lib/fflush.c: Add comments.
47035         * modules/fpurge-tests (Depends-on): Add fflush.
47036         * modules/freadable-tests (Depends-on): Likewise.
47037         * modules/fwritable-tests (Depends-on): Likewise.
47038
47039 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
47040
47041         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
47042         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
47043         Report by Bruno Haible <bruno@clisp.org>.
47044
47045 2007-04-26  Eric Blake  <ebb9@byu.net>
47046
47047         Fix fflush on mingw.
47048         * modules/fflush (Depends-on): Add freading.
47049         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
47050         but unread data.
47051
47052 2007-04-26  Eric Blake  <ebb9@byu.net>
47053         and Bruno Haible  <bruno@clisp.org>
47054
47055         Implement freading and fwriting.
47056         * lib/freading.c: New file.
47057         * lib/freading.h: Likewise.
47058         * m4/freading.m4: Likewise.
47059         * modules/freading: Likewise.
47060         * modules/freading-tests: Likewise.
47061         * tests/test-freading.c: Likewise.
47062         * lib/fwriting.c: New file.
47063         * lib/fwriting.h: Likewise.
47064         * m4/fwriting.m4: Likewise.
47065         * modules/fwriting: Likewise.
47066         * modules/fwriting-tests: Likewise.
47067         * tests/test-fwriting.c: Likewise.
47068         * MODULES.html.sh (File stream based Input/Output): Mention them.
47069
47070 2007-04-26  Bruno Haible  <bruno@clisp.org>
47071
47072         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
47073         'long' when we assume it.
47074         Suggested by Eric Blake.
47075
47076 2007-04-26  Bruno Haible  <bruno@clisp.org>
47077
47078         Ensure fseeko, ftello are declared on glibc systems.
47079         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
47080         * modules/fseeko (configure.ac-early): Likewise.
47081         * modules/ftello (configure.ac-early): Likewise.
47082         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
47083         AC_FUNC_FSEEKO for this.
47084         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
47085         (gl_CHECK_FSEEKO): Remove macro.
47086
47087 2007-04-26  Bruno Haible  <bruno@clisp.org>
47088
47089         * tests/test-fflush.c (main): Also check the ftell result after
47090         fflush and fseek/fseeko.
47091         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
47092         file descriptor position cache in the stream.
47093         * lib/fseeko.c (rpl_fseeko): Likewise.
47094
47095 2007-04-26  Bruno Haible  <bruno@clisp.org>
47096
47097         * modules/fflush-tests (Depends-on): Add fseeko.
47098
47099 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
47100             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47101
47102         * lib/argz_.h: ensure error_t definition is obtained in same
47103         mechanism system argz.h would have.
47104         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
47105         argz facilities are known bad.  Err on the side of caution if
47106         cross-compiling.
47107
47108 2007-04-25  Eric Blake  <ebb9@byu.net>
47109
47110         * lib/fpurge.c (includes): Use stdlib.h for free.
47111         * tests/test-fflush.c (main): Also test fflush-fseeko.
47112
47113 2007-04-25  Bruno Haible  <bruno@clisp.org>
47114
47115         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
47116         * lib/fseeko.c: New file.
47117         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
47118         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
47119         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
47120         gl_FUNC_FSEEKO.
47121         (gl_FUNC_FSEEKO): Invoke it.
47122         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
47123         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
47124         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
47125
47126 2007-04-25  Bruno Haible  <bruno@clisp.org>
47127
47128         * modules/fflush (Depends-on): Add ftello.
47129
47130 2007-04-25  Bruno Haible  <bruno@clisp.org>
47131
47132         * modules/ftello-tests: New file.
47133         * tests/test-ftello.c: New file.
47134
47135         * modules/ftello: New file.
47136         * m4/ftello.m4: New file.
47137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
47138         HAVE_FTELLO.
47139         * lib/stdio_.h (ftello): New declaration.
47140         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
47141         HAVE_FTELLO.
47142
47143 2007-04-25  Bruno Haible  <bruno@clisp.org>
47144
47145         * modules/fseeko-tests: New file.
47146         * tests/test-fseeko.c: New file.
47147
47148         * modules/fseeko: New file.
47149         * m4/fseeko.m4: New file.
47150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
47151         HAVE_FSEEKO.
47152         * lib/stdio_.h (fseeko): New declaration.
47153         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
47154         HAVE_FSEEKO.
47155
47156 2007-04-25  Bruno Haible  <bruno@clisp.org>
47157
47158         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
47159
47160 2007-04-25  Bruno Haible  <bruno@clisp.org>
47161
47162         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
47163         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
47164         * tests/test-unistd.c: Likewise.
47165         * tests/test-fcntl.c: Likewise.
47166
47167 2007-04-23  Eric Blake  <ebb9@byu.net>
47168
47169         * lib/fflush.c: Fix missing include.
47170         Reported by Bruno Haible.
47171
47172 2007-04-23  Bruno Haible  <bruno@clisp.org>
47173
47174         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
47175         Reported by Eric Blake.
47176
47177 2007-04-23  Bruno Haible  <bruno@clisp.org>
47178
47179         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
47180
47181 2007-04-23  Bruno Haible  <bruno@clisp.org>
47182
47183         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
47184
47185 2007-04-23  Bruno Haible  <bruno@clisp.org>
47186
47187         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
47188         Needed on HP-UX 11.
47189
47190 2007-04-16  Eric Blake  <ebb9@byu.net>
47191
47192         Make fflush rely on fpurge.
47193         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
47194         open coding all variants.
47195         * modules/fflush (Depends-on): Add fpurge and unistd.
47196         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
47197         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
47198
47199         Fix --with-tests compilation on cygwin.
47200         * modules/argmatch-tests (Makefile.am): List gnulib library first
47201         in LDADD.
47202         * modules/argp-tests (Makefile.am): Likewise.
47203         * modules/array-list-tests (Makefile.am): Likewise.
47204         * modules/array-oset-tests (Makefile.am): Likewise.
47205         * modules/avltree-list-tests (Makefile.am): Likewise.
47206         * modules/avltree-oset-tests (Makefile.am): Likewise.
47207         * modules/avltreehash-list-tests (Makefile.am): Likewise.
47208         * modules/carray-list-tests (Makefile.am): Likewise.
47209         * modules/dirname-tests (Makefile.am): Likewise.
47210         * modules/frexp-tests (Makefile.am): Likewise.
47211         * modules/isnanl-tests (Makefile.am): Likewise.
47212         * modules/linked-list-tests (Makefile.am): Likewise.
47213         * modules/linkedhash-list-tests (Makefile.am): Likewise.
47214         * modules/lock-tests (Makefile.am): Likewise.
47215         * modules/rbtree-list-tests (Makefile.am): Likewise.
47216         * modules/rbtree-oset-tests (Makefile.am): Likewise.
47217         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
47218         * modules/tls-tests (Makefile.am): Likewise.
47219         * modules/tsearch-tests (Makefile.am): Likewise.
47220         * modules/xvasprintf-tests (Makefile.am): Likewise.
47221
47222         Fix fpurge for cygwin.
47223         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
47224         value.
47225         * modules/fpurge-tests (Depends-on): Clean up trash.
47226
47227 2007-04-16  Simon Josefsson  <simon@josefsson.org>
47228
47229         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
47230
47231         * m4/autobuild.m4: Re-indent.
47232
47233 2007-04-13  Bruno Haible  <bruno@clisp.org>
47234
47235         * modules/fpurge-tests: New file.
47236         * tests/test-fpurge.c: New file.
47237
47238         * modules/fpurge: New file.
47239         * lib/fpurge.h: New file.
47240         * lib/fpurge.c: New file.
47241         * m4/fpurge.m4: New file.
47242
47243 2007-04-13  Bruno Haible  <bruno@clisp.org>
47244
47245         * modules/fbufmode-tests: New file.
47246         * tests/test-fbufmode.c: New file.
47247
47248         * modules/fbufmode: New file.
47249         * lib/fbufmode.h: New file.
47250         * lib/fbufmode.c: New file.
47251         * m4/fbufmode.m4: New file.
47252
47253 2007-04-13  Bruno Haible  <bruno@clisp.org>
47254
47255         * modules/fwritable-tests: New file.
47256         * tests/test-fwritable.c: New file.
47257
47258         * modules/fwritable: New file.
47259         * lib/fwritable.h: New file.
47260         * lib/fwritable.c: New file.
47261         * m4/fwritable.m4: New file.
47262
47263 2007-04-13  Bruno Haible  <bruno@clisp.org>
47264
47265         * modules/freadable-tests: New file.
47266         * tests/test-freadable.c: New file.
47267
47268         * modules/freadable: New file.
47269         * lib/freadable.h: New file.
47270         * lib/freadable.c: New file.
47271         * m4/freadable.m4: New file.
47272
47273 2007-04-13  Bruno Haible  <bruno@clisp.org>
47274
47275         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
47276         MOSTLYCLEANFILES.
47277
47278 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47279
47280         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
47281         gzip bootstrap.conf to avoid dragging in i18n machinery.
47282         (gnulib_tool_option): Use it.
47283
47284 2007-04-13  Bruno Haible  <bruno@clisp.org>
47285
47286         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
47287         %F directives.
47288         * tests/test-vasprintf-posix.c (test_function): Likewise.
47289         * tests/test-snprintf-posix.h (test_function): Likewise.
47290         * tests/test-sprintf-posix.h (test_function): Likewise.
47291         * tests/test-fprintf-posix.h (test_function): Likewise.
47292         * tests/test-printf-posix.h (test_function): Likewise.
47293         * tests/test-fprintf-posix.out: Likewise.
47294
47295 2007-04-13  Bruno Haible  <bruno@clisp.org>
47296
47297         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
47298         * modules/tls-tests (configure.ac): Likewise.
47299         Reported by Arto C. Nirkko <anirkko@insel.ch>.
47300
47301 2007-04-13  Bruno Haible  <bruno@clisp.org>
47302
47303         * lib/tls.c (glthread_tls_get): Fix return type.
47304         Patch by Arto C. Nirkko <anirkko@insel.ch>.
47305
47306 2007-04-12  Eric Blake  <ebb9@byu.net>
47307
47308         * modules/gettime (Depends-on): Remove gettime.
47309         Reported by Dmitry V. Levin.
47310
47311 2007-04-12  Bruno Haible  <bruno@clisp.org>
47312
47313         * modules/fflush (Include): Mention <stdio.h>.
47314         * modules/strtoimax (Include): Mention <inttypes.h>.
47315         * modules/strtoumax (Include): Likewise.
47316
47317 2007-04-12  Eric Blake  <ebb9@byu.net>
47318
47319         * .cvsignore: New file.
47320         * .gitignore: Likewise.
47321
47322 2007-04-12  Bruno Haible  <bruno@clisp.org>
47323
47324         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
47325         not before, since $(LDADD) often contains libgnu.a.
47326         * modules/striconv-tests (test_striconv_LDADD): Likewise.
47327         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
47328         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
47329         Needed on Cygwin.
47330
47331 2007-04-12  Eric Blake  <ebb9@byu.net>
47332
47333         Work around glibc's failure to flush stdin on fclose.
47334         * lib/closein.c (close_stdin): Flush stdin before closing.
47335
47336         Work around glibc's failure to reset seekable stdin on exit.
47337         * modules/closein: New module.
47338         * lib/closein.c: New file.
47339         * lib/closein.h: Likewise.
47340         * m4/closein.m4: Likewise.
47341         * MODULES.html.sh (File stream based Input/Output): Document it.
47342
47343 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47344
47345         * gnulib-tool: Rename generated 'autobuild' script to
47346         'do-autobuild' in --create-megatestdir output.
47347
47348         * doc/gnulib.texi (Build robot for gnulib): Fix.
47349
47350 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47351
47352         * modules/sysexits (Depends-on): Add absolute-header.
47353
47354 2007-04-12  Eric Blake  <ebb9@byu.net>
47355
47356         No need to preserve errno on success.
47357         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
47358         Reported by Bruno Haible.
47359
47360 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47361
47362         * MODULES.html.sh (Support for maintaining and releasing
47363         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
47364
47365 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47366
47367         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
47368
47369 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47370
47371         * modules/autobuild: New module.
47372
47373         * m4/autobuild.m4: New file.
47374
47375 2007-04-11  Bruno Haible  <bruno@clisp.org>
47376
47377         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
47378         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
47379         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
47380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
47381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47382         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47383         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47385         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47386         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47387         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
47388         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47389         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
47391         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47392         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47393         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
47394         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47395         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
47397         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47398         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47399         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
47400         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47401         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47402         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
47403         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47404         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47405         Reported by Eric Blake.
47406
47407 2007-04-11  Bruno Haible  <bruno@clisp.org>
47408
47409         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
47410
47411 2007-04-10  Bruno Haible  <bruno@clisp.org>
47412
47413         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
47414         for NaN and Infinity. Needed on FreeBSD 6.1.
47415         * tests/test-vasnprintf-posix.c (test_function): Undo last change
47416         regarding results for "%010a" of Infinity and NaN.
47417         * tests/test-vasprintf-posix.c (test_function): Likewise.
47418         * tests/test-snprintf-posix.h (test_function): Likewise.
47419         * tests/test-sprintf-posix.h (test_function): Likewise.
47420         * tests/test-fprintf-posix.h (test_function): Likewise.
47421         * tests/test-printf-posix.h (test_function): Likewise.
47422         * tests/test-fprintf-posix.out: Likewise.
47423
47424 2007-04-10  Bruno Haible  <bruno@clisp.org>
47425
47426         * modules/locale-tests: New file.
47427         * tests/test-locale.c: New file.
47428
47429         * modules/locale: New file.
47430         * lib/locale_.h: New file.
47431         * m4/locale_h.m4: New file.
47432
47433 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
47434             Bruno Haible  <bruno@clisp.org>
47435
47436         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
47437         be determined, test for availability of the copysignf, copysign,
47438         copysignl functions.
47439         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
47440         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
47441         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
47442
47443 2007-04-09  Eric Blake  <ebb9@byu.net>
47444
47445         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
47446         * modules/stdio (Makefile.am): Support fflush.
47447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47448         * modules/fflush: New file.
47449         * lib/fflush.c: Likewise.
47450         * m4/fflush.m4: Likewise.
47451         * modules/fflush-tests: New test.
47452         * tests/test-fflush.c: Likewise.
47453         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
47454
47455 2007-04-06  Bruno Haible  <bruno@clisp.org>
47456
47457         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
47458         (VASNPRINTF): Use signbit for faster determination whether to print a
47459         minus sign.
47460         * modules/vasnprintf (Files): Remove lib/float+.h.
47461         * modules/fprintf-posix (Depends-on): Add signbit.
47462         * modules/snprintf-posix (Depends-on): Likewise.
47463         * modules/sprintf-posix (Depends-on): Likewise.
47464         * modules/vasnprintf-posix (Depends-on): Likewise.
47465         * modules/vasprintf-posix (Depends-on): Likewise.
47466         * modules/vfprintf-posix (Depends-on): Likewise.
47467         * modules/vsnprintf-posix (Depends-on): Likewise.
47468         * modules/vsprintf-posix (Depends-on): Likewise.
47469
47470 2007-04-06  Bruno Haible  <bruno@clisp.org>
47471
47472         * tests/test-frexp.c (main): Test also the sign bit of zero results.
47473         * tests/test-frexpl.c (main): Likewise.
47474         * tests/test-ldexpl.c (main): Likewise.
47475         * modules/frexp-tests (Depends-on): Add signbit.
47476         * modules/frexpl-tests (Depdends-on): Likewise.
47477         * modules/ldexpl-tests (Depdends-on): Likewise.
47478
47479 2007-04-06  Bruno Haible  <bruno@clisp.org>
47480
47481         * modules/signbit-tests: New file.
47482         * tests/test-signbit.c: New file.
47483
47484         * modules/signbit: New file.
47485         * lib/signbitf.c: New file.
47486         * lib/signbitd.c: New file.
47487         * lib/signbitl.c: New file.
47488         * m4/signbit.m4: New file.
47489         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
47490         (signbit): New macro.
47491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
47492         REPLACE_SIGNBIT.
47493         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
47494         REPLACE_FREXPL into math.h.
47495
47496 2007-04-06  Bruno Haible  <bruno@clisp.org>
47497
47498         * modules/isnanf-nolibm-tests: New file.
47499         * tests/test-isnanf.c: New file.
47500
47501         * modules/isnanf-nolibm: New file.
47502         * lib/isnanf.h: New file.
47503         * lib/isnanf.c: New file.
47504         * lib/isnan.c: Consider the USE_FLOAT macro.
47505         * m4/isnanf.m4: New file.
47506
47507 2007-04-06  Bruno Haible  <bruno@clisp.org>
47508
47509         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
47510         (Link): New section.
47511
47512         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
47513
47514 2007-04-06  Bruno Haible  <bruno@clisp.org>
47515
47516         Assume the 'long double' type.
47517         * m4/longdouble.m4: Remove file.
47518         * config/srclist.txt: Don't mention longdouble.m4.
47519         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
47520         * lib/float+.h: Likewise.
47521         * lib/frexp.c: Likewise.
47522         * lib/printf-args.h: Likewise.
47523         * lib/printf-args.c: Likewise.
47524         * lib/printf-frexp.c: Likewise.
47525         * lib/printf-parse.c: Likewise.
47526         * lib/vasnprintf.c: Likewise.
47527         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
47528         * m4/intl.m4: Likewise.
47529         * m4/isnanl.m4: Likewise.
47530         * m4/printf.m4: Likewise.
47531         * m4/printf-frexpl.m4: Likewise.
47532         * m4/vasnprintf.m4: Likewise.
47533         * modules/allocsa (Files): Remove m4/longdouble.m4.
47534         * modules/gettext (Files): Likewise.
47535         * modules/relocatable-prog-wrapper (Files): Likewise.
47536         * modules/vasnprintf (Files): Likewise.
47537         * modules/isnanl (Files): Likewise.
47538         (Include): Simplify.
47539         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
47540         (Include): Simplify.
47541         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
47542         (Include): Simplify.
47543         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
47544         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47545         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
47546         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47547         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47548         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47549         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
47550         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47551         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47552         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47553         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
47554         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47555         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
47556         * tests/test-isnanl.c: Likewise.
47557         * tests/test-snprintf-posix.h: Likewise.
47558         * tests/test-sprintf-posix.h: Likewise.
47559         * tests/test-vasnprintf-posix.c: Likewise.
47560         * tests/test-vasnprintf-posix2.c: Likewise.
47561         * tests/test-vasprintf-posix.c: Likewise.
47562
47563 2007-04-06  Bruno Haible  <bruno@clisp.org>
47564
47565         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
47566         * lib/math_.h [__DECC]: Include the overridden include file through
47567         #include_next, outside the double-inclusion guard.
47568         * lib/stdio_.h [__DECC]: Likewise.
47569         * lib/stdlib_.h [__DECC]: Likewise.
47570         * lib/string_.h [__DECC]: Likewise.
47571         * lib/time_.h [__DECC]: Likewise.
47572         * lib/wchar_.h [__DECC]: Likewise.
47573         * lib/wctype_.h [__DECC]: Likewise.
47574         * lib/inttypes_.h [__DECC]: Likewise.
47575         Reported by Albert Chin <china@thewrittenword.com> in
47576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
47577
47578 2007-04-04  Eric Blake  <ebb9@byu.net>
47579
47580         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
47581         1.5.x.
47582
47583 2007-04-04  Bruno Haible  <bruno@clisp.org>
47584
47585         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
47586         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
47587
47588 2007-04-04  Bruno Haible  <bruno@clisp.org>
47589
47590         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
47591         results for "%010a" of Infinity and NaN.
47592         * tests/test-vasprintf-posix.c (test_function): Likewise.
47593         * tests/test-snprintf-posix.h (test_function): Likewise.
47594         * tests/test-sprintf-posix.h (test_function): Likewise.
47595         * tests/test-fprintf-posix.h (test_function): Remove these tests.
47596         * tests/test-printf-posix.h (test_function): Likewise.
47597         * tests/test-fprintf-posix.out: Update.
47598         Needed for FreeBSD 6.1.
47599
47600 2007-04-04  Bruno Haible  <bruno@clisp.org>
47601
47602         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
47603         directly used by the gnulib modules nor by gnulib-tool.
47604
47605 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
47606
47607         * DEPENDENCIES: Give overall description of version dependency
47608         desirability.  Use more-typical names for apps.
47609         Add shell, coreutils, diffutils, grep, tar, gzip.
47610
47611 2007-04-04  Simon Josefsson  <simon@josefsson.org>
47612
47613         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
47614
47615 2007-04-04  Karl Berry  <karl@gnu.org>
47616
47617         * MODULES.html.sh (func_module): missing '.
47618
47619 2007-04-03  Bruno Haible  <bruno@clisp.org>
47620
47621         * modules/argmatch-tests (Makefile.am): New variable
47622         test_argmatch_LDADD.
47623         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
47624         * modules/array-list-tests (Makefile.am): New variable
47625         test_array_list_LDADD.
47626         * modules/array-oset-tests (Makefile.am): New variable
47627         test_array_oset_LDADD.
47628         * modules/avltree-list-tests (Makefile.am): New variable
47629         test_avltree_list_LDADD.
47630         * modules/avltree-oset-tests (Makefile.am): New variable
47631         test_avltree_oset_LDADD.
47632         * modules/avltreehash-list-tests (Makefile.am): New variable
47633         test_avltreehash_list_LDADD.
47634         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
47635         test_canonicalize_lgpl_LDADD.
47636         * modules/carray-list-tests (Makefile.am): New variable
47637         test_carray_list_LDADD.
47638         * modules/dirname-tests (Makefile.am): New variable
47639         test_dirname_LDADD.
47640         * modules/linked-list-tests (Makefile.am): New variable
47641         test_linked_list_LDADD.
47642         * modules/linkedhash-list-tests (Makefile.am): New variable
47643         test_linkedhash_list_LDADD.
47644         * modules/rbtree-list-tests (Makefile.am): New variable
47645         test_rbtree_list_LDADD.
47646         * modules/rbtree-oset-tests (Makefile.am): New variable
47647         test_rbtree_oset_LDADD.
47648         * modules/rbtreehash-list-tests (Makefile.am): New variable
47649         test_rbtreehash_list_LDADD.
47650         * modules/xvasprintf-tests (Makefile.am): New variable
47651         test_xvasprintf_LDADD.
47652         Reported by Eric Blake.
47653
47654 2007-04-03  Eric Blake  <ebb9@byu.net>
47655
47656         * DEPENDENCIES: Weaken m4 requirements.
47657
47658 2007-04-03  Bruno Haible  <bruno@clisp.org>
47659
47660         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
47661         * modules/isnanl-tests (configure.ac): Likewise.
47662
47663 2007-04-03  Ben Pfaff  <blp@gnu.org>
47664
47665         * modules/iconv_open: Add $(srcdir)/ to source directory
47666         references in Makefile fragments that call gperf, to fix VPATH
47667         builds.
47668
47669 2007-04-03  Bruno Haible  <bruno@clisp.org>
47670
47671         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
47672         * lib/ldexpl.c: Undo last change.
47673
47674 2007-04-03  Bruno Haible  <bruno@clisp.org>
47675
47676         * modules/printf-frexpl (Depends-on): Undo last change.
47677         (Files): Add m4/ldexpl.m4.
47678
47679 2007-04-03  Bruno Haible  <bruno@clisp.org>
47680
47681         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
47682         * modules/isnanl (Link): New section.
47683
47684         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
47685         * modules/frexp (Link): New section.
47686
47687         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
47688         * modules/frexpl (Link): New section.
47689
47690         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
47691         * modules/ldexpl (Link): New section.
47692
47693 2007-04-03  Bruno Haible  <bruno@clisp.org>
47694
47695         * modules/TEMPLATE-EXTENDED: New file.
47696         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
47697
47698 2007-04-03  Bruno Haible  <bruno@clisp.org>
47699
47700         * DEPENDENCIES: New file.
47701         Suggested by Simon Josefsson.
47702
47703 2007-04-03  Bruno Haible  <bruno@clisp.org>
47704
47705         * doc/gnulib.texi: Escape @.
47706
47707 2007-04-03  James Youngman  <jay@gnu.org>
47708         and Paul Eggert  <eggert@cs.ucla.edu>
47709
47710         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
47711         birthtime on all systems that have birthtime, not just those which
47712         use st_birthtimensec rather than st_birthtim.  Putting zero in
47713         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
47714         that the birth time is not available for files on an NFS mount.
47715
47716 2007-04-03  Simon Josefsson  <simon@josefsson.org>
47717
47718         * modules/memxor: Move back from crypto/, suggested by Bruno.
47719         * modules/crypto/hmac-sha1: Fix memxor dependency.
47720
47721         * modules/crypto/gc: Moved from ../.
47722
47723 2007-04-02  Eric Blake  <ebb9@byu.net>
47724
47725         * lib/ldexpl.c (includes): Avoid libm.
47726
47727         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
47728
47729 2007-04-02  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
47732         on IRIX.
47733
47734 2007-04-02  Bruno Haible  <bruno@clisp.org>
47735
47736         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
47737         x86 or x86_64 platforms running MacOS X.
47738         Reported by Ryan Schmidt <@ryandesign.com>.
47739
47740 2007-04-02  Bruno Haible  <bruno@clisp.org>
47741
47742         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
47743         i386.
47744
47745 2007-04-01  Simon Josefsson  <simon@josefsson.org>
47746
47747         * modules/crypto/arcfour: Moved from ../.
47748         * modules/crypto/arcfour-tests: Moved from ../.
47749         * modules/crypto/arctwo: Moved from ../.
47750         * modules/crypto/arctwo-tests: Moved from ../.
47751         * modules/crypto/des: Moved from ../.
47752         * modules/crypto/des-tests: Moved from ../.
47753         * modules/crypto/gc-arcfour: Moved from ../.
47754         * modules/crypto/gc-arcfour-tests: Moved from ../.
47755         * modules/crypto/gc-arctwo: Moved from ../.
47756         * modules/crypto/gc-arctwo-tests: Moved from ../.
47757         * modules/crypto/gc-des: Moved from ../.
47758         * modules/crypto/gc-des-tests: Moved from ../.
47759         * modules/crypto/gc-hmac-md5: Moved from ../.
47760         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
47761         * modules/crypto/gc-hmac-sha1: Moved from ../.
47762         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
47763         * modules/crypto/gc-md2: Moved from ../.
47764         * modules/crypto/gc-md2-tests: Moved from ../.
47765         * modules/crypto/gc-md4: Moved from ../.
47766         * modules/crypto/gc-md4-tests: Moved from ../.
47767         * modules/crypto/gc-md5: Moved from ../.
47768         * modules/crypto/gc-md5-tests: Moved from ../.
47769         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
47770         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
47771         * modules/crypto/gc-random: Moved from ../.
47772         * modules/crypto/gc-rijndael: Moved from ../.
47773         * modules/crypto/gc-rijndael-tests: Moved from ../.
47774         * modules/crypto/gc-sha1: Moved from ../.
47775         * modules/crypto/gc-sha1-tests: Moved from ../.
47776         * modules/crypto/gc-tests: Moved from ../.
47777         * modules/crypto/hmac-md5: Moved from ../.
47778         * modules/crypto/hmac-md5-tests: Moved from ../.
47779         * modules/crypto/hmac-sha1: Moved from ../.
47780         * modules/crypto/hmac-sha1-tests: Moved from ../.
47781         * modules/crypto/md2: Moved from ../.
47782         * modules/crypto/md2-tests: Moved from ../.
47783         * modules/crypto/md4: Moved from ../.
47784         * modules/crypto/md4-tests: Moved from ../.
47785         * modules/crypto/md5: Moved from ../.
47786         * modules/crypto/md5-tests: Moved from ../.
47787         * modules/crypto/memxor: Moved from ../.
47788         * modules/crypto/rijndael: Moved from ../.
47789         * modules/crypto/rijndael-tests: Moved from ../.
47790         * modules/crypto/sha1: Moved from ../.
47791
47792 2007-03-30  James Youngman  <jay@gnu.org>
47793
47794         * tests/test-stat-time.c (prepare_test): use chmod() rather than
47795         rename() to change the ctime of a file (because ctime is unaffected
47796         by rename on jfs2 on AIX 5.1).
47797         (main): Start by doing cleanup, in case a previous run failed leaving
47798         test files behind.
47799
47800 2007-03-31  Bruno Haible  <bruno@clisp.org>
47801
47802         Support old proprietary implementations of iconv.
47803         * modules/iconv_open: New file.
47804         * lib/iconv_.h: New file.
47805         * m4/iconv_h.m4: New file.
47806         * lib/iconv_open.c: New file.
47807         * lib/iconv_open-aix.gperf: New file.
47808         * lib/iconv_open-hpux.gperf: New file.
47809         * lib/iconv_open-irix.gperf: New file.
47810         * lib/iconv_open-osf.gperf: New file.
47811         * m4/iconv_open.m4: New file.
47812         * modules/linebreak (Depends-on): Add iconv_open.
47813         * modules/striconv (Depends-on): Likewise.
47814         * modules/striconveh (Depends-on): Likewise.
47815         * modules/unicodeio (Depends-on): Likewise.
47816         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
47817         (iconv_t)(-1).
47818         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
47819         conversion if cd is (iconv_t)(-1).
47820         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
47821         is not possible.
47822
47823 2007-03-31  Bruno Haible  <bruno@clisp.org>
47824
47825         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
47826         work on Solaris either. Protect also second use of "autodetect_jp".
47827
47828 2007-03-31  Bruno Haible  <bruno@clisp.org>
47829
47830         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
47831         the function is not present.
47832
47833 2007-03-31  Bruno Haible  <bruno@clisp.org>
47834
47835         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
47836         the function is not present.
47837
47838 2007-03-31  Bruno Haible  <bruno@clisp.org>
47839
47840         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
47841         a bug in HP-UX iconv_open().
47842
47843 2007-03-31  Bruno Haible  <bruno@clisp.org>
47844
47845         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
47846         (Mathematics <math.h>): New section, add fpieee.
47847         (Input/output <stdio.h>): Add fseterr.
47848         (Mathematics <math.h>): New section, add printf-frexp.
47849         (Container data structures): Add sublist.
47850         (Core language properties): Add fpucw, inline.
47851         (Functions for greatest-width integer types <inttypes.h>): Add
47852         imaxabs, imaxdiv, inttypes.
47853         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
47854         isnanl-nolibm, ldexp.
47855         (Mathematics <math.h>): New section, add printf-frexpl.
47856         (Support for systems lacking POSIX:2001): Add fprintf-posix,
47857         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
47858         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
47859         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
47860         (Unicode string functions): Add unistr/u*-mbtoucr.
47861         (Java): Add javacomp-script, javaexec-script.
47862         (C#): Add csharpcomp-script, csharpexec-script.
47863         (Support for building libraries and executables): Add havelib,
47864         relocatable-*.
47865         (Support for maintaining and releasing projects): Renamed from
47866         'Support for maintaining and release projects'. Add announce-gen.
47867
47868 2007-03-31  Bruno Haible  <bruno@clisp.org>
47869
47870         * README: Talk primarily about git.
47871         (git and CVS): Renamed from CVS.
47872         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
47873         gnulib is available through git.
47874         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
47875
47876 2007-03-30  Bruno Haible  <bruno@clisp.org>
47877
47878         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
47879         * lib/poll_.h: Likewise.
47880         * lib/stat_.h: Likewise.
47881         * lib/sys_time_.h: Likewise.
47882         * lib/sysexit_.h: Likewise.
47883         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
47884         * lib/stdbool_.h: Likewise.
47885         * lib/byteswap_.h: Add double-inclusion guard.
47886
47887 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
47888
47889         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
47890
47891 2007-03-30  Karl Berry  <karl@gnu.org>
47892
47893         * config/srclist-update: double space after USA in the license
47894         substitution, since that's how it's usually (?) written.
47895
47896 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47897
47898         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
47899         reported by Bruno Haible.
47900
47901 2007-03-29  Bruno Haible  <bruno@clisp.org>
47902
47903         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
47904         a bug in AIX iconv().
47905
47906 2007-03-29  Bruno Haible  <bruno@clisp.org>
47907
47908         * modules/ldexpl-tests: New file.
47909         * tests/test-ldexpl.c: New file.
47910
47911 2007-03-29  Bruno Haible  <bruno@clisp.org>
47912
47913         * lib/ldexpl.c: Include fpucw.h.
47914         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
47915         multiplication.
47916         * modules/ldexpl (Depends-on): Add fpucw.
47917
47918 2007-03-29  Bruno Haible  <bruno@clisp.org>
47919
47920         * modules/ldexpl: New file.
47921         * m4/ldexpl.m4: New file.
47922         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
47923         set.
47924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
47925         REPLACE_LDEXPL.
47926         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
47927         REPLACE_LDEXPL.
47928         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47929         gl_FUNC_LDEXPL_WORKS.
47930         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
47931         * modules/mathl (Files): Remove lib/ldexpl.c.
47932         (Depends-on): Add ldexpl.
47933
47934 2007-03-29  Bruno Haible  <bruno@clisp.org>
47935
47936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
47937
47938 2007-03-29  Bruno Haible  <bruno@clisp.org>
47939
47940         * tests/test-striconveh.c (main): Don't assume that a direct conversion
47941         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
47942         and possibly also HP-UX.
47943         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
47944         work on AIX, IRIX, HP-UX, OSF/1.
47945         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47946         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47947         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47948         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47949         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
47950         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47951
47952 2007-03-29  Bruno Haible  <bruno@clisp.org>
47953
47954         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
47955
47956 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
47957
47958         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
47959         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
47960
47961 2007-03-29  Eric Blake  <ebb9@byu.net>
47962
47963         * lib/acl-internal.h: Remove redundant include.
47964         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
47965         Cygwin when a file is locked.
47966
47967 2007-03-29  Bruno Haible  <bruno@clisp.org>
47968
47969         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
47970         file.
47971         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
47972
47973 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
47974
47975         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
47976         try to remove a parent directory if the child couldn't be removed
47977         (except for the first rmdir, which could fail because the child
47978         doesn't exist).  Problem reported by Jeff Blaine in
47979         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
47980
47981 2007-03-28  Bruno Haible  <bruno@clisp.org>
47982
47983         * lib/striconveh.c (utf8conv_carefully): New function.
47984         (mem_cd_iconveh_internal): Invoke it.
47985
47986 2007-03-28  Bruno Haible  <bruno@clisp.org>
47987
47988         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
47989         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
47990         input.
47991         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
47992         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
47993         unistr/u8-uctomb.
47994
47995 2007-03-28  Bruno Haible  <bruno@clisp.org>
47996
47997         * modules/unistr/u8-mbtoucr: New file.
47998         * lib/unistr/u8-mbtoucr.c: New file.
47999         * modules/unistr/u16-mbtoucr: New file.
48000         * lib/unistr/u16-mbtoucr.c: New file.
48001         * modules/unistr/u16-mbtoucr: New file.
48002         * lib/unistr/u16-mbtoucr.c: New file.
48003         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
48004
48005 2007-03-27  Simon Josefsson  <simon@josefsson.org>
48006             Bruno Haible  <bruno@clisp.org>
48007
48008         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
48009         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
48010         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
48011
48012         * m4/stdio_h.m4: Add stubs for vasprintf too.
48013
48014         * modules/stdio: Support vasprintf in sed command.
48015
48016         * modules/vasprintf: Depend on stdio for prototypes.  Remove
48017         vasprintf.h.  Add stdio module indicator.
48018
48019         * lib/stdio_.h: Declare asprintf and vasprintf, based on
48020         vasprintf.h.
48021
48022         * lib/vasprintf.h: File removed.
48023
48024         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
48025         * lib/vasprintf.c: Ditto.
48026         * lib/xvasprintf.c: Ditto.
48027         * tests/test-vasprintf-posix.c: Ditto.
48028         * tests/test-vasprintf.c: Ditto.
48029
48030 2007-03-27  Bruno Haible  <bruno@clisp.org>
48031
48032         Make vasnprintf multithread-safe.
48033         * lib/vasnprintf.c (decimal_point_char): New function.
48034         (VASNPRINTF): Use it.
48035         Suggested by Simon Josefsson.
48036
48037 2007-03-27  Eric Blake  <ebb9@byu.net>
48038
48039         Support sub-second birthtime on cygwin.
48040         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
48041         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
48042         (get_stat_birthtime): Also work with st_birthtim.
48043
48044 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
48045
48046         * lib/stat-time.h (USE_BIRTHTIME): Remove.
48047         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
48048         (get_stat_birthtime_ns): Do not try to use "spare" fields.
48049         (get_stat_birthtime_ns): Simplify compile-time tests.
48050         (get_stat_birthtime): Change the API to look like
48051         get_stat_mtime etc., except return a negative tv_nsec on error.
48052         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
48053         Don't check for "spare" fields.
48054         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
48055         or for struct stat.st_birthtime, as these tests aren't used.
48056         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
48057
48058 2007-03-27  Bruno Haible  <bruno@clisp.org>
48059
48060         * lib/stat-time.h: Include <sys/stat.h>.
48061
48062 2007-03-27  James Youngman  <jay@gnu.org>
48063
48064         * lib/stat-time.h (get_stat_birthtime): New function for
48065           retrieving st_birthtime as provided by UFS2 (hence *BSD).
48066         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
48067           and its variants.
48068         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
48069         * modules/stat-time-test: New file.
48070         * tests/test-stat-time.c: New test, devised by Bruno Haible.
48071
48072 2007-03-26  Bruno Haible  <bruno@clisp.org>
48073
48074         Better support of signalling NaNs.
48075         * lib/atanl.c: Include isnanl.h.
48076         (atanl): Perform test for NaN at the beginning of the function and
48077         through a call to isnanl.
48078         * lib/cosl.c: Include isnanl.h.
48079         (cosl): Perform test for NaN at the beginning of the function and
48080         through a call to isnanl.
48081         * lib/ldexpl.c: Include isnanl.h.
48082         (ldexpl): Perform test for NaN through a call to isnanl.
48083         * lib/logl.c: Include isnanl.h.
48084         (logl): Perform test for NaN at the beginning of the function and
48085         through a call to isnanl.
48086         * lib/sinl.c: Include isnanl.h.
48087         (sinl): Perform test for NaN at the beginning of the function and
48088         through a call to isnanl.
48089         * lib/sqrtl.c: Include isnanl.h.
48090         (sqrtl): Perform test for NaN at the beginning of the function and
48091         through a call to isnanl.
48092         * lib/tanl.c: Include isnanl.h.
48093         (tanl): Perform test for NaN at the beginning of the function and
48094         through a call to isnanl.
48095         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
48096         * modules/mathl (Depends-on): Add isnanl.
48097
48098 2007-03-26  Eric Blake  <ebb9@byu.net>
48099
48100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
48101         regression in logic sense of previous patch.
48102
48103 2007-03-26  Bruno Haible  <bruno@clisp.org>
48104
48105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
48106         unportable shell command "if ! ...".
48107         Reported by Ralf Wildenhues.
48108
48109 2007-03-25  Bruno Haible  <bruno@clisp.org>
48110
48111         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
48112         <sysexits.h> file, and only add EX_CONFIG.
48113         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
48114         absolute file name and whether it is sufficient. Substitute also
48115         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
48116         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
48117         ABSOLUTE_SYSEXITS_H into sysexits.h.
48118
48119 2007-03-25  Bruno Haible  <bruno@clisp.org>
48120
48121         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
48122         hints is NULL.
48123
48124 2007-03-25  Bruno Haible  <bruno@clisp.org>
48125
48126         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
48127         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
48128
48129 2007-03-25  Bruno Haible  <bruno@clisp.org>
48130
48131         * lib/vasnprintf.c: Include langinfo.h.
48132         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
48133         multithread-safe.
48134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
48135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
48136         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48137         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48138         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48139         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48140         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
48142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48143         Reported by Simon Josefsson.
48144
48145 2007-03-25  Bruno Haible  <bruno@clisp.org>
48146
48147         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
48148         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
48149         * modules/vasnprintf (Depends-on): Add stdint.
48150
48151 2007-03-25  Bruno Haible  <bruno@clisp.org>
48152
48153         * modules/fpieee: New file.
48154         * m4/fpieee.m4: New file.
48155         * modules/isnan-nolibm (Depends-on): Add fpieee.
48156         * modules/isnanl-nolibm (Depends-on): Add fpieee.
48157         * modules/isnanl (Depends-on): Add fpieee.
48158
48159 2007-03-25  Bruno Haible  <bruno@clisp.org>
48160
48161         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
48162
48163 2007-03-25  Bruno Haible  <bruno@clisp.org>
48164
48165         Avoid test failures on IRIX 6.5.
48166         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
48167         (main): Use it.
48168         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
48169         macros.
48170         (main): Use them.
48171
48172 2007-03-25  Bruno Haible  <bruno@clisp.org>
48173
48174         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
48175         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
48176         exists but doesn't work.
48177         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
48178         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
48179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
48180         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
48181
48182 2007-03-25  Bruno Haible  <bruno@clisp.org>
48183
48184         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
48185         returns inf. Needed on IRIX 6.5.
48186
48187 2007-03-25  Bruno Haible  <bruno@clisp.org>
48188
48189         * tests/test-frexpl.c: Include isnanl-nolibm.h.
48190         (main): Use isnanl instead of x != x idiom.
48191         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
48192
48193         * tests/test-frexp.c: Include isnan.h.
48194         (main): Use isnan instead of x != x idiom.
48195         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
48196
48197 2007-03-25  Bruno Haible  <bruno@clisp.org>
48198
48199         * tests/test-frexp.c (NaN): New function/macro.
48200         (main): Use it instead of 0.0 / 0.0.
48201         * tests/test-isnan.c (NaN): New function/macro.
48202         (main): Use it instead of 0.0 / 0.0.
48203         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
48204         (test_function): Use it instead of 0.0 / 0.0.
48205         * tests/test-vasprintf-posix.c (NaN): New function/macro.
48206         (test_function): Use it instead of 0.0 / 0.0.
48207         * tests/test-snprintf-posix.h (NaN): New function/macro.
48208         (test_function): Use it instead of 0.0 / 0.0.
48209         * tests/test-sprintf-posix.h (NaN): New function/macro.
48210         (test_function): Use it instead of 0.0 / 0.0.
48211         * tests/test-fprintf-posix.h (NaN): New function/macro.
48212         (test_function): Use it instead of 0.0 / 0.0.
48213         * tests/test-printf-posix.h (NaN): New function/macro.
48214         (test_function): Use it instead of 0.0 / 0.0.
48215
48216         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
48217
48218 2007-03-25  Bruno Haible  <bruno@clisp.org>
48219
48220         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
48221
48222 2007-03-25  Bruno Haible  <bruno@clisp.org>
48223
48224         * lib/regexec.c (merge_state_with_log): Make static.
48225
48226 2007-03-25  Bruno Haible  <bruno@clisp.org>
48227
48228         * lib/trigl.c (kernel_rem_pio2): Make static.
48229
48230 2007-03-25  Bruno Haible  <bruno@clisp.org>
48231
48232         * lib/sincosl.c (sincosl_table): Make static.
48233
48234 2007-03-25  Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
48237         if the compiler does not support C99.
48238
48239 2007-03-25  Bruno Haible  <bruno@clisp.org>
48240
48241         * modules/time (Makefile.am): Ensure all rule action lines start with a
48242         tab.
48243
48244 2007-03-24  Bruno Haible  <bruno@clisp.org>
48245
48246         * modules/tsearch-tests: New file.
48247         * tests/test-tsearch.sh: New file.
48248         * tests/test-tsearch.c: New file, mostly copied from glibc.
48249
48250         * modules/search-tests: New file.
48251         * tests/test-search.c: New file.
48252
48253         * modules/search: New file.
48254         * lib/search_.h: New file, incorporating lib/tsearch.h.
48255         * m4/search_h.m4: New file.
48256         * lib/tsearch.h: Remove file.
48257         * lib/tsearch.c: Include search.h instead of tsearch.h.
48258         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
48259         HAVE_TSEARCH.
48260         * modules/tsearch (Files): Remove lib/tsearch.h.
48261         (Depends-on): Add search.
48262         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
48263         (Include): Change tsearch.h into search.h.
48264
48265 2007-03-24  Bruno Haible  <bruno@clisp.org>
48266
48267         * modules/fpucw: New file.
48268         * lib/fpucw.h: New file.
48269         * lib/frexp.c: Include fpucw.h.
48270         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48271         (FUNC): Use them.
48272         * lib/printf-frexp.c: Include fpucw.h.
48273         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48274         (FUNC): Use them.
48275         * lib/vasnprintf.c: Include fpucw.h.
48276         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
48277         'long double' calculations.
48278         * tests/test-frexpl.c: Include fpucw.h.
48279         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48280         * tests/test-printf-frexpl.c: Include fpucw.h.
48281         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48282         * modules/frexpl (Depends-on): Add fpucw.
48283         * modules/printf-frexpl (Depends-on): Likewise.
48284         * modules/fprintf-posix (Depends-on): Likewise.
48285         * modules/snprintf-posix (Depends-on): Likewise.
48286         * modules/sprintf-posix (Depends-on): Likewise.
48287         * modules/vasnprintf-posix (Depends-on): Likewise.
48288         * modules/vasprintf-posix (Depends-on): Likewise.
48289         * modules/vfprintf-posix (Depends-on): Likewise.
48290         * modules/vsnprintf-posix (Depends-on): Likewise.
48291         * modules/vsprintf-posix (Depends-on): Likewise.
48292         * modules/frexpl-tests (Depends-on): Likewise.
48293         * modules/printf-frexpl-tests (Depends-on): Likewise.
48294
48295 2007-03-24  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/float+.h: New file.
48298         * lib/isnan.c: Include float+.h.
48299         (SIZE): New macro.
48300         (FUNC): Compare only SIZE bytes of the value.
48301         * lib/vasnprintf.c: Include float+.h.
48302         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
48303         SIZEOF_LDBL or SIZEOF_DBL bytes.
48304         * modules/isnan-nolibm (Files): Add lib/float+.h.
48305         * modules/isnanl-nolibm (Files): Add lib/float+.h.
48306         * modules/isnanl (Files): Add lib/float+.h.
48307         * modules/vasnprintf (Files): Add lib/float+.h.
48308
48309 2007-03-24  Bruno Haible  <bruno@clisp.org>
48310
48311         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
48312         include isnanl-nolibm.h.
48313
48314 2007-03-24  Bruno Haible  <bruno@clisp.org>
48315
48316         * tests/test-read-file.c (main): Don't produce spurious output for
48317         expected situations. Make the test fail if it encountered unexpected
48318         results.
48319
48320 2007-03-24  Bruno Haible  <bruno@clisp.org>
48321
48322         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
48323         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
48324
48325 2007-03-24  Bruno Haible  <bruno@clisp.org>
48326
48327         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
48328
48329 2007-03-24  Bruno Haible  <bruno@clisp.org>
48330
48331         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
48332         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
48333
48334         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
48335         * modules/utf8-ucs4: Turn into a symbolic link to module
48336         unistr/u8-mbtouc.
48337
48338         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
48339         utf8-ucs4-unsafe.
48340         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
48341         unistr/u8-mbtouc-unsafe.
48342
48343         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
48344         * modules/utf16-ucs4: Turn into a symbolic link to module
48345         unistr/u16-mbtouc.
48346
48347         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
48348         utf16-ucs4-unsafe.
48349         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
48350         unistr/u16-mbtouc-unsafe.
48351
48352         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
48353         * modules/ucs4-utf8: Turn into a symbolic link to module
48354         unistr/u8-ubtomb.
48355
48356         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
48357         * modules/ucs4-utf16: Turn into a symbolic link to module
48358         unistr/u16-ubtomb.
48359
48360 2007-03-24  Bruno Haible  <bruno@clisp.org>
48361
48362         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
48363         Enable the function only if HAVE_INLINE.
48364         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
48365         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48366         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
48367         Enable the function only if HAVE_INLINE.
48368         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
48369         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48370         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
48371         Enable the function only if HAVE_INLINE.
48372         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
48373         Enable the function only if HAVE_INLINE.
48374         * modules/utf8-ucs4: Update.
48375         * modules/utf8-ucs4-unsafe: Update.
48376         * modules/utf16-ucs4: Update.
48377         * modules/utf16-ucs4-unsafe: Update.
48378         * modules/ucs4-utf8: Update.
48379         * modules/ucs4-utf16: Update.
48380
48381 2007-03-24  Bruno Haible  <bruno@clisp.org>
48382
48383         * lib/utf8-ucs4.h: Remove file.
48384         * lib/utf8-ucs4-unsafe.h: Remove file.
48385         * lib/utf16-ucs4.h: Remove file.
48386         * lib/utf16-ucs4-unsafe.h: Remove file.
48387         * lib/ucs4-utf8.h: Remove file.
48388         * lib/ucs4-utf16.h: Remove file.
48389         * lib/unistr.h: Include their previous contents.
48390         * m4/utf-ucs4.m4: Remove file.
48391         * m4/ucs4-utf.m4: Remove file.
48392         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
48393         (Depends-on): Add unistr/base.
48394         (configure.ac): Remove gl_UTF_UCS4.
48395         (Makefile.am): Update.
48396         (Include): Change to unistr.h.
48397         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
48398         (Depends-on): Add unistr/base.
48399         (configure.ac): Remove gl_UTF_UCS4.
48400         (Makefile.am): Update.
48401         (Include): Change to unistr.h.
48402         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
48403         (Depends-on): Add unistr/base.
48404         (configure.ac): Remove gl_UTF_UCS4.
48405         (Makefile.am): Update.
48406         (Include): Change to unistr.h.
48407         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
48408         (Depends-on): Add unistr/base.
48409         (configure.ac): Remove gl_UTF_UCS4.
48410         (Makefile.am): Update.
48411         (Include): Change to unistr.h.
48412         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
48413         (Depends-on): Add unistr/base.
48414         (configure.ac): Remove gl_UCS4_UTF.
48415         (Makefile.am): Update.
48416         (Include): Change to unistr.h.
48417         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
48418         (Depends-on): Add unistr/base.
48419         (configure.ac): Remove gl_UCS4_UTF.
48420         (Makefile.am): Update.
48421         (Include): Change to unistr.h.
48422         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
48423         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
48424         utf8-ucs4-unsafe.h.
48425         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
48426         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
48427         utf16-ucs4-unsafe.h.
48428         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
48429         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
48430         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
48431         * lib/unistr/u8-strchr.c: Likewise.
48432         * lib/unistr/u8-strrchr.c: Likewise.
48433         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
48434         * lib/unistr/u16-strchr.c: Likewise.
48435         * lib/unistr/u16-strrchr.c: Likewise.
48436         * lib/striconveh.c: Update.
48437         * lib/linebreak.c: Update.
48438
48439 2007-03-24  Bruno Haible  <bruno@clisp.org>
48440
48441         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
48442         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
48443
48444 2007-03-22  Bruno Haible  <bruno@clisp.org>
48445
48446         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
48447
48448 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
48449
48450         * MODULES.html.sh (File system functions): New module write-any-file.
48451         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
48452         * m4/write-any-file.m4: New files.
48453
48454 2007-03-23  Eric Blake  <ebb9@byu.net>
48455
48456         * gnulib-tool: Rearrange space-tab sequences, since some editors
48457         like to eat them.
48458
48459 2007-03-23  Eric Blake  <ebb9@byu.net>
48460
48461         * lib/version-etc.c (version_etc_va): Update license wording to
48462         be more concise.  Recommended by Richard Stallman.
48463
48464 2007-03-22  Bruno Haible  <bruno@clisp.org>
48465
48466         * lib/poll.c (MSG_PEEK): New fallback definition.
48467
48468 2007-03-22  Bruno Haible  <bruno@clisp.org>
48469
48470         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
48471         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
48472         (main): Update.
48473         Fixes a compilation error on BeOS.
48474
48475 2007-03-22  Bruno Haible  <bruno@clisp.org>
48476
48477         * modules/frexpl-tests: New file.
48478         * tests/test-frexpl.c: New file.
48479
48480         * modules/frexpl: New file.
48481         * m4/frexpl.m4: New file.
48482         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
48483         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
48484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
48485         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
48486         (Depends-on): Add frexpl. Remove isnanl-nolibm.
48487         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
48488
48489 2007-03-22  Bruno Haible  <bruno@clisp.org>
48490
48491         * lib/frexpl.c: Share code with lib/frexp.c.
48492         * modules/mathl (Files): Add lib/frexp.c.
48493         (Depends-on): Add isnanl-nolibm.
48494
48495 2007-03-22  Bruno Haible  <bruno@clisp.org>
48496
48497         * modules/printf-frexp (Files): Add m4/frexp.m4.
48498         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
48499         only if the found frexp function actually works.
48500
48501 2007-03-22  Bruno Haible  <bruno@clisp.org>
48502
48503         * lib/frexp.c: Remove older implementation that uses divisions.
48504
48505 2007-03-21  Bruno Haible  <bruno@clisp.org>
48506
48507         * modules/frexp-tests: New file.
48508         * tests/test-frexp.c: New file.
48509
48510         * modules/frexp: New file.
48511         * lib/frexp.c: New file.
48512         * m4/frexp.m4: New file.
48513         * lib/math_.h (frexp): New declaration.
48514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
48515         REPLACE_FREXP.
48516         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
48517
48518 2007-03-21  Bruno Haible  <bruno@clisp.org>
48519
48520         * modules/isnanl-tests: New file.
48521         * tests/test-isnanl.c: New file.
48522
48523         * modules/isnanl: New file.
48524         * lib/isnanl.h: New file.
48525         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
48526         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
48527         gl_FUNC_ISNANL_WORKS.
48528         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
48529         New macros.
48530
48531 2007-03-21  Bruno Haible  <bruno@clisp.org>
48532
48533         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
48534         lib/isnanl.h.
48535         (Include): Update.
48536         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
48537         * lib/vasnprintf.c: Update.
48538         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
48539         tests/test-isnanl.h, remove tests/test-isnanl.c.
48540         (Makefile.am): Update.
48541         * tests/test-isnanl-nolibm.c: New file.
48542         * tests/test-isnanl.h: New file.
48543         * tests/test-isnanl.c: Remove file.
48544
48545 2007-03-21  Jim Meyering  <jim@meyering.net>
48546
48547         When trying to open ".", treat ESTALE like EACCES.
48548         * lib/savewd.c (savewd_save): Resort to forking not just upon
48549         failure with EACCES, but also when errno is ESTALE.
48550
48551 2007-03-20  Bruno Haible  <bruno@clisp.org>
48552
48553         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
48554         Needed on AIX 5.1. Reported by Matthew Woehlke.
48555
48556 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48557
48558         Suggestions by Bruno Haible:
48559         * lib/acl-internal.h: Include "gettext.h" rather than rolling
48560         our own.
48561         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
48562         * modules/acl (Depends-on): Add gettext.
48563
48564 2007-03-19  Bruno Haible  <bruno@clisp.org>
48565
48566         * modules/iconvme: Remove file.
48567         * lib/iconvme.h: Remove file.
48568         * lib/iconvme.c: Remove file.
48569         * m4/iconvme.m4: Remove file.
48570
48571 2007-03-19  Bruno Haible  <bruno@clisp.org>
48572
48573         * doc/relocatable-maint.texi: Break long shell script line.
48574         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48575
48576 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48577
48578         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
48579         handle file_has_acl.
48580         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
48581         * lib/acl.c: Move header inclusions and related macro defns into
48582         lib/acl-internal.h.
48583         (S_ISLNK): Remove defn, since that's now done for us.
48584         (file_has_acl): Move to lib/file-has-acl.c.
48585         Call acl_trivial if available.  This is the crucial part of the fix.
48586         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
48587         shared within the library.  Rewrite a bit, partly to make it compatible
48588         with the GNU coding style.
48589         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
48590         Remove unnecessary double-quotes.
48591         Don't test for acl_to_text; the build will catch that.
48592         Replace acl_entries if it doesn't exist and it is needed.
48593         Check for -lsec and acl_trivial (as used on Solaris 10).
48594         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
48595         lib/file-has-acl.c.
48596         (Depends-on): Add sys_stat, for S_ISLNK.
48597
48598 2007-03-19  Ben Pfaff  <blp@gnu.org>
48599
48600         * doc/gnulib.texi: Fix typos.
48601         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48602
48603 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48604
48605         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
48606         If size is zero here, buf must be zero.
48607
48608 2007-03-19  Simon Josefsson  <simon@josefsson.org>
48609
48610         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
48611         <bruno@clisp.org>.
48612
48613 2007-03-18  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
48616         Suggested by Eric Blake.
48617
48618 2007-03-18  Ben Pfaff  <blp@gnu.org>
48619
48620         * doc/relocatable.texi: Recommend using as prefix a directory
48621         that does not exist and will never be created.  Based on
48622         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
48623         and others.
48624
48625 2007-03-17  Bruno Haible  <bruno@clisp.org>
48626
48627         * lib/fchownat.c: Include lchown.h.
48628
48629 2007-03-17  Bruno Haible  <bruno@clisp.org>
48630
48631         Fix endless loop when the given allocated size was > INT_MAX.
48632         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
48633         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
48634         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
48635         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
48636         * lib/sprintf.c (sprintf): Likewise.
48637
48638 2007-03-17  Bruno Haible  <bruno@clisp.org>
48639
48640         * tests/test-argp-2.sh (func_compare): Output a context diff.
48641
48642 2007-03-17  Bruno Haible  <bruno@clisp.org>
48643
48644         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
48645         locale's decimal-point character.
48646
48647 2007-03-17  Bruno Haible  <bruno@clisp.org>
48648
48649         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
48650         before comparing it. Needed because on some platforms (e.g. x86) a
48651         'long double' occupies less bytes than sizeof (long double).
48652
48653 2007-03-17  Bruno Haible  <bruno@clisp.org>
48654
48655         * tests/test-crc.c (main): Make printf statements 64-bit clean.
48656         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
48657         * tests/test-getaddrinfo.c (simple): Likewise.
48658         * tests/test-read-file.c (main): Likewise.
48659
48660 2007-03-17  Bruno Haible  <bruno@clisp.org>
48661
48662         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
48663
48664 2007-03-17  Bruno Haible  <bruno@clisp.org>
48665
48666         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
48667         unused variable.
48668
48669 2007-03-17  Bruno Haible  <bruno@clisp.org>
48670
48671         * tests/test-c-strcasecmp.c: Include c-strcase.h.
48672         * tests/test-c-strncasecmp.c: Likewise.
48673
48674 2007-03-17  Bruno Haible  <bruno@clisp.org>
48675
48676         * modules/stdlib (Depends-on): Add unistd.
48677         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
48678         Needed for MacOS X 10.3.
48679
48680 2007-03-17  Bruno Haible  <bruno@clisp.org>
48681
48682         * lib/unistr/u-strdup.h: Include <stdlib.h>.
48683
48684 2007-03-17  Bruno Haible  <bruno@clisp.org>
48685
48686         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
48687
48688 2007-03-17  Bruno Haible  <bruno@clisp.org>
48689
48690         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
48691         to reflect files copied from gnulib (with or without modifications).
48692         Suggested by Jim Meyering.
48693
48694 2007-03-17  Eric Blake  <ebb9@byu.net>
48695
48696         * NEWS: Document stdlib change from 2007-02-18.
48697
48698 2007-03-17  Jim Meyering  <jim@meyering.net>
48699
48700         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
48701         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
48702         someone uses a name containing shell meta-characters.
48703         Reported by Alfred M. Szmidt.
48704
48705         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
48706
48707 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
48708
48709         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
48710         and copy gettext configuration files only if configure.ac contains
48711         a use of AM_GNU_GETTEXT_VERSION.
48712
48713 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
48714
48715         * build-aux/bootstrap (gnulib_name): New variable.
48716         (gnulib_tool_options): Use it.
48717
48718 2007-03-13  Simon Josefsson  <simon@josefsson.org>
48719
48720         * tests/test-des.c: Use new namespace.
48721
48722 2007-03-15  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
48725         Reported by James Youngman <jay@gnu.org>.
48726
48727 2007-03-15  Bruno Haible  <bruno@clisp.org>
48728
48729         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
48730         declared prototype. Needed with cc on OSF/1 5.1.
48731
48732 2007-03-15  Bruno Haible  <bruno@clisp.org>
48733
48734         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
48735         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
48736         (struct gl_list_implementation): Add dispose_fn argument to the
48737         'create_empty', 'create' methods.
48738         (struct gl_list_impl_base): Add field 'dispose_fn'.
48739         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
48740         argument.
48741         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
48742         dispose_fn argument.
48743         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
48744         dispose_fn on the dropped values.
48745         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
48746         dispose_fn argument.
48747         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
48748         dropped values.
48749         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
48750         (gl_tree_remove_node): Call dispose_fn on the dropped value.
48751         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
48752         (gl_tree_remove_node): Call dispose_fn on the dropped value.
48753         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
48754         argument.
48755         (gl_tree_list_free): Call dispose_fn on the dropped values.
48756         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
48757         the dropped values.
48758         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48759         Add dispose_fn argument.
48760         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
48761         Call dispose_fn on the dropped values.
48762         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
48763         Add dispose_fn argument.
48764         (gl_sublist_create): Initialize the 'dispose_fn' field.
48765         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
48766         * tests/test-array_list.c (main): Update.
48767         * tests/test-carray_list.c (main): Update.
48768         * tests/test-avltree_list.c (main): Update.
48769         * tests/test-rbtree_list.c (main): Update.
48770         * tests/test-avltreehash_list.c (main): Update.
48771         * tests/test-rbtreehash_list.c (main): Update.
48772         * tests/test-linked_list.c (main): Update.
48773         * tests/test-linkedhash_list.c (main): Update.
48774         * tests/test-array_oset.c (main): Update.
48775
48776 2007-03-15  Bruno Haible  <bruno@clisp.org>
48777
48778         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
48779         (gl_oset_create_empty): Add dispose_fn argument.
48780         (struct gl_oset_implementation): Add dispose_fn argument to
48781         'create_empty' method.
48782         (struct gl_oset_impl_base): Add dispose_fn field.
48783         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
48784         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
48785         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
48786         values.
48787         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
48788         (gl_tree_oset_free): Call dispose_fn on the dropped values.
48789         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
48790         dropped value.
48791         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
48792         dropped value.
48793         * tests/test-array_oset.c (main): Update.
48794         * tests/test-avltree_oset.c (main): Update.
48795         * tests/test-rbtree_oset.c (main): Update.
48796         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
48797
48798 2007-03-13  Bruno Haible  <bruno@clisp.org>
48799
48800         * tests/test-stdbool.c (i): Update after last patch.
48801
48802 2007-03-12  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/quotearg.c: Include <wctype.h> early, before the definition of
48805         the iswprint macro. Needed on Solaris 2.5.1.
48806
48807 2007-03-12  Bruno Haible  <bruno@clisp.org>
48808
48809         * tests/test-printf-frexp.c (main): Declare x as volatile.
48810
48811 2007-03-12  Simon Josefsson  <simon@josefsson.org>
48812
48813         * doc/gnulib.texi (Build robot for gnulib): New section.
48814
48815 2007-03-12  Jim Meyering  <jim@meyering.net>
48816
48817         * build-aux/bootstrap: New file.
48818         * build-aux/bootstrap.conf: New file, from coreutils.
48819
48820 2007-03-11  Bruno Haible  <bruno@clisp.org>
48821
48822         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
48823
48824 2007-03-12  Simon Josefsson  <simon@josefsson.org>
48825
48826         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
48827         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
48828         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
48829
48830 2007-03-11  Bruno Haible  <bruno@clisp.org>
48831
48832         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
48833         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
48834
48835 2007-03-11  Bruno Haible  <bruno@clisp.org>
48836
48837         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
48838         formula. Needed for SunPRO C 5.0.
48839
48840 2007-03-11  Bruno Haible  <bruno@clisp.org>
48841
48842         * modules/long-options (Depends-on): Add getopt.
48843
48844 2007-03-11  Bruno Haible  <bruno@clisp.org>
48845
48846         * modules/modechange (Depends-on): Add stdbool.
48847
48848 2007-03-11  Bruno Haible  <bruno@clisp.org>
48849
48850         * modules/i-ring (Depends-on): Add stdbool.
48851
48852 2007-03-11  Bruno Haible  <bruno@clisp.org>
48853
48854         * modules/gc-des (Depends-on): Add stdbool.
48855
48856 2007-03-11  Bruno Haible  <bruno@clisp.org>
48857
48858         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
48859
48860 2007-03-11  Bruno Haible  <bruno@clisp.org>
48861
48862         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
48863
48864 2007-03-11  Bruno Haible  <bruno@clisp.org>
48865
48866         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
48867
48868 2007-03-11  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/vasnprintf.c (sprintf): Undefine.
48871
48872 2007-03-11  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
48875         initializers in SunPRO C and Compaq C compilers.
48876
48877 2007-03-11  Bruno Haible  <bruno@clisp.org>
48878
48879         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
48880         decrementing code ANSI C compliant.
48881
48882 2007-03-11  Bruno Haible  <bruno@clisp.org>
48883
48884         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
48885         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
48886
48887 2007-03-11  Bruno Haible  <bruno@clisp.org>
48888
48889         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
48890         <stdbool.h> substitute doesn't pass.
48891
48892 2007-03-11  Bruno Haible  <bruno@clisp.org>
48893
48894         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
48895
48896 2007-03-11  Bruno Haible  <bruno@clisp.org>
48897
48898         * gnulib-tool (func_create_megatestdir): Create also an autobuild
48899         script, for submission to autobuild.josefsson.org.
48900
48901 2007-03-10  Bruno Haible  <bruno@clisp.org>
48902
48903         * modules/canonicalize-lgpl-tests: New file.
48904         * tests/test-canonicalize-lgpl.sh: New file.
48905         * tests/test-canonicalize-lgpl.c: New file.
48906
48907         * modules/c-strcase-tests: New file.
48908         * tests/test-c-strcase.sh: New file.
48909         * tests/test-c-strcasecmp.c: New file.
48910         * tests/test-c-strncasecmp.c: New file.
48911
48912         * modules/atexit-tests: New file.
48913         * tests/test-atexit.sh: New file.
48914         * tests/test-atexit.c: New file.
48915
48916 2007-03-10  Bruno Haible  <bruno@clisp.org>
48917
48918         * tests/test-binary-io.sh: Use temporary filenames that are not so
48919         likely to clash with those of other tests (in a parallel make).
48920         * tests/test-binary-io.c: Likewise.
48921
48922 2007-03-10  Bruno Haible  <bruno@clisp.org>
48923
48924         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
48925         fallback; use #error instead.
48926         Suggested by Simon Josefsson.
48927
48928 2007-03-10  Bruno Haible  <bruno@clisp.org>
48929
48930         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
48931         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
48932         first and the last.
48933
48934 2007-03-10  Bruno Haible  <bruno@clisp.org>
48935
48936         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
48937
48938 2007-03-10  Bruno Haible  <bruno@clisp.org>
48939
48940         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
48941         "make distcheck".
48942         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
48943         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
48944         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
48945
48946 2007-03-10  Bruno Haible  <bruno@clisp.org>
48947
48948         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
48949         variable.
48950         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
48951         variable.
48952
48953 2007-03-09  Eric Blake  <ebb9@byu.net>
48954         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
48955
48956         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
48957         types are not being provided by gnulib.
48958         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
48959         types are supported.
48960
48961 2007-03-10  Bruno Haible  <bruno@clisp.org>
48962
48963         * lib/stdio_.h (__attribute__): New macro.
48964         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
48965         vsprintf): Specify __attribute__ __format__ for GCC.
48966         Suggested by Eric Blake.
48967
48968 2007-03-09  Bruno Haible  <bruno@clisp.org>
48969
48970         * modules/printf-posix-tests: New file.
48971         * tests/test-printf-posix.sh: New file.
48972         * tests/test-printf-posix.c: New file.
48973
48974         * modules/printf-posix: New file.
48975         * lib/printf.c: New file.
48976         * m4/printf-posix-rpl.m4: New file.
48977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
48978         REPLACE_PRINTF.
48979         * lib/stdio_.h (printf): New declaration.
48980         (format, __format__, ____printf____, ____scanf____, ____strftime____,
48981         ____strfmon____): New macros.
48982         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
48983         REPLACE_PRINTF.
48984
48985 2007-03-09  Bruno Haible  <bruno@clisp.org>
48986
48987         * tests/test-vasnprintf-posix2.sh: New file.
48988         * tests/test-vasnprintf-posix2.c: New file.
48989         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
48990         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48991         (Makefile.am): Activate test-vasnprintf-posix2.sh.
48992
48993         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
48994         a locale dependent decimal point, rather than always '.'.
48995
48996 2007-03-09  Eric Blake  <ebb9@byu.net>
48997
48998         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
48999         spite of platforms like Tandem/NSK that define it to -1.
49000
49001 2007-03-08  Bruno Haible  <bruno@clisp.org>
49002
49003         * modules/vprintf-posix-tests: New file.
49004         * tests/test-vprintf-posix.sh: New file.
49005         * tests/test-vprintf-posix.c: New file.
49006         * tests/test-printf-posix.h: New file.
49007
49008         * modules/vprintf-posix: New file.
49009         * lib/vprintf.c: New file.
49010         * m4/vprintf-posix.m4: New file.
49011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
49012         REPLACE_VPRINTF.
49013         * lib/stdio_.h (vprintf): New declaration.
49014         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
49015         REPLACE_VPRINTF.
49016
49017 2007-03-08  Bruno Haible  <bruno@clisp.org>
49018
49019         * modules/fprintf-posix-tests: New file.
49020         * tests/test-fprintf-posix.sh: New file.
49021         * tests/test-fprintf-posix.c: New file.
49022
49023         * modules/fprintf-posix: New file.
49024         * lib/fprintf.c: New file.
49025         * m4/fprintf-posix.m4: New file.
49026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
49027         REPLACE_FPRINTF.
49028         * lib/stdio_.h (fprintf): New declaration.
49029         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
49030         REPLACE_FPRINTF.
49031
49032 2007-03-08  Bruno Haible  <bruno@clisp.org>
49033
49034         * modules/vfprintf-posix-tests: New file.
49035         * tests/test-vfprintf-posix.sh: New file.
49036         * tests/test-vfprintf-posix.c: New file.
49037         * tests/test-fprintf-posix.h: New file.
49038         * tests/test-fprintf-posix.out: New file.
49039
49040         * modules/vfprintf-posix: New file.
49041         * lib/vfprintf.c: New file.
49042         * m4/vfprintf-posix.m4: New file.
49043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
49044         REPLACE_VFPRINTF.
49045         * lib/stdio_.h (vfprintf): New declaration.
49046         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
49047         REPLACE_VFPRINTF.
49048
49049 2007-03-08  Bruno Haible  <bruno@clisp.org>
49050
49051         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
49052
49053 2007-03-08  Bruno Haible  <bruno@clisp.org>
49054
49055         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
49056         instead of 'expr' invocations.
49057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49059         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49060         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49061         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49062         Suggested by Paul Eggert.
49063
49064 2007-03-08  Bruno Haible  <bruno@clisp.org>
49065
49066         * modules/fseterr-tests: New file.
49067         * tests/test-fseterr.c: New file.
49068
49069         * modules/fseterr: New file.
49070         * lib/fseterr.h: New file.
49071         * lib/fseterr.c: New file.
49072
49073 2007-03-08  Bruno Haible  <bruno@clisp.org>
49074
49075         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
49076         * lib/getopt_.h: Likewise.
49077         * lib/mbswidth.h: Likewise.
49078         * lib/setenv.h: Likewise.
49079         * lib/vasnprintf.h: Likewise.
49080         * lib/vasprintf.h: Likewise.
49081         * lib/verror.h: Likewise.
49082         * lib/xsetenv.h: Likewise.
49083         * lib/xvasprintf.h: Likewise.
49084
49085 2007-03-08  Jim Meyering  <jim@meyering.net>
49086
49087         * users.txt: Add parted.
49088
49089         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
49090
49091 2007-03-07  Bruno Haible  <bruno@clisp.org>
49092
49093         * m4/printf.m4: Make the shell script snippets copy&pastable.
49094
49095 2007-03-02  Bruno Haible  <bruno@clisp.org>
49096
49097         * lib/netinet_in_.h: New file.
49098         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
49099         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
49100         * modules/netinet_in (Files): Add lib/netinet_in_.h.
49101         (Depends-on): Add absolute-header.
49102         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
49103         into netinet/in.h.
49104
49105 2007-03-03  Bruno Haible  <bruno@clisp.org>
49106
49107         * lib/sys_select_.h: New file.
49108         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
49109         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
49110         * modules/sys_select (Files): Add lib/sys_select_.h.
49111         (Depends-on): Add absolute-header.
49112         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
49113         into sys/select.h.
49114
49115 2007-03-02  Bruno Haible  <bruno@clisp.org>
49116
49117         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
49118         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
49119         values.
49120         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
49121         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
49122         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
49123         * modules/sys_socket (Depends-on): Add absolute-header.
49124         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
49125         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
49126         (Include): Remove requirement of inclusion of <sys/types.h>.
49127
49128 2007-03-02  Bruno Haible  <bruno@clisp.org>
49129
49130         * lib/byteswap_.h (bswap_32): Fix formula.
49131
49132 2007-03-06  Bruno Haible  <bruno@clisp.org>
49133
49134         * modules/sprintf-posix-tests: New file.
49135         * tests/test-sprintf-posix.c: New file.
49136
49137         * modules/sprintf-posix: New file.
49138         * lib/sprintf.c: New file.
49139         * m4/sprintf-posix.m4: New file.
49140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
49141         REPLACE_SPRINTF.
49142         * lib/stdio_.h (sprintf): New declaration.
49143         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
49144         REPLACE_SPRINTF.
49145
49146 2007-03-06  Bruno Haible  <bruno@clisp.org>
49147
49148         * modules/vsprintf-posix-tests: New file.
49149         * tests/test-vsprintf-posix.c: New file.
49150         * tests/test-sprintf-posix.h: New file.
49151
49152         * modules/vsprintf-posix: New file.
49153         * lib/vsprintf.c: New file.
49154         * m4/vsprintf-posix.m4: New file.
49155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
49156         REPLACE_VSPRINTF.
49157         * lib/stdio_.h (vsprintf): New declaration.
49158         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
49159         REPLACE_VSPRINTF.
49160
49161 2007-03-06  Bruno Haible  <bruno@clisp.org>
49162
49163         * modules/vsnprintf (Depend-on): Remove minmax.
49164
49165 2007-03-06  Bruno Haible  <bruno@clisp.org>
49166
49167         * modules/snprintf-posix-tests: New file.
49168         * tests/test-snprintf-posix.c: New file.
49169
49170         * modules/snprintf-posix: New file.
49171         * m4/snprintf-posix.m4: New file.
49172         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
49173         gl_FUNC_SNPRINTF.
49174         (gl_FUNC_SNPRINTF): Invoke it.
49175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
49176         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
49177         is set.
49178         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
49179
49180 2007-03-06  Bruno Haible  <bruno@clisp.org>
49181
49182         * modules/vsnprintf-posix-tests: New file.
49183         * tests/test-vsnprintf-posix.c: New file.
49184         * tests/test-snprintf-posix.h: New file.
49185
49186         * modules/vsnprintf-posix: New file.
49187         * m4/vsnprintf-posix.m4: New file.
49188         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
49189         gl_FUNC_VSNPRINTF.
49190         (gl_FUNC_VSNPRINTF): Invoke it.
49191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
49192         * lib/stdio_.h (vsnprintf): Define as a replacement if
49193         REPLACE_VSNPRINTF is set.
49194         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
49195
49196 2007-03-06  Bruno Haible  <bruno@clisp.org>
49197
49198         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
49199         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
49200
49201 2007-03-06  Bruno Haible  <bruno@clisp.org>
49202
49203         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
49204         (asinl): Declare also if HAVE_DECL_ASINL is set.
49205         (atanl): Declare also if HAVE_DECL_ATANL is set.
49206         (ceill): Declare also if HAVE_DECL_CEILL is set.
49207         (cosl): Declare also if HAVE_DECL_COSL is set.
49208         (expl): Declare also if HAVE_DECL_EXPL is set.
49209         (floorl): Declare also if HAVE_DECL_FLOORL is set.
49210         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
49211         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
49212         (logl): Declare also if HAVE_DECL_LOGL is set.
49213         (sinl): Declare also if HAVE_DECL_SINL is set.
49214         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
49215         (tanl): Declare also if HAVE_DECL_TANL is set.
49216         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
49217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
49218         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
49219         declaration of frexpl, ldexpl.
49220         * modules/printf-frexpl (Depends-on): Add math.
49221         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
49222
49223 2007-03-05  Bruno Haible  <bruno@clisp.org>
49224
49225         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
49226         frexpl and ldexpl are declared.
49227         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
49228
49229 2007-03-05  Bruno Haible  <bruno@clisp.org>
49230
49231         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
49232         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
49233
49234 2007-03-05  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/stdio_.h: Include <stddef.h>.
49237
49238 2007-03-05  Bruno Haible  <bruno@clisp.org>
49239
49240         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
49241
49242 2007-03-05  Bruno Haible  <bruno@clisp.org>
49243
49244         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
49245         NetBSD 4, from Ralf Wildenhues.
49246
49247 2007-03-04  Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/vasprintf.h: Update #if logic for the case when the functions
49250         exist but are overridden.
49251
49252 2007-03-04  Bruno Haible  <bruno@clisp.org>
49253
49254         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
49255         implementations: glibc-2.4 and MacOS X 10.3.
49256         * tests/test-vasnprintf-posix.c (test_function): Test also the case
49257         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
49258         * tests/test-vasprintf-posix.c (test_function): Likewise.
49259
49260 2007-03-04  Bruno Haible  <bruno@clisp.org>
49261
49262         * modules/vasprintf-posix-tests: New file.
49263         * tests/test-vasprintf-posix.c: New file.
49264
49265         * modules/vasprintf-posix: New file.
49266         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
49267         defined.
49268         * m4/vasprintf-posix.m4: New file.
49269         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
49270         gl_FUNC_VASPRINTF.
49271         (gl_FUNC_VASPRINTF): Invoke it.
49272         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
49273         here.
49274         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
49275
49276 2007-03-04  Bruno Haible  <bruno@clisp.org>
49277
49278         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
49279         REPLACE_GETTIMEOFDAY.
49280         * modules/sys_time (Makefile.am): Likewise.
49281         * m4/sys_time_h.m4: Likewise.
49282         * m4/gettimeofday.m4: Likewise.
49283
49284 2007-03-04  Bruno Haible  <bruno@clisp.org>
49285
49286         * modules/vasnprintf-posix-tests: New file.
49287         * tests/test-vasnprintf-posix.c: New file.
49288
49289         * modules/vasnprintf-posix: New file.
49290         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
49291         printf-frexpl.h.
49292         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
49293         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
49294         REPLACE_VASNPRINTF is defined.
49295         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
49296         gl_FUNC_VASNPRINTF.
49297         (gl_FUNC_VASNPRINTF): Invoke it.
49298         * m4/vasnprintf-posix.m4: New file.
49299         * m4/printf.m4: New file.
49300
49301 2007-03-04  Bruno Haible  <bruno@clisp.org>
49302
49303         Compile progreloc.c only if --enable-relocatable is specified.
49304         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
49305         if --enable-relocatable was specified.
49306         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
49307         lib_SOURCES.
49308
49309 2007-03-04  Jim Meyering  <jim@meyering.net>
49310
49311         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
49312         Use it consistently, rather than enumerating errno constants.
49313
49314 2007-03-04  Bruno Haible  <bruno@clisp.org>
49315
49316         * modules/xvasprintf-tests: New file.
49317         * tests/test-xvasprintf.c: New file.
49318
49319         * modules/vasprintf-tests: New file.
49320         * tests/test-vasprintf.c: New file.
49321
49322         * modules/vasnprintf-tests: New file.
49323         * tests/test-vasnprintf.c: New file.
49324
49325         * modules/vsnprintf-tests: New file.
49326         * tests/test-vsnprintf.c: New file.
49327
49328         * modules/snprintf-tests: New file.
49329         * tests/test-snprintf.c: New file.
49330
49331 2007-03-04  Bruno Haible  <bruno@clisp.org>
49332
49333         Compile relocatable.c only if --enable-relocatable is specified.
49334         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
49335         gl_RELOCATABLE_LIBRARY.
49336         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
49337         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
49338         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
49339         gl_RELOCATABLE_LIBRARY.
49340         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
49341         (Makefile.am): Remove lib_SOURCES.
49342         * modules/relocatable-lib-lgpl (configure.ac): Invoke
49343         gl_RELOCATABLE_LIBRARY.
49344         (Makefile.am): Remove lib_SOURCES.
49345         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
49346         always.
49347         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49348         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
49349
49350 2007-03-04  Bruno Haible  <bruno@clisp.org>
49351
49352         * modules/argmatch-tests: New file.
49353         * tests/test-argmatch.c: New file.
49354
49355         * tests/test-allocsa.c (main): Halve the number of loop runs.
49356
49357         * modules/alloca-opt-tests: New file.
49358         * tests/test-alloca-opt.c: New file.
49359
49360 2007-03-04  Jim Meyering  <jim@meyering.net>
49361
49362         Work around difference between Linux ACLs and Solaris 10 ZFS.
49363         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
49364         for EINVAL.
49365
49366 2007-03-03  Bruno Haible  <bruno@clisp.org>
49367
49368         * modules/relocatable-prog (Depends-on): Add back progreloc's
49369         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
49370
49371 2007-03-03  Bruno Haible  <bruno@clisp.org>
49372
49373         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
49374         * modules/relocatable-lib: New file.
49375
49376 2007-03-03  Bruno Haible  <bruno@clisp.org>
49377
49378         * modules/relocatable-prog: Renamed from modules/relocatable.
49379         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
49380
49381 2007-03-03  Bruno Haible  <bruno@clisp.org>
49382
49383         * modules/relocatable-script (Files): Add doc/relocatable.texi,
49384         m4/relocatable-lib.m4.
49385         (Depends-on): Remove 'relocatable'.
49386         (configure.ac): Add gl_RELOCATABLE_NOP.
49387
49388 2007-03-03  Bruno Haible  <bruno@clisp.org>
49389
49390         * modules/relocatable-prog-wrapper: New file.
49391         * modules/relocatable (Depends-on): Add it. Remove all other
49392         dependencies except progname.
49393         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
49394
49395         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
49396         (gl_FUNC_STRERROR): Nop.
49397         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
49398
49399         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
49400         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
49401
49402         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
49403         (gl_FUNC_READLINK): Update.
49404
49405         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
49406
49407 2007-03-03  Bruno Haible  <bruno@clisp.org>
49408
49409         * lib/xreadlink.c: Include <unistd.h> unconditionally.
49410         * modules/xreadlink (Depends-on): Add unistd.
49411         * modules/xreadlink-with-size (Depends-on): Likewise.
49412
49413 2007-03-03  Bruno Haible  <bruno@clisp.org>
49414
49415         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
49416         extracted from gt_FUNC_SETENV.
49417         (gt_FUNC_SETENV): Remove macro.
49418         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
49419         remove gt_FUNC_SETENV.
49420
49421 2007-03-03  Bruno Haible  <bruno@clisp.org>
49422
49423         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
49424         ENABLE_RELOCATABLE here.
49425         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
49426
49427 2007-03-03  Bruno Haible  <bruno@clisp.org>
49428
49429         * modules/rbtreehash-list-tests (Depends-on): Add progname.
49430         * tests/test-rbtreehash_list.c: Include progname.h.
49431         (main): Call set_program_name.
49432
49433         * modules/rbtree-oset-tests (Depends-on): Add progname.
49434         * tests/test-rbtree_oset.c: Include progname.h.
49435         (main): Call set_program_name.
49436
49437         * modules/rbtree-list-tests (Depends-on): Add progname.
49438         * tests/test-rbtree_list.c: Include progname.h.
49439         (main): Call set_program_name.
49440
49441         * modules/linked-list-tests (Depends-on): Add progname.
49442         * tests/test-linked_list.c: Include progname.h.
49443         (main): Call set_program_name.
49444
49445 2007-03-03  Bruno Haible  <bruno@clisp.org>
49446
49447         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
49448         All uses of __restrict changed to _Restrict_.
49449         * lib/glob_.h (__restrict): Remove macro.
49450
49451 2007-03-02  Bruno Haible  <bruno@clisp.org>
49452
49453         * modules/gettext (configure.ac): Require gettext infrastructure
49454         from version 0.16.1.
49455
49456 2007-03-02  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/linkedhash-list-tests (Depends-on): Add progname.
49459         * tests/test-linkedhash_list.c: Include progname.h.
49460         (main): Call set_program_name.
49461
49462         * modules/carray-list-tests (Depends-on): Add progname.
49463         * tests/test-carray_list.c: Include progname.h.
49464         (main): Call set_program_name.
49465
49466         * modules/avltreehash-list-tests (Depends-on): Add progname.
49467         * tests/test-avltreehash_list.c: Include progname.h.
49468         (main): Call set_program_name.
49469
49470         * modules/avltree-oset-tests (Depends-on): Add progname.
49471         * tests/test-avltree_oset.c: Include progname.h.
49472         (main): Call set_program_name.
49473
49474         * modules/avltree-list-tests (Depends-on): Add progname.
49475         * tests/test-avltree_list.c: Include progname.h.
49476         (main): Call set_program_name.
49477
49478         * modules/array-oset-tests (Depends-on): Add progname.
49479         * tests/test-array_oset.c: Include progname.h.
49480         (main): Call set_program_name.
49481
49482         * modules/array-list-tests (Depends-on): Add progname.
49483         * tests/test-array_list.c: Include progname.h.
49484         (main): Call set_program_name.
49485
49486         * modules/argp-tests (Depends-on): Add progname.
49487         * tests/test-argp.c: Include argp.h first. Include progname.h.
49488         (main): Call set_program_name.
49489
49490 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
49491
49492         * doc/gnulib-tool.texi (Initial import): Reword description of
49493         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
49494         limited effect even if defined after the first system include.
49495
49496 2007-03-01  Bruno Haible  <bruno@clisp.org>
49497
49498         * build-aux/config.libpath: Update to libtool-1.5.22.
49499         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49500
49501 2007-03-01  Bruno Haible  <bruno@clisp.org>
49502
49503         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
49504         foo_CFLAGS.
49505         Reported by Ralf Wildenhues.
49506
49507 2007-03-01  Bruno Haible  <bruno@clisp.org>
49508
49509         * build-aux/install-reloc: Remove object files left over by some
49510         compilers.
49511         Reported by Ralf Wildenhues.
49512
49513 2007-03-01  Bruno Haible  <bruno@clisp.org>
49514
49515         * build-aux/install-reloc: Break long lines.
49516
49517 2007-03-01  Bruno Haible  <bruno@clisp.org>
49518
49519         * doc/relocatable.texi: Document that it may not work on OpenBSD.
49520         Reported by Ralf Wildenhues.
49521
49522 2007-03-01  Bruno Haible  <bruno@clisp.org>
49523
49524         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
49525         include ordering constraints.
49526
49527 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49528
49529         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
49530         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
49531         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
49532         as another example.
49533         * lib/time_.h: Fix misspelling.
49534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49535         Require gl_HEADER_TIME_H_DEFAULTS.
49536         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
49537         * m4/time_r.m4 (gl_TIME_R): Likewise.
49538         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
49539
49540 2007-03-01  Bruno Haible  <bruno@clisp.org>
49541
49542         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
49543         * m4/utimens.m4 (gl_UTIMENS): Likewise.
49544
49545 2007-03-01  Jim Meyering  <jim@meyering.net>
49546
49547         * modules/xreadlink (Maintainer): Add my name.
49548         * modules/xreadlink-with-size (Depends-on): Alphabetize.
49549
49550 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
49551             Bruno Haible  <bruno@clisp.org>
49552
49553         * build-aux/install-reloc: Compile also c-ctype.c.
49554         * build-aux/relocatable.sh.in: New file.
49555         * doc/relocatable.texi: New file.
49556         * doc/relocatable-maint.texi: New file.
49557         * doc/gnulib.texi: Include relocatable-maint.texi.
49558         * lib/progreloc.c: Include unistd.h unconditionally.
49559         * lib/relocwrapper.c: Include unistd.h unconditionally.
49560         Include c-ctype.h.
49561         (add_dotbin): Use c_tolower.
49562         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
49563         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
49564         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
49565         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
49566         to m4/relocatable-lib.m4.
49567         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
49568         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
49569         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
49570         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
49571         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
49572         * modules/relocatable: New file.
49573         * modules/relocatable-lib: New file.
49574         * modules/relocatable-script: New file.
49575
49576 2007-02-28  Bruno Haible  <bruno@clisp.org>
49577
49578         Import --enable-relocatable infrastructure.
49579         * build-aux/config.libpath: New file, from GNU gettext.
49580         * build-aux/install-reloc: New file, from GNU gettext.
49581         * build-aux/reloc-ldflags: New file, from GNU gettext.
49582         * lib/relocatable.h: New file, from GNU gettext.
49583         * lib/relocatable.c: New file, from GNU gettext.
49584         * lib/relocwrapper.c: New file, from GNU gettext.
49585         * m4/relocatable.m4: New file, from GNU gettext.
49586
49587 2007-02-28  Bruno Haible  <bruno@clisp.org>
49588
49589         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
49590
49591         * modules/xreadlink: New file, from GNU gettext with modifications.
49592         * lib/xreadlink.c: New file, from GNU gettext.
49593         * lib/xreadlink.h: Add comments.
49594         (xreadlink): New declaration.
49595
49596         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
49597         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
49598         lib/xreadlink-with-size.c.
49599         (configure.ac): Remove gl_XREADLINK invocation.
49600         (Makefile.am): Augment lib_SOURCES.
49601         * m4/xreadlink.m4: Remove file.
49602         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
49603         (xreadlink_with_size): Renamed from xreadink.
49604         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
49605         * modules/canonicalize (Depends-on): Replace xreadlink with
49606         xreadlink-with-size.
49607         * lib/canonicalize.c (canonicalize_filename_mode): Update.
49608
49609 2007-02-25  Jim Meyering  <jim@meyering.net>
49610
49611         * build-aux/announce-gen: When complaining about excess arguments,
49612         list them.
49613
49614 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49615
49616         * README: Document signed integer overflow situation more
49617         accurately.
49618
49619 2007-02-25  Bruno Haible  <bruno@clisp.org>
49620
49621         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
49622         'a' or 'A' conversion.
49623
49624 2007-02-25  Bruno Haible  <bruno@clisp.org>
49625
49626         * modules/filename: Renamed from modules/pathname.
49627         (Files): Replace lib/pathname.h with lib/filename.h. Replace
49628         lib/concatpath.c with lib/concat-filename.c.
49629         (Makefile.am): Update.
49630         (Include): Replace pathname.h with filename.h.
49631         * lib/filename.h: Renamed from lib/pathname.h.
49632         (concatenated_filename): Renamed from concatenated_pathname.
49633         * lib/concat-filename.c: Renamed from lib/concatpath.c.
49634         (concatenated_filename): Renamed from concatenated_pathname.
49635         * lib/findprog.c: Include filename.h instead of pathname.h.
49636         (find_in_path): Update.
49637         * lib/javacomp.c: Include filename.h instead of pathname.h.
49638         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49639         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49640         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49641         is_oldgcj_14_13_usable, is_javac_usable): Update.
49642         * lib/javaexec.c: Include filename.h instead of pathname.h.
49643         (execute_java_class): Update.
49644         * modules/findprog: Update.
49645         * modules/javacomp: Update.
49646         * modules/javaexec: Update.
49647         * MODULES.html.sh (File system functions): Add 'filename', remove
49648         'pathname'.
49649
49650 2007-02-25  Bruno Haible  <bruno@clisp.org>
49651
49652         * modules/printf-frexpl-tests: New file.
49653         * tests/test-printf-frexpl.c: New file.
49654
49655         * modules/printf-frexpl: New file.
49656         * lib/printf-frexpl.h: New file.
49657         * lib/printf-frexpl.c: New file.
49658         * m4/printf-frexpl.m4: New file.
49659
49660 2007-02-25  Bruno Haible  <bruno@clisp.org>
49661
49662         * modules/printf-frexp-tests: New file.
49663         * tests/test-printf-frexp.c: New file.
49664
49665         * modules/printf-frexp: New file.
49666         * lib/printf-frexp.h: New file.
49667         * lib/printf-frexp.c: New file.
49668         * m4/printf-frexp.m4: New file.
49669
49670 2007-02-25  Bruno Haible  <bruno@clisp.org>
49671
49672         Assume automake >= 1.10 for the tests.
49673         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
49674         * modules/arctwo-tests: Likewise.
49675         * modules/argp-tests: Likewise.
49676         * modules/avltree-list-tests: Likewise.
49677         * modules/avltree-oset-tests: Likewise.
49678         * modules/avltreehash-list-tests: Likewise.
49679         * modules/carray-list-tests: Likewise.
49680         * modules/crc-tests: Likewise.
49681         * modules/des-tests: Likewise.
49682         * modules/gc-arcfour-tests: Likewise.
49683         * modules/gc-arctwo-tests: Likewise.
49684         * modules/gc-des-tests: Likewise.
49685         * modules/gc-hmac-md5-tests: Likewise.
49686         * modules/gc-hmac-sha1-tests: Likewise.
49687         * modules/gc-md2-tests: Likewise.
49688         * modules/gc-md4-tests: Likewise.
49689         * modules/gc-md5-tests: Likewise.
49690         * modules/gc-pbkdf2-sha1-tests: Likewise.
49691         * modules/gc-rijndael-tests: Likewise.
49692         * modules/gc-sha1-tests: Likewise.
49693         * modules/gc-tests: Likewise.
49694         * modules/getaddrinfo-tests: Likewise.
49695         * modules/hmac-md5-tests: Likewise.
49696         * modules/hmac-sha1-tests: Likewise.
49697         * modules/linked-list-tests: Likewise.
49698         * modules/linkedhash-list-tests: Likewise.
49699         * modules/lock-tests: Likewise.
49700         * modules/md2-tests: Likewise.
49701         * modules/md4-tests: Likewise.
49702         * modules/md5-tests: Likewise.
49703         * modules/rbtree-list-tests: Likewise.
49704         * modules/rbtree-oset-tests: Likewise.
49705         * modules/rbtreehash-list-tests: Likewise.
49706         * modules/read-file-tests: Likewise.
49707         * modules/rijndael-tests: Likewise.
49708         * modules/stdint-tests: Likewise.
49709         * modules/tls-tests: Likewise.
49710
49711 2007-02-24  Bruno Haible  <bruno@clisp.org>
49712
49713         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
49714         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
49715         function; instead check whether isnan with a double argument links.
49716         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
49717         function; instead check whether isnan with a 'long double' argument
49718         links.
49719         Reported by Eric Blake <ebb9@byu.net>.
49720
49721 2007-02-24  Bruno Haible  <bruno@clisp.org>
49722
49723         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
49724         defined.
49725         * lib/isnanl.c: Remove all code. Just include isnan.c.
49726         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
49727
49728 2007-02-25  Jim Meyering  <jim@meyering.net>
49729
49730         Avoid conflicting types for 'unsetenv' on FreeBSD.
49731         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
49732         conflicting with FreeBSD's (5.0 and 6.1) function declaration
49733         in stdlib.h.
49734
49735 2007-02-24  Bruno Haible  <bruno@clisp.org>
49736
49737         * modules/isnanl-nolibm-tests: New file.
49738         * tests/test-isnanl.c: New file.
49739
49740         * modules/isnanl-nolibm: New file.
49741         * lib/isnanl.h: New file.
49742         * lib/isnanl.c: New file.
49743         * m4/isnanl.m4: New file.
49744
49745 2007-02-24  Bruno Haible  <bruno@clisp.org>
49746
49747         * modules/isnan-nolibm-tests: New file.
49748         * tests/test-isnan.c: New file.
49749
49750         * modules/isnan-nolibm: New file.
49751         * lib/isnan.h: New file.
49752         * lib/isnan.c: New file.
49753         * m4/isnan.m4: New file.
49754
49755 2007-02-24  Bruno Haible  <bruno@clisp.org>
49756
49757         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
49758         assume that an exponent fits in 20 bits.
49759
49760 2007-02-24  Jim Meyering  <jim@meyering.net>
49761
49762         * m4/regex.m4: Update the description of the configure-time option,
49763         --without-included-regex, to state accurately what the defaults are,
49764         and perhaps to give people an idea why using this option is risky.
49765
49766 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
49767
49768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
49769         loops on small arguments.  This attempts to avoid the problem
49770         Bruno Haible reported for AIX 4.3.2 in
49771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
49772
49773 2007-02-23  Bruno Haible  <bruno@clisp.org>
49774
49775         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
49776         Needed for help2man.
49777
49778 2007-02-23  Karl Berry  <karl@gnu.org>
49779
49780         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
49781         exists, foo.h should be cvs-ignored, not committed.
49782
49783 2007-02-23  Eric Blake  <ebb9@byu.net>
49784
49785         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
49786         * lib/stat-time.h (includes): Likewise.
49787         * lib/utimecmp.c (includes): Likewise.
49788         * lib/utimens.h (includes): Likewise.
49789         * lib/getdate.y (includes): Also include "timespec.h" for use
49790         internal to the module.
49791         * modules/utimens (Depends-on): Revert yesterday's patch.
49792         * modules/nanosleep (Depends-on): Add missing dependency.
49793
49794 2007-02-22  Bruno Haible  <bruno@clisp.org>
49795
49796         * lib/glob.c: Don't include getlogin_r.h.
49797
49798 2007-02-22  Jim Meyering  <jim@meyering.net>
49799
49800         * modules/utimens (Depends-on): Add timespec, required for
49801         utimens.h's inclusion of timespec.h.
49802
49803 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
49806         long unreadable paths in GNU/Linux.  Problem reported by Andreas
49807         Schwab in
49808         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
49809         I'll try to think of a better way to fix the Solaris problem.
49810
49811         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
49812         like glibc; on Solaris 10, it fails with errno == EINVAL.
49813         POSIX says the behavior is unspecified if the first argument is NULL,
49814         so play it safe and never pass NULL to the system getcwd.
49815
49816 2007-02-21  Jim Meyering  <jim@meyering.net>
49817
49818         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
49819         of gettimeofday.  It would conflict with the one now always
49820         provided via sys_time_.h.  Reported by Matthew Woehlke, as
49821         an IRIX 6.5 build failure.
49822
49823 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
49824
49825         Minor fixups to port to Solaris 10 with Sun C 5.8.
49826         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
49827         * modules/getcwd (Depends-on): Add dirfd.
49828         * lib/putenv.c (putenv): #undef it.
49829         (rpl_putenv): New decl.
49830         (malloc, free): Include <stdlib.h> rather than prototyping separately.
49831
49832 2007-02-20  Bruno Haible  <bruno@clisp.org>
49833
49834         * modules/stdio-tests: New file.
49835         * tests/test-stdio.c: New file.
49836
49837         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
49838         (Depends-on): Add stdio.
49839         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49840         (Include): Use <stdio.h> instead of vsnprintf.h.
49841         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
49842         HAVE_DECL_VSNPRINTF.
49843         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
49844
49845         * modules/snprintf (Files): Remove lib/snprintf.h.
49846         (Depends-on): Add stdio.
49847         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49848         (Include): Use <stdio.h> instead of snprintf.h.
49849         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
49850         HAVE_DECL_SNPRINTF.
49851         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
49852         * lib/getaddrinfo.c: Likewise.
49853
49854         * modules/stdio: New file.
49855         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
49856         * lib/snprintf.h: Remove file.
49857         * lib/vsnprintf.h: Remove file.
49858         * lib/.cppi-disable: Remove snprintf.h.
49859         * m4/stdio_h.m4: New file.
49860         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
49861
49862 2007-02-20  Jim Meyering  <jim@meyering.net>
49863
49864         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
49865         used by e.g., mingw.  From Bruno Haible.
49866
49867 2007-02-19  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
49870         warnings.
49871         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49872
49873 2007-02-19  Bruno Haible  <bruno@clisp.org>
49874
49875         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
49876         from mingw users.
49877
49878 2007-02-19  Bruno Haible  <bruno@clisp.org>
49879
49880         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
49881         warnings.
49882         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
49883
49884 2007-02-19  Jim Meyering  <jim@meyering.net>
49885
49886         Don't use FD after a successful "fdopendir (fd)".
49887         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
49888         Reset it by calling dirfd on the just-obtained DIR*.
49889
49890         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
49891         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
49892
49893 2007-02-18  Bruno Haible  <bruno@clisp.org>
49894
49895         * lib/readlink.c: Include <unistd.h>.
49896         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
49897         HAVE_READLINK.
49898         * modules/readlink (Depends-on): Add unistd.
49899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49900         (Include): Add <unistd.h>.
49901
49902         * lib/getlogin_r.h: Remove file.
49903         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
49904         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
49905         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
49906         HAVE_DECL_GETLOGIN_R.
49907         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
49908         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49909         (Include): Use <unistd.h> instead of getlogin_r.h.
49910
49911         * lib/getcwd.h: Remove file.
49912         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
49913         * lib/xgetcwd.c: Likewise.
49914         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
49915         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
49916         * modules/getcwd (Files): Remove lib/getcwd.h.
49917         (Depends-on): Add unistd.
49918         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49919         (Include): Use <unistd.h> instad of getcwd.h.
49920
49921         * lib/ftruncate.c: Include <unistd.h> first.
49922         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
49923         Set HAVE_FTRUNCATE.
49924         * modules/ftruncate (Depends-on): Add unistd.
49925         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49926
49927         * lib/fchdir.c: Include <unistd.h> first.
49928         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
49929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
49930         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
49931         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49932         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
49933
49934         * lib/dup2.c: Include <unistd.h> first.
49935         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
49936         HAVE_DUP2.
49937         * modules/dup2 (Depends-on): Add unistd.
49938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49939
49940         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
49941         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
49942         REPLACE_CHOWN. Don't define chown as a macro here.
49943         * modules/chown (Depends-on): Add unistd.
49944         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49945
49946         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
49947         Add definition for GL_LINK_WARNING.
49948         (chown, dup2): New declarations.
49949         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
49950         link warning.
49951         (ftruncate): New declaration.
49952         (getcwd): New declaration, taken from old getcwd.h.
49953         (getlogin_r): New declaration, taken from old getlogin_r.h.
49954         (readlink): New declaration.
49955         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
49956         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
49957         (gl_PREREQ_UNISTD): Remove macro.
49958         (gl_UNISTD_MODULE_INDICATOR): New macro.
49959         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
49960         many new variables. Don't set UNISTD_H.
49961         * modules/unistd (Description): Change.
49962         (Depends-on): Add link-warning.
49963         (configure.ac): Update.
49964         (Makefile.am): Create unistd.h always. Substitute many new variables
49965         into it.
49966
49967 2007-02-18  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
49970         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
49971         HAVE_GETSUBOPT.
49972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
49973         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
49974         * lib/getsubopt.h: Remove file.
49975         * modules/getsubopt (Files): Remove lib/getsubopt.h.
49976         (Depends-on): Add stdlib.
49977         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49978         (Includes): Use <stdlib.h> instead of getsubopt.h.
49979         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
49980         Set HAVE_GETSUBOPT.
49981         * lib/getsubopt.c: Don't include getsubopt.h.
49982
49983 2007-02-18  Bruno Haible  <bruno@clisp.org>
49984
49985         * modules/fchdir (Depends-on): Add dup2.
49986
49987 2007-02-18  Bruno Haible  <bruno@clisp.org>
49988
49989         * lib/stdlib_.h: Handle glibc's special invocation convention
49990         specially.
49991
49992 2007-02-18  Bruno Haible  <bruno@clisp.org>
49993
49994         * modules/stdlib-tests: New file.
49995         * tests/test-stdlib.c: New file.
49996
49997         * modules/mkstemp (Files): Remove lib/mkstemp.h.
49998         (Depends-on): Add stdlib.
49999         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50000         (Includes): Use <stdlib.h> instead of mkstemp.h.
50001         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50002         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
50003         * lib/mkstemp.c: Don't include mkstemp.h.
50004         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
50005         * lib/stdlib--.h: Don't include mkstemp.h.
50006
50007         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
50008         (Depends-on): Add stdlib.
50009         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50010         (Includes): Use <stdlib.h> instead of mkdtemp.h.
50011         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50012         HAVE_MKDTEMP.
50013         * lib/mkdtemp.c: Don't include mkdtemp.h.
50014         * lib/clean-temp.c: Don't include mkdtemp.h.
50015
50016         * modules/exit (Files): Remove lib/exit.h.
50017         (Depends-on): Add stdlib.
50018         (Makefile.am): Remove lib_SOURCES.
50019         (Include): Use <stdlib.h> instead of exit.h.
50020         * lib/argmatch.c: Don't include exit.h.
50021         * lib/execute.c: Likewise.
50022         * lib/pagealign_alloc.c: Likewise.
50023         * lib/pipe.c: Likewise.
50024         * lib/wait-process.c: Likewise.
50025         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
50026         * lib/exitfail.c: Likewise.
50027         * lib/savewd.c: Likewise.
50028         * lib/xsetenv.c: Likewise.
50029
50030         * modules/stdlib: New file.
50031         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
50032         and extra comments about mkstemp().
50033         * lib/exit.h: Remove file.
50034         * lib/mkdtemp.h: Remove file.
50035         * lib/mkstemp.h: Remove file.
50036         * m4/stdlib_h.m4: New file.
50037         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
50038
50039 2007-02-18  Bruno Haible  <bruno@clisp.org>
50040
50041         * modules/math-tests: New file.
50042         * tests/test-math.c: New file.
50043
50044         * modules/math: New file.
50045         * modules/mathl (Files): Remove lib/mathl.h.
50046         (Depends-on): Add math.
50047         (Makefile.am): Don't mention mathl.h.
50048         (Include): Use <math.h> instead of mathl.h.
50049         * lib/math_.h: New file.
50050         * lib/mathl.h: Remove file.
50051         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
50052         mathl.h.
50053         * lib/asinl.c: Likewise.
50054         * lib/atanl.c: Likewise.
50055         * lib/ceill.c: Likewise.
50056         * lib/cosl.c: Likewise.
50057         * lib/expl.c: Likewise.
50058         * lib/floorl.c: Likewise.
50059         * lib/frexpl.c: Likewise.
50060         * lib/ldexpl.c: Likewise.
50061         * lib/logl.c: Likewise.
50062         * lib/sincosl.c: Likewise.
50063         * lib/sinl.c: Likewise.
50064         * lib/sqrtl.c: Likewise.
50065         * lib/tanl.c: Likewise.
50066         * lib/trigl.c: Likewise.
50067         * m4/math_h.m4: New file.
50068         * MODULES.html.sh (Mathematics): Add math.
50069
50070 2007-02-17  Bruno Haible  <bruno@clisp.org>
50071
50072         * modules/wctype-tests: New file.
50073         * tests/test-wctype.c: New file.
50074
50075         * modules/wchar-tests: New file.
50076         * tests/test-wchar.c: New file.
50077
50078         * modules/unistd-tests: New file.
50079         * tests/test-unistd.c: New file.
50080
50081         * modules/time-tests: New file.
50082         * tests/test-time.c: New file.
50083
50084         * modules/sysexits-tests: New file.
50085         * tests/test-sysexits.c: New file.
50086
50087         * modules/sys_time-tests: New file.
50088         * tests/test-sys_time.c: New file.
50089
50090         * modules/sys_stat-tests: New file.
50091         * tests/test-sys_stat.c: New file.
50092
50093         * modules/sys_socket-tests: New file.
50094         * tests/test-sys_socket.c: New file.
50095
50096         * modules/sys_select-tests: New file.
50097         * tests/test-sys_select.c: New file.
50098
50099         * modules/string-tests: New file.
50100         * tests/test-string.c: New file.
50101
50102         * modules/stdbool-tests: New file.
50103         * tests/test-stdbool.c: New file.
50104
50105         * modules/netinet_in-tests: New file.
50106         * tests/test-netinet_in.c: New file.
50107
50108         * modules/inttypes-tests: New file.
50109         * tests/test-inttypes.c: New file.
50110
50111         * modules/fcntl-tests: New file.
50112         * tests/test-fcntl.c: New file.
50113
50114         * modules/byteswap-tests: New file.
50115         * tests/test-byteswap.c: New file.
50116
50117         * modules/arpa_inet-tests: New file.
50118         * tests/test-arpa_inet.c: New file.
50119
50120 2007-02-17  Bruno Haible  <bruno@clisp.org>
50121
50122         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
50123         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
50124         if the corresponding module is not enabled. Emit link warnings if
50125         the function is used nevertheless.
50126         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
50127         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
50128         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
50129         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
50130         * modules/inttypes (Depends-on): Add link-warning.
50131         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50132         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
50133         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
50134         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
50135         * modules/imaxdiv (configure.ac): Likewise.
50136         * modules/strtoimax (configure.ac): Likewise.
50137         * modules/strtoumax (configure.ac): Likewise.
50138
50139 2007-02-17  Bruno Haible  <bruno@clisp.org>
50140
50141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
50142         gl_STRING_MODULE_INDICATOR_DEFAULTS.
50143         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
50144         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
50145
50146 2007-02-17  Bruno Haible  <bruno@clisp.org>
50147
50148         * modules/link-warning: New file.
50149         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
50150         * lib/string_.h (GL_LINK_WARNING): Remove definition.
50151         * modules/string (Depends-on): Add link-warning.
50152         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50153         string.h.
50154         * MODULES.html.sh (Support for building libraries and executables): Add
50155         link-warning.
50156
50157 2007-02-17  Bruno Haible  <bruno@clisp.org>
50158
50159         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
50160         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
50161         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
50162         long lines.
50163
50164 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
50165             Bruno Haible  <bruno@clisp.org>
50166
50167         * modules/tmpfile: New file.
50168         * lib/tmpfile.c: New file.
50169         * m4/tmpfile.m4: New file.
50170         * MODULES.html.sh (func_all_modules): New section "Input/output".
50171
50172 2007-02-15  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
50175         (supports_delete_on_close): New function.
50176         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
50177
50178 2007-02-14  Bruno Haible  <bruno@clisp.org>
50179
50180         * modules/mbspcasecmp-tests: New file.
50181         * tests/test-mbspcasecmp.sh: New file.
50182         * tests/test-mbspcasecmp.c: New file.
50183
50184         New module mbspcasecmp.
50185         * modules/mbspcasecmp: New file.
50186         * lib/mbspcasecmp.c: New file.
50187         * lib/string_.h (strncasecmp): Change warning message.
50188         (mbspcasecmp): New declaration.
50189         * m4/mbspcasecmp.m4: New file.
50190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50191         GNULIB_MBSPCASECMP.
50192         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
50193         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
50194
50195 2007-02-14  Bruno Haible  <bruno@clisp.org>
50196
50197         * modules/mbsncasecmp-tests: New file.
50198         * tests/test-mbsncasecmp.sh: New file.
50199         * tests/test-mbsncasecmp.c: New file.
50200
50201         New module mbsncasecmp.
50202         * modules/mbsncasecmp: New file.
50203         * lib/mbsncasecmp.c: New file.
50204         * lib/string_.h (mbsncasecmp): New declaration.
50205         * m4/mbsncasecmp.m4: New file.
50206         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50207         GNULIB_MBSNCASECMP.
50208         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
50209         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
50210
50211 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50212
50213         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
50214         Verify that it doesn't overlap with our flags.
50215         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
50216         do not have the desired effect in multibyte locales; instead, use
50217         mbscasecmp.
50218         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
50219         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
50220         we don't require GNU fnmatch ourselves (if our users require it, they
50221         should do so explicitly).
50222
50223         Fix regex code so it doesn't rely on strcasecmp.
50224         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
50225         Otherwise, include gnulib's langinfo.h.
50226         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
50227         undesirable behavior in non-C locales.  Instead, rely on localecharset.
50228         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
50229         * modules/regex (FILES): Remove m4/codeset.m4.
50230         (Depends-on): Add localcharset.  Remove strcase.
50231
50232 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50233
50234         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
50235         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
50236
50237 2007-02-13  Bruno Haible  <bruno@clisp.org>
50238
50239         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
50240         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50241
50242 2007-02-12  Bruno Haible  <bruno@clisp.org>
50243
50244         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50245         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
50246         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
50247         time warning rather than a link error.
50248
50249 2007-02-12  Bruno Haible  <bruno@clisp.org>
50250
50251         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
50252         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50254
50255 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50256
50257         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
50258         args, not 2.
50259
50260 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50261
50262         New module 'time', so that apps can include <time.h> as per
50263         POSIX and GNU instead of separate include files like time_r.h
50264         and timegm.h.  This implementation tries out a simpler approach
50265         for replacing decls in standard include files (as compared to
50266         the string module), somewhat as an experiment.
50267
50268         * config/srclist.txt: Comment out mktime.c for now.
50269         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
50270         since it doesn't apply any more.  Use generic wording instead.
50271         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
50272         'time'.
50273         * lib/time_.h, m4/time_h.m4, modules/time: New files.
50274         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
50275         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
50276         Don't include <sys/types.h>; no longer needed since we assume C89.
50277         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
50278         * lib/strftime.c: Likewise.
50279         * lib/time_r.c: Likewise.
50280         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
50281         * lib/nanosleep.c: Include <time.h> first, to check interface.
50282         * lib/strptime.c: Likewise.
50283         * lib/time_r.c: Likewise.
50284         * lib/timegm.c: Likewise.
50285         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
50286         needed.
50287         * lib/timegm.c: Don't include timegm.h; no longer needed.
50288         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
50289         time.h now handles any problems in that area.
50290         (struct timespec, nanosleep): Remove; time.h now arranges for these.
50291         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
50292         that time.h defines struct timespec.
50293         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
50294         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
50295         handles that.
50296         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
50297         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
50298         needed.  Set REPLACE_LOCALTIME.
50299         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
50300         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
50301         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
50302         nanosleep; time_h.m4 now does that.  Don't require
50303         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
50304         module handles this now.
50305         * modules/getdate (Depends-on): Remove timespec.  Add time.
50306         * modules/nanosleep (Depends-on): Likewise.
50307         * modules/stat-time (Depends-on): Likewise.
50308         * modules/nanosleep (Include): Include time.h, not timespec.h.
50309         * modules/strptime (Files): Remove lib/strptime.h.
50310         (Depends-on): Add extensions, time.
50311         (Include): Include time.h, not strptime.h.
50312         * modules/time_r (Files): Remove lib/time_r.h.
50313         (Depends-on): Add time.
50314         (Include): Include time.h, not time_r.h.
50315         * modules/timegm: Likewise.
50316         * modules/timespec (Description): Now does timespec-related decls
50317         of our own, instead of struct timespec itself.
50318         (Depends-on): Add time; remove extensions.
50319         (Maintainer): Add self.
50320         * modules/utimecmp (Depends-on): Add time; remove timespec.
50321         * modules/utimens (Depends-on): Likewise.
50322         * modules/xnanosleep (Depends-on): Likewise.
50323
50324 2007-02-11  Bruno Haible  <bruno@clisp.org>
50325
50326         * lib/c-strstr.c: Include allocsa.h.
50327         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50328         * lib/c-strcasestr.c: Include allocsa.h.
50329         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50330         * lib/strcasestr.c: Include allocsa.h.
50331         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50332         * lib/mbsstr.c: Include allocsa.h.
50333         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50334         allocsa/freesa instead of malloc/free.
50335         * lib/mbscasestr.c: Include allocsa.h.
50336         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50337         allocsa/freesa instead of malloc/free.
50338         * modules/c-strstr (Depends-on): Add allocsa.
50339         * modules/c-strcasestr (Depends-on): Likewise.
50340         * modules/strcasestr (Depends-on): Likewise.
50341         * modules/mbsstr (Depends-on): Likewise.
50342         * modules/mbscasestr (Depends-on): Likewise.
50343
50344 2007-02-11  Bruno Haible  <bruno@clisp.org>
50345
50346         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
50347
50348         * modules/mbsspn-tests: New file.
50349         * tests/test-mbsspn.sh: New file.
50350         * tests/test-mbsspn.c: New file.
50351
50352 2007-02-11  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
50355
50356         * modules/mbspbrk-tests: New file.
50357         * tests/test-mbspbrk.sh: New file.
50358         * tests/test-mbspbrk.c: New file.
50359
50360 2007-02-11  Bruno Haible  <bruno@clisp.org>
50361
50362         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
50363         unneeded cast.
50364
50365         * modules/mbscspn-tests: New file.
50366         * tests/test-mbscspn.sh: New file.
50367         * tests/test-mbscspn.c: New file.
50368
50369 2007-02-11  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/mbscasecmp-tests: New file.
50372         * tests/test-mbscasecmp.sh: New file.
50373         * tests/test-mbscasecmp.c: New file.
50374
50375 2007-02-11  Bruno Haible  <bruno@clisp.org>
50376
50377         Ensure O(n) worst-case complexity of mbscasestr.
50378         * lib/mbscasestr.c: Include stdbool.h.
50379         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50380         functions.
50381         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
50382         the bookkeeping indicates that it's worth it.
50383         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
50384
50385         * modules/mbscasestr-tests: New file.
50386         * tests/test-mbscasestr1.c: New file.
50387         * tests/test-mbscasestr2.sh: New file.
50388         * tests/test-mbscasestr2.c: New file.
50389         * tests/test-mbscasestr3.sh: New file.
50390         * tests/test-mbscasestr3.c: New file.
50391         * tests/test-mbscasestr4.sh: New file.
50392         * tests/test-mbscasestr4.c: New file.
50393         * m4/locale-tr.m4: New file.
50394
50395 2007-02-11  Bruno Haible  <bruno@clisp.org>
50396
50397         Ensure O(n) worst-case complexity of mbsstr.
50398         * lib/mbsstr.c: Include stdbool.h.
50399         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50400         functions.
50401         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
50402         bookkeeping indicates that it's worth it.
50403         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
50404
50405         * modules/mbsstr-tests: New file.
50406         * tests/test-mbsstr1.c: New file.
50407         * tests/test-mbsstr2.sh: New file.
50408         * tests/test-mbsstr2.c: New file.
50409         * tests/test-mbsstr3.sh: New file.
50410         * tests/test-mbsstr3.c: New file.
50411         * m4/locale-fr.m4: New file.
50412
50413 2007-02-11  Bruno Haible  <bruno@clisp.org>
50414
50415         * lib/mbsrchr.c (mbsrchr): Fix bug.
50416
50417         * modules/mbsrchr-tests: New file.
50418         * tests/test-mbsrchr.sh: New file.
50419         * tests/test-mbsrchr.c: New file.
50420
50421 2007-02-11  Bruno Haible  <bruno@clisp.org>
50422
50423         * lib/mbschr.c (mbschr): Fix bug.
50424
50425         * modules/mbschr-tests: New file.
50426         * tests/test-mbschr.sh: New file.
50427         * tests/test-mbschr.c: New file.
50428         * m4/locale-zh.m4: New file.
50429
50430 2007-02-11  Bruno Haible  <bruno@clisp.org>
50431
50432         Support for copying multibyte string iterators.
50433         * lib/mbiter.h: Include <string.h>.
50434         (mbiter_multi_copy): New function.
50435         (mbi_copy): New macro.
50436         * lib/mbuiter.h: Include <string.h>.
50437         (mbuiter_multi_copy): New function.
50438         (mbui_copy): New macro.
50439
50440 2007-02-11  Bruno Haible  <bruno@clisp.org>
50441
50442         New module mbslen.
50443         * modules/mbslen: New file.
50444         * lib/mbslen.c: New file.
50445         * lib/string_.h (mbslen): New declaration.
50446         * m4/mbslen.m4: New file.
50447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50448         GNULIB_MBSLEN.
50449         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
50450         * MODULES.html.sh (Internationalization functions): Add mbslen.
50451
50452 2007-02-11  Bruno Haible  <bruno@clisp.org>
50453
50454         Ensure O(n) worst-case complexity of strcasestr substitute.
50455         * lib/strcasestr.c: Include stdbool.h.
50456         (knuth_morris_pratt): New function.
50457         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50458         bookkeeping indicates that it's worth it.
50459         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
50460
50461         * modules/strcasestr-tests: New file.
50462         * tests/test-strcasestr.c: New file.
50463
50464 2007-02-11  Bruno Haible  <bruno@clisp.org>
50465
50466         Ensure O(n) worst-case complexity of c_strcasestr.
50467         * lib/c-strcasestr.c: Include stdbool.h, string.h.
50468         (knuth_morris_pratt): New function.
50469         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
50470         the bookkeeping indicates that it's worth it.
50471         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
50472
50473         * modules/c-strcasestr-tests: New file.
50474         * tests/test-c-strcasestr.c: New file.
50475
50476 2007-02-11  Bruno Haible  <bruno@clisp.org>
50477
50478         Ensure O(n) worst-case complexity of c_strstr.
50479         * lib/c-strstr.c: Include stdbool.h, string.h.
50480         (knuth_morris_pratt): New function.
50481         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50482         bookkeeping indicates that it's worth it.
50483         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
50484
50485         * lib/c-strstr.c: Complete rewrite for maintainability.
50486
50487         * modules/c-strstr-tests: New file.
50488         * tests/test-c-strstr.c: New file.
50489
50490 2007-02-11  Bruno Haible  <bruno@clisp.org>
50491
50492         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
50493         5.2.1 and earlier, whereby \055 was treated just like the range
50494         delimiter '-'.
50495         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50496
50497 2007-02-08  Bruno Haible  <bruno@clisp.org>
50498
50499         * modules/regex (Depends-on): Add stdbool.
50500         Reported by Dalibor Topic <robilad@kaffe.org>.
50501
50502 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50503
50504         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
50505         Prefer returning from main to exiting from it.
50506         Remove unnecessary parens after sizeof.
50507
50508 2007-02-05  Bruno Haible  <bruno@clisp.org>
50509
50510         New module mbssep.
50511         * modules/mbssep: New file.
50512         * lib/mbssep.c: New file.
50513         * lib/string_.h (strsep): Add a conditional link warning.
50514         (mbssep): New declaration.
50515         * m4/mbssep.m4: New file.
50516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50517         GNULIB_MBSSEP.
50518         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
50519         * MODULES.html.sh (Internationalization functions): Add mbssep.
50520
50521 2007-02-05  Bruno Haible  <bruno@clisp.org>
50522
50523         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
50524         Optimize search in case of 1 delimiter.
50525
50526 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50527
50528         * lib/acl.h: Include sys/types.h before sys/acl.h.
50529
50530 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50531
50532         Merge upstream fix for glibc bugzilla #3957:
50533
50534         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
50535
50536         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
50537         bit for RE_HAT_LISTS_NOT_NEWLINE.
50538         (build_charclass_op): Remove bogus comment.
50539
50540 2007-02-05  Simon Josefsson  <simon@josefsson.org>
50541
50542         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
50543
50544 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50545
50546         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
50547         * lib/memmem.c [!defined _LIBC]: Include config.h.
50548
50549 2007-02-04  Bruno Haible  <bruno@clisp.org>
50550
50551         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
50552         warning message.
50553
50554 2007-02-04  Bruno Haible  <bruno@clisp.org>
50555
50556         New module mbstok_r.
50557         * modules/mbstok_r: New file.
50558         * lib/mbstok_r.c: New file.
50559         * lib/string_.h (strtok_r): Change argument names to match the
50560         comments. Add a conditional link warning.
50561         (mbstok_r): New declaration.
50562         * m4/mbstok_r.m4: New file.
50563         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50564         GNULIB_MBSTOK_R.
50565         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
50566         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
50567
50568 2007-02-04  Bruno Haible  <bruno@clisp.org>
50569
50570         New module mbsspn.
50571         * modules/mbsspn: New file.
50572         * lib/mbsspn.c: New file.
50573         * lib/string_.h (strspn): Add a conditional link warning.
50574         (mbsspn): New declaration.
50575         * m4/mbsspn.m4: New file.
50576         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50577         GNULIB_MBSSPN.
50578         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
50579         * MODULES.html.sh (Internationalization functions): Add mbsspn.
50580
50581 2007-02-04  Bruno Haible  <bruno@clisp.org>
50582
50583         New module mbspbrk.
50584         * modules/mbspbrk: New file.
50585         * lib/mbspbrk.c: New file.
50586         * lib/string_.h (strpbrk): Add a conditional link warning.
50587         (mbspbrk): New declaration.
50588         * m4/mbspbrk.m4: New file.
50589         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50590         GNULIB_MBSPBRK.
50591         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
50592         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
50593
50594 2007-02-04  Bruno Haible  <bruno@clisp.org>
50595
50596         New module mbscspn.
50597         * modules/mbscspn: New file.
50598         * lib/mbscspn.c: New file.
50599         * lib/string_.h (strcspn): Add a conditional link warning.
50600         (mbscspn): New declaration.
50601         * m4/mbscspn.m4: New file.
50602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50603         GNULIB_MBSCSPN.
50604         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
50605         * MODULES.html.sh (Internationalization functions): Add mbscspn.
50606
50607 2007-02-04  Bruno Haible  <bruno@clisp.org>
50608
50609         New module mbscasestr, reduced goal of strcasestr.
50610         * modules/mbscasestr: New file.
50611         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
50612         (mbscasestr): Renamed from strcasestr.
50613         * lib/strcasestr.c: Don't include mbuiter.h.
50614         (strcasestr): Remove support for multibyte locales.
50615         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
50616         Change the conditional link warning.
50617         (mbscasestr): New declaration.
50618         * m4/mbscasestr.m4: New file.
50619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
50620         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
50621         REPLACE_STRCASESTR.
50622         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
50623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50624         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50625         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
50626         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
50627         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50628         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
50629         (Depends-on): Remove mbuiter.
50630         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
50631
50632 2007-02-04  Bruno Haible  <bruno@clisp.org>
50633
50634         Simplify handling of strncasecmp.
50635         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
50636         the conditional link warning.
50637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50638         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
50639         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
50640         * modules/strcase (configure.ac): Don't invoke
50641         gl_STRING_MODULE_INDICATOR.
50642         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
50643
50644 2007-02-04  Bruno Haible  <bruno@clisp.org>
50645
50646         New module mbscasecmp, reduced goal of strcasecmp.
50647         * modules/mbscasecmp: New file.
50648         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
50649         (mbscasecmp): Renamed from strcasecmp.
50650         * lib/strcasecmp.c: Don't include mbuiter.h.
50651         (strcasecmp): Remove support for multibyte locales.
50652         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
50653         Change the conditional link warning.
50654         (mbscasecmp): New declaration.
50655         * m4/mbscasecmp.m4: New file.
50656         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
50657         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
50658         REPLACE_STRCASECMP.
50659         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
50660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50661         GNULIB_MBSCASECMP.
50662         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
50663         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
50664         * modules/strcase (Files): Remove m4/mbrtowc.m4.
50665         (Depends-on): Remove mbuiter.
50666         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
50667
50668 2007-02-04  Bruno Haible  <bruno@clisp.org>
50669
50670         New module mbsstr. Remove module strstr.
50671         * modules/mbsstr: New file.
50672         * modules/strstr: Remove file.
50673         * lib/mbsstr.c: Renamed from lib/strstr.c.
50674         (mbsstr): Renamed from strstr.
50675         * lib/string_.h (strstr): Remove declaration. Change the conditional
50676         link warning.
50677         (mbsstr): New declaration.
50678         * m4/mbsstr.m4: New file.
50679         * m4/strstr.m4: Remove file.
50680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50681         REPLACE_STRSTR.
50682         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
50683         Don't initialize GNULIB_STRSTR.
50684         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
50685         substitute GNULIB_STRSTR and REPLACE_STRSTR.
50686         * MODULES.html.sh (Internationalization functions): Add mbsstr.
50687         (Support for systems lacking ANSI C 89): Remove strstr.
50688
50689 2007-02-04  Bruno Haible  <bruno@clisp.org>
50690
50691         New module mbsrchr.
50692         * modules/mbsrchr: New file.
50693         * lib/mbsrchr.c: New file.
50694         * lib/string_.h (strrchr): Add a conditional link warning.
50695         (mbsrchr): New declaration.
50696         * m4/mbsrchr.m4: New file.
50697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50698         GNULIB_MBSRCHR.
50699         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
50700         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
50701
50702 2007-02-04  Bruno Haible  <bruno@clisp.org>
50703
50704         New module mbschr.
50705         * modules/mbschr: New file.
50706         * lib/mbschr.c: New file.
50707         * lib/string_.h (strchr): Add a conditional link warning.
50708         (mbschr): New declaration.
50709         * m4/mbschr.m4: New file.
50710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50711         GNULIB_MBSCHR.
50712         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
50713         * MODULES.html.sh (Internationalization functions): Add mbschr.
50714
50715 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50716
50717         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
50718
50719         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
50720
50721 2007-02-04  Bruno Haible  <bruno@clisp.org>
50722
50723         New module description section 'configure.ac-early'.
50724         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
50725         (func_get_autoconf_early_snippet): New function.
50726         (func_import, func_create_testdir): Use it. Remove special cases for
50727         modules 'extensions' and 'lock'.
50728         * modules/extensions (configure.ac-early): Require
50729         gl_USE_SYSTEM_EXTENSIONS.
50730         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
50731
50732 2007-02-04  Bruno Haible  <bruno@clisp.org>
50733
50734         Make use of gcj-4.3's -fsource and -ftarget option.
50735         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
50736         and if so try the options -fsource and -ftarget.
50737         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
50738         source_version, ftarget_option, target_version arguments.
50739         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
50740         (is_envjavac_oldgcj_14_14_usable): Renamed from
50741         is_envjavac_gcj_14_14_usable.
50742         (is_envjavac_oldgcj_14_13_usable): Renamed from
50743         is_envjavac_gcj_14_13_usable.
50744         (is_gcj_present): Update.
50745         (is_gcj_43, is_gcj43_usable): New functions.
50746         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
50747         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
50748         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
50749         try the options -fsource and -ftarget.
50750
50751 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50752
50753         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
50754         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
50755         larger value.
50756
50757 2007-02-03  Jim Meyering  <jim@meyering.net>
50758
50759         Give tools a better chance to allocate space for very large buffers.
50760         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
50761
50762         Make pwd and readlink work also when run with an unreadable parent dir
50763         on systems with openat support.
50764         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
50765         provided getcwd function, even when we have openat support.
50766         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
50767
50768 2007-02-02  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50771         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
50772         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
50773         portability problems if one of these functions is only used on specific
50774         platforms.
50775         Reported by Paul Eggert.
50776
50777 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
50778
50779         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
50780         is causing more trouble than it's curing.
50781         * lib/regex_internal.h (__mempcpy): Remove.
50782         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
50783         (and make the code a tad smaller to boot).
50784         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
50785
50786 2007-02-02  Jim Meyering  <jim@meyering.net>
50787
50788         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
50789         section, not in the Makefile.am: one.
50790
50791 2007-02-02  Eric Blake  <ebb9@byu.net>
50792
50793         * lib/strchrnul.c: Always include config.h first.
50794
50795         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
50796         gnulib strstr is not necessary here.
50797
50798 2007-02-02  Simon Josefsson  <simon@josefsson.org>
50799
50800         * m4/socklen.m4: Fix typo.
50801
50802 2007-02-02  Eric Blake  <ebb9@byu.net>
50803
50804         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
50805         * modules/netinet_in (Makefile.am): Likewise.
50806
50807 2007-02-01  Bruno Haible  <bruno@clisp.org>
50808
50809         * lib/string_.h (GL_LINK_WARNING): New macro.
50810         (strcasecmp, strstr, strcasestr): If provided by the system,
50811         conditionally define as a macro that leads to a warning instead of to
50812         an error.
50813         (strncasecmp): Conditionally define as a macro that leads to a warning.
50814
50815 2007-02-01  Karl Berry  <karl@gnu.org>
50816
50817         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
50818
50819 2007-02-01  Bruno Haible  <bruno@clisp.org>
50820
50821         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
50822         renamings.
50823
50824 2007-02-01  Eric Blake  <ebb9@byu.net>
50825
50826         * modules/regex (Depends-on): Revert dependence on mempcpy.
50827         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
50828         module's definition of mempcpy.
50829         Reported by Paul Eggert.
50830
50831 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
50832
50833         * lib/string_.h: If the gnulib module XYZ is not present, undefine
50834         the symbol XYZ before redefining it.  This fixes a problem with
50835         programs that don't use XYZ, when compiled on systems that define
50836         XYZ to something else.
50837
50838 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
50839
50840         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
50841         occurs when "mkdir -m foo" creates a setgid directory that is (1)
50842         writeable to group or other and (2) is intended to have a special
50843         mode bit that is set or cleared.  In such a case, the directory
50844         should be neither group- nor other-writeable until the special
50845         mode bits are right.
50846
50847 2007-01-31  Eric Blake  <ebb9@byu.net>
50848
50849         * modules/mountlist (Depends-on): Add strstr.
50850
50851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
50852         bug.
50853         * modules/string (Makefile.am): Remove redundant replacement.
50854         * modules/regex (Depends-on): Add mempcpy.
50855
50856 2007-01-31  Bruno Haible  <bruno@clisp.org>
50857
50858         New module description field 'Link'.
50859         * gnulib-tool (func_usage): Document --extract-link-directive.
50860         (sed_extract_prog): Recognize 'Link' directive.
50861         (func_get_link_directive): New function.
50862         (func_import): Show summary of link directives.
50863         Handle --extract-link-directive option.
50864         * modules/acl (Link): New section.
50865         * modules/clock-time (Link): New section.
50866         * modules/euidaccess (Link): New section.
50867         * modules/gettext (Link): New section.
50868         * modules/iconv (Link): New section.
50869         * modules/lock (Link): New section.
50870         * modules/nanosleep (Link): New section.
50871         * modules/readline (Link): New section.
50872
50873 2007-01-27  Bruno Haible  <bruno@clisp.org>
50874
50875         Enforce the use of gnulib modules for unportable <string.h> functions.
50876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
50877         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
50878         (gl_HEADER_STRING_H_BODY): Require it.
50879         * lib/string_.h: If the gnulib module XYZ is not present, redefine
50880         the symbol XYZ to one that gives a link error.
50881         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
50882         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
50883         * modules/mempcpy (configure.ac): Likewise.
50884         * modules/memrchr (configure.ac): Likewise.
50885         * modules/stpcpy (configure.ac): Likewise.
50886         * modules/stpncpy (configure.ac): Likewise.
50887         * modules/strcase (configure.ac): Likewise.
50888         * modules/strcasestr (configure.ac): Likewise.
50889         * modules/strchrnul (configure.ac): Likewise.
50890         * modules/strdup (configure.ac): Likewise.
50891         * modules/strndup (configure.ac): Likewise.
50892         * modules/strnlen (configure.ac): Likewise.
50893         * modules/strpbrk (configure.ac): Likewise.
50894         * modules/strsep (configure.ac): Likewise.
50895         * modules/strstr (configure.ac): Likewise.
50896         * modules/strtok_r (configure.ac): Likewise.
50897
50898 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
50899
50900         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
50901
50902 2007-01-30  Jim Meyering  <jim@meyering.net>
50903
50904         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
50905
50906 2007-01-29  Bruno Haible  <bruno@clisp.org>
50907
50908         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
50909         * lib/execute.c: Likewise.
50910         * lib/pipe.c: Likewise.
50911         * lib/printf-args.h: Likewise.
50912         * lib/printf-args.c: Likewise.
50913         * lib/printf-parse.c: Likewise.
50914         * lib/vasnprintf.c: Likewise.
50915
50916 2007-01-29  Eric Blake  <ebb9@byu.net>
50917
50918         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
50919         declaration.
50920
50921 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
50922
50923         * lib/strptime.h (strptime): Use 'restrict' for args where
50924         POSIX requires this.
50925         * lib/strptime.c (strptime): Likewise.
50926         Change license notice from LGPL to GPL, since gnulib-tool will
50927         change this as needed.
50928         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
50929         defined.
50930         Include "strptime.h" first, to check interface.
50931         Do not #undef _LIBC and _NL_CURRENT.
50932         Do not include <stdlib.h>; no longer needed.
50933         Include "time_r.h" and declare ptime_locale_status
50934         only if _LIBC is not defined.
50935         (__P): Remove unused macro.
50936         (match_string): Bring back glibc version, but use it only if _LIBC
50937         is defined.
50938         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
50939         Remove unnecessary assertion and abort() call.
50940         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
50941         * m4/strptime.m4: Fix serial number comment.
50942         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
50943         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
50944         (Depends-on): Add time_r.
50945
50946 2007-01-29  Bruno Haible  <bruno@clisp.org>
50947
50948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50949         strptime.
50950         * modules/strptime (Depends-on): Add stdbool.
50951         * lib/strptime.h: Include <time.h> always. Add comments.
50952
50953 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50954
50955         * modules/strptime: New file.
50956         * lib/strptime.h: New file.
50957         * lib/strptime.c: New file.
50958         * m4/strptime.m4: New file.
50959
50960 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
50961
50962         * MODULES.html.sh: New module mpsort.
50963         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
50964
50965         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
50966         a circularity problem with HP-UX ia64 reported by Bob Proulx in
50967         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
50968         All uses changed.
50969         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
50970         All uses changed.
50971         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
50972         to _Restrict_.
50973         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
50974         the parameter matches the prototype.
50975
50976 2007-01-28  Jim Meyering  <jim@meyering.net>
50977
50978         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
50979         sys/time.h here, reverting that part of the previous patch:
50980         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
50981
50982 2007-01-28  Bruno Haible  <bruno@clisp.org>
50983
50984         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
50985         value of $(SYS_TIME_H).
50986         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
50987         remove it conditionally, too. [added by Jim Meyering]
50988         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
50989         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50990         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
50991         GETTIMEOFDAY_REPLACEMENT to 1.
50992
50993 2007-01-28  Bruno Haible  <bruno@clisp.org>
50994
50995         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
50996         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
50997         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
50998         Set UNISTD_H instead of UNISTD_H2.
50999         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
51000
51001 2007-01-28  Bruno Haible  <bruno@clisp.org>
51002
51003         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
51004         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
51005
51006 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51007
51008         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
51009         (func_create_testdir): Ensure C locale for `grep' and `tr'
51010         character ranges.
51011         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
51012         ACLOCAL_AMFLAGS parsing state machine.
51013
51014 2007-01-27  Bruno Haible  <bruno@clisp.org>
51015
51016         * modules/unistr/base: Update.
51017
51018 2007-01-27  Bruno Haible  <bruno@clisp.org>
51019
51020         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
51021         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
51022         * modules/unistr/u32-mbtouc-unsafe: Renamed from
51023         modules/unistr/u32-mbtouc.
51024         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
51025         * lib/unistr.h: Update.
51026         * lib/linebreak.c: Update.
51027         * modules/unistr/u32-mbtouc: Renamed from
51028         modules/unistr/u32-mbtouc-safe.
51029         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
51030         * lib/unistr.h: Update.
51031         * lib/unistr/u32-to-u8.c: Update.
51032         * lib/unistr/u32-to-u16.c: Update.
51033
51034 2007-01-27  Bruno Haible  <bruno@clisp.org>
51035
51036         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
51037         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
51038         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
51039         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
51040         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
51041         * modules/unistr/u16-mbtouc-unsafe: Renamed from
51042         modules/unistr/u16-mbtouc.
51043         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
51044         * lib/unistr.h: Update.
51045         * lib/linebreak.c: Update.
51046         * modules/linebreak: Update.
51047         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
51048         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
51049         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
51050         * modules/unistr/u16-mbtouc: Renamed from
51051         modules/unistr/u16-mbtouc-safe.
51052         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
51053         * lib/unistr.h: Update.
51054         * lib/unistr/u16-to-u8.c: Update.
51055         * modules/unistr/u16-to-u8: Update.
51056         * lib/unistr/u16-to-u32.c: Update.
51057         * modules/unistr/u16-to-u32: Update.
51058
51059 2007-01-27  Bruno Haible  <bruno@clisp.org>
51060
51061         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
51062         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
51063         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
51064         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
51065         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
51066         * modules/unistr/u8-mbtouc-unsafe: Renamed from
51067         modules/unistr/u8-mbtouc.
51068         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
51069         * lib/unistr.h: Update.
51070         * lib/striconveh.c: Update.
51071         * modules/striconveh: Update.
51072         * lib/linebreak.c: Update.
51073         * modules/linebreak: Update.
51074         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
51075         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
51076         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
51077         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
51078         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
51079         * lib/unistr.h: Update.
51080         * lib/striconveh.c: Update.
51081         * modules/striconveh: Update.
51082         * lib/unistr/u8-to-u16.c: Update.
51083         * modules/unistr/u8-to-u16: Update.
51084         * lib/unistr/u8-to-u32.c: Update.
51085         * modules/unistr/u8-to-u32: Update.
51086
51087 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51088
51089         Sync from Libtool.
51090         * lib/argz.c: Do not include strings.h nor memory.h, include
51091         string.h unconditionally.  Patch by Simon Josefsson.
51092
51093 2007-01-27  Bruno Haible  <bruno@clisp.org>
51094
51095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
51096         from gl_HEADER_STRING_H_BODY.
51097         (gl_HEADER_STRING_H_BODY): Require it.
51098         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
51099         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51100         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51101         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51102         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51103         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
51104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51105         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51106         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
51107         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51108         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51109         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
51110         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51111         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51112         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51113
51114 2007-01-27  Bruno Haible  <bruno@clisp.org>
51115
51116         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
51117         check_PROGRAMS into noinst_PROGRAMS.
51118         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
51119         check_PROGRAMS in this case.
51120         (func_import): Set for_test to false.
51121         (func_create_testdir): Set for_test to true.
51122
51123 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51124             Bruno Haible  <bruno@clisp.org>
51125
51126         * modules/strcasestr (Files): Remove lib/strcasestr.h.
51127         (Depends-on): Add string.
51128         (Includes): Use <string.h> instead of strcasestr.h.
51129         * modules/string (Makefile.am): Also substitute the value of
51130         REPLACE_STRCASESTR.
51131         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
51132         assume strcasestr is declared in <string.h> not <strings.h>. Also
51133         set REPLACE_STRCASESTR.
51134         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
51135         REPLACE_STRCASESTR.
51136         * lib/strcasestr.h: Remove file.
51137         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
51138         * lib/string_.h (strcasestr): New declaration.
51139
51140 2007-01-27  Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/string_.h: Use 'extern'.
51143
51144 2007-01-27  Jim Meyering  <jim@meyering.net>
51145
51146         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
51147         of set-but-not-used local, "q".
51148
51149         * lib/mempcpy.c: Include <config.h> before <string.h>.
51150         This fixes a compilation error on HP-UX, due to the system's
51151         "restrict"-using mempcpy prototype.
51152
51153 2007-01-26  Bruno Haible  <bruno@clisp.org>
51154
51155         Small optimization.
51156         * lib/javacomp.c: Include c-strstr.h.
51157          (is_envjavac_gcj): Use c_strstr instead of strstr.
51158         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
51159
51160 2007-01-26  Bruno Haible  <bruno@clisp.org>
51161
51162         * MODULES.html.sh (Unicode string functions): Add the new modules.
51163
51164         * modules/uniconv/u32-strconv-to-locale: New file.
51165         * lib/uniconv/u32-strconv-to-locale.c: New file.
51166
51167         * modules/uniconv/u16-strconv-to-locale: New file.
51168         * lib/uniconv/u16-strconv-to-locale.c: New file.
51169
51170         * modules/uniconv/u8-strconv-to-locale: New file.
51171         * lib/uniconv/u8-strconv-to-locale.c: New file.
51172
51173         * modules/uniconv/u32-strconv-from-locale: New file.
51174         * lib/uniconv/u32-strconv-from-locale.c: New file.
51175
51176         * modules/uniconv/u16-strconv-from-locale: New file.
51177         * lib/uniconv/u16-strconv-from-locale.c: New file.
51178
51179         * modules/uniconv/u8-strconv-from-locale: New file.
51180         * lib/uniconv/u8-strconv-from-locale.c: New file.
51181
51182         * modules/uniconv/u32-strconv-to-enc: New file.
51183         * lib/uniconv/u32-strconv-to-enc.c: New file.
51184         * modules/uniconv/u32-strconv-to-enc-tests: New file.
51185         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
51186
51187         * modules/uniconv/u16-strconv-to-enc: New file.
51188         * lib/uniconv/u16-strconv-to-enc.c: New file.
51189         * lib/uniconv/u-strconv-to-enc.h: New file.
51190         * modules/uniconv/u16-strconv-to-enc-tests: New file.
51191         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
51192
51193         * modules/uniconv/u8-strconv-to-enc: New file.
51194         * lib/uniconv/u8-strconv-to-enc.c: New file.
51195         * modules/uniconv/u8-strconv-to-enc-tests: New file.
51196         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
51197
51198         * modules/uniconv/u32-strconv-from-enc: New file.
51199         * lib/uniconv/u32-strconv-from-enc.c: New file.
51200         * modules/uniconv/u32-strconv-from-enc-tests: New file.
51201         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
51202
51203         * modules/uniconv/u16-strconv-from-enc: New file.
51204         * lib/uniconv/u16-strconv-from-enc.c: New file.
51205         * modules/uniconv/u16-strconv-from-enc-tests: New file.
51206         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
51207
51208         * modules/uniconv/u8-strconv-from-enc: New file.
51209         * lib/uniconv/u8-strconv-from-enc.c: New file.
51210         * lib/uniconv/u-strconv-from-enc.h: New file.
51211         * modules/uniconv/u8-strconv-from-enc-tests: New file.
51212         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
51213
51214         * modules/uniconv/u32-conv-from-enc: New file.
51215         * lib/uniconv/u32-conv-from-enc.c: New file.
51216         * modules/uniconv/u32-conv-from-enc-tests: New file.
51217         * tests/uniconv/test-u32-conv-from-enc.c: New file.
51218
51219         * modules/uniconv/u16-conv-from-enc: New file.
51220         * lib/uniconv/u16-conv-from-enc.c: New file.
51221         * lib/uniconv/u-conv-from-enc.h: New file.
51222         * modules/uniconv/u16-conv-from-enc-tests: New file.
51223         * tests/uniconv/test-u16-conv-from-enc.c: New file.
51224
51225         * modules/uniconv/u8-conv-from-enc: New file.
51226         * lib/uniconv/u8-conv-from-enc.c: New file.
51227         * modules/uniconv/u8-conv-from-enc-tests: New file.
51228         * tests/uniconv/test-u8-conv-from-enc.c: New file.
51229
51230         * modules/uniconv/base: New file.
51231         * lib/uniconv.h: New file.
51232
51233 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51234
51235         * doc/gnulib-tool.texi (Initial import): Update to match current
51236         behavior with strdup module.
51237         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
51238         * lib/memmem.h: Remove; all uses removed.  This is now done
51239         by <string.h>.
51240         * lib/mempcpy.h: Likewise.
51241         * lib/memrchr.h: Likewise.
51242         * lib/stpcpy.h: Likewise.
51243         * lib/stpncpy.h: Likewise.
51244         * lib/strcase.h: Likewise.
51245         * lib/strchrnul.h: Likewise.
51246         * lib/strdup.h: Likewise.
51247         * lib/strndup.h: Likewise.
51248         * lib/strnlen.h: Likewise.
51249         * lib/strpbrk.h: Likewise.
51250         * lib/strsep.h: Likewise.
51251         * lib/strstr.h: Likewise.
51252         * lib/strtok_r.h: Likewise.
51253         * lib/string_.h: New file.
51254         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
51255         Rely on <string.h> instead.
51256         * lib/canon-host.c: Likewise.
51257         * lib/chdir-long.c: Likewise.
51258         * lib/concatpath.c: Likewise.
51259         * lib/exclude.c: Likewise.
51260         * lib/fchdir.c: Likewise.
51261         * lib/getaddrinfo.c: Likewise.
51262         * lib/getcwd.c: Likewise.
51263         * lib/getsubopt.c: Likewise.
51264         * lib/glob.c: Likewise.
51265         * lib/hard-locale.c: Likewise.
51266         * lib/iconvme.c: Likewise.
51267         * lib/javacomp.c: Likewise.
51268         * lib/mempcpy.c: Likewise.
51269         * lib/memrchr.c: Likewise.
51270         * lib/regex_internal.h: Likewise.
51271         * lib/stpncpy.c: Likewise.
51272         * lib/strcasecmp.c: Likewise.
51273         * lib/strchrnul.c: Likewise.
51274         * lib/strdup.c: Likewise.
51275         * lib/striconv.c: Likewise.
51276         * lib/striconveh.c: Likewise.
51277         * lib/striconveha.c: Likewise.
51278         * lib/strncasecmp.c: Likewise.
51279         * lib/strndup.c: Likewise.
51280         * lib/strnlen.c: Likewise.
51281         * lib/strsep.c: Likewise.
51282         * lib/strstr.c: Likewise.
51283         * lib/strtok_r.c: Likewise.
51284         * lib/userspec.c: Likewise.
51285         * lib/w32spawn.h: Likewise.
51286         * lib/xstrndup.c: Likewise.
51287         * lib/mountlist.c (strstr): Remove decl.
51288         * m4/string_h.m4: New file.
51289         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
51290         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
51291         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
51292         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
51293         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
51294         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
51295         Set REPLACE_STRCASECMP if necessary.
51296         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
51297         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
51298         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
51299         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
51300         HAVE_DECL_STRDUP if necessary.
51301         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
51302         since gl_FUNC_STRNDUP does that now.
51303         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
51304         Check for decl here...
51305         (gl_PREREQ_STRNLEN): ... not here.
51306         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
51307         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
51308         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
51309         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
51310         necessary.
51311         * modules/string: New file.
51312         * modules/memmem (Files): Remove special-purpose include file.
51313         (Depends-on): Add string.
51314         (Include): Include <string.h>, not the removed file.
51315         * modules/mempcpy: Likewise.
51316         * modules/memrchr: Likewise.
51317         * modules/stpcpy: Likewise.
51318         * modules/stpncpy: Likewise.
51319         * modules/strcase: Likewise.
51320         * modules/strchrnul: Likewise.
51321         * modules/strdup: Likewise.
51322         * modules/strndup: Likewise.
51323         * modules/strnlen: Likewise.
51324         * modules/strpbrk: Likewise.
51325         * modules/strsep: Likewise.
51326         * modules/strstr: Likewise.
51327         * modules/strtok_r: Likewise.
51328         * tests/test-dirname.c: Don't include "strdup.h", since
51329         <string.h> now suffices.
51330         * tests/test-memmem.c: Don't include "memmem.h", since
51331         <string.h> now suffices.
51332
51333 2007-01-25  Bruno Haible  <bruno@clisp.org>
51334
51335         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
51336         *resultp is 0.
51337
51338         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
51339         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
51340         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
51341         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
51342
51343         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
51344         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
51345         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
51346         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
51347         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
51348         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
51349
51350 2007-01-24  Bruno Haible  <bruno@clisp.org>
51351
51352         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
51353         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
51354         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
51355         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
51356         gl_FUNC_FTS_CORE.
51357         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
51358         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
51359         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51360         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
51361         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
51362         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
51363         gl_FUNC_FCHOWNAT.
51364         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
51365         gl_FUNC_STRFTIME.
51366         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
51367         Reported by Ralf Wildenhues.
51368
51369 2007-01-24  Bruno Haible  <bruno@clisp.org>
51370
51371         Drop AC_REQUIRE calls that are redundant with the module dependencies.
51372         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
51373         gl_GETADDRINFO.
51374         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
51375         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
51376         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
51377
51378 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
51379
51380         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
51381         Don't use 'exit'; just return from 'main'.
51382         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
51383
51384         * lib/fnmatch_.h: Readjust white space and comments to match
51385         glibc, to avoid spurious diffs.
51386
51387 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51388
51389         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
51390         2004-12-01 change by Jakub Jelinek, since this code won't compile
51391         if !LIBC.  Problem reported by Bob Proulx.
51392
51393 2007-01-23  Bruno Haible  <bruno@clisp.org>
51394
51395         * lib/striconveh.c: Include c-strcaseeq.h.
51396         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
51397         * modules/striconveh (Depends-on): Add c-strcaseeq.
51398
51399 2007-01-23  Bruno Haible  <bruno@clisp.org>
51400
51401         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
51402
51403         * modules/c-strcaseeq: New file.
51404         * lib/c-strcaseeq.h: New file.
51405
51406         * modules/streq: New file.
51407         * lib/streq.h: New file.
51408
51409 2007-01-23  Bruno Haible  <bruno@clisp.org>
51410
51411         * modules/striconveha-tests: New file.
51412         * tests/test-striconveha.c: New file.
51413
51414         * lib/striconveha.h: Include <stdbool.h>.
51415         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
51416         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
51417         (mem_iconveha_notranslit): Renamed from mem_iconveha.
51418         (mem_iconveha): New function.
51419         (str_iconveha_notranslit): Renamed from str_iconveha.
51420         (str_iconveha): New function.
51421         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
51422         c-strcase.
51423
51424 2007-01-23  Bruno Haible  <bruno@clisp.org>
51425
51426         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
51427         encodings without forgiving before trying any encoding with handler.
51428         (str_iconveha): Try all encodings without forgiving before trying any
51429         encoding with handler.
51430
51431 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51432
51433         Import the following changes from libc.
51434
51435         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51436
51437         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
51438
51439         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51440
51441         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
51442         normal_bracket label.
51443
51444         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
51445
51446         [BZ #361]
51447         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
51448         to normal_bracket after fetching the next character.
51449
51450 2007-01-22  Bruno Haible  <bruno@clisp.org>
51451
51452         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
51453         argument.
51454         * lib/striconveh.c (iconv_carefully_1): New function.
51455         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
51456         argument.
51457         (str_cd_iconveh): Update.
51458         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
51459         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
51460         * tests/test-striconveh.c (MAGIC): New macro.
51461         (new_offsets): New function.
51462         (main): Test call with and without offsets.
51463
51464 2007-01-22  Bruno Haible  <bruno@clisp.org>
51465
51466         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
51467         * modules/sys_select (Makefile.am): Likewise.
51468         * modules/sys_socket (Makefile.am): Likewise.
51469         * modules/sys_time (Makefile.am): Likewise.
51470
51471 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51472
51473         * modules/gettimeofday (License): Change from GPL to LGPL, since
51474         gettimeofday is a library function.
51475
51476 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51477
51478         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
51479
51480 2007-01-21  Bruno Haible  <bruno@clisp.org>
51481
51482         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
51483
51484 2007-01-21  Bruno Haible  <bruno@clisp.org>
51485
51486         * modules/striconveha: New file.
51487         * lib/striconveha.h: New file.
51488         * lib/striconveha.c: New file.
51489         * MODULES.html.sh (Internationalization functions): Add striconveha.
51490         * lib/striconv.c (str_iconv): Optimize the case of an empty input
51491         string.
51492         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
51493
51494 2007-01-21  Bruno Haible  <bruno@clisp.org>
51495
51496         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
51497         * lib/striconveh.c (str_iconveh): Likewise.
51498
51499 2007-01-21  Bruno Haible  <bruno@clisp.org>
51500
51501         * lib/striconveh.h (mem_iconveh): New declaration.
51502         * lib/striconveh.c (mem_iconveh): New function.
51503         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
51504
51505 2007-01-21  Bruno Haible  <bruno@clisp.org>
51506
51507         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
51508
51509         * lib/striconveh.h (mem_cd_iconveh): Change specification.
51510         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
51511         original result buffer.
51512         (str_cd_iconveh): Update.
51513         * tests/test-striconveh.c (main): Update.
51514
51515         * lib/striconv.h (mem_cd_iconv): Change specification.
51516         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
51517         result buffer.
51518         (str_cd_iconv): Update.
51519         * tests/test-striconv.c (main): Update.
51520
51521 2007-01-21  Bruno Haible  <bruno@clisp.org>
51522
51523         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
51524
51525 2007-01-20  Jim Meyering  <jim@meyering.net>
51526
51527         * lib/userspec.c (parse_with_separator): If a user or group string
51528         starts with "+", skip the corresponding name-to-ID look-up, since
51529         such a look-up must fail: user and group names may not include "+".
51530
51531 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51532
51533         * lib/poll.c: Include sys/time.h and time.h unconditionally,
51534         since we now assume the sys_time module.
51535         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
51536         check for sys/time.h; no longer needed.
51537         * modules/poll (Depends-on): Depend on sys_time.
51538
51539 2007-01-18  Bruno Haible  <bruno@clisp.org>
51540
51541         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
51542         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51543
51544         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
51545         gettimeofday.
51546
51547         * tests/test-gettimeofday.c: Include <time.h>.
51548         (dummy): Remove variable.
51549
51550         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
51551         gl_HEADER_SYS_TIME_H.
51552         (gl_HEADER_SYS_TIME_H): New macro.
51553
51554         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
51555         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
51557         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
51558         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51559         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
51560         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
51561         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51562         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
51563         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
51564         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51565
51566         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
51567         last change; it caused a compilation error when cross-compiling to
51568         Cygwin.
51569
51570 2007-01-18  Jim Meyering  <jim@meyering.net>
51571
51572         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
51573         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
51574         than the race-prone "test -d sys || mkdir sys".
51575         (configure.ac): Use AC_PROG_MKDIR_P.
51576         * modules/sys_select: Likewise.
51577         * modules/sys_socket: Likewise.
51578         * modules/sys_time: Likewise.
51579
51580 2007-01-18  Eric Blake  <ebb9@byu.net>
51581
51582         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
51583         replace gettimeofday.
51584         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
51585         name, to avoid infinite recursion.
51586
51587 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
51588
51589         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
51590         module sys_time.
51591         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
51592         assume timespec.h defines struct timeval.
51593         * lib/settime.c: Likewise.
51594         * lib/utimens.c: Likewise.
51595         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
51596         since we now assume the gettimeofday module.
51597         * lib/tempname.c (__gen_tempname): Likewise.
51598         * lib/gettimeofday.h: Remove.
51599         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
51600         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
51601         Include <time.h>, for 'time()'.
51602         (localtime_buffer_addr): Also use this workaround if
51603         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
51604         to simplify the uses.  All uses changed.
51605         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
51606         that #undef is inside {}, and 'const' follows type name consistently.
51607         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
51608         (gettimeofday): Do not use the maximum possible value for
51609         tv->tv_usec, since that might break usages other than ls.c.
51610         Instead, we'll leave ls.c alone.  This undoes today's patch
51611         by Bruno.  Add a compile-time warning for 1s-clock resolution;
51612         we've never observed the problem but might as well keep the
51613         canary.
51614         * lib/nanosleep.c: Include timespec.h first, for interface check.
51615         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
51616         now assume the sys_time module.
51617         * lib/tempname.c: Likewise.
51618         * lib/timespec.h: Likewise.
51619         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
51620         needed.
51621         * lib/strftime.c: Likewise.
51622         * lib/timespec.h: Likewise.
51623         * lib/posixtm.c: Include posixtm.h first, for interface check.
51624         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
51625         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
51626         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
51627         * lib/sys_time_.h: New file.
51628         * lib/timespec.h (struct timespec): Use long int, not long.
51629         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51630         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
51631         Remove obsolescent call to AC_HEADER_TIME.
51632         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51634         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51635         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
51636         Likewise.
51637         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
51638         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
51639         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
51640         into the sys_time module.  Check for gettimeofday just once.
51641         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
51642         for gettimeofday signature to just check the signature.  Merely
51643         compile it, since linking doesn't test signature.  Improve test for
51644         whether gettimeofday.o is actually needed.
51645         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
51646         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
51647         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
51648         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51649         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
51650         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
51651         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
51652         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
51653         than worrying about sys/time.h.
51654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51655         Don't bother worrying about TIME_WITH_SYS_TIME.
51656         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
51657         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
51658         * m4/sys_time_h.m4: New file.
51659         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
51660         Don't include sys/time.h.  Return from main rather than exiting.
51661         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
51662         all uses changed.
51663         * modules/gethrxtime (Depends-on): Add sys_time.
51664         * modules/gettime (Depends-on): Likewise.
51665         * modules/gettimeofday (Depends-on): Likewise.
51666         * modules/nanosleep (Depends-on): Likewise.
51667         * modules/settime (Depends-on): Likewise.
51668         * modules/tempname (Depends-on): Likewise.
51669         * modules/utimens (Depends-on): Likewise.
51670         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
51671         (Include:) Change back to <sys/time.h>.
51672         (Maintainer:) Add self.
51673         * modules/sys_time: New file.
51674         * modules/tempname (Depends-on): Add gettimeofday.
51675         * tests/test-gettimeofday.c: Include <sys/time.h>
51676         rather than gettimeofday.h.
51677
51678 2007-01-17  Bruno Haible  <bruno@clisp.org>
51679
51680         * gnulib-tool (func_get_license): Revert last patch. Instead, let
51681         the license default to GPL.
51682         (func_create_testdir): Don't complain if a module is LGPL and its
51683         tests module depends on GPLed modules.
51684
51685 2007-01-17  Bruno Haible  <bruno@clisp.org>
51686
51687         * lib/gettimeofday.c (gettimeofday): Add code for the case
51688         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
51689         maximum possible value for tv->tv_usec, rather than the minimum one.
51690
51691 2005-10-08  Martin Lambers  <marlam@marlam.de>
51692 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51693 2007-01-16  Bruno Haible  <bruno@clisp.org>
51694
51695         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
51696         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
51697         gl_FUNC_GETTIMEOFDAY.
51698         (Include): Add gettimeofday.h.
51699         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
51700         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
51701         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
51702         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
51703         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
51704         * lib/gettimeofday.h: New file.
51705         * lib/gettimeofday.c: Include <sys/timeb.h>.
51706         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
51707         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51708         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
51709         fall back on time().
51710
51711         * tests/test-gettimeofday.c: New file.
51712         * modules/gettimeofday-tests: New file.
51713
51714 2007-01-16  Eric Blake  <ebb9@byu.net>
51715
51716         * modules/fnmatch (Depends-on): Depend on wchar.
51717         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
51718         * m4/fnmatch.m4: Likewise.
51719         * modules/mbchar (Makefile.am): Assume <wchar.h>.
51720         * m4/mbchar.m4: Likewise.
51721         * modules/mbswidth (Depends-on): Depend on wchar.
51722         * lib/mbswidth.c: Assume <wchar.h>.
51723         * m4/mbswidth.m4: Likewise.
51724         * modules/quotearg (Depends-on): Depend on wchar.
51725         * lib/quotearg.c: Assume <wchar.h>.
51726         * m4/quotearg.m4: Likewise.
51727         * modules/regex (Depends-on): Depend on wchar.
51728         * lib/regex_internal.h: Assume <wchar.h>.
51729         * m4/regex.m4: Likewise.
51730         * modules/stdint (Depends-on): Depend on wchar.
51731         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
51732         * m4/stdint.m4: Likewise.
51733         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
51734         * modules/strftime (Depends-on): Depend on wchar.
51735         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
51736         * modules/strtol (Depends-on): Depend on wchar.
51737         * lib/strtol.c: Assume <wchar.h>.
51738         * modules/wcwidth (Depends-on): Depend on wchar.
51739         * lib/wcwidth.h: Assume <wchar.h>.
51740         * m4/wcwidth.m4: Likewise.
51741
51742 2007-01-16  Bruno Haible  <bruno@clisp.org>
51743
51744         * modules/csharpexec-script: New, created from...
51745         * modules/csharpexec: ... this.
51746
51747 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51748
51749         * modules/javaexec-script: New, created from...
51750         * modules/javaexec: ... this.
51751
51752 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51753
51754         * modules/poll (Dependencies): Add sys_select.
51755
51756 2007-01-15  Jim Meyering  <jim@meyering.net>
51757
51758         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
51759         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
51760         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
51761         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
51762
51763 2007-01-15  Bruno Haible  <bruno@clisp.org>
51764
51765         * modules/striconveh: New file.
51766         * lib/striconveh.h: New file.
51767         * lib/striconveh.c: New file.
51768         * MODULES.html.sh (Internationalization functions): Add striconveh.
51769
51770         * modules/striconveh-tests: New file.
51771         * tests/test-striconveh.c: New file.
51772
51773 2007-01-15  Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
51776         not from GNU libiconv or GNU libc.
51777
51778 2007-01-15  Bruno Haible  <bruno@clisp.org>
51779
51780         * doc/gnulib-intro.texi (Copyright): Explain the different license
51781         terms for module descriptions, autoconf macros, tests, documentation.
51782
51783 2007-01-14  Bruno Haible  <bruno@clisp.org>
51784
51785         * modules/striconv-tests: New file.
51786         * tests/test-striconv.c: New file.
51787
51788 2007-01-14  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/iconv-tests: New file.
51791         * tests/test-iconv.c: New file.
51792
51793 2007-01-14  Bruno Haible  <bruno@clisp.org>
51794
51795         * gnulib-tool (func_get_license): For test modules, use the license of
51796         the main module.
51797
51798 2007-01-14  Bruno Haible  <bruno@clisp.org>
51799
51800         * modules/iconv (Include): Clarify that <iconv.h> can only be included
51801         if iconv is found to exist.
51802
51803 2007-01-14  Bruno Haible  <bruno@clisp.org>
51804
51805         * modules/c-ctype-tests: New file.
51806         * tests/test-c-ctype.c: New file.
51807
51808 2007-01-14  Bruno Haible  <bruno@clisp.org>
51809
51810         * modules/binary-io-tests: New file.
51811         * tests/test-binary-io.sh: New file.
51812         * tests/test-binary-io.c: New file.
51813
51814 2007-01-14  Bruno Haible  <bruno@clisp.org>
51815
51816         * modules/array-oset-tests: New file.
51817         * tests/test-array_oset.c: New file.
51818
51819 2007-01-14  Bruno Haible  <bruno@clisp.org>
51820
51821         * modules/array-list-tests: New file.
51822         * tests/test-array_list.c: New file.
51823
51824 2007-01-14  Bruno Haible  <bruno@clisp.org>
51825
51826         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
51827         and make.
51828         Reported by Simon Josefsson in
51829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
51830
51831 2007-01-14  Bruno Haible  <bruno@clisp.org>
51832
51833         * modules/allocsa-tests: New file.
51834         * tests/test-allocsa.c: New file.
51835
51836 2007-01-14  Bruno Haible  <bruno@clisp.org>
51837
51838         * modules/fchdir (Depends-on): Add absolute-header.
51839         * modules/unistd (Depends-on): Likewise.
51840
51841 2006-12-30  Bruno Haible  <bruno@clisp.org>
51842
51843         * modules/fchdir: New file.
51844         * modules/unistd (Files): Add lib/unistd_.h.
51845         (Makefile.am): Generate unistd.h from unistd_.h.
51846         * lib/fchdir.c: New file.
51847         * lib/dirent_.h: New file.
51848         * lib/unistd_.h: New file.
51849         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
51850         * m4/fchdir.m4: New file.
51851         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
51852         (gl_HEADER_UNISTD): Invoke it.
51853         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
51854         function.
51855         * lib/backupfile.c (opendir, closedir): Undefine.
51856         * lib/chown.c (open, close): Undefine.
51857         * lib/clean-temp.c (open, close): Undefine.
51858         * lib/copy-file.c (open, close): Undefine.
51859         * lib/execute.c (open, close): Undefine.
51860         * lib/fsusage.c (open, close): Undefine.
51861         * lib/gc-gnulib.c (open, close): Undefine.
51862         * lib/getcwd.c (opendir, closedir): Undefine.
51863         * lib/glob.c (opendir, closedir): Undefine.
51864         * lib/javacomp.c (open, close): Undefine.
51865         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
51866         * lib/openat-proc.c (open, close): Undefine.
51867         * lib/pagealign_alloc.c (open, close): Undefine.
51868         * lib/pipe.c (open, close): Undefine.
51869         * lib/progreloc.c (open, close): Undefine.
51870         * lib/savedir.c (opendir, closedir): Undefine.
51871         * lib/utime.c (open, close): Undefine.
51872         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
51873
51874 2007-01-10  Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
51877
51878 2007-01-12  Eric Blake  <ebb9@byu.net>
51879
51880         Provide a robust <wchar.h>.  Further simplifications are now
51881         possible in other modules, but not included here.
51882         * modules/wchar: New module.
51883         * m4/wchar.m4: New file.
51884         * lib/wchar_.h: Likewise.
51885         * modules/mbchar (Depends-on): Depend on wchar, as the first use
51886         of the new module.
51887         * MODULES.html.sh (Extended multibyte and wide character utilities):
51888         New section.
51889
51890 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
51891
51892         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
51893         to a reasonable default for memory allocation.
51894         (xreadlink): Don't allocate a huge buffer, to work around a buggy
51895         file system that reports garbage st_size values for symlinks.
51896         Problem reported by Liyang Hu.
51897
51898 2007-01-11  Simon Josefsson  <simon@josefsson.org>
51899
51900         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
51901         Emacs .#* auto-save files).
51902
51903 2007-01-11  Bruno Haible  <bruno@clisp.org>
51904
51905         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
51906         directory.
51907
51908 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51909
51910         Use @...@ consistently in lib/wctype_.h.
51911         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
51912         on it being set to 1 or 0.
51913         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
51914         go back to AC_SUBSTing it.
51915         * modules/wctype (Makefile.am): Undo previous change.
51916
51917 2007-01-10  Eric Blake  <ebb9@byu.net>
51918
51919         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
51920         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
51921         * modules/wctype (Makefile.am): Likewise.
51922         Reported by Chris McGuire.
51923
51924 2007-01-10  Jim Meyering  <jim@meyering.net>
51925
51926         fts.c: a small readability/maintainability improvement
51927         * lib/fts.c (fts_read): Make this code slightly more readable and
51928         maintainable by hoisting the "sp->fts_cur = p" assignments to
51929         immediately follow the statements that set P.  Derived from
51930         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
51931
51932 2007-01-10  Eric Blake  <ebb9@byu.net>
51933
51934         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
51935         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
51936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51937         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51938         Reported by Chris McGuire.
51939
51940 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51941
51942         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
51943         in sed script.
51944
51945 2007-01-09  Bruno Haible  <bruno@clisp.org>
51946
51947         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
51948         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
51949         variables.
51950         (func_module): Use them.
51951
51952 2007-01-09  Bruno Haible  <bruno@clisp.org>
51953
51954         * modules/unistr/base: New file.
51955         * lib/unistr.h: New file.
51956
51957         * modules/unistr/u8-to-u16: New file.
51958         * lib/unistr/u8-to-u16.c: New file.
51959
51960         * modules/unistr/u8-to-u32: New file.
51961         * lib/unistr/u8-to-u32.c: New file.
51962
51963         * modules/unistr/u16-to-u8: New file.
51964         * lib/unistr/u16-to-u8.c: New file.
51965
51966         * modules/unistr/u16-to-u32: New file.
51967         * lib/unistr/u16-to-u32.c: New file.
51968
51969         * modules/unistr/u32-to-u8: New file.
51970         * lib/unistr/u32-to-u8.c: New file.
51971
51972         * modules/unistr/u32-to-u16: New file.
51973         * lib/unistr/u32-to-u16.c: New file.
51974
51975         * modules/unistr/u8-check: New file.
51976         * modules/unistr/u16-check: New file.
51977         * modules/unistr/u32-check: New file.
51978         * lib/unistr/u8-check.c: New file.
51979         * lib/unistr/u16-check.c: New file.
51980         * lib/unistr/u32-check.c: New file.
51981
51982         * modules/unistr/u8-chr: New file.
51983         * modules/unistr/u16-chr: New file.
51984         * modules/unistr/u32-chr: New file.
51985         * lib/unistr/u8-chr.c: New file.
51986         * lib/unistr/u16-chr.c: New file.
51987         * lib/unistr/u32-chr.c: New file.
51988
51989         * modules/unistr/u8-cmp: New file.
51990         * modules/unistr/u16-cmp: New file.
51991         * modules/unistr/u32-cmp: New file.
51992         * lib/unistr/u8-cmp.c: New file.
51993         * lib/unistr/u16-cmp.c: New file.
51994         * lib/unistr/u32-cmp.c: New file.
51995
51996         * modules/unistr/u8-cpy: New file.
51997         * modules/unistr/u16-cpy: New file.
51998         * modules/unistr/u32-cpy: New file.
51999         * lib/unistr/u8-cpy.c: New file.
52000         * lib/unistr/u16-cpy.c: New file.
52001         * lib/unistr/u32-cpy.c: New file.
52002         * lib/unistr/u-cpy.h: New file.
52003
52004         * modules/unistr/u8-cpy-alloc: New file.
52005         * modules/unistr/u16-cpy-alloc: New file.
52006         * modules/unistr/u32-cpy-alloc: New file.
52007         * lib/unistr/u8-cpy-alloc.c: New file.
52008         * lib/unistr/u16-cpy-alloc.c: New file.
52009         * lib/unistr/u32-cpy-alloc.c: New file.
52010         * lib/unistr/u-cpy-alloc.h: New file.
52011
52012         * modules/unistr/u8-endswith: New file.
52013         * modules/unistr/u16-endswith: New file.
52014         * modules/unistr/u32-endswith: New file.
52015         * lib/unistr/u8-endswith.c: New file.
52016         * lib/unistr/u16-endswith.c: New file.
52017         * lib/unistr/u32-endswith.c: New file.
52018         * lib/unistr/u-endswith.h: New file.
52019
52020         * modules/unistr/u8-mblen: New file.
52021         * modules/unistr/u16-mblen: New file.
52022         * modules/unistr/u32-mblen: New file.
52023         * lib/unistr/u8-mblen.c: New file.
52024         * lib/unistr/u16-mblen.c: New file.
52025         * lib/unistr/u32-mblen.c: New file.
52026
52027         * modules/unistr/u8-mbtouc: New file.
52028         * modules/unistr/u16-mbtouc: New file.
52029         * modules/unistr/u32-mbtouc: New file.
52030         * lib/unistr/u8-mbtouc.c: New file.
52031         * lib/unistr/u16-mbtouc.c: New file.
52032         * lib/unistr/u32-mbtouc.c: New file.
52033
52034         * modules/unistr/u8-mbtouc-safe: New file.
52035         * modules/unistr/u16-mbtouc-safe: New file.
52036         * modules/unistr/u32-mbtouc-safe: New file.
52037         * lib/unistr/u8-mbtouc-safe.c: New file.
52038         * lib/unistr/u16-mbtouc-safe.c: New file.
52039         * lib/unistr/u32-mbtouc-safe.c: New file.
52040
52041         * modules/unistr/u8-move: New file.
52042         * modules/unistr/u16-move: New file.
52043         * modules/unistr/u32-move: New file.
52044         * lib/unistr/u8-move.c: New file.
52045         * lib/unistr/u16-move.c: New file.
52046         * lib/unistr/u32-move.c: New file.
52047         * lib/unistr/u-move.h: New file.
52048
52049         * modules/unistr/u8-next: New file.
52050         * modules/unistr/u16-next: New file.
52051         * modules/unistr/u32-next: New file.
52052         * lib/unistr/u8-next.c: New file.
52053         * lib/unistr/u16-next.c: New file.
52054         * lib/unistr/u32-next.c: New file.
52055
52056         * modules/unistr/u8-prev: New file.
52057         * modules/unistr/u16-prev: New file.
52058         * modules/unistr/u32-prev: New file.
52059         * lib/unistr/u8-prev.c: New file.
52060         * lib/unistr/u16-prev.c: New file.
52061         * lib/unistr/u32-prev.c: New file.
52062
52063         * modules/unistr/u8-set: New file.
52064         * modules/unistr/u16-set: New file.
52065         * modules/unistr/u32-set: New file.
52066         * lib/unistr/u8-set.c: New file.
52067         * lib/unistr/u16-set.c: New file.
52068         * lib/unistr/u32-set.c: New file.
52069         * lib/unistr/u-set.h: New file.
52070
52071         * modules/unistr/u8-startswith: New file.
52072         * modules/unistr/u16-startswith: New file.
52073         * modules/unistr/u32-startswith: New file.
52074         * lib/unistr/u8-startswith.c: New file.
52075         * lib/unistr/u16-startswith.c: New file.
52076         * lib/unistr/u32-startswith.c: New file.
52077         * lib/unistr/u-startswith.h: New file.
52078
52079         * modules/unistr/u8-stpcpy: New file.
52080         * modules/unistr/u16-stpcpy: New file.
52081         * modules/unistr/u32-stpcpy: New file.
52082         * lib/unistr/u8-stpcpy.c: New file.
52083         * lib/unistr/u16-stpcpy.c: New file.
52084         * lib/unistr/u32-stpcpy.c: New file.
52085         * lib/unistr/u-stpcpy.h: New file.
52086
52087         * modules/unistr/u8-stpncpy: New file.
52088         * modules/unistr/u16-stpncpy: New file.
52089         * modules/unistr/u32-stpncpy: New file.
52090         * lib/unistr/u8-stpncpy.c: New file.
52091         * lib/unistr/u16-stpncpy.c: New file.
52092         * lib/unistr/u32-stpncpy.c: New file.
52093         * lib/unistr/u-stpncpy.h: New file.
52094
52095         * modules/unistr/u8-strcat: New file.
52096         * modules/unistr/u16-strcat: New file.
52097         * modules/unistr/u32-strcat: New file.
52098         * lib/unistr/u8-strcat.c: New file.
52099         * lib/unistr/u16-strcat.c: New file.
52100         * lib/unistr/u32-strcat.c: New file.
52101         * lib/unistr/u-strcat.h: New file.
52102
52103         * modules/unistr/u8-strchr: New file.
52104         * modules/unistr/u16-strchr: New file.
52105         * modules/unistr/u32-strchr: New file.
52106         * lib/unistr/u8-strchr.c: New file.
52107         * lib/unistr/u16-strchr.c: New file.
52108         * lib/unistr/u32-strchr.c: New file.
52109
52110         * modules/unistr/u8-strcmp: New file.
52111         * modules/unistr/u16-strcmp: New file.
52112         * modules/unistr/u32-strcmp: New file.
52113         * lib/unistr/u8-strcmp.c: New file.
52114         * lib/unistr/u16-strcmp.c: New file.
52115         * lib/unistr/u32-strcmp.c: New file.
52116
52117         * modules/unistr/u8-strcpy: New file.
52118         * modules/unistr/u16-strcpy: New file.
52119         * modules/unistr/u32-strcpy: New file.
52120         * lib/unistr/u8-strcpy.c: New file.
52121         * lib/unistr/u16-strcpy.c: New file.
52122         * lib/unistr/u32-strcpy.c: New file.
52123         * lib/unistr/u-strcpy.h: New file.
52124
52125         * modules/unistr/u8-strcspn: New file.
52126         * modules/unistr/u16-strcspn: New file.
52127         * modules/unistr/u32-strcspn: New file.
52128         * lib/unistr/u8-strcspn.c: New file.
52129         * lib/unistr/u16-strcspn.c: New file.
52130         * lib/unistr/u32-strcspn.c: New file.
52131         * lib/unistr/u-strcspn.h: New file.
52132
52133         * modules/unistr/u8-strdup: New file.
52134         * modules/unistr/u16-strdup: New file.
52135         * modules/unistr/u32-strdup: New file.
52136         * lib/unistr/u8-strdup.c: New file.
52137         * lib/unistr/u16-strdup.c: New file.
52138         * lib/unistr/u32-strdup.c: New file.
52139         * lib/unistr/u-strdup.h: New file.
52140
52141         * modules/unistr/u8-strlen: New file.
52142         * modules/unistr/u16-strlen: New file.
52143         * modules/unistr/u32-strlen: New file.
52144         * lib/unistr/u8-strlen.c: New file.
52145         * lib/unistr/u16-strlen.c: New file.
52146         * lib/unistr/u32-strlen.c: New file.
52147         * lib/unistr/u-strlen.h: New file.
52148
52149         * modules/unistr/u8-strmblen: New file.
52150         * modules/unistr/u16-strmblen: New file.
52151         * modules/unistr/u32-strmblen: New file.
52152         * lib/unistr/u8-strmblen.c: New file.
52153         * lib/unistr/u16-strmblen.c: New file.
52154         * lib/unistr/u32-strmblen.c: New file.
52155
52156         * modules/unistr/u8-strmbtouc: New file.
52157         * modules/unistr/u16-strmbtouc: New file.
52158         * modules/unistr/u32-strmbtouc: New file.
52159         * lib/unistr/u8-strmbtouc.c: New file.
52160         * lib/unistr/u16-strmbtouc.c: New file.
52161         * lib/unistr/u32-strmbtouc.c: New file.
52162
52163         * modules/unistr/u8-strncat: New file.
52164         * modules/unistr/u16-strncat: New file.
52165         * modules/unistr/u32-strncat: New file.
52166         * lib/unistr/u8-strncat.c: New file.
52167         * lib/unistr/u16-strncat.c: New file.
52168         * lib/unistr/u32-strncat.c: New file.
52169         * lib/unistr/u-strncat.h: New file.
52170
52171         * modules/unistr/u8-strncmp: New file.
52172         * modules/unistr/u16-strncmp: New file.
52173         * modules/unistr/u32-strncmp: New file.
52174         * lib/unistr/u8-strncmp.c: New file.
52175         * lib/unistr/u16-strncmp.c: New file.
52176         * lib/unistr/u32-strncmp.c: New file.
52177
52178         * modules/unistr/u8-strncpy: New file.
52179         * modules/unistr/u16-strncpy: New file.
52180         * modules/unistr/u32-strncpy: New file.
52181         * lib/unistr/u8-strncpy.c: New file.
52182         * lib/unistr/u16-strncpy.c: New file.
52183         * lib/unistr/u32-strncpy.c: New file.
52184         * lib/unistr/u-strncpy.h: New file.
52185
52186         * modules/unistr/u8-strnlen: New file.
52187         * modules/unistr/u16-strnlen: New file.
52188         * modules/unistr/u32-strnlen: New file.
52189         * lib/unistr/u8-strnlen.c: New file.
52190         * lib/unistr/u16-strnlen.c: New file.
52191         * lib/unistr/u32-strnlen.c: New file.
52192         * lib/unistr/u-strnlen.h: New file.
52193
52194         * modules/unistr/u8-strpbrk: New file.
52195         * modules/unistr/u16-strpbrk: New file.
52196         * modules/unistr/u32-strpbrk: New file.
52197         * lib/unistr/u8-strpbrk.c: New file.
52198         * lib/unistr/u16-strpbrk.c: New file.
52199         * lib/unistr/u32-strpbrk.c: New file.
52200         * lib/unistr/u-strpbrk.h: New file.
52201
52202         * modules/unistr/u8-strrchr: New file.
52203         * modules/unistr/u16-strrchr: New file.
52204         * modules/unistr/u32-strrchr: New file.
52205         * lib/unistr/u8-strrchr.c: New file.
52206         * lib/unistr/u16-strrchr.c: New file.
52207         * lib/unistr/u32-strrchr.c: New file.
52208
52209         * modules/unistr/u8-strspn: New file.
52210         * modules/unistr/u16-strspn: New file.
52211         * modules/unistr/u32-strspn: New file.
52212         * lib/unistr/u8-strspn.c: New file.
52213         * lib/unistr/u16-strspn.c: New file.
52214         * lib/unistr/u32-strspn.c: New file.
52215         * lib/unistr/u-strspn.h: New file.
52216
52217         * modules/unistr/u8-strstr: New file.
52218         * modules/unistr/u16-strstr: New file.
52219         * modules/unistr/u32-strstr: New file.
52220         * lib/unistr/u8-strstr.c: New file.
52221         * lib/unistr/u16-strstr.c: New file.
52222         * lib/unistr/u32-strstr.c: New file.
52223         * lib/unistr/u-strstr.h: New file.
52224
52225         * modules/unistr/u8-strtok: New file.
52226         * modules/unistr/u16-strtok: New file.
52227         * modules/unistr/u32-strtok: New file.
52228         * lib/unistr/u8-strtok.c: New file.
52229         * lib/unistr/u16-strtok.c: New file.
52230         * lib/unistr/u32-strtok.c: New file.
52231         * lib/unistr/u-strtok.h: New file.
52232
52233         * modules/unistr/u8-uctomb: New file.
52234         * modules/unistr/u16-uctomb: New file.
52235         * modules/unistr/u32-uctomb: New file.
52236         * lib/unistr/u8-uctomb.c: New file.
52237         * lib/unistr/u16-uctomb.c: New file.
52238         * lib/unistr/u32-uctomb.c: New file.
52239
52240         * MODULES.html.sh (Unicode string functions): Add the new modules.
52241
52242 2007-01-08  Bruno Haible  <bruno@clisp.org>
52243
52244         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
52245         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
52246         subdirectories.
52247
52248 2007-01-08  Karl Berry  <karl@gnu.org>
52249
52250         * doc/error.texi: mention that main() fns must set program_name
52251         when progname is used.
52252
52253 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
52254
52255         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
52256         WCTYPE_H is empty, for the benefit of builds from non-distclean
52257         directories.  Problem reported by Eric Blake in
52258         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
52259
52260 2007-01-08  Bruno Haible  <bruno@clisp.org>
52261
52262         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
52263         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
52264         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
52265         PROVIDE_CANONICALIZE_FILENAME_MODE.
52266         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
52267
52268 2007-01-08  Bruno Haible  <bruno@clisp.org>
52269
52270         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
52271         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
52272         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
52273         * lib/fts.c: Likewise.
52274         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
52275
52276 2006-12-25  Bruno Haible  <bruno@clisp.org>
52277
52278         * modules/utf8-ucs4-safe: New file.
52279         * lib/utf8-ucs4-safe.h: New file.
52280         * lib/unistr/utf8-ucs4-safe.c: New file.
52281
52282         * modules/utf16-ucs4-safe: New file.
52283         * lib/utf16-ucs4-safe.h: New file.
52284         * lib/unistr/utf16-ucs4-safe.c: New file.
52285
52286         * MODULES.html.sh (Unicode string functions): Add the new modules.
52287
52288 2007-01-08  Bruno Haible  <bruno@clisp.org>
52289
52290         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
52291         (Depends-on): Add unitypes.
52292         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52293         (u8_mbtouc_aux): Move out to separate file.
52294         (u8_mbtouc): Use ucs4_t, uint8_t types.
52295         * lib/unistr/utf8-ucs4.c: New file.
52296
52297         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
52298         (Depends-on): Add unitypes.
52299         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52300         (u16_mbtouc_aux): Move out to separate file.
52301         (u16_mbtouc): Use ucs4_t, uint16_t types.
52302         * lib/unistr/utf16-ucs4.c: New file.
52303
52304         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
52305         (Depends-on): Add unitypes.
52306         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
52307         (u8_uctomb_aux): Move out to separate file.
52308         (u8_uctomb): Use ucs4_t, uint8_t types.
52309         * lib/unistr/ucs4-utf8.c: New file.
52310
52311         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
52312         (Depends-on): Add unitypes.
52313         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
52314         (u16_uctomb_aux): Move out to separate file.
52315         (u16_uctomb): Use ucs4_t, uint16_t types.
52316         * lib/unistr/ucs4-utf16.c: New file.
52317
52318 2006-12-25  Bruno Haible  <bruno@clisp.org>
52319
52320         * modules/unitypes: New file.
52321         * lib/unitypes.h: New file.
52322         * MODULES.html.sh (func_all_modules): New section "Unicode string
52323         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
52324         this section. Add unitypes.
52325
52326 2007-01-08  Bruno Haible  <bruno@clisp.org>
52327
52328         Avoid variable names that conflict with those from libtool.
52329         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
52330         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
52331         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
52332         library_names_spec to acl_library_names_spec, hardcode_* to
52333         acl_hardcode_*.
52334         Reported by Ralf Wildenhues.
52335
52336 2007-01-08  Bruno Haible  <bruno@clisp.org>
52337
52338         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
52339         definition.
52340         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
52341         definition.
52342         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
52343         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
52344         definition.
52345         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
52346         definition.
52347         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
52348         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
52349         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
52350         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
52351         definition.
52352         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
52353         definition.
52354         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
52355         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
52356         GC_USE_<algorithm>.
52357         * lib/gc-libgcrypt.c: Likewise.
52358         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
52359         * modules/gc-arctwo (configure.ac): Likewise.
52360         * modules/gc-des (configure.ac): Likewise.
52361         * modules/gc-hmac-md5 (configure.ac): Likewise.
52362         * modules/gc-hmac-sha1 (configure.ac): Likewise.
52363         * modules/gc-md2 (configure.ac): Likewise.
52364         * modules/gc-md4 (configure.ac): Likewise.
52365         * modules/gc-md5 (configure.ac): Likewise.
52366         * modules/gc-random (configure.ac): Likewise.
52367         * modules/gc-rijndael (configure.ac): Likewise.
52368         * modules/gc-sha1 (configure.ac): Likewise.
52369
52370 2007-01-08  Bruno Haible  <bruno@clisp.org>
52371
52372         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
52373         macro definition.
52374         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
52375         definition.
52376         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
52377         definition.
52378         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
52379         * modules/fcntl-safer (configure.ac): Likewise.
52380         * modules/fopen-safer (configure.ac): Likewise.
52381         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
52382         GNULIB_FWRITEERROR macro definition.
52383
52384 2007-01-08  Bruno Haible  <bruno@clisp.org>
52385
52386         * m4/gnulib-common.m4: New file.
52387         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
52388         (func_get_filelist): Add m4/gnulib-common.m4.
52389
52390 2007-01-08  Bruno Haible  <bruno@clisp.org>
52391
52392         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
52393         command.
52394
52395 2007-01-08  Jim Meyering  <jim@meyering.net>
52396
52397         Use a more robust test for a "can't happen" condition.
52398         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
52399         narrowed the st_size value.  Presuming the "can't happen" condition
52400         is true, that narrowing could conceivably convert an invalid st_size
52401         value into a valid one.  Instead, use a change based on Matthew
52402         Woehlke's original patch.
52403
52404         Slight readability improvement: use an assert-like macro
52405         in place of literal "abort ()" uses.
52406         * lib/fts.c (fts_assert): Define.
52407         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
52408         Use this macro instead of a bare 'abort'.
52409
52410 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
52411
52412         Don't worry about using IRIX 5.3's wctype.h broken definitions;
52413         simply work around them.
52414         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
52415         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
52416         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
52417         declaring.
52418         Don't bother to define as macros, since the standard doesn't require it.
52419         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
52420         longer worry about IRIX 5.3.
52421         (HAVE_WCTYPE_CTMP_BUG): Remove.
52422
52423 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52424
52425         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
52426         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
52427         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52428         Problems reported by Georg Schwarz for IRIX 5.3.
52429
52430         * gnulib-tool (autoconf_minversion): Take the maximum version number
52431         found, not the minimum.  Problem reported by James Youngman.
52432
52433 2007-01-03  Karl Berry  <karl@gnu.org>
52434
52435         * doc/error.texi: new file, explaining interaction with progname.
52436         * doc/gnulib.texi: include it.  Update copyright.
52437
52438 2007-01-03  Simon Josefsson  <simon@josefsson.org>
52439
52440         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
52441         AC_CANONICAL_HOST, to improve autobuild outputs.
52442
52443 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
52444             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52445
52446         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
52447         sockets, server sockets, and other file descriptors.  Count errors
52448         to compute the return value.  Reorder the code a bit to be easier
52449         to follow.  Don't set event bits that were not requested (except
52450         POLLERR and POLLHUP).
52451
52452 2007-01-01  Bruno Haible  <bruno@clisp.org>
52453
52454         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
52455
52456 2007-01-03  Jim Meyering  <jim@meyering.net>
52457
52458         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
52459
52460 2007-01-02  Bruno Haible  <bruno@clisp.org>
52461
52462         * modules/settime (Include): Require timespec.h.
52463         * modules/nanosleep (Include): Likewise.
52464
52465 2007-01-01  Bruno Haible  <bruno@clisp.org>
52466
52467         * gnulib-tool (func_emit_copyright_notice): Bump year.
52468         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
52469
52470 2007-01-01  Bruno Haible  <bruno@clisp.org>
52471
52472         Improve support for OpenBSD.
52473         * build-aux/config.rpath (libname_spec): Export.
52474         (library_names_spec): New variable. Export.
52475         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
52476         library_names_spec from the config.rpath output. Locate shared library
52477         through the name pattern in library_names_spec.
52478
52479 2007-01-01  Eric Blake  <ebb9@byu.net>
52480
52481         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
52482
52483 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
52484
52485         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
52486         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
52487         assume the C locale, and avoid an "eval" that could cause trouble.
52488         Problem with SORT reported by Bob Proulx.
52489
52490         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
52491         Define.  Trivial patch from Henning Nielsen Lund, originally
52492         sent to bug-grep@gnu.org today.
52493
52494 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52495
52496         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
52497         struct stat.  Problem reported by Henning Nielsen Lund.
52498         * lib/acl.c: Include acl.h first, to check interface.  Don't
52499         bother to include sys/types.h and sys/stat.h again.
52500
52501 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         Import the following change from libc; problem reported by
52504         Sven Verdoolaege.
52505
52506         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
52507
52508         [BZ #1373]
52509         * lib/argp.h: Remove __NTH for __argp_usage inline function.
52510
52511 2006-12-28  Jim Meyering  <jim@meyering.net>
52512
52513         * build-aux/announce-gen: Do not assume that the package
52514         builds any of tar.gz, tar.bz2, and .xdelta files.
52515         Suggestion from Simon Josefsson.
52516
52517 2006-12-28  Simon Josefsson  <simon@josefsson.org>
52518
52519         * modules/announce-gen: New file.
52520
52521 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         * lib/mbchar.h: Just include <wctype.h>; the wctype module
52524         handles its gotchas now.
52525         * lib/mbswidth.c: Likewise.
52526         * lib/wcwidth.h: Likewise.
52527         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
52528         and iswcntrl; the wctype module does this stuff now.
52529         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52531         * modules/mbchar (Depends-on): Add wctype.
52532         * modules/mbswidth (Depends-on): Likewise.
52533         * modules/wcwidth (Depends-on): Likewise.
52534
52535 2006-12-27  Eric Blake  <ebb9@byu.net>
52536
52537         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
52538         module uses more than what <wctype.h> is required to provide.
52539
52540 2006-12-26  Eric Blake  <ebb9@byu.net>
52541
52542         * gnulib-tool (sed_extract_prog): Avoid space-tab.
52543
52544 2006-12-26  Eric Blake  <ebb9@byu.net>
52545
52546         * modules/absolute-header: New module.
52547         * modules/fcntl (Depends-on): Depend on it.
52548         * modules/inttypes (Depends-on): Likewise.
52549         * modules/stdint (Depends-on): Likewise.
52550         * modules/sys_stat (Depends-on): Likewise.
52551         * modules/wctype (Depends-on): Likewise.
52552         * MODULES.html.sh (Support for building libraries and
52553         executables): Document it.
52554
52555 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52556
52557         * gnulib-tool (SED): Remove, undoing previous change.
52558         The problem was that it broke coreutils on Solaris, because
52559         "sed --posix" leaked into a makefile.
52560         (sed): New alias, if 'alias' and GNU sed.
52561
52562 2006-12-24  Jim Meyering  <jim@meyering.net>
52563
52564         Work around an fchownat bug in glibc-2.4:
52565         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
52566         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
52567         in spite of the -P option.
52568         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
52569         New macros.
52570         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
52571         * modules/openat (Files): Add lib/fchownat.c.
52572         * lib/openat.c (fchownat): Don't define here.  Move to...
52573         * lib/fchownat.c: ...this new file.
52574
52575 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52576
52577         Fix bug reported by Bruno Haible in
52578         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
52579         where quotearg.c didn't compile on Mac OS X 10.2 because it
52580         lacks <wchar.h> and wint_t.
52581         * lib/wctype_.h (__wctype_wint_t): New type.
52582         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
52583         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
52584         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
52585         Arg is now of type __wctype_wint_t, not wint_t.
52586         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
52587         substitute HAVE_WINT_T.
52588         * modules/wctype (Files): Add m4/wint_t.m4.
52589         (wctype.h): Substitute HAVE_WINT_T.
52590
52591 2006-12-23  Bruno Haible  <bruno@clisp.org>
52592
52593         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
52594
52595 2006-12-23  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
52598         S_ISLNK.
52599         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
52600         mingw.
52601
52602 2006-12-22  Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/copy-file.c: Include acl.h.
52605         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
52606         Close the file descriptors only after being done with copy_acl.
52607         * modules/copy-file (Depends-on): Add acl.
52608
52609 2006-12-22  Bruno Haible  <bruno@clisp.org>
52610
52611         * gnulib-tool (SED): New variable.
52612         Use $SED instead of sed everywhere.
52613
52614 2006-12-22  Bruno Haible  <bruno@clisp.org>
52615
52616         * modules/no-c++: New file.
52617         * m4/no-c++.m4: New file.
52618         * MODULES.html.sh (Support for building libraries and executables):
52619         Add no-c++.
52620
52621 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
52622
52623         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52624         Include <limits.h>, and use its INT_MAX to rewrite the
52625         j loop so that it does not overflow 'int'.  Problem reported by
52626         Ralf Wildenhues in
52627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
52628         Play it safe by shifting left by 1 rather than multiplying by 2,
52629         as GCC is less likely to optimize this away when the value
52630         is signed (when it assumes overflow leads to undefined behavior).
52631         Also, don't assume time_t uses two's complement.
52632
52633 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
52634
52635         * MODULES.html.sh: New module wctype.
52636         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
52637         * lib/fnmatch.c: Don't bother to include <wchar.h> before
52638         <wctype.h>, since the new wctype module should fix this.
52639         * lib/quotearg.c: Include <wctype.h> unconditionally, since
52640         the wctype module should arrange for it.
52641         * lib/regex_internal.h: Likewise.
52642         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
52643         since the wctype module should handle this now.
52644         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
52645         * modules/fnmatch (Depends-on): Add wctype.
52646         * modules/quotearg (Depends-on): Likewise.
52647         * modules/regex (Depends-on): Likewise.
52648
52649 2006-12-19  Bruno Haible  <bruno@clisp.org>
52650
52651         * lib/strdup.h [C++]: Wrap definitions in extern "C".
52652         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
52653
52654 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52655
52656         * modules/savewd (Depends-on): Fix dependency on fcntl.
52657
52658 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52659
52660         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
52661         conforms to C99, rather than relying on the user's environment
52662         setting of STDINT_H.
52663
52664 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52665         and Eric Blake  <ebb9@byu.net>
52666
52667         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
52668         This is more consistent with the other defines here.
52669         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
52670         Port to z/OS.  Problem reported by Paul Gilmartin.
52671         Change local vars to use gl_ prefix rather than ac_.
52672         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
52673         with other defines.
52674         * modules/double-slash-root: New module.
52675         * modules/dirname (Files): Remove m4/double-slash-root.m4.
52676         (Depends-on): Add double-slash-root.
52677         * MODULES.html.sh (File system functions): Mention new module.
52678
52679 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
52680
52681         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
52682         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
52683         This is for the benefit of gzip, which doesn't do i18n.
52684
52685 2006-12-12  Jim Meyering  <jim@meyering.net>
52686
52687         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
52688         Reported by Andreas Schwab <schwab@suse.de>.
52689
52690 2006-12-12  Bruno Haible  <bruno@clisp.org>
52691
52692         Merge these changes.
52693         2006-09-05  Bruno Haible  <bruno@clisp.org>
52694         * lib/iconvme.c (iconv_string): No need to save and restore errno when
52695         iconv_alloc succeeded.
52696         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
52697         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
52698         test for " && dest " at the end - dest is always != NULL there. Call
52699         iconv with 4xNULL arguments initially, to reset the state. Call iconv
52700         with 2xNULL arguments, also to flush the state storage. Handle the
52701         IRIX iconv behaviour. Realloc the final result, to throw away unused
52702         memory.
52703
52704 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
52705
52706         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
52707         and fchmodat unconditionally, since glibc 2.4 has them.
52708         Problem reported by Arkadiusz Miskiewicz.
52709
52710 2006-12-10  Bruno Haible  <bruno@clisp.org>
52711
52712         * gnulib-tool (func_import): Show the include files only for those
52713         modules that are copied and specified.
52714         Reported by Karl Berry.
52715
52716 2006-12-08  Jim Meyering  <jim@meyering.net>
52717
52718         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
52719         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
52720
52721         * build-aux/announce-gen: Add two new options, both optional:
52722         --bootstrap-tools=TOOL_LIST
52723               a comma-separated list of tools, e.g.,
52724               autoconf,automake,bison,gnulib
52725         --gnulib-snapshot-date=DATE
52726               if gnulib is in the bootstrap tool list,
52727               then report this as the snapshot date.
52728               If not specified, use the current date/time.
52729               If you specify a date here, be sure it's UTC.
52730
52731 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52732
52733         * tests/test-argp-2.sh: Fix test to match actual output.
52734         (func_compare): Fix sed script to be portable.
52735
52736 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
52739         workaround for this case.  It is not autoconfigured now; offhand
52740         it's hard to see how to autoconfigure it.
52741
52742 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52743
52744         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
52745         a directory that is about to be chowned.  Such a directory's
52746         initial file permissions should permit the owner only and this
52747         should not be changed until after the chown, since the group and
52748         other bits would be incorrect if they granted permission before
52749         the chown.
52750
52751         Fix porting problem for iswctype reported by Georg Schwarz in:
52752         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
52753         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
52754         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
52755         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
52756         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52757
52758 2006-12-03  Jim Meyering  <jim@meyering.net>
52759
52760         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
52761         p->fts_statp may not yet be defined.
52762         (fts_read): Instead, set it in the caller, once p->fts_statp is
52763         sure to be defined, and corresponds to a top-level directory.
52764         This bug made du -x fail.  Here's the coreutils test case:
52765         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
52766         Reported by Mike Frysinger.
52767
52768 2006-12-01  Jim Meyering  <jim@meyering.net>
52769
52770         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
52771         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
52772         Reported by Simon Josefsson.
52773
52774 2006-11-30  Jim Meyering  <jim@meyering.net>
52775
52776         * m4/warning.m4: Use the all-permissive copyright notice
52777         recommended by RMS (rather than LGPL).
52778         * m4/vararrays.m4: Likewise.
52779         * m4/flexmember.m4: Likewise.
52780
52781 2006-11-29  Bruno Haible  <bruno@clisp.org>
52782
52783         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52784         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
52785         using +=.
52786         Reported by Simon Josefsson <simon@josefsson.org>.
52787
52788 2006-11-28  James Youngman <jay@gnu.org>
52789
52790         * README: Advise users that they might find the bug-gnulib@gnu.org
52791         and autotools-announce@gnu.org mailing lists useful.
52792
52793 2006-11-28  Bruno Haible  <bruno@clisp.org>
52794
52795         * m4/ptrdiff_max.m4: Remove file.
52796
52797 2006-11-21  Bruno Haible  <bruno@clisp.org>
52798
52799         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
52800         _AC_COMPUTE_INT.
52801         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52802         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
52803         _AC_COMPUTE_INT.
52804         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52805         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
52806         _AC_COMPUTE_INT.
52807         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52808
52809 2006-11-28  Jim Meyering  <jim@meyering.net>
52810
52811         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
52812         warning from "gcc -Wshadow" about shadowing the builtin.
52813
52814 2006-11-27  Bruno Haible  <bruno@clisp.org>
52815
52816         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
52817         _AC_COMPUTE_INT.
52818         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52819
52820 2006-11-27  Bruno Haible  <bruno@clisp.org>
52821             Paul Eggert  <eggert@cs.ucla.edu>
52822
52823         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
52824
52825 2006-11-26  Bruno Haible  <bruno@clisp.org>
52826
52827         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52828         noinst_LTLIBRARIES.
52829
52830 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52831             Bruno Haible  <bruno@clisp.org>
52832
52833         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
52834         if compiling with "gcc -ansi".
52835
52836 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52837
52838         Fix some incompatibilities with gcc -ansi -pedantic.
52839         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
52840         if compiling pedantically with GCC, unless it's C99 or later.
52841         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
52842         it mishandles gcc -ansi -pedantic as well.
52843         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
52844         if gcc -pedantic.
52845         * lib/regexec.c (check_node_accept_bytes): Don't use auto
52846         initializers for struct if -pedantic, unless it's C99 or later.
52847
52848 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
52849
52850         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
52851         Don't close an fd more than once. Identical atimes indicate
52852         success, not failure.
52853
52854 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
52855
52856         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
52857
52858 2006-11-23  Jim Meyering  <jim@meyering.net>
52859
52860         * build-aux/announce-gen: New file.  From coreutils.
52861
52862 2006-11-22  Jim Meyering  <jim@meyering.net>
52863
52864         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
52865         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
52866         (fts_read): Use a temporary to narrow the overused st_size member
52867         before using it in a switch statement.  Reported by Matthew Woehlke.
52868
52869         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
52870         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
52871
52872 2006-11-20  Bruno Haible  <bruno@clisp.org>
52873
52874         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
52875         changequote instead of pairs of brackets.
52876         Reported by Andreas Schwab <schwab@suse.de>.
52877
52878 2006-11-21  Jim Meyering  <jim@meyering.net>
52879
52880         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
52881         so as to remain compatible with older compilers.
52882         Patch from Michael Deutschmann.
52883
52884 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52885
52886         * MODULES.html.sh (File system functions): Add openat.
52887
52888         * lib/openat.h (rpl_fstatat): New macro, if
52889         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
52890         (fstatat): Define to rpl_fstatat under the same conditions,
52891         unless COMPILING_FSTATAT.
52892         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
52893         seems to have the bug.
52894         * lib/fstatat.c: New file.
52895         * modules/openat (Files): Add it.
52896
52897 2006-11-20  Bruno Haible  <bruno@clisp.org>
52898
52899         * Makefile: New file.
52900
52901 2006-11-20  Jim Meyering  <jim@meyering.net>
52902
52903         The beginnings of syntax-related checks for gnulib.
52904         * lib/Makefile: New file.
52905         * lib/t-idcache: New script.  Ensure that the two halves of
52906         idcache.c stay in sync.
52907
52908         * lib/idcache.c: Adjust comments in user- and group- portions to
52909         be more accurate, and to be consistent with one another.
52910
52911 2006-11-20  Jim Meyering  <jim@meyering.net>
52912
52913         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
52914         continue using the flexible array member (thus, this module performs
52915         half as many malloc calls), with the addition that...
52916         (getgroup, getuser): Consistently record a non-match via an empty
52917         "name" string, and map an empty string match to a NULL return value.
52918         * modules/idcache (Depends-on): Re-add flexmember.
52919
52920         * lib/idcache.c (getuser): Remove all uses of the register keyword.
52921         (getuidbyname, getgroup, getgidbyname): Likewise.
52922
52923         Use cleaner syntax: NULL rather than 0.
52924         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
52925
52926 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52927
52928         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
52929         It mishandled the case where the group was missing.
52930         Problem reported by Greg Schafer.
52931         * modules/idcache: Likewise.
52932
52933 2006-11-18  Jim Meyering  <jim@meyering.net>
52934
52935         * check-module (%exempt_header): Add exception for some
52936         conditionally-included headers.
52937
52938         * modules/i-ring (Depends-on): Add verify.
52939         (License): Change to LGPL.
52940
52941 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52942
52943         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
52944         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
52945         and inttostr.h.  Use snprintf rather than uinttostr, so that
52946         LGPLed code doesn't depend on GPLed.
52947
52948 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         * modules/inline (License): Change from GPL to LGPL.
52951
52952 2006-11-17  Jim Meyering  <jim@meyering.net>
52953
52954         * modules/d-type (License): Switch to LGPL.
52955
52956 2006-11-15  Bruno Haible  <bruno@clisp.org>
52957
52958         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
52959
52960 2006-11-15  Eric Blake  <ebb9@byu.net>
52961
52962         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
52963         the module dependency.
52964
52965 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52966             Bruno Haible  <bruno@clisp.org>
52967
52968         * gnulib-tool (func_create_testdir): Add license consistency check.
52969
52970 2006-11-15  Eric Blake  <ebb9@byu.net>
52971
52972         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
52973         random "(cached)" in configure output.
52974
52975 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52976
52977         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
52978         test for conforming inttypes.h is both announced and cached.
52979
52980         * MODULES.html.sh (seen_modules, seen_files): New variables.
52981         (func_module): Rewrite to use a few less gnulib-tool and sed
52982         invocations.  Avoid a couple of quadratic algorithms for ...
52983         (missed_modules, missed_files): ... these, with ...
52984         (func_append, func_tmpdir): ... these new functions, from
52985         gnulib-tool.  Analogously, install traps for cleanup.
52986
52987         * tests/test-gc.c (main): Remove unused variables.
52988         * tests/test-read-file.c: Include stdlib.h, for 'free'.
52989
52990 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
52991
52992         * modules/inttostr (License): Change to LGPL.
52993
52994 2006-11-14  Eric Blake  <ebb9@byu.net>
52995
52996         * modules/tempname (License): Change to LGPL.
52997
52998 2006-11-14  Eric Blake  <ebb9@byu.net>
52999
53000         * doc/functions.texi (Function Portability): *printf functions on
53001         Cygwin now understand all POSIX size specifiers.
53002
53003 2006-11-14  Bruno Haible  <bruno@clisp.org>
53004
53005         * modules/c-ctype (License): Change to LGPL.
53006
53007 2006-11-12  Bruno Haible  <bruno@clisp.org>
53008
53009         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53010         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
53011         for GNOME libraries, for which the include files are installed in
53012         subdirectories of $prefix/include.
53013
53014 2006-11-12  Bruno Haible  <bruno@clisp.org>
53015
53016         * m4/lib-link.m4: Require at least autoconf-2.54.
53017         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
53018         name to underscores for the --with option.
53019
53020 2006-11-13  Bruno Haible  <bruno@clisp.org>
53021
53022         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
53023         the tests directory.
53024         Reported by Ralf Wildenhues.
53025
53026 2006-11-13  Bruno Haible  <bruno@clisp.org>
53027
53028         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
53029         (func_emit_initmacro_end): Undo the override here.
53030         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
53031         Works around the famous automake error in coreutils.
53032
53033 2006-11-13  Eric Blake  <ebb9@byu.net>
53034
53035         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
53036         element, not its node.
53037
53038 2006-11-12  Bruno Haible  <bruno@clisp.org>
53039
53040         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
53041         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
53042
53043 2006-11-12  Bruno Haible  <bruno@clisp.org>
53044
53045         * gnulib-tool: New option --local-symlink.
53046         (func_usage): Document it.
53047         (lsymbolic): New variable.
53048         (func_import, func_create_testdir): If --symlink was not specified,
53049         test whether --local-symlink was specified and the file comes from
53050         the local_gnulib_dir.
53051
53052 2006-11-12  Bruno Haible  <bruno@clisp.org>
53053
53054         * gnulib-tool (func_ln): New function.
53055         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
53056
53057 2006-11-12  Bruno Haible  <bruno@clisp.org>
53058
53059         Finish support for source files in subdirectories.
53060         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
53061         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
53062         AUTOMAKE_OPTIONS.
53063         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
53064
53065 2006-11-12  Bruno Haible  <bruno@clisp.org>
53066
53067         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53068         EXTRA_lib_SOURCES augmentation.
53069         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
53070
53071 2006-11-12  Jim Meyering  <jim@meyering.net>
53072
53073         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
53074         file descriptors.  This also averts a failure on systems with
53075         native openat support when a traversed directory lacks "x" access.
53076         * lib/fts_.h: Include "i-ring.h"
53077         (struct FTS) [fts_fd_ring]: New member.
53078         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
53079         (FCHDIR): Add parentheses.
53080         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
53081         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
53082         When descending, rather than simply closing the previous
53083         fts_cwd_fd value, push that file descriptor onto the ring.
53084         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
53085         (fts_open): Initialize the new fd_ring member.
53086         (fts_close): Clear the ring.
53087         (fts_safe_changedir): When possible, use our new fd_ring to skip
53088         the diropen and fstat and dev/ino comparison that would normally
53089         accompany a virtual `chdir ("..")'.
53090
53091         * modules/fts (Depends-on): Add i-ring.
53092         * modules/i-ring: New module.
53093         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
53094         * m4/i-ring.m4: New file.
53095
53096 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53097
53098         * gnulib-tool (func_create_testdir): Fix replacement of
53099         `build-aux' in configure.ac.  Run autotools in gltests
53100         subdirectory.
53101         (func_create_testdir, func_create_megatestdir, test): There is
53102         no need for '--force' in most autotool invocations in a new
53103         tree.  Actually fail the whole test if any of the tools, or the
53104         configure or make stages fail.
53105
53106         Sync from Automake.
53107         * build-aux/gnupload: Revert last change.  Add pointer to upload
53108         instructions of the GNU Maintenance Instructions.
53109         Suggestion by Karl Berry.
53110
53111 2006-11-10  Jim Meyering  <jim@meyering.net>
53112
53113         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
53114
53115 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53116
53117         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
53118         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
53119         (bind_textdomain_codeset) [! ENABLE_NLS]:
53120         Evaluate all the arguments.  That way, callers get compatible behavior
53121         if the arguments have side effects.  Also, it avoids some GCC
53122         diagnostics in some cases; Joel E. Denny reported problems when Bison
53123         was configured with --enable-gcc-warnigs.
53124
53125 2006-11-10  Jim Meyering  <jim@meyering.net>
53126
53127         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
53128         relevant options in CFLAGS (like -O, -fno-inline) are taken into
53129         account.
53130
53131 2006-11-10  Jim Meyering  <jim@meyering.net>
53132
53133         * modules/inline: New file/module.
53134         * modules/xalloc (Files): Remove m4/inline.m4.
53135         (Depends-on): Add inline, instead.
53136         * modules/oset: Likewise.
53137         * modules/list: Likewise.
53138
53139 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53140
53141         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
53142         Problem reported by Matthew Woehlke.
53143
53144 2006-11-09  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/tempname.c (gen_tempname): Remove variant that invokes
53147         __gen_tempname.
53148         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
53149         __gen_tempname.
53150
53151 2006-11-08  Bruno Haible  <bruno@clisp.org>
53152
53153         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
53154         to 'yes' instead of 'cross-compiling'.
53155
53156 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
53157
53158         * lib/quotearg.h (quotearg_free): New decl.
53159         * lib/quotearg.c (quotearg_free): New function.
53160         (slot0, nslots, slotvec0, slotvec):
53161         Now file-scope so that quotearg_free can get at them.
53162
53163 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53164
53165         Sync from Automake.
53166         * build-aux/gnupload: Add missing 'gnu' to example URL.
53167         Report by Karl Berry.
53168
53169 2006-11-08  Bruno Haible  <bruno@clisp.org>
53170
53171         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
53172         Suggested by Paul Eggert.
53173
53174 2006-11-08  Jim Meyering  <jim@meyering.net>
53175
53176         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
53177         It's already included if !_LIBC.
53178         (fts_safe_changedir): Add a comment.
53179
53180 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53181
53182         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
53183         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
53184         Matthew Woehlke.
53185
53186         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
53187         definitions up, to avoid colliding with change below.
53188         (static_inline) [HAVE_INLINE]: New macro.
53189         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
53190         Provide extern decls when !HAVE_INLINE.  Do not define unless
53191         static_inline is defined, either by us or by xmalloc.c.  Use
53192         static_inline rather than static inline.
53193         (XCALLOC): Optimize sizeof(T) = 1 case.
53194         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
53195
53196 2006-11-07  Bruno Haible  <bruno@clisp.org>
53197
53198         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
53199         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
53200         AC_C_INLINE.
53201         * modules/xalloc (Files): Add m4/inline.m4.
53202
53203 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53204
53205         * README: Fix typo.
53206         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
53207         (Miscellanous Notes): ...from this.
53208
53209 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53210
53211         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
53212         Mention that offsetof should be used instead of sizeof.
53213         From Bruno Haible.
53214
53215 2006-11-07  Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
53218
53219 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53220
53221         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53222         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
53223         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53224         (gl_tree_add_before, gl_tree_add_after):
53225         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
53226         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
53227         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53228         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
53229         (gl_linked_add_after, gl_linked_add_at): Likewise.
53230         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
53231         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53232         (gl_tree_add_before, gl_tree_add_after): Likewise.
53233         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
53234         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
53235         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53236
53237 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53238
53239         * lib/gl_oset.h: Use C comment style, not C++ comment style.
53240
53241 2006-11-06  Bruno Haible  <bruno@clisp.org>
53242
53243         * m4/inline.m4: New file.
53244         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
53245         * modules/list (Files): Add m4/inline.m4.
53246         * modules/oset (Files): Likewise.
53247
53248 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53249
53250         * lib/idcache.c: Include <stddef.h>, for offsetof.
53251         (struct userid.name): Change from char * to a flexible array member.
53252         All uses changed.
53253         * modules/idcache (Depends-on): Add flexmember.
53254
53255         * MODULES.html.sh (Core language properties): New module flexmember.
53256         * modules/flexmember, m4/flexmember.m4: New files.
53257
53258         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
53259         inline functions that are identical with the old xnmalloc_inline,
53260         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
53261         that we can avoid some unnecessary integer multiplications and
53262         divisions in the common case where the element size is known at
53263         compile time.
53264         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
53265         needed.
53266         (xnboundedmalloc): Remove.
53267         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
53268         arguments, for consistency with rest of this header.
53269         (xcharalloc): Rewrite using XNMALLOC.
53270         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
53271         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
53272         versions have been moved to lib/xalloc.h and renamed to be the
53273         non-*_inline versions.
53274         (xmalloc, xrealloc): Implement without reference to the xnmalloc
53275         and xnrealloc functions, since those functions are now inline and
53276         now call us.
53277         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
53278         renaming described above.
53279         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
53280         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
53281         captures the dependency in AC_C_INLINE.
53282
53283         New module canonicalize-lgpl, proposed by Charles Wilson in
53284         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
53285         with a few small changes afterwards.
53286         * MODULES.html.sh (File system functions): New module
53287         canonicalize-lgpl.
53288         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
53289         and canonicalize_file_name.
53290         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
53291         * modules/canonicalize-lgpl: New files.
53292
53293 2006-11-05  Bruno Haible  <bruno@clisp.org>
53294
53295         * gnulib-tool (func_import, func_create_testdir): Create directories
53296         also for files in subdirectories of lib/.
53297
53298 2006-11-05  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
53301         ANSI C compliant.
53302
53303 2006-11-03  Bruno Haible  <bruno@clisp.org>
53304
53305         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53306         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
53307         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
53308         (xnboundedmalloc): New inline function.
53309         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
53310         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
53311         xmalloc.
53312         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
53313         xmalloc.
53314         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
53315         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
53316         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
53317         xmalloc.
53318         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53319         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
53320         xmalloc.
53321         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
53322         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53323         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
53324         xmalloc.
53325         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53326         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
53327         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53328         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
53329         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
53330         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
53331         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
53332
53333 2006-11-03  Bruno Haible  <bruno@clisp.org>
53334
53335         * lib/c-ctype.h [C++]: Define functions without name mangling.
53336         * lib/fwriteerror.h [C++]: Likewise.
53337         * lib/gcd.h [C++]: Likewise.
53338         * lib/linebreak.h [C++]: Likewise.
53339
53340 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53341
53342         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
53343         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
53344         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
53345         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53346         Check for functions and headers just once.
53347         Check for declaration of canonicalize_file_name.
53348         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
53349
53350 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53351
53352         * gnulib-tool (func_import): Fix typo in actioncmd.
53353
53354 2006-11-02  Bruno Haible  <bruno@clisp.org>
53355
53356         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
53357         newline sequence in the Makefile.am snippet as a space, like "make"
53358         does.
53359         Reported by Roger Persson <perrog@gmail.com>.
53360
53361 2006-11-01  Bruno Haible  <bruno@clisp.org>
53362
53363         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
53364         already declared in <string.h>.
53365         * lib/strcase.h (strncasecmp): Don't declare it if yes.
53366
53367 2006-11-01  Bruno Haible  <bruno@clisp.org>
53368
53369         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
53370         * lib/strcase.h: Include <string.h>.
53371         (strcasecmp): Define to rpl_strcasecmp here.
53372
53373 2006-11-01  Bruno Haible  <bruno@clisp.org>
53374
53375         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
53376
53377 2006-11-01  Eric Blake  <ebb9@byu.net>
53378
53379         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
53380
53381         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
53382
53383 2006-10-29  Bruno Haible  <bruno@clisp.org>
53384
53385         Make it compile in C++ mode.
53386         * lib/full-write.c (full_rw): Add a cast.
53387
53388 2006-11-01  Bruno Haible  <bruno@clisp.org>
53389
53390         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
53391         be POSIX compliant.
53392         Reported by Roger Persson <perrog@gmail.com>.
53393
53394 2006-11-01  Eric Blake  <ebb9@byu.net>
53395
53396         * lib/getopt_.h: Fix comments.
53397
53398 2006-10-31  Eric Blake  <ebb9@byu.net>
53399
53400         * modules/tmpdir (Depends-on): Add sys_stat.
53401         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
53402         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
53403         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
53404         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
53405         tempname.
53406
53407 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         Avoid some C++ diagnostics reported by Bruno Haible.
53410         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
53411         xmalloc.
53412         (quotearg_alloc): Use xcharalloc rather than xmalloc.
53413         (struct slotvec): Move to top level.
53414         (quotearg_n_options): Rewrite to avoid xmalloc.
53415         * lib/xalloc.h (xcharalloc): New function.
53416         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
53417         [defined __cplusplus]: Add function template that provides result
53418         type propagation.  This part of the change is from Bruno Haible.
53419
53420 2006-10-29  Bruno Haible  <bruno@clisp.org>
53421
53422         Make it compile in C++ mode.
53423         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
53424         * lib/strnlen1.c (strnlen1): Cast memchr result.
53425         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
53426         * lib/clean-temp.c (string_equals, string_hash): Add casts.
53427         (create_temp_dir): Rename local variable 'template'.
53428         (compile_csharp_using_sscli): Add cast.
53429         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
53430         * lib/findprog.c (find_in_path): Likewise.
53431         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
53432         * lib/wait-process.c (register_slave_subprocess): Likewise.
53433
53434 2006-10-22  Bruno Haible  <bruno@clisp.org>
53435
53436         * modules/tsearch: New file.
53437         * lib/tsearch.h: New file.
53438         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
53439         * m4/tsearch.m4: New file.
53440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
53441
53442 2006-10-29  Eric Blake  <ebb9@byu.net>
53443
53444         * lib/arcfour.c: Assume config.h.
53445         * lib/arctwo.c: Likewise.
53446         * lib/base64.c: Likewise.
53447         * lib/check-version.c: Likewise.
53448         * lib/crc.c: Likewise.
53449         * lib/des.c: Likewise.
53450         * lib/gc-gnulib.c: Likewise.
53451         * lib/gc-libgcrypt.c: Likewise.
53452         * lib/gc-pbkdf2-sha1.c: Likewise.
53453         * lib/getaddrinfo.c: Likewise.
53454         * lib/getdelim.c: Likewise.
53455         * lib/getline.c: Likewise.
53456         * lib/hmac-md5.c: Likewise.
53457         * lib/hmac-sha1.c: Likewise.
53458         * lib/iconvme.c: Likewise.
53459         * lib/md2.c: Likewise.
53460         * lib/md4.c: Likewise.
53461         * lib/memxor.c: Likewise.
53462         * lib/read-file.c: Likewise.
53463         * lib/readline.c: Likewise.
53464         * lib/rijndael-alg-fst.c: Likewise.
53465         * lib/rijndael-api-fst.c: Likewise.
53466         * lib/xgetdomainname.c: Likewise.
53467
53468 2006-10-28  Eric Blake  <ebb9@byu.net>
53469
53470         * lib/xstrndup.c: Assume config.h.
53471
53472 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53473
53474         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
53475         stat-macros.h is now for our own macros, whereas stat_h is for
53476         macros in the <sys/stat.h> name space.
53477         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
53478         (STAT_MACROS_H): Remove.
53479         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
53480         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
53481         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
53482         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
53483         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
53484         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
53485         Move these macros to ...
53486         * lib/stat_.h: here.  Don't include stat-macros.h.
53487         * lib/canonicalize.c: Don't include stat-macros.h.
53488         * lib/chown.c: Likewise.
53489         * lib/euidaccess.c: Likewise.
53490         * lib/file-type.c: Likewise.
53491         * lib/filemode.c: Likewise.
53492         * lib/glob.c: Likewise.
53493         * lib/isapipe.c: Likewise.
53494         * lib/lchown.c: Likewise.
53495         * lib/lstat.c: Likewise.
53496         * lib/mkdir-p.c: Likewise.
53497         * lib/rmdir.c: Likewise.
53498         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
53499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
53500         unless mkdir isn't declared, to speed up 'configure'.
53501         Always create sys/stat.h, since it's unlikely any real sys/stat.h
53502         would define all the S_* symbols.
53503         * modules/canonicalize (Depends-on):
53504         Depend on sys_stat, not stat-macros.
53505         * modules/chown: Likewise.
53506         * modules/euidaccess: Likewise.
53507         * modules/filemode: Likewise.
53508         * modules/file-type: Likewise.
53509         * modules/glob: Likewise.
53510         * modules/isapipe: Likewise.
53511         * modules/lchown: Likewise.
53512         * modules/lstat: Likewise.
53513         * modules/mkancesdirs: Likewise.
53514         * modules/rmdir: Likewise.
53515         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
53516         * modules/modechange: Likewise.
53517         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
53518         (configure.ac): Remove gl_STAT_MACROS.
53519         * modules/sys_stat (Depends-on): Remove stat-macros.
53520
53521 2006-10-27  Bruno Haible  <bruno@clisp.org>
53522
53523         * m4/signed.m4: Remove file.
53524         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
53525         invocation.
53526         * modules/vasnprintf (Files): Remove m4/signed.m4.
53527
53528 2006-10-27  Bruno Haible  <bruno@clisp.org>
53529
53530         Update to GNU gettext 0.16.
53531         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
53532         m4/inttypes-h.m4, m4/signed.m4.
53533         * m4/gettext.m4: Update to GNU gettext 0.16.
53534         * m4/intl.m4: New file, from GNU gettext.
53535         * m4/intldir.m4: New file, from GNU gettext.
53536         * config/srclist.txt: Update
53537
53538 2006-10-27  Eric Blake  <ebb9@byu.net>
53539
53540         * MODULES.html.sh: Document tempname.
53541         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
53542         dependencies.
53543         (Files): Move lib/tempname.c...
53544         * modules/tempname: ...to this new module.
53545         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
53546         (gl_PREREQ_TEMPNAME): Move...
53547         * m4/tempname.m4: ...to this new file.
53548         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
53549         * modules/sys_stat (Depends-on): Add stat-macros.
53550         * lib/stat_.h (includes): Pick up stat macros.
53551         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
53552         if stat macros are broken.
53553         * lib/tempname.c (includes): No need to include "stat-macros.h".
53554         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
53555         (direxists, __path_search) [!_LIBC]: Don't compile these in
53556         gnulib; the tmpdir module covers that.
53557         * lib/tempname.h: New file.
53558
53559 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         * COPYING: Explain how gnulib-tool converts licence headers.
53562         Almost all wording by Eric Blake.
53563
53564 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
53565
53566         * lib/mbchar.h (is_basic_table): Make read-only.
53567         * lib/mbchar.c (is_basic_table): Likewise.
53568         Reported by John Darrington.
53569
53570 2006-10-25  Bruno Haible  <bruno@clisp.org>
53571
53572         * lib/progname.h (set_program_name): Undefine before defining.
53573
53574 2006-10-25  Bruno Haible  <bruno@clisp.org>
53575
53576         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
53577         false for non-gcc C++ compilers.
53578         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53579
53580 2006-10-24  Bruno Haible  <bruno@clisp.org>
53581
53582         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
53583         iconv implementations like Irix iconv.
53584
53585 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53586
53587         * modules/vararrays: New file.
53588         * m4/vararrays.m4: New file, taken from diffutils.
53589         * MODULES.html.sh: New module vararrays.
53590
53591 2006-10-24  Karl Berry  <karl@gnu.org>
53592
53593         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
53594         Don't call GNU Unix.
53595
53596 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53597
53598         * users.txt: Add Libtool.
53599
53600         Sync from Libtool:
53601
53602         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53603
53604         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
53605         to gnulib's policy of including config.h unconditionally.
53606
53607 2006-10-24  Bruno Haible  <bruno@clisp.org>
53608
53609         * modules/wcwidth (Files): Add m4/wint_t.m4.
53610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
53611         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
53612
53613 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53614
53615         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
53616         to pacify GCC with some -W flags enabled.  Problem reported by
53617         Bruno Haible.
53618
53619 2006-10-24  Jim Meyering  <jim@meyering.net>
53620
53621         * MODULES.html.sh: Remove uinttostr.  It's not a module.
53622         Reported by Karl Berry.
53623
53624 2006-10-23  Bruno Haible  <bruno@clisp.org>
53625
53626         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
53627
53628 2006-10-24  Bruno Haible  <bruno@clisp.org>
53629
53630         * lib/gl_list.h: Use C comment style, not C++ comment style.
53631
53632 2006-10-23  Eric Blake  <ebb9@byu.net>
53633
53634         * lib/getaddrinfo.c (includes): Add missing include.
53635
53636 2006-10-23  Bruno Haible  <bruno@clisp.org>
53637             Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         Ability to rename obstack_free.
53640         * lib/obstack.h (__obstack_free): New macro. Declare instead of
53641         obstack_free.
53642         (obstack_free): Invoke the __obstack_free macro.
53643         * lib/obstack.c (obstack_free): Use __obstack_free macro.
53644
53645 2006-10-23  Bruno Haible  <bruno@clisp.org>
53646             Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
53649         __argc, __argv from the declaration. (They are defined as macros on
53650         mingw.)
53651
53652 2006-10-22  Bruno Haible  <bruno@clisp.org>
53653
53654         * doc/gnulib-intro.texi: New file.
53655         * doc/gnulib.texi: Include it.
53656
53657 2006-10-21  Bruno Haible  <bruno@clisp.org>
53658
53659         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
53660         "Introduction", "Miscellanous Notes", "Particular Modules".
53661
53662 2006-10-21  Bruno Haible  <bruno@clisp.org>
53663
53664         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53665         Change mostlyclean-local rule to avoid sh syntax error from bash
53666         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
53667
53668 2006-10-23  Jim Meyering  <jim@meyering.net>
53669
53670         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
53671         in place of snprintf.
53672
53673         * modules/inttostr (Files): Add lib/uinttostr.c.
53674         * lib/uinttostr.c (inttostr): New file/function.
53675         * lib/inttostr.h (uinttostr): Declare.
53676         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
53677         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53678         Add uinttostr.
53679         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
53680
53681 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53682
53683         * lib/canonicalize.c (ELOOP): Define if not already defined.
53684         Problem reported by Bruno Haible in
53685         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
53686
53687 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53688
53689         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
53690         Problem reported by Perry Smith and Ville Laurikari.
53691
53692         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
53693         uses.
53694
53695 2006-10-19  Bruno Haible  <bruno@clisp.org>
53696
53697         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
53698         for mingw.
53699
53700 2006-10-19  Bruno Haible  <bruno@clisp.org>
53701
53702         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
53703         Needed for mingw.
53704
53705 2006-10-19  Bruno Haible  <bruno@clisp.org>
53706
53707         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
53708
53709 2006-10-19  Bruno Haible  <bruno@clisp.org>
53710
53711         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
53712         it.
53713
53714 2006-10-19  Bruno Haible  <bruno@clisp.org>
53715
53716         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
53717         invocation.
53718
53719 2006-10-19  Bruno Haible  <bruno@clisp.org>
53720
53721         * gnulib-tool (func_create_testdir): Don't include ftruncate and
53722         mountlist by default.
53723
53724 2006-10-16  Bruno Haible  <bruno@clisp.org>
53725
53726         * lib/c-strstr.c: Include c-strstr.h.
53727
53728 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53729
53730         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
53731         in a slash.
53732
53733 2006-10-18  Bruno Haible  <bruno@clisp.org>
53734
53735         * lib/lock.h [C++]: Wrap definitions in extern "C".
53736
53737 2006-10-18  Bruno Haible  <bruno@clisp.org>
53738
53739         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
53740         gl_LIBOBJS list.
53741
53742 2006-10-18  Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
53745
53746 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
53747
53748         * lib/xstrtol.h: Include gettext.h.
53749         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
53750         Problem reported by Eric Blake.
53751         * modules/xstrtol (Depends-on): Add gettext-h.
53752
53753 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
53754
53755         * lib/strftime.c (advance): New macro.
53756         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
53757         incomplete type, so you can't add 0 to it.  Problem and patch
53758         reported by Eelco Dolstra for dietlibc.
53759
53760 2006-10-18  Jim Meyering  <jim@meyering.net>
53761
53762         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
53763         type for a local, and rename it: s/up/user_proc/.
53764
53765 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53766
53767         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
53768         READ_UTMP_USER_PROCESS.
53769         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
53770
53771 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
53774         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
53775
53776 2006-10-17  Eric Blake  <ebb9@byu.net>
53777
53778         * lib/sigprocmask.c (sigprocmask): Fix typo.
53779
53780         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
53781
53782         * modules/clean-temp (Makefile.am): Don't add to make output...
53783         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
53784         config.h.
53785
53786 2006-10-17  Bruno Haible  <bruno@clisp.org>
53787
53788         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
53789         differently if DEFAULT_TEXT_DOMAIN is set.
53790
53791 2006-10-16  Bruno Haible  <bruno@clisp.org>
53792
53793         * lib/clean-temp.c: Include fwriteerror.h.
53794
53795 2006-10-16  Bruno Haible  <bruno@clisp.org>
53796
53797         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
53798
53799 2006-10-16  Bruno Haible  <bruno@clisp.org>
53800
53801         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
53802         * lib/sigprocmask.h: Include <sys/types.h>.
53803         (sigset_t): Use the system's definition if present.
53804
53805 2006-10-17  Eric Blake  <ebb9@byu.net>
53806
53807         * lib/xvasprintf.c (includes): Assume config.h.
53808         * lib/xasprintf.c (includes): Likewise.
53809
53810 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53811
53812         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
53813         at least as wide as intmax_t.
53814
53815 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
53816
53817         (Imported from Automake.)
53818         * build-aux/gnupload: Update to version 1.1 of directive file.
53819
53820 2006-10-16  Eric Blake  <ebb9@byu.net>
53821
53822         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
53823         match Automake 1.10a.
53824
53825 2006-10-14  Bruno Haible  <bruno@clisp.org>
53826
53827         * modules/sigprocmask: New file.
53828         * lib/sigprocmask.h: New file.
53829         * lib/sigprocmask.c: New file.
53830         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
53831         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
53832         request sigprocmask.o.
53833         (gl_PREREQ_SIGPROCMASK): New macro.
53834         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
53835         (Depends-on): Add sigprocmask.
53836         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
53837         gt_SIGNALBLOCKING. Test for 'raise' only once.
53838         * lib/fatal-signal.c: Include sigprocmask.h.
53839         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
53840         unblock_fatal_signals): Define always.
53841         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53842         sigprocmask.
53843
53844 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53845
53846         Sync from Automake.
53847         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
53848         which incorrectly sets the mode of an existing destination
53849         directory.  In some cases the unpatched install-sh could do the
53850         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
53851         system.  We hope this is rare in practice, but it's clearly worth
53852         fixing.  Problem reported by Alex Unleashed in
53853         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
53854         Also, don't bother to check for -m bugs unless we're using -m;
53855         suggested by Stepan Kasal.
53856
53857 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53858
53859         Sync from Automake.
53860         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
53861         `-c' flag, so they appear at the same position as in %FASTDEP%
53862         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
53863         which ignores unknown options only after the first non-option.
53864         Bug report against M4 by Nelson H. F. Beebe.
53865
53866 2006-10-13  Jim Meyering  <jim@meyering.net>
53867
53868         Fix a bug in yesterday's change.
53869         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
53870         p->fts_statp->st_dev would be used uninitialized.
53871         Ensures that we always call fts_stat on the very first entry.
53872         Miklos Szeredi reported that find -xdev stopped working.
53873
53874 2006-10-12  Bruno Haible  <bruno@clisp.org>
53875
53876         * gnulib-tool (func_get_automake_snippet): Append an automatically
53877         computed EXTRA_DIST augmentation.
53878         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
53879         * modules/alloca-opt (Makefile.am): Likewise.
53880         * modules/allocsa (Makefile.am): Likewise.
53881         * modules/arcfour (Makefile.am): Likewise.
53882         * modules/arctwo (Makefile.am): Likewise.
53883         * modules/argmatch (Makefile.am): Likewise.
53884         * modules/argz (Makefile.am): Likewise.
53885         * modules/atexit (Makefile.am): Likewise.
53886         * modules/backupfile (Makefile.am): Likewise.
53887         * modules/byteswap (Makefile.am): Likewise.
53888         * modules/c-strtod (Makefile.am): Likewise.
53889         * modules/c-strtold (Makefile.am): Likewise.
53890         * modules/calloc (Makefile.am): Likewise.
53891         * modules/canon-host (Makefile.am): Likewise.
53892         * modules/canonicalize (Makefile.am): Likewise.
53893         * modules/chdir-long (Makefile.am): Likewise.
53894         * modules/chdir-safer (Makefile.am): Likewise.
53895         * modules/check-version (Makefile.am): Likewise.
53896         * modules/chown (Makefile.am): Likewise.
53897         * modules/cloexec (Makefile.am): Likewise.
53898         * modules/close-stream (Makefile.am): Likewise.
53899         * modules/closeout (Makefile.am): Likewise.
53900         * modules/crc (Makefile.am): Likewise.
53901         * modules/csharpexec (Makefile.am): Likewise.
53902         * modules/cycle-check (Makefile.am): Likewise.
53903         * modules/des (Makefile.am): Likewise.
53904         * modules/dev-ino (Makefile.am): Likewise.
53905         * modules/dirfd (Makefile.am): Likewise.
53906         * modules/dirname (Makefile.am): Likewise.
53907         * modules/dup2 (Makefile.am): Likewise.
53908         * modules/eealloc (Makefile.am): Likewise.
53909         * modules/error (Makefile.am): Likewise.
53910         * modules/euidaccess (Makefile.am): Likewise.
53911         * modules/exclude (Makefile.am): Likewise.
53912         * modules/exitfail (Makefile.am): Likewise.
53913         * modules/fcntl-safer (Makefile.am): Likewise.
53914         * modules/fcntl (Makefile.am): Likewise.
53915         * modules/file-type (Makefile.am): Likewise.
53916         * modules/fileblocks (Makefile.am): Likewise.
53917         * modules/filemode (Makefile.am): Likewise.
53918         * modules/filenamecat (Makefile.am): Likewise.
53919         * modules/fnmatch (Makefile.am): Likewise.
53920         * modules/fopen-safer (Makefile.am): Likewise.
53921         * modules/fpending (Makefile.am): Likewise.
53922         * modules/fprintftime (Makefile.am): Likewise.
53923         * modules/free (Makefile.am): Likewise.
53924         * modules/fsusage (Makefile.am): Likewise.
53925         * modules/ftruncate (Makefile.am): Likewise.
53926         * modules/fts (Makefile.am): Likewise.
53927         * modules/gc-arcfour (Makefile.am): Likewise.
53928         * modules/gc-des (Makefile.am): Likewise.
53929         * modules/gc-hmac-md5 (Makefile.am): Likewise.
53930         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
53931         * modules/gc-md4 (Makefile.am): Likewise.
53932         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53933         * modules/gc-sha1 (Makefile.am): Likewise.
53934         * modules/gc (Makefile.am): Likewise.
53935         * modules/getaddrinfo (Makefile.am): Likewise.
53936         * modules/getcwd (Makefile.am): Likewise.
53937         * modules/getdelim (Makefile.am): Likewise.
53938         * modules/getdomainname (Makefile.am): Likewise.
53939         * modules/getgroups (Makefile.am): Likewise.
53940         * modules/gethostname (Makefile.am): Likewise.
53941         * modules/gethrxtime (Makefile.am): Likewise.
53942         * modules/getline (Makefile.am): Likewise.
53943         * modules/getloadavg (Makefile.am): Likewise.
53944         * modules/getlogin_r (Makefile.am): Likewise.
53945         * modules/getndelim2 (Makefile.am): Likewise.
53946         * modules/getopt (Makefile.am): Likewise.
53947         * modules/getpagesize (Makefile.am): Likewise.
53948         * modules/getpass-gnu (Makefile.am): Likewise.
53949         * modules/getpass (Makefile.am): Likewise.
53950         * modules/getsubopt (Makefile.am): Likewise.
53951         * modules/gettime (Makefile.am): Likewise.
53952         * modules/gettimeofday (Makefile.am): Likewise.
53953         * modules/getugroups (Makefile.am): Likewise.
53954         * modules/getusershell (Makefile.am): Likewise.
53955         * modules/glob (Makefile.am): Likewise.
53956         * modules/group-member (Makefile.am): Likewise.
53957         * modules/hard-locale (Makefile.am): Likewise.
53958         * modules/hash (Makefile.am): Likewise.
53959         * modules/hmac-md5 (Makefile.am): Likewise.
53960         * modules/hmac-sha1 (Makefile.am): Likewise.
53961         * modules/human (Makefile.am): Likewise.
53962         * modules/idcache (Makefile.am): Likewise.
53963         * modules/imaxabs (Makefile.am): Likewise.
53964         * modules/imaxdiv (Makefile.am): Likewise.
53965         * modules/inet_ntop (Makefile.am): Likewise.
53966         * modules/inet_pton (Makefile.am): Likewise.
53967         * modules/intprops (Makefile.am): Likewise.
53968         * modules/inttostr (Makefile.am): Likewise.
53969         * modules/inttypes (Makefile.am): Likewise.
53970         * modules/isapipe (Makefile.am): Likewise.
53971         * modules/javaversion (Makefile.am): Likewise.
53972         * modules/lchmod (Makefile.am): Likewise.
53973         * modules/lchown (Makefile.am): Likewise.
53974         * modules/localcharset (Makefile.am): Likewise.
53975         * modules/long-options (Makefile.am): Likewise.
53976         * modules/lstat (Makefile.am): Likewise.
53977         * modules/malloc (Makefile.am): Likewise.
53978         * modules/mathl (Makefile.am): Likewise.
53979         * modules/mbchar (Makefile.am): Likewise.
53980         * modules/md2 (Makefile.am): Likewise.
53981         * modules/md4 (Makefile.am): Likewise.
53982         * modules/md5 (Makefile.am): Likewise.
53983         * modules/memcasecmp (Makefile.am): Likewise.
53984         * modules/memchr (Makefile.am): Likewise.
53985         * modules/memcmp (Makefile.am): Likewise.
53986         * modules/memcoll (Makefile.am): Likewise.
53987         * modules/memcpy (Makefile.am): Likewise.
53988         * modules/memmem (Makefile.am): Likewise.
53989         * modules/memmove (Makefile.am): Likewise.
53990         * modules/mempcpy (Makefile.am): Likewise.
53991         * modules/memrchr (Makefile.am): Likewise.
53992         * modules/memset (Makefile.am): Likewise.
53993         * modules/memxor (Makefile.am): Likewise.
53994         * modules/mkancesdirs (Makefile.am): Likewise.
53995         * modules/mkdir-p (Makefile.am): Likewise.
53996         * modules/mkdir (Makefile.am): Likewise.
53997         * modules/mkdtemp (Makefile.am): Likewise.
53998         * modules/mkstemp (Makefile.am): Likewise.
53999         * modules/mktime (Makefile.am): Likewise.
54000         * modules/modechange (Makefile.am): Likewise.
54001         * modules/mountlist (Makefile.am): Likewise.
54002         * modules/nanosleep (Makefile.am): Likewise.
54003         * modules/obstack (Makefile.am): Likewise.
54004         * modules/openat (Makefile.am): Likewise.
54005         * modules/pagealign_alloc (Makefile.am): Likewise.
54006         * modules/pathmax (Makefile.am): Likewise.
54007         * modules/physmem (Makefile.am): Likewise.
54008         * modules/poll (Makefile.am): Likewise.
54009         * modules/posixtm (Makefile.am): Likewise.
54010         * modules/posixver (Makefile.am): Likewise.
54011         * modules/putenv (Makefile.am): Likewise.
54012         * modules/quote (Makefile.am): Likewise.
54013         * modules/quotearg (Makefile.am): Likewise.
54014         * modules/raise (Makefile.am): Likewise.
54015         * modules/read-file (Makefile.am): Likewise.
54016         * modules/readline (Makefile.am): Likewise.
54017         * modules/readlink (Makefile.am): Likewise.
54018         * modules/readtokens (Makefile.am): Likewise.
54019         * modules/readutmp (Makefile.am): Likewise.
54020         * modules/realloc (Makefile.am): Likewise.
54021         * modules/regex (Makefile.am): Likewise.
54022         * modules/rename-dest-slash (Makefile.am): Likewise.
54023         * modules/rename (Makefile.am): Likewise.
54024         * modules/rijndael (Makefile.am): Likewise.
54025         * modules/rmdir (Makefile.am): Likewise.
54026         * modules/rpmatch (Makefile.am): Likewise.
54027         * modules/safe-read (Makefile.am): Likewise.
54028         * modules/safe-write (Makefile.am): Likewise.
54029         * modules/same-inode (Makefile.am): Likewise.
54030         * modules/same (Makefile.am): Likewise.
54031         * modules/save-cwd (Makefile.am): Likewise.
54032         * modules/savedir (Makefile.am): Likewise.
54033         * modules/setenv (Makefile.am): Likewise.
54034         * modules/settime (Makefile.am): Likewise.
54035         * modules/sha1 (Makefile.am): Likewise.
54036         * modules/sig2str (Makefile.am): Likewise.
54037         * modules/snprintf (Makefile.am): Likewise.
54038         * modules/stat-macros (Makefile.am): Likewise.
54039         * modules/stat-time (Makefile.am): Likewise.
54040         * modules/stdbool (Makefile.am): Likewise.
54041         * modules/stdint (Makefile.am): Likewise.
54042         * modules/stdlib-safer (Makefile.am): Likewise.
54043         * modules/stpcpy (Makefile.am): Likewise.
54044         * modules/stpncpy (Makefile.am): Likewise.
54045         * modules/strcase (Makefile.am): Likewise.
54046         * modules/strcasestr (Makefile.am): Likewise.
54047         * modules/strchrnul (Makefile.am): Likewise.
54048         * modules/strcspn (Makefile.am): Likewise.
54049         * modules/strdup (Makefile.am): Likewise.
54050         * modules/strerror (Makefile.am): Likewise.
54051         * modules/strftime (Makefile.am): Likewise.
54052         * modules/strndup (Makefile.am): Likewise.
54053         * modules/strnlen (Makefile.am): Likewise.
54054         * modules/strpbrk (Makefile.am): Likewise.
54055         * modules/strsep (Makefile.am): Likewise.
54056         * modules/strstr (Makefile.am): Likewise.
54057         * modules/strtod (Makefile.am): Likewise.
54058         * modules/strtoimax (Makefile.am): Likewise.
54059         * modules/strtok_r (Makefile.am): Likewise.
54060         * modules/strtol (Makefile.am): Likewise.
54061         * modules/strtoll (Makefile.am): Likewise.
54062         * modules/strtoul (Makefile.am): Likewise.
54063         * modules/strtoull (Makefile.am): Likewise.
54064         * modules/strtoumax (Makefile.am): Likewise.
54065         * modules/strverscmp (Makefile.am): Likewise.
54066         * modules/sys_socket (Makefile.am): Likewise.
54067         * modules/sys_stat (Makefile.am): Likewise.
54068         * modules/sysexits (Makefile.am): Likewise.
54069         * modules/time_r (Makefile.am): Likewise.
54070         * modules/timegm (Makefile.am): Likewise.
54071         * modules/timespec (Makefile.am): Likewise.
54072         * modules/tmpfile-safer (Makefile.am): Likewise.
54073         * modules/trim (Makefile.am): Likewise.
54074         * modules/unistd-safer (Makefile.am): Likewise.
54075         * modules/unlinkdir (Makefile.am): Likewise.
54076         * modules/unlocked-io (Makefile.am): Likewise.
54077         * modules/userspec (Makefile.am): Likewise.
54078         * modules/utime (Makefile.am): Likewise.
54079         * modules/utimecmp (Makefile.am): Likewise.
54080         * modules/utimens (Makefile.am): Likewise.
54081         * modules/vasnprintf (Makefile.am): Likewise.
54082         * modules/vasprintf (Makefile.am): Likewise.
54083         * modules/vsnprintf (Makefile.am): Likewise.
54084         * modules/xalloc (Makefile.am): Likewise.
54085         * modules/xgetcwd (Makefile.am): Likewise.
54086         * modules/xnanosleep (Makefile.am): Likewise.
54087         * modules/xreadlink (Makefile.am): Likewise.
54088         * modules/xstrtod (Makefile.am): Likewise.
54089         * modules/xstrtol (Makefile.am): Likewise.
54090         * modules/xstrtold (Makefile.am): Likewise.
54091         * modules/yesno (Makefile.am): Likewise.
54092         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
54093
54094 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54095
54096         * modules/error (Makefile.am): Distribute files through
54097         EXTRA_DIST, not lib_SOURCES.
54098
54099 2006-10-12  Eric Blake  <ebb9@byu.net>
54100
54101         * modules/error (Makefile.am): Distribute files in /lib.
54102         * modules/obstack (Makefile.am): Likewise.
54103
54104 2006-10-12  Bruno Haible  <bruno@clisp.org>
54105
54106         * modules/acl (Makefile.am): Distribute all files in lib/ through
54107         EXTRA_DIST.
54108         * modules/arcfour (Makefile.am): Likewise.
54109         * modules/arctwo (Makefile.am): Likewise.
54110         * modules/argmatch (Makefile.am): Likewise.
54111         * modules/argz (Makefile.am): Likewise.
54112         * modules/atexit (Makefile.am): Likewise.
54113         * modules/backupfile (Makefile.am): Likewise.
54114         * modules/c-strtod (Makefile.am): Likewise.
54115         * modules/c-strtold (Makefile.am): Likewise.
54116         * modules/calloc (Makefile.am): Likewise.
54117         * modules/canon-host (Makefile.am): Likewise.
54118         * modules/canonicalize (Makefile.am): Likewise.
54119         * modules/chdir-long (Makefile.am): Likewise.
54120         * modules/chdir-safer (Makefile.am): Likewise.
54121         * modules/check-version (Makefile.am): Likewise.
54122         * modules/chown (Makefile.am): Likewise.
54123         * modules/cloexec (Makefile.am): Likewise.
54124         * modules/close-stream (Makefile.am): Likewise.
54125         * modules/closeout (Makefile.am): Likewise.
54126         * modules/crc (Makefile.am): Likewise.
54127         * modules/cycle-check (Makefile.am): Likewise.
54128         * modules/des (Makefile.am): Likewise.
54129         * modules/dirfd (Makefile.am): Likewise.
54130         * modules/dirname (Makefile.am): Likewise.
54131         * modules/dup2 (Makefile.am): Likewise.
54132         * modules/euidaccess (Makefile.am): Likewise.
54133         * modules/exclude (Makefile.am): Likewise.
54134         * modules/exitfail (Makefile.am): Likewise.
54135         * modules/fcntl-safer (Makefile.am): Likewise.
54136         * modules/file-type (Makefile.am): Likewise.
54137         * modules/fileblocks (Makefile.am): Likewise.
54138         * modules/filemode (Makefile.am): Likewise.
54139         * modules/filenamecat (Makefile.am): Likewise.
54140         * modules/fnmatch (Makefile.am): Likewise.
54141         * modules/fopen-safer (Makefile.am): Likewise.
54142         * modules/fpending (Makefile.am): Likewise.
54143         * modules/fprintftime (Makefile.am): Likewise.
54144         * modules/free (Makefile.am): Likewise.
54145         * modules/fsusage (Makefile.am): Likewise.
54146         * modules/ftruncate (Makefile.am): Likewise.
54147         * modules/fts (Makefile.am): Likewise.
54148         * modules/gc (Makefile.am): Likewise.
54149         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54150         * modules/getaddrinfo (Makefile.am): Likewise.
54151         * modules/getcwd (Makefile.am): Likewise.
54152         * modules/getdelim (Makefile.am): Likewise.
54153         * modules/getdomainname (Makefile.am): Likewise.
54154         * modules/getgroups (Makefile.am): Likewise.
54155         * modules/gethostname (Makefile.am): Likewise.
54156         * modules/gethrxtime (Makefile.am): Likewise.
54157         * modules/getline (Makefile.am): Likewise.
54158         * modules/getloadavg (Makefile.am): Likewise.
54159         * modules/getlogin_r (Makefile.am): Likewise.
54160         * modules/getopt (Makefile.am): Likewise.
54161         * modules/getpass (Makefile.am): Likewise.
54162         * modules/getpass-gnu (Makefile.am): Likewise.
54163         * modules/getsubopt (Makefile.am): Likewise.
54164         * modules/gettime (Makefile.am): Likewise.
54165         * modules/gettimeofday (Makefile.am): Likewise.
54166         * modules/getugroups (Makefile.am): Likewise.
54167         * modules/getusershell (Makefile.am): Likewise.
54168         * modules/glob (Makefile.am): Likewise.
54169         * modules/group-member (Makefile.am): Likewise.
54170         * modules/hard-locale (Makefile.am): Likewise.
54171         * modules/hash (Makefile.am): Likewise.
54172         * modules/hmac-md5 (Makefile.am): Likewise.
54173         * modules/hmac-sha1 (Makefile.am): Likewise.
54174         * modules/human (Makefile.am): Likewise.
54175         * modules/idcache (Makefile.am): Likewise.
54176         * modules/imaxabs (Makefile.am): Likewise.
54177         * modules/imaxdiv (Makefile.am): Likewise.
54178         * modules/inet_ntop (Makefile.am): Likewise.
54179         * modules/inet_pton (Makefile.am): Likewise.
54180         * modules/inttostr (Makefile.am): Likewise.
54181         * modules/isapipe (Makefile.am): Likewise.
54182         * modules/lchown (Makefile.am): Likewise.
54183         * modules/long-options (Makefile.am): Likewise.
54184         * modules/lstat (Makefile.am): Likewise.
54185         * modules/malloc (Makefile.am): Likewise.
54186         * modules/mathl (Makefile.am): Likewise.
54187         * modules/mbchar (Makefile.am): Likewise.
54188         * modules/md2 (Makefile.am): Likewise.
54189         * modules/md4 (Makefile.am): Likewise.
54190         * modules/md5 (Makefile.am): Likewise.
54191         * modules/memcasecmp (Makefile.am): Likewise.
54192         * modules/memchr (Makefile.am): Likewise.
54193         * modules/memcmp (Makefile.am): Likewise.
54194         * modules/memcoll (Makefile.am): Likewise.
54195         * modules/memcpy (Makefile.am): Likewise.
54196         * modules/memmem (Makefile.am): Likewise.
54197         * modules/memmove (Makefile.am): Likewise.
54198         * modules/mempcpy (Makefile.am): Likewise.
54199         * modules/memrchr (Makefile.am): Likewise.
54200         * modules/memset (Makefile.am): Likewise.
54201         * modules/memxor (Makefile.am): Likewise.
54202         * modules/mkancesdirs (Makefile.am): Likewise.
54203         * modules/mkdir (Makefile.am): Likewise.
54204         * modules/mkdir-p (Makefile.am): Likewise.
54205         * modules/mkdtemp (Makefile.am): Likewise.
54206         * modules/mkstemp (Makefile.am): Likewise.
54207         * modules/mktime (Makefile.am): Likewise.
54208         * modules/modechange (Makefile.am): Likewise.
54209         * modules/mountlist (Makefile.am): Likewise.
54210         * modules/nanosleep (Makefile.am): Likewise.
54211         * modules/openat (Makefile.am): Likewise.
54212         * modules/pagealign_alloc (Makefile.am): Likewise.
54213         * modules/physmem (Makefile.am): Likewise.
54214         * modules/poll (Makefile.am): Likewise.
54215         * modules/posixtm (Makefile.am): Likewise.
54216         * modules/posixver (Makefile.am): Likewise.
54217         * modules/putenv (Makefile.am): Likewise.
54218         * modules/quote (Makefile.am): Likewise.
54219         * modules/quotearg (Makefile.am): Likewise.
54220         * modules/raise (Makefile.am): Likewise.
54221         * modules/read-file (Makefile.am): Likewise.
54222         * modules/readline (Makefile.am): Likewise.
54223         * modules/readlink (Makefile.am): Likewise.
54224         * modules/readtokens (Makefile.am): Likewise.
54225         * modules/readutmp (Makefile.am): Likewise.
54226         * modules/realloc (Makefile.am): Likewise.
54227         * modules/regex (Makefile.am): Likewise.
54228         * modules/rename (Makefile.am): Likewise.
54229         * modules/rename-dest-slash (Makefile.am): Likewise.
54230         * modules/rijndael (Makefile.am): Likewise.
54231         * modules/rmdir (Makefile.am): Likewise.
54232         * modules/rpmatch (Makefile.am): Likewise.
54233         * modules/safe-read (Makefile.am): Likewise.
54234         * modules/safe-write (Makefile.am): Likewise.
54235         * modules/same (Makefile.am): Likewise.
54236         * modules/save-cwd (Makefile.am): Likewise.
54237         * modules/savedir (Makefile.am): Likewise.
54238         * modules/setenv (Makefile.am): Likewise.
54239         * modules/settime (Makefile.am): Likewise.
54240         * modules/sha1 (Makefile.am): Likewise.
54241         * modules/sig2str (Makefile.am): Likewise.
54242         * modules/snprintf (Makefile.am): Likewise.
54243         * modules/stdlib-safer (Makefile.am): Likewise.
54244         * modules/stpcpy (Makefile.am): Likewise.
54245         * modules/stpncpy (Makefile.am): Likewise.
54246         * modules/strcase (Makefile.am): Likewise.
54247         * modules/strcasestr (Makefile.am): Likewise.
54248         * modules/strchrnul (Makefile.am): Likewise.
54249         * modules/strcspn (Makefile.am): Likewise.
54250         * modules/strdup (Makefile.am): Likewise.
54251         * modules/strerror (Makefile.am): Likewise.
54252         * modules/strftime (Makefile.am): Likewise.
54253         * modules/strndup (Makefile.am): Likewise.
54254         * modules/strnlen (Makefile.am): Likewise.
54255         * modules/strpbrk (Makefile.am): Likewise.
54256         * modules/strsep (Makefile.am): Likewise.
54257         * modules/strstr (Makefile.am): Likewise.
54258         * modules/strtod (Makefile.am): Likewise.
54259         * modules/strtoimax (Makefile.am): Likewise.
54260         * modules/strtok_r (Makefile.am): Likewise.
54261         * modules/strtol (Makefile.am): Likewise.
54262         * modules/strtoll (Makefile.am): Likewise.
54263         * modules/strtoul (Makefile.am): Likewise.
54264         * modules/strtoull (Makefile.am): Likewise.
54265         * modules/strtoumax (Makefile.am): Likewise.
54266         * modules/strverscmp (Makefile.am): Likewise.
54267         * modules/time_r (Makefile.am): Likewise.
54268         * modules/timegm (Makefile.am): Likewise.
54269         * modules/tmpfile-safer (Makefile.am): Likewise.
54270         * modules/unistd-safer (Makefile.am): Likewise.
54271         * modules/unlinkdir (Makefile.am): Likewise.
54272         * modules/userspec (Makefile.am): Likewise.
54273         * modules/utime (Makefile.am): Likewise.
54274         * modules/utimecmp (Makefile.am): Likewise.
54275         * modules/utimens (Makefile.am): Likewise.
54276         * modules/vasnprintf (Makefile.am): Likewise.
54277         * modules/vasprintf (Makefile.am): Likewise.
54278         * modules/vsnprintf (Makefile.am): Likewise.
54279         * modules/xalloc (Makefile.am): Likewise.
54280         * modules/xgetcwd (Makefile.am): Likewise.
54281         * modules/xnanosleep (Makefile.am): Likewise.
54282         * modules/xreadlink (Makefile.am): Likewise.
54283         * modules/xstrtod (Makefile.am): Likewise.
54284         * modules/xstrtol (Makefile.am): Likewise.
54285         * modules/xstrtold (Makefile.am): Likewise.
54286         * modules/yesno (Makefile.am): Likewise.
54287
54288 2006-10-12  Jim Meyering  <jim@meyering.net>
54289
54290         * m4/getloadavg.m4: Revert the change below.
54291
54292         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
54293         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
54294         fail with a symlink, which is what coreutils' ./bootstrap now
54295         creates by default.
54296
54297 2006-10-12  Bruno Haible  <bruno@clisp.org>
54298
54299         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
54300         mingw.
54301         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
54302         MSVC and mingw explicitly.
54303
54304 2006-10-11  Simon Josefsson  <jas@extundo.com>
54305             Bruno Haible  <bruno@clisp.org>
54306
54307         Add support for multiple gnulib-tool invocations in the scope of a
54308         single configure.ac file.
54309         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
54310         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
54311         with the same contents as the _LIBADD variable.
54312         (func_emit_initmacro_start, func_emit_initmacro_end,
54313         func_emit_initmacro_done): New functions.
54314         (func_import, func_create_testdir): Invoke them. Allow the identifiers
54315         gl_LIBOBJS and gl_LTLIBOBJS.
54316
54317 2006-10-11  Bruno Haible  <bruno@clisp.org>
54318
54319         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
54320         (func_create_testdir): Don't create po/Makefile.am, don't invoke
54321         autoreconf. Instead, invoke autopoint explicitly but move back the
54322         *.m4 files from gnulib.
54323
54324 2006-10-11  Bruno Haible  <bruno@clisp.org>
54325
54326         * gnulib-tool (func_usage): Make module names after --create-testdir
54327         optional.
54328         (func_create_testdir): If no module was specified, use nearly all
54329         modules.
54330
54331 2006-10-12  Jim Meyering  <jim@meyering.net>
54332
54333         Big performance improvement for fts-based tools that use FTS_NOSTAT.
54334         Avoid spurious inode-mismatch problems on non-POSIX file systems.
54335         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
54336         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
54337         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
54338         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
54339         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
54340         (fts_set_stat_required): New function.
54341         (fts_open): Defer the calls to fts_stat, if possible or requested.
54342         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
54343         into fts_stat itself.
54344         (fts_read): Perform any required (deferred) fts_stat call.
54345         (fts_build): Likewise, for the directory we're about to open and read.
54346         In the readdir loop, carefully decide whether each entry will require
54347         an eventual call to fts_stat, using dirent.d_type info if available.
54348         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
54349         a command line argument into this function.  Update all callers.
54350         Map a return value of FTS_DOT to FTS_D for a command line argument.
54351         * modules/fts (Depends-on): Add d-type.  Alphabetize.
54352         Thanks to Miklos Szeredi for his tenacity and for the initial
54353         bug report about "find" failing on a FUSE-based file system.
54354
54355         * lib/fts.c (fts_open): Use consistent indentation.
54356
54357 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54358
54359         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
54360         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
54361         reported by Jim Meyering.  All uses of cache variables renamed
54362         to match Autoconf's.
54363         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
54364         the other one.
54365
54366         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
54367         Fix misspelling in diagnostic.
54368
54369 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54370
54371         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
54372         defined.  Problem reported by Matthew Woehlke.
54373
54374         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
54375         Add support for Tandem NonStop R series.
54376         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
54377         Use new macro.
54378
54379         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
54380         (has_trailing_slash): Omit size arg; all callers changed.
54381         Omit 'inline', since it doesn't help performance and we'd
54382         need to configure it.
54383         Don't count //, ///, etc. as having a trailing slash.
54384         As a side effect, this removes a C99ism reported by Matthew Woehlke.
54385         (rpl_rename_dest_slash): On failure, use rename's errno rather
54386         than (in some cases) an incorrect or junk errno.
54387         Simplify code by removing need to compute length; this does
54388         cause it to make two passes instead of one over the file name,
54389         but it's worth it.
54390
54391         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
54392         change, since Autoconf's version may no longer be appropriate now
54393         that we are using CVS Autoconf's version.  Add support for Tandem.
54394
54395 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54396             Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
54399         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
54400         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
54401         gl_AC_TYPE_LONG_LONG.
54402
54403         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
54404         instead of HAVE_LONG_LONG.
54405         * lib/printf-args.c (printf_fetchargs): Likewise.
54406         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
54407         * lib/vasnprintf.c (VASNPRINTF): Likewise.
54408         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
54409         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
54410         gl_AC_TYPE_LONG_LONG.
54411
54412 2006-10-11  Bruno Haible  <bruno@clisp.org>
54413
54414         * m4/longlong.m4: Add comments.
54415         * m4/ulonglong.m4: Likewise.
54416
54417 2006-10-10  Bruno Haible  <bruno@clisp.org>
54418
54419         Make it possible to #define stpcpy, strdup to aliases.
54420         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
54421         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
54422
54423 2006-10-10  Bruno Haible  <bruno@clisp.org>
54424
54425         Make it possible to #define gcd to an alias.
54426         * lib/gcd.c: Include config.h.
54427
54428 2006-10-10  Bruno Haible  <bruno@clisp.org>
54429
54430         Make it possible to #define c_isascii to an alias.
54431         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
54432         defined. Undefine the macros before defining them, to avoid gcc
54433         warnings.
54434         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
54435         define NO_C_CTYPE_MACROS early.
54436
54437 2006-10-10  Bruno Haible  <bruno@clisp.org>
54438
54439         Make it possible to #define set_program_name to an alias.
54440         * lib/progname.c: Don't undefine set_program_name; instead, undefine
54441         ENABLE_RELOCATABLE early.
54442
54443 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54444
54445         Port to Tandem NSK OSS, which has 64-bit signed int but at most
54446         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
54447         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
54448         More generally, don't assume that 64-bit signed int is available
54449         if unsigned int is, and vice versa.
54450         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
54451         unsigned symbols, not on their signed counterparts.
54452         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
54453         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
54454         (UINT64_C, UINTMAX_C):
54455         Likewise.
54456         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
54457         unsigned counterparts.
54458         (Have_long_long, Unsigned): New macros.
54459         (Int): Renamed from INT.
54460         (strtoimax): Use the new macros.
54461         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
54462         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
54463         * modules/inttypes (inttypes.h): Substitute
54464         HAVE_UNSIGNED_LONG_LONG_INT.
54465         * modules/stdint (stdint.h): Likewise.
54466         (Files): Add m4/ulonglong.m4.
54467
54468 2006-10-10  Bruno Haible  <bruno@clisp.org>
54469
54470         Fix a gcc -Wshadow warning.
54471         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
54472         to 'bucket'.
54473         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
54474         gl_linked_indexof_from_to): Likewise.
54475         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
54476         Likewise.
54477         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
54478         Likewise.
54479         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
54480         Reported by Eric Blake.
54481
54482 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
54483
54484         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
54485         for NetBSD.  Problem reported by Bruno Haible.
54486
54487 2006-10-09  Jim Meyering  <jim@meyering.net>
54488
54489         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
54490         Patch from Bruno Haible.
54491
54492 2006-10-09  Jim Meyering  <jim@meyering.net>
54493
54494         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
54495         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
54496         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
54497
54498 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54499
54500         Don't include <config.h> twice; this doesn't work in some cases,
54501         e.g., when config.h has "#define intmax_t long long int" and
54502         we include <config.h>, <inttypes.h>, <config.h> in that order.
54503         Problem reported by Matthew Woehlke in:
54504         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
54505         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
54506         * lib/fts-cycle.c: Don't include config.h.
54507         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
54508         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
54509         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
54510         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
54511         inttypes.h.
54512         * lib/xstrtoumax.c: Likewise.
54513         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
54514         __strtol and the like, so that this module is more like its siblings.
54515         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
54516         Remove; no longer needed now that we assume gnulib inttypes.h.
54517
54518 2006-10-08  Bruno Haible  <bruno@clisp.org>
54519
54520         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
54521         option.
54522
54523 2006-10-07  Jim Meyering  <jim@meyering.net>
54524
54525         * modules/inttypes (inttypes.h): Revert what seems to have been
54526         an inadvertent part of today's change: use "|", not "/" in the
54527         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
54528
54529 2006-10-07  Bruno Haible  <bruno@clisp.org>
54530
54531         * modules/sublist: New file.
54532
54533 2006-10-07  Bruno Haible  <bruno@clisp.org>
54534
54535         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
54536         * modules/argz (argz.h): Likewise.
54537         * modules/arpa_inet (arpa/inet.h): Likewise.
54538         * modules/byteswap (byteswap.h): Likewise.
54539         * modules/configmake (configmake.h): Likewise.
54540         * modules/fcntl (fcntl.h): Likewise.
54541         * modules/fnmatch (fnmatch.h): Likewise.
54542         * modules/getopt (getopt.h): Likewise.
54543         * modules/glob (glob.h): Likewise.
54544         * modules/inttypes (inttypes.h): Likewise.
54545         * modules/netinet_in (netinet/in.h): Likewise.
54546         * modules/poll (poll.h): Likewise.
54547         * modules/stdbool (stdbool.h): Likewise.
54548         * modules/stdint (stdint.h): Likewise.
54549         * modules/sys_select (sys/select.h): Likewise.
54550         * modules/sys_socket (sys/socket.h): Likewise.
54551         * modules/sys_stat (sys/stat.h): Likewise.
54552         * modules/sysexits (sysexits.h): Likewise.
54553         * modules/unistd (unistd.h): Likewise.
54554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54555         Add a "DO NOT EDIT" comment to the generated file.
54556         (func_import): Likewise for gnulib-comp.m4.
54557
54558 2006-10-07  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/gl_sublist.h: New file.
54561         * lib/gl_sublist.c: New file.
54562
54563 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
54566         name (relative to the original working directory) and the file
54567         name component (relative to the temporary working directory).  All
54568         callers changed.
54569         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
54570         * lib/mkdir-p.c (make_dir_parents): Likewise.
54571         * lib/mkdir-p.h (make_dir_parents): Likewise.
54572
54573 2006-10-06  Eric Blake  <ebb9@byu.net>
54574
54575         Define several macros for use by the clean-temp module.
54576         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
54577         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
54578         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
54579
54580         * lib/clean-temp.h (close_stream_temp): New declaration.
54581         * lib/clean-temp.c (includes): Pull in headers according to what
54582         other modules are in use.
54583         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
54584
54585 2006-10-06  Bruno Haible  <bruno@clisp.org>
54586
54587         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
54588         instead of fopen, fwriteerror.
54589
54590 2006-10-06  Bruno Haible  <bruno@clisp.org>
54591
54592         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
54593         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
54594         int.
54595         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
54596         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
54597         Return an error indicator.
54598         Suggested by Eric Blake.
54599
54600 2006-10-06  Bruno Haible  <bruno@clisp.org>
54601
54602         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
54603         Reported by Eric Blake.
54604
54605 2006-10-06  Bruno Haible  <bruno@clisp.org>
54606
54607         * modules/closeout (Description): Mention stderr too.
54608
54609 2006-10-06  Bruno Haible  <bruno@clisp.org>
54610         and Paul Eggert  <eggert@cs.ucla.edu>
54611
54612         * lib/closeout.c (close_stdout): Also close stderr.
54613         * lib/closeout.h: Update comment.
54614
54615 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
54618         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
54619         * lib/dirchownmod.c: Include lchown.h.
54620         * lib/lchown.c: Don't include files that lchown.h now includes.
54621         Don't declare chown, since lchown.h now does that.
54622         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
54623         (lchown): Define to rpl_chown if lchown is declared but
54624         does not exist.  Declare using a prototype if lchown is not
54625         declared.  Add a copyright notice.
54626         * lib/mkstemp.h: Include <unistd.h>.
54627         * lib/openat.c: Include lchown.h.
54628
54629         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
54630         we now test for that separately.
54631         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
54632         rather than O_NOFOLLOW, when testing whether it's possible to
54633         avoid a race condition reliably.
54634         * lib/savewd.c (savewd_chdir): Likewise.
54635
54636         Remove macros that are no longer needed now that stdint.h is
54637         reliable.
54638         * lib/fsusage.c (UINTMAX_MAX): Remove.
54639         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
54640         * lib/utimecmp.c (SIZE_MAX): Remove.
54641
54642         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
54643
54644         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
54645         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
54646         O_NOATIME works.
54647
54648 2006-10-05  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/gl_list.h (gl_sortedlist_search_from_to,
54651         gl_sortedlist_indexof_from_to): New declarations.
54652         (gl_list_implementation): New fields sortedlist_search_from_to,
54653         sortedlist_indexof_from_to.
54654         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
54655         inline functions.
54656         * lib/gl_list.c (gl_sortedlist_search_from_to,
54657         gl_sortedlist_indexof_from_to): New functions.
54658         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
54659         function.
54660         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
54661         (gl_array_sortedlist_search_from_to): New function.
54662         (gl_array_list_implementation): Update.
54663         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
54664         function.
54665         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
54666         (gl_carray_sortedlist_search_from_to): New function.
54667         (gl_carray_list_implementation): Update.
54668         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
54669         gl_linked_sortedlist_indexof_from_to): New functions.
54670         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54671         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54672         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
54673         gl_tree_sortedlist_indexof_from_to): New functions.
54674         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54675         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54676         Update.
54677         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54678         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
54679         Update.
54680
54681 2006-10-05  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
54684         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
54685         (struct gl_list_implementation): Add fields search_from_to,
54686         indexof_from_to. Remove fields search, indexof.
54687         (gl_list_search): Use the search_from_to method.
54688         (gl_list_search_from, gl_list_search_from_to): New functions.
54689         (gl_list_indexof): Use the indexof_from_to method.
54690         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54691         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
54692         (gl_list_search_from, gl_list_search_from_to): New functions.
54693         (gl_list_indexof): Use the indexof_from_to method.
54694         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54695         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
54696         gl_array_indexof. Add start_index, end_index arguments.
54697         (gl_array_search_from_to): Renamed from gl_array_search. Add
54698         start_index, end_index arguments.
54699         (gl_array_remove, gl_array_list_implementation): Update.
54700         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
54701         gl_carray_indexof. Add start_index, end_index arguments.
54702         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
54703         start_index, end_index arguments.
54704         (gl_carray_remove, gl_carray_list_implementation): Update.
54705         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
54706         gl_linked_search. Add start_index, end_index arguments.
54707         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
54708         start_index, end_index arguments.
54709         (gl_linked_remove): Update.
54710         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54711         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54712         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
54713         field to 'size_t'.
54714         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
54715         gl_tree_search. Add start_index, end_index arguments.
54716         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
54717         start_index, end_index arguments.
54718         (gl_tree_remove): Update.
54719         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54720         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54721         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
54722         function.
54723         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
54724         gl_tree_search. Add start_index, end_index arguments.
54725         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
54726         start_index, end_index arguments.
54727         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54728         Update.
54729         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54730
54731 2006-10-05  Bruno Haible  <bruno@clisp.org>
54732
54733         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
54734
54735         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
54736         fwriteerror_temp): New declarations.
54737         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
54738         (descriptors): New variable.
54739         (cleanup): First, close the descriptors.
54740         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
54741         fclose_temp, fwriteerror_temp): New functions.
54742
54743 2006-10-04  Jim Meyering  <jim@meyering.net>
54744
54745         * lib/fts.c (fts_open): Tiny comment change.
54746
54747 2006-10-04  Bruno Haible  <bruno@clisp.org>
54748
54749         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
54750         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
54751         gl_LOCK_BODY.
54752         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
54753         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
54754         gl_LOCK_EARLY_BODY.
54755         (gl_LOCK): Require gl_LOCK_BODY.
54756
54757 2006-10-04  Bruno Haible  <bruno@clisp.org>
54758
54759         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
54760         (gl_oset_search_atleast): New declaration.
54761         (struct gl_oset_implementation): Add field 'search_atleast'.
54762         (gl_oset_search_atleast): New inline function.
54763         * lib/gl_oset.c (gl_oset_search_atleast): New function.
54764         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
54765         (gl_array_oset_implementation): Update.
54766         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
54767         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
54768         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
54769
54770 2006-10-04  Bruno Haible  <bruno@clisp.org>
54771
54772         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
54773
54774 2006-10-03  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
54777         from gl_avltreehash_list_implementation.
54778
54779 2006-10-03  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/gl_oset.c (gl_oset_add): Fix return type.
54782
54783 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
54784
54785         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
54786
54787 2006-10-02  Eric Blake  <ebb9@byu.net>
54788
54789         * modules/strnlen (Depends-on): Add extensions.
54790
54791 2006-10-02  Eric Blake  <ebb9@byu.net>
54792
54793         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
54794         definition in 2.60+.
54795
54796 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
54797
54798         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
54799         checks.
54800
54801 2006-10-02  Bruno Haible  <bruno@clisp.org>
54802
54803         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
54804         to the AUTOMAKE_OPTIONS.
54805         Reported by Jim Meyering.
54806
54807 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54808
54809         Work around bug in Solaris 10 /proc file system:
54810         /proc/self/fd/NNN/.. isn't the parent directory of
54811         the directory whose file descriptor is NNN.  This needs to
54812         be worked around at run time, not compile time, since a
54813         program might be built on Solaris 8, where things work, and
54814         run on Solaris 10.
54815         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
54816         to use the following interface instead:
54817         (OPENAT_BUFFER_SIZE): New macro.
54818         (openat_proc_name): New function.
54819         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
54820         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
54821         Likewise.
54822         * lib/openat-proc.c: New file.
54823         * modules/openat (Files): Add lib/openat-proc.c.
54824         (Depends-on): Add same-inode, stdbool.
54825         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
54826
54827 2006-09-29  Bruno Haible  <bruno@clisp.org>
54828
54829         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
54830         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
54831         argument. Set stdout_closed before testing for ferror, not after.
54832         (fwriteerror, fwriteerror_no_ebadf): New functions.
54833
54834 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54835
54836         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
54837
54838 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
54839
54840         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
54841         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
54842
54843 2006-09-28  Jim Meyering  <jim@meyering.net>
54844
54845         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
54846         Include <unistd.h>.
54847
54848 2006-09-28  Bruno Haible  <bruno@clisp.org>
54849
54850         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
54851         * modules/linkedhash-list (Depends-on): Likewise.
54852         * modules/rbtreehash-list (Depends-on): Likewise.
54853
54854 2006-09-28  Bruno Haible  <bruno@clisp.org>
54855
54856         * lib/strndup.h: Simplify the redefinition of strndup.
54857         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
54858         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
54859
54860 2006-09-28  Bruno Haible  <bruno@clisp.org>
54861
54862         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
54863         * lib/gl_linkedhash_list.c: Likewise.
54864         * lib/gl_rbtreehash_list.c: Likewise.
54865
54866 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
54869         getaddrinfo.
54870
54871         * lib/__fpending.h: Don't include <stdio_ext.h> unless
54872         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
54873         it causes <stdio_ext.h> to cause a compile-time error.
54874         Problem reported by Nelson H. F. Beebe.
54875         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
54876         of HAVE_DECL___PENDING.
54877
54878         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
54879         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
54880         declaration.
54881
54882 2006-09-27  Jim Meyering  <jim@meyering.net>
54883
54884         This file could end up with a definition for a function
54885         named __strndup, rather than rpl_strndup on a system with
54886         incomplete weak_alias support.
54887         * lib/strndup.c (strndup): Rename from __strndup.
54888         Remove #defines that used to map __strndup to strndup.
54889         Don't use K&R prototypes.
54890         Remove LIBC-related code, since this file is not sync'd with glibc.
54891         * lib/strndup.h: Revamp, accordingly.
54892         * m4/strndup.m4: Modernize.
54893
54894 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54895
54896         * modules/savewd (Depends-on): Add 'raise'.
54897         * lib/savewd.c: Include <signal.h>, for 'raise'.
54898
54899 2006-09-26  Jim Meyering  <jim@meyering.net>
54900
54901         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
54902         when we detect Darwin 8.7.0's acl_get_file bug.
54903         Rearrange to perform the new (below) run-test while $LIBS
54904         contains any acl-related library.  Set USE_ACL at the end.
54905         (gl_ACL_GET_FILE): New function.
54906
54907 2006-09-26  Eric Blake  <ebb9@byu.net>
54908
54909         * lib/verror.c: Include <config.h> unconditionally.
54910
54911 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
54912
54913         * modules/clock-time (Maintainer): Add self.
54914         * modules/getlogin_r (Depends-on): Add extensions.
54915
54916 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54917
54918         * modules/clock-time: New module.
54919         * modules/nanosleep (Depends-on): Add clock-time.
54920         * modules/gethrxtime (Depends-on): Likewise.
54921         * modules/gettime (Depends-on): Likewise.
54922         * modules/settime (Depends-on): Likewise.
54923
54924         * modules/fts-lgpl: Depend on openat.
54925         * modules/mkancesdirs: Depend on savewd.
54926         * modules/mkdir-p: Likewise.
54927
54928 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54929
54930         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
54931
54932         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
54933         `gl_have_arbitrary_file_name_length_limit' to
54934         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
54935         actually works between configure runs.
54936
54937 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54938             Bruno Haible  <bruno@clisp.org>
54939
54940         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
54941
54942 2006-09-25  Jim Meyering  <jim@meyering.net>
54943
54944         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
54945         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
54946
54947 2006-09-25  Eric Blake  <ebb9@byu.net>
54948
54949         * gnulib-tool (func_import, func_create_testdir): Fix typos in
54950         exec's in 2006-09-18 patch when shuffling fds.
54951
54952 2006-09-25  Bruno Haible  <bruno@clisp.org>
54953
54954         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
54955         Reported by Jim Meyering.
54956
54957 2006-09-24  Jim Meyering  <jim@meyering.net>
54958
54959         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
54960         compare a pointer against a literal "0".  That caused failures with
54961         at least HP-UX's hpcc.
54962
54963 2006-09-22  Simon Josefsson  <jas@extundo.com>
54964
54965         * modules/gc-sha1:
54966         * modules/gc-md4:
54967         * modules/gc-hmac-sha1:
54968         * modules/gc-hmac-md5:
54969         * modules/gc-des:
54970         * modules/gc-arcfour: Distribute more files.
54971
54972 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54973
54974         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
54975         (gl_linked_iterator_from_to): Initialize struct completely.
54976         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
54977         (gl_tree_iterator_from_to): Likewise
54978         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
54979         * lib/gl_array_list.c [lint] (gl_array_iterator)
54980         (gl_array_iterator_from_to): Likewise.
54981         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
54982         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
54983         (gl_carray_iterator_from_to): Likewise.
54984
54985         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
54986         * lib/md4.c (md4_process_block): Remove unused variable.
54987         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
54988         parentheses for clarity.
54989
54990 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54991
54992         * modules/bison-i18n (Depends-on): Add gettext.
54993
54994 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54995
54996         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
54997         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
54998         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
54999         also add missing comma that caused broken test.
55000         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
55001         stdlib.h, for `abort'.
55002         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
55003         variables.
55004         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
55005         include unistd.h if present, for `rmdir'.
55006         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
55007         variables.
55008         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
55009         in the process include standard headers for prototypes.
55010         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
55011         gets declared on GNU/Linux.
55012         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
55013         unistd.h, for `rmdir'.
55014         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
55015
55016         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
55017         always true.
55018         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
55019
55020         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
55021
55022 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55023
55024         * gnulib-tool (func_version): Create output all at once.  This
55025         may help avoid triggering unnecessary SIGPIPEs, and at any
55026         rate it doesn't hurt.
55027
55028 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55029             Bruno Haible  <bruno@clisp.org>
55030
55031         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
55032         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55033         * m4/signed.m4 (bh_C_SIGNED): Likewise.
55034
55035         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
55036         (gl_FUNC_VASPRINTF): Invoke it.
55037
55038 2006-09-22  Bruno Haible  <bruno@clisp.org>
55039
55040         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
55041         getloadavg.c as first argument.
55042
55043 2006-09-22  Bruno Haible  <bruno@clisp.org>
55044
55045         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
55046         at the beginning of the gl_INIT macro.
55047         * modules/getloadavg (configure.ac): Pass $gl_source_base to
55048         gl_GETLOADAVG.
55049
55050 2006-09-22  Bruno Haible  <bruno@clisp.org>
55051
55052         * gnulib-tool (func_create_megatestdir): Don't include the config-h
55053         module.
55054         Suggested by Ralf Wildenhues.
55055
55056 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55057
55058         Import this patch from libc:
55059
55060         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
55061
55062         * lib/regex_internal.c (re_string_reconstruct): Handle
55063         offset < pstr->valid_raw_len && pstr->offsets_needed case.
55064         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
55065         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
55066         re_string_context_at.
55067
55068         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
55069         now requires it.
55070         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
55071         gl_REGEX now does it for us.
55072         (gl_REGEX): Add test taken from
55073         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
55074
55075         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
55076         Check that large offsets work.  Modernize Autoconf usages.
55077         Prefer "yes" to mean a good thing rather than a bad.
55078         Don't put "#define mkstemp" in config.h, as this might interfere
55079         with standard system headers that "#define mkstemp mkstemp64".
55080
55081         * modules/mkstemp (Depends-on): Add extensions, so that
55082         mkstemp is visible on some platforms.
55083         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
55084         (Include): Change to "mkstemp.h" from <stdlib.h>.
55085         (Files): Add mkstemp.h.
55086
55087         * lib/mkstemp.h: New file, since some standard headers
55088         #define mkstemp.
55089         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
55090         Include "mkstemp.h".
55091         Make the _LIBC code resemble glibc original more,
55092         e.g., use K&R style.
55093         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
55094         (mkstemp): Remove, since mkstemp.h does this for us.
55095         * lib/stdlib--.h: Include mkstemp.h.
55096
55097         Import this patch from libc:
55098
55099         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55100
55101         * lib/tempname.c (__gen_tempname): Change attempts_min
55102         into a macro.  Use preprocessor to decide how to initialize
55103         attempts [Coverity CID 67].
55104
55105 2006-09-20  Bruno Haible  <bruno@clisp.org>
55106
55107         * lib/mkdtemp.c: Import from libc.
55108         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55109                 * sysdeps/posix/tempname.c (__gen_tempname): Change
55110                 attempts_min into a macro.  Use preprocessor to decide how to
55111                 initialize attempts [Coverity CID 67].
55112         2001-11-27  Paul Eggert  <eggert@twinsun.com>
55113                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
55114                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
55115
55116 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55117
55118         * gnulib-tool (func_exit): New function, to allow to pass the
55119         exit status portably through the trap.  Use everywhere.
55120         (--help, --version): Signal a write error.
55121         (trap): catch SIGPIPE, for write errors.
55122         Exit at the end of the trap, with the correct exit status.
55123
55124 2006-09-19  Karl Berry  <karl@gnu.org>
55125
55126         * doc/gnulib.texi: note about the license texinfo files.
55127
55128 2006-09-19  Eric Blake  <ebb9@byu.net>
55129
55130         * gnulib-tool: Avoid space-tab.
55131
55132 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55133
55134         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
55135         that prevented coreutils 6.1 from building.  Problem reported
55136         by Petter Reinholdtsen.
55137
55138 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55139
55140         * gnulib-tool (avoidlist): Fix typo that broke options like
55141         --avoid=lock that are used by coreutils bootstrap.
55142
55143 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
55144
55145         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
55146         more systematically.
55147
55148 2006-09-18  Jim Meyering  <jim@meyering.net>
55149
55150         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
55151
55152 2006-09-18  Bruno Haible  <bruno@clisp.org>
55153
55154         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
55155
55156 2006-09-18  Bruno Haible  <bruno@clisp.org>
55157
55158         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
55159         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
55160         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
55161         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
55162         * m4/gettext.m4: Require autoconf >= 2.52.
55163         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
55164         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
55165         of gl_cv_header_inttypes_h.
55166
55167 2006-09-18  Bruno Haible  <bruno@clisp.org>
55168
55169         * lib/javaversion.c: Include configmake.h.
55170
55171 2006-09-18  Bruno Haible  <bruno@clisp.org>
55172
55173         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
55174         avoid that the while loops be executed in a subshell.
55175
55176 2006-09-18  Bruno Haible  <bruno@clisp.org>
55177
55178         * MODULES.html.sh (func_module): Break long lines.
55179         Suggested by Bruce Korb <bkorb@gnu.org>.
55180
55181 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55182
55183         Speed up by a factor of 1.12.
55184         * gnulib-tool (nl): New variable.
55185         (func_import): Rewrite include directive extraction to only read each
55186         directive once.
55187
55188 2006-09-17  Bruno Haible  <bruno@clisp.org>
55189
55190         * modules/javaversion (Makefile.am): Remove DEFS setting.
55191         (Depends-on): Add configmake, for PKGDATADIR definition.
55192
55193 2006-09-17  Bruno Haible  <bruno@clisp.org>
55194
55195         * gnulib-tool (func_create_testdir): Rewrite all files at once.
55196
55197 2006-09-17  Bruno Haible  <bruno@clisp.org>
55198
55199         * gnulib-tool (func_append): New function, stolen from libtool.m4.
55200         (func_modules_transitive_closure, func_modules_add_dummy,
55201         func_modules_to_filelist, func_import, func_create_testdir,
55202         func_create_megatestdir, ...): Use it wherever possible.
55203         Suggested by Ralf Wildenhues.
55204
55205 2006-09-16  Karl Berry  <karl@gnu.org>
55206
55207         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
55208         to avoid sectioning errors.
55209         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
55210         [ifinfo]: blank line after @center-ed titles.
55211         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
55212         Spell FSF address consistently with others.
55213         (These changes approved by rms.)
55214
55215 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55216
55217         Speed up by a factor of 1.61.
55218         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
55219         already checked module names again.
55220
55221 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55222
55223         Speed up by a factor of 1.13.
55224         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
55225         for new_files, and the input to func_add_or_update.
55226
55227 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55228
55229         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
55230         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
55231
55232 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55233
55234         * modules/mkancesdirs (Depends-on): Add fcntl.
55235         * modules/savewd: New file.
55236         * MODULES.html.sh (File system functions): Add savewd.
55237
55238         * modules/configmake (Makefile.am): Add support for the
55239         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
55240
55241 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55242
55243         * m4/savewd.m4: New file.
55244
55245 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55246
55247         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
55248         (dirchownmod): New arg FD.  All callers changed.
55249         Use FD rather than opening the directory ourself, as opening is
55250         now the caller's responsibility.
55251         * lib/dirchownmod.h: Likewise.
55252         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
55253         hosts that require <sys/types.h> before <sys/stat.h>.  Include
55254         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
55255         (test_dir): Remove.
55256         (mkancesdirs): Return length of prefix of FILE that has already
55257         been made, or -2 if there is a child doing the work.  Redo
55258         algorithm so that it is O(N) rather than O(N**2).  Optimize away
55259         ".", and treat ".." specially since it might stray back into
55260         already-created areas.  Use a subprocess if necessary.  New arg
55261         WD; all users changed.  MAKE_DIR function should now return 1
55262         if it creates a directory that is not readable.  Return -2 if
55263         a child process is spun off.
55264         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
55265         Adjust signature to match code.
55266         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
55267         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
55268         all users changed.
55269         * lib/savewd.c, lib/savewd.h: New files.
55270
55271 2006-09-15  Jim Meyering  <jim@meyering.net>
55272
55273         * modules/rename-dest-slash: New module.
55274         * MODULES.html.sh (posix_compat): Add it here.
55275
55276         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
55277
55278 2006-09-15  Jim Meyering  <jim@meyering.net>
55279
55280         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
55281         file.
55282
55283         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
55284
55285 2006-09-15  Jim Meyering  <jim@meyering.net>
55286
55287         * lib/rename-dest-slash.c (has_trailing_slash): Use
55288         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
55289         (rpl_rename_dest_slash): Perform the cheaper trailing slash
55290         test before testing whether SRC is a directory.
55291         Suggestions from Bruno Haible.
55292
55293         Avoid a warning about an unused variable.
55294         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
55295         into the #ifdef block where it's used.
55296
55297         * lib/rename-dest-slash.c: New file.
55298
55299 2006-09-14  Bruno Haible  <bruno@clisp.org>
55300
55301         * lib/allocsa.c: Include <config.h> unconditionally.
55302         * lib/asnprintf.c: Likewise.
55303         * lib/asprintf.c: Likewise.
55304         * lib/c-strcasecmp.c: Likewise.
55305         * lib/c-strcasestr.c: Likewise.
55306         * lib/c-strncasecmp.c: Likewise.
55307         * lib/c-strstr.c: Likewise.
55308         * lib/classpath.c: Likewise.
55309         * lib/clean-temp.c: Likewise.
55310         * lib/concatpath.c: Likewise.
55311         * lib/copy-file.c: Likewise.
55312         * lib/csharpcomp.c: Likewise.
55313         * lib/csharpexec.c: Likewise.
55314         * lib/execute.c: Likewise.
55315         * lib/fatal-signal.c: Likewise.
55316         * lib/findprog.c: Likewise.
55317         * lib/fwriteerror.c: Likewise.
55318         * lib/gl_array_list.c: Likewise.
55319         * lib/gl_array_oset.c: Likewise.
55320         * lib/gl_avltree_list.c: Likewise.
55321         * lib/gl_avltree_oset.c: Likewise.
55322         * lib/gl_avltreehash_list.c: Likewise.
55323         * lib/gl_carray_list.c: Likewise.
55324         * lib/gl_linked_list.c: Likewise.
55325         * lib/gl_linkedhash_list.c: Likewise.
55326         * lib/gl_list.c: Likewise.
55327         * lib/gl_oset.c: Likewise.
55328         * lib/gl_rbtree_list.c: Likewise.
55329         * lib/gl_rbtree_oset.c: Likewise.
55330         * lib/gl_rbtreehash_list.c: Likewise.
55331         * lib/imaxabs.c: Likewise.
55332         * lib/imaxdiv.c: Likewise.
55333         * lib/javacomp.c: Likewise.
55334         * lib/javaexec.c: Likewise.
55335         * lib/javaversion.c: Likewise.
55336         * lib/linebreak.c: Likewise.
55337         * lib/localcharset.c: Likewise.
55338         * lib/lock.c: Likewise.
55339         * lib/mbchar.c: Likewise.
55340         * lib/mbswidth.c: Likewise.
55341         * lib/mkdtemp.c: Likewise.
55342         * lib/pipe.c: Likewise.
55343         * lib/printf-args.c: Likewise.
55344         * lib/printf-parse.c: Likewise.
55345         * lib/progname.c: Likewise.
55346         * lib/progreloc.c: Likewise.
55347         * lib/readlink.c: Likewise.
55348         * lib/sh-quote.c: Likewise.
55349         * lib/stpcpy.c: Likewise.
55350         * lib/stpncpy.c: Likewise.
55351         * lib/strcasecmp.c: Likewise.
55352         * lib/strcasestr.c: Likewise.
55353         * lib/strcspn.c: Likewise.
55354         * lib/striconv.c: Likewise.
55355         * lib/strncasecmp.c: Likewise.
55356         * lib/strnlen1.c: Likewise.
55357         * lib/strstr.c: Likewise.
55358         * lib/strtok_r.c: Likewise.
55359         * lib/tls.c: Likewise.
55360         * lib/tmpdir.c: Likewise.
55361         * lib/unicodeio.c: Likewise.
55362         * lib/unsetenv.c: Likewise.
55363         * lib/vasnprintf.c: Likewise.
55364         * lib/vasprintf.c: Likewise.
55365         * lib/wait-process.c: Likewise.
55366         * lib/xallocsa.c: Likewise.
55367         * lib/xsetenv.c: Likewise.
55368         * lib/xstriconv.c: Likewise.
55369
55370 2006-09-13  Simon Josefsson  <jas@extundo.com>
55371
55372         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
55373         that internally, suggested by Ralf Wildenhues
55374         <Ralf.Wildenhues@gmx.de>.
55375
55376 2006-09-13  Simon Josefsson  <jas@extundo.com>
55377
55378         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
55379         @LIBOBJS@.
55380         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55381
55382 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         * lib/_fpending.c: Include <config.h> unconditionally, since we no
55385         longer worry about uses that don't define HAVE_CONFIG_H.
55386         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
55387         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
55388         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
55389         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
55390         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
55391         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
55392         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
55393         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
55394         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
55395         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
55396         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
55397         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
55398         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
55399         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
55400         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
55401         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
55402         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
55403         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
55404         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
55405         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
55406         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
55407         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
55408         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
55409         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
55410         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
55411         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
55412         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
55413         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
55414         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
55415         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
55416         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
55417         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
55418         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
55419         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
55420         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
55421         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
55422         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
55423         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
55424         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
55425         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
55426         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
55427         Likewise.
55428
55429 2006-09-13  Eric Blake  <ebb9@byu.net>
55430
55431         * lib/getopt.c: Fix typo in last commit.
55432
55433 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55434
55435         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
55436         dgettext.
55437
55438 2006-09-12  Jim Meyering  <jim@meyering.net>
55439
55440         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
55441         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
55442         Reported by Nelson H. F. Beebe.
55443
55444 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55445
55446         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
55447         program_invocation_name and program_invocation_short_name are
55448         initialized.
55449         * lib/argp-namefrob.h: Move declarations of program_invocation_name
55450         and program_invocation_short_name to argp.h, so they are visible
55451         to user programs.
55452         * lib/argp.h: Likewise
55453
55454 2006-09-10  Bruno Haible  <bruno@clisp.org>
55455
55456         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55457         m4/inttypes_h.m4, m4/uintmax_t.m4.
55458
55459 2006-09-10  Bruno Haible  <bruno@clisp.org>
55460
55461         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
55462         gl_AC_TYPE_UINTMAX_T.
55463
55464 2006-09-10  Bruno Haible  <bruno@clisp.org>
55465
55466         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
55467
55468 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55469
55470         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
55471         convention.  Text proposed by Bruno Haible.
55472         (struct argp_option): Document the use of N_() wrappers.
55473
55474         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
55475         '\v', and translate the two parts separately, instead of feeding
55476         the whole string to gettext.  This allows to exclude
55477         '\v' from the strings visible to the translator by writing doc
55478         strings as N_("..") "\v" N_("..").
55479
55480 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
55481
55482         * config/srclist.txt: Undo latest change; the bug was fixed.
55483
55484 2006-09-09  Bruno Haible  <bruno@clisp.org>
55485
55486         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
55487         assignments if building a library without libtool.
55488         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
55489         in func_emit_lib_Makefile_am.
55490         (func_import): When building a static library libfoo.a, arrange to
55491         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
55492         (func_create_testdir): Likewise.
55493         * modules/gc (configure.ac, Makefile.am): If building statically,
55494         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
55495         * modules/iconvme (configure.ac, Makefile.am): Likewise.
55496         * modules/striconv (configure.ac, Makefile.am): Likewise.
55497         Based on a suggestion by Ralf Wildenhues.
55498
55499 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55500
55501         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55502         Check for unistd.h too, since Autoconf doesn't assume POSIX.
55503         Also:
55504
55505         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55506         Add year_2050_test to catch glibc bug 2821
55507         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55508
55509         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55510         Prefer #ifdef to #if.
55511
55512         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
55513         Return from 'main' instead of calling 'exit'.
55514
55515 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55516
55517         * lib/mktime.c (guess_time_tm): Fix bug where mktime
55518         returned the maximum time_t value rather than (time_t) -1.
55519         Problem originally reported by William Bardwell
55520         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55521
55522         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55523         Moved to here ...
55524         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55525         ... from here.
55526
55527 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55528
55529         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
55530         2821 is fixed.
55531
55532 2006-09-08  Jim Meyering  <jim@meyering.net>
55533
55534         Don't make generated files read-only.  That would bother too many
55535         people.  However, do retain the ability to work when targets are
55536         read-only: remove the destination and temporary files before writing
55537         them (when generated via sed or echo), or by using the -f option for
55538         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
55539         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55540         * modules/byteswap, modules/configmake, modules/fcntl:
55541         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55542         * modules/localcharset, modules/netinet_in, modules/poll:
55543         * modules/stdbool, modules/stdint, modules/sys_select:
55544         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55545
55546 2006-09-08  Jim Meyering  <jim@meyering.net>
55547
55548         Avoid new build failure on FreeBSD 6.0.
55549         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
55550         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
55551         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
55552
55553 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55554
55555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
55556
55557 2006-09-07  Jim Meyering  <jim@meyering.net>
55558
55559         Fix global typo in last change: use chmod u-w, not chmod u-x.
55560         Spotted by Paul Eggert and Bruce Korb.
55561         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55562         * modules/byteswap, modules/configmake, modules/fcntl:
55563         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55564         * modules/localcharset, modules/netinet_in, modules/poll:
55565         * modules/stdbool, modules/stdint, modules/sys_select:
55566         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55567
55568 2006-09-06  Jim Meyering  <jim@meyering.net>
55569
55570         Make generated files be read-only.
55571         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
55572         Ensure that each generated file is now read-only.
55573         * modules/argz: Likewise.
55574         * modules/arpa_inet: Likewise.
55575         * modules/byteswap: Likewise.
55576         * modules/configmake: Likewise.
55577         * modules/fcntl: Likewise.
55578         * modules/fnmatch: Likewise.
55579         * modules/getopt: Likewise.
55580         * modules/glob: Likewise.
55581         * modules/inttypes: Likewise.
55582         * modules/netinet_in: Likewise.
55583         * modules/poll: Likewise.
55584         * modules/stdbool: Likewise.
55585         * modules/stdint: Likewise.
55586         * modules/sys_select: Likewise.
55587         * modules/sys_socket: Likewise.
55588         * modules/sys_stat: Likewise.
55589         * modules/sysexits: Likewise.
55590         * modules/localcharset: Same as above, but continue using temporary
55591         file named "t-$@" (why different?) rather than the "$@-t" used
55592         everywhere else.
55593
55594         * modules/sysexits (Makefile.am): Replace literal occurrences
55595         of "sysexit.h" more readable, and more consistent, "$@".
55596
55597 2006-09-06  Bruno Haible  <bruno@clisp.org>
55598
55599         * modules/striconv: New file.
55600         * modules/xstriconv: New file.
55601         * MODULES.html.sh (Internationalization functions): Add striconv,
55602         xstriconv.
55603
55604 2006-09-06  Bruno Haible  <bruno@clisp.org>
55605
55606         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
55607         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
55608         not using libtool correctly.
55609
55610 2006-09-06  Bruno Haible  <bruno@clisp.org>
55611
55612         * lib/striconv.h: New file.
55613         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
55614         iconvstring.c.
55615         * lib/xstriconv.h: New file.
55616         * lib/xstriconv.c: New file.
55617
55618 2006-09-06  Bruno Haible  <bruno@clisp.org>
55619
55620         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55621         lib_..._LDFLAGS.
55622
55623 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55624
55625         * lib/argz_.h: Sync from Libtool.
55626
55627         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
55628                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55629
55630         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
55631
55632 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55633
55634         * modules/trim: New file.
55635
55636 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55637
55638         * lib/trim.h: New file.
55639         * lib/trim.c: New file.
55640
55641 2006-09-05  Bruno Haible  <bruno@clisp.org>
55642
55643         * MODULES.html.sh (String handling): Add trim.
55644
55645 2006-09-04  Karl Berry  <karl@gnu.org>
55646
55647         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
55648         until next release.
55649
55650 2006-09-03  Bruno Haible  <bruno@clisp.org>
55651
55652         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
55653         correctly.
55654
55655 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55656
55657         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
55658         not gl_GETLOADAVG.  Omit unneeded semicolons.
55659         Problems reported by Ralf Wildenhues in
55660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55661         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
55662         at the end, which is the usual gnulib style.
55663
55664         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
55665         of doing all the work ourselves.
55666         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
55667         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
55668
55669 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
55672         Problem reported by Ralf Wildenhues in
55673         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55674
55675         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
55676         HAVE_STRUCT_STATFS_F_FSTYPENAME.
55677
55678 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55679
55680         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
55681         yesterday's patch by changing test -n to test -z.
55682
55683 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55684
55685         * modules/getloadavg (Files): Add m4/getloadavg.m4.
55686         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
55687         the former is now obsolescent.
55688
55689         * modules/chdir-long (Depends-on): Add fcntl.
55690
55691 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55692
55693         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
55694         obsolescent, and programs should use gnulib instead.
55695         * m4/getloadavg.m4: New file, with contents taken from Autoconf
55696         but with prefixes changed.
55697
55698 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55699
55700         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
55701         or stdbool.h, because they might not exist while configuring.
55702
55703         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
55704         Don't include unistd.h or limits.h; not needed, since chdir-long.h
55705         does that for us.
55706         (O_DIRECTORY): Remove.
55707
55708 2006-08-31  Eric Blake  <ebb9@byu.net>
55709
55710         * gnulib-tool: Don't let emacs change spaces to TAB.
55711
55712 2006-08-31  Bruno Haible  <bruno@clisp.org>
55713
55714         * gnulib-tool: When calling func_import more than once, do it in a
55715         subshell.
55716         Reported by Eric Blake <ebb9@byu.net>.
55717
55718 2006-08-31  Bruno Haible  <bruno@clisp.org>
55719
55720         * gnulib-tool (nl): Remove variable.
55721         (sed_transform_lib_file): Use more robust test for config-h module.
55722         (func_import): Fix typo in 2006-08-25 patch.
55723
55724 2006-08-31  Bruno Haible  <bruno@clisp.org>
55725
55726         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
55727         specified, augment Makefile.am variables instead of assigning them.
55728
55729 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55730
55731         Work around a bug in both the Linux and SunOS 64-bit kernels:
55732         nanosleep mishandles sleeps for longer than 2**31 seconds.
55733         Problem reported by Frank v Waveren in
55734         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
55735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
55736         Check for nanosleep bug.
55737         (LIB_NANOSLEEP): Append clock_gettime library if needed.
55738
55739 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55740
55741         Work around a bug in both the Linux and SunOS 64-bit kernels:
55742         nanosleep mishandles sleeps for longer than 2**31 seconds.
55743         Problem reported by Frank v Waveren in
55744         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
55745         * lib/nanosleep.c (BILLION): New constant.
55746         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
55747         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
55748         implementation.
55749
55750 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55751
55752         * modules/nanosleep (Depends-on): Add gettime.
55753
55754 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55755         and Simon Josefsson  <jas@extundo.com>
55756         and Oskar Liljeblad  <oskar@osk.mine.nu>
55757
55758         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
55759         * gnulib-tool (func_import): New license type 'unmodifiable license
55760         text'.
55761         * modules/fdl: Use it.  Longer description.
55762         * module/gpl, module/lgpl: New files.
55763
55764 2006-08-30  Jim Meyering  <jim@meyering.net>
55765
55766         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
55767         shadowing the parameter.
55768
55769 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55770
55771         Sync from Libtool:
55772
55773         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55774
55775         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
55776         sharing with gnulib.  Report by Eric Blake.
55777
55778 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55779
55780         * modules/isapipe: New file.
55781         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
55782
55783 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55784
55785         * modules/configmake (Makefile.am): Add a comment, and omit
55786         the CONFIGMAKE_ prefix from generated macro names.  Suggested
55787         by Bruno Haible.
55788
55789 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55790
55791         * m4/isapipe.m4: New file.
55792
55793 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55794
55795         * lib/isapipe.c, lib/isapipe.h: New files.
55796
55797 2006-08-29  Jim Meyering  <jim@meyering.net>
55798
55799         * modules/configmake (Makefile.am): Make configmake.h depend on
55800         Makefile.  Otherwise, a stale configmake.h could hang around.
55801
55802 2006-08-29  Eric Blake  <ebb9@byu.net>
55803
55804         * lib/error.c (error_at_line, print_errno_message): Match libc, after
55805         resolution of upstream bug 3044.
55806
55807 2006-08-29  Bruno Haible  <bruno@clisp.org>
55808
55809         * modules/localcharset (Depends-on): Add configmake.
55810         (Makefile.am): Remove setting of LIBDIR through DEFS.
55811
55812 2006-08-29  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
55815         defined.
55816
55817 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55818
55819         * modules/fcntl: New file.
55820         * modules/chdir-safer (Depends-on): Add fcntl.
55821         * modules/fts: Likewise.
55822         * modules/mkdir-p: Likewise.
55823
55824         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
55825         This undoes the most recent change, since we're now addressing the
55826         problem in a different way.
55827
55828         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
55829         into output, since the output might be called Makefile.am even
55830         if $makefile_name is something different.
55831         (func_import): Use $makefile_am rather than
55832         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
55833         empty.
55834
55835         * modules/inttypes (Files): Add m4/inttypes-h.m4.
55836
55837 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55838
55839         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
55840         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
55841         recent change to stdint.m4, since we're now addressing the problem in a
55842         different way.
55843
55844 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55845
55846         * m4/fcntl_h.m4: New file.
55847
55848 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         * lib/fcntl_.h: New file.
55851         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
55852         the fcntl module.
55853         * lib/dirchownmod.c: Likewise.
55854         * lib/fts.c: Likewise.
55855
55856         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
55857         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
55858         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
55859         just before including <inttypes.h>, to avoid circular inclusion.
55860
55861 2006-08-28  Jim Meyering  <jim@meyering.net>
55862
55863         * doc/visibility.texi: Actually read and correct the grammar of the
55864         sentence affected by yesterday's change.
55865
55866 2006-08-28  Eric Blake  <ebb9@byu.net>
55867
55868         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
55869         needs wrapper.
55870
55871 2006-08-28  Eric Blake  <ebb9@byu.net>
55872
55873         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
55874
55875 2006-08-28  Eric Blake  <ebb9@byu.net>
55876
55877         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
55878
55879 2006-08-28  Bruno Haible  <bruno@clisp.org>
55880
55881         * modules/c-strstr: New file, from GNU gettext.
55882         * MODULES.html.sh (String handling): Add c-strstr.
55883
55884 2006-08-28  Bruno Haible  <bruno@clisp.org>
55885
55886         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
55887         macros.
55888         Reported by Eric Blake.
55889
55890 2006-08-28  Bruno Haible  <bruno@clisp.org>
55891
55892         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
55893         (VASNPRINTF): Return a string of length > INT_MAX without failing.
55894         * lib/vasprintf.c: Include errno.h, limits.h.
55895         (EOVERFLOW): New fallback definition.
55896         (vasprintf): Test here whether the string length is > INT_MAX.
55897         * lib/vsnprintf.c: Include errno.h, limits.h.
55898         (EOVERFLOW): New fallback definition.
55899         (vsnprintf): Fix bug when generated string was too long for the buffer.
55900         Test here whether the string length is > INT_MAX.
55901
55902 2006-08-28  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/inttypes_.h (SCNX*): Remove definitions.
55905         Reported by Eric Blake.
55906
55907 2006-08-28  Bruno Haible  <bruno@clisp.org>
55908
55909         * lib/c-strstr.h: New file, from GNU gettext.
55910         * lib/c-strstr.c: New file, from GNU gettext.
55911
55912 2006-08-28  Bruno Haible  <bruno@clisp.org>
55913
55914         * gnulib-tool: Reorder some statements.
55915
55916 2006-08-28  Bruno Haible  <bruno@clisp.org>
55917
55918         * gnulib-tool: New option --makefile-name.
55919         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
55920         $makefile_name.
55921         (func_import): Write $makefile_name to the cache file, and read it from
55922         there unless explicitly specified. Use $makefile_name as file name
55923         instead of Makefile.am. Adjust the recommendations accordingly.
55924
55925 2006-08-28  Bruno Haible  <bruno@clisp.org>
55926
55927         * gnulib-tool (func_verify_module): Check against misapplying patch.
55928
55929 2006-08-28  Bruno Haible  <bruno@clisp.org>
55930
55931         * gnulib-tool (func_relativize, func_relconcat): New functions.
55932         Give an error if --local-dir is given with --update.
55933         Remove trailing slashes from $local_gnulib_dir.
55934         (func_import): Store the relativized $local_gnulib_dir in
55935         gnulib-cache.m4, and read it from there if not specified explicitly.
55936
55937 2006-08-28  Bruno Haible  <bruno@clisp.org>
55938
55939         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
55940         is the current directory. Respect also $local_gnulib_dir.
55941
55942 2006-08-28  Bruno Haible  <bruno@clisp.org>
55943             Simon Josefsson  <jas@extundo.com>
55944
55945         BeOS portability.
55946         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
55947
55948 2006-08-27  Jim Meyering  <jim@meyering.net>
55949
55950         * doc/visibility.texi: Remove duplicate word: "pointer".
55951
55952 2006-08-26  Bruno Haible  <bruno@clisp.org>
55953
55954         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
55955         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
55956         (Makefile.am): Create inttypes.h from inttypes_.h.
55957         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
55958
55959         * modules/imaxabs: New file.
55960
55961         * modules/imaxdiv: New file.
55962
55963 2006-08-26  Bruno Haible  <bruno@clisp.org>
55964
55965         * m4/inttypes.m4: New file.
55966         * m4/_inttypes_h.m4: Remove file.
55967         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
55968         PRI_MACROS_BROKEN.
55969         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
55970
55971         * m4/imaxabs.m4: New file.
55972
55973         * m4/imaxdiv.m4: New file.
55974
55975 2006-08-26  Bruno Haible  <bruno@clisp.org>
55976
55977         * lib/inttypes_.h: New file.
55978         * lib/inttypes.h: Remove file.
55979         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
55980
55981         * lib/imaxabs.c: New file.
55982
55983         * lib/imaxdiv.c: New file.
55984
55985 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55986
55987         New config-h module, so that "make" output needn't be cluttered
55988         by -DHAVE_CONFIG_H.
55989         * MODULES.html.sh (Support for building libraries and executables):
55990         Add config-h.
55991         * modules/config-h: New file.
55992         * gnulib-tool (nl, sed_transform_lib_file): New vars.
55993         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
55994         the config-h module is used.
55995
55996         New configmake module, so that "make" output needn't be cluttered
55997         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
55998         * MODULES.html.sh (Support for building libraries and executables):
55999         Add configmake.
56000         * modules/configmake: New file.
56001
56002 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56003
56004         * m4/config-h.m4: New file.
56005
56006 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56007
56008         * config/srclist.txt: Add elisp-comp.
56009
56010 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56011
56012         * MODULES.html.sh (Support for building libraries and executables):
56013         Add elisp-comp.
56014         * build-aux/elisp-comp: New file.
56015         * modules/elisp-comp: New file.
56016
56017 2006-08-24  Bruno Haible  <bruno@clisp.org>
56018
56019         * gnulib-tool (func_create_testdir): Use non-default values of
56020         sourcebase and m4base.
56021
56022 2006-08-24  Bruno Haible  <bruno@clisp.org>
56023
56024         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
56025         HTML structure.
56026
56027 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56028
56029         * modules/openat (Depends-on): Add lchown.
56030
56031 2006-08-23  Bruno Haible  <bruno@clisp.org>
56032
56033         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
56034         of gl_LOCK_EARLY instead of gl_LOCK.
56035
56036 2006-08-23  Bruno Haible  <bruno@clisp.org>
56037
56038         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
56039         on OSF/1 to no.
56040         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
56041
56042 2006-08-23  Bruno Haible  <bruno@clisp.org>
56043
56044         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
56045         as unusable.
56046
56047         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
56048         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
56049         (gl_LOCK): New macro.
56050
56051 2006-08-22  Simon Josefsson  <jas@extundo.com>
56052
56053         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
56054         to md5 module.
56055
56056 2006-08-22  Simon Josefsson  <jas@extundo.com>
56057
56058         * MODULES.html.sh: Add "Support for maintaining and release
56059         projects".
56060
56061         * build-aux/gnupload: New file, from coreutils.
56062
56063 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56064
56065         Avoid the need for AC_LIBSOURCES in m4 macros.
56066         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
56067         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
56068         * modules/check-version (EXTRA_DIST): Add check-version.h.
56069         * modules/crc (EXTRA_DIST): Add crc.h.
56070         * modules/des (EXTRA_DIST): Add des.h.
56071         * modules/gc (EXTRA_DIST): Add gc.h.
56072         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
56073         * modules/getline (EXTRA_DIST): Add getline.h.
56074         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
56075         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
56076         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
56077         * modules/md2 (EXTRA_DIST): Add md2.h.
56078         * modules/md4 (EXTRA_DIST): Add md4.h.
56079         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
56080         * modules/read-file (EXTRA_DIST): Add read-file.h.
56081         * modules/readline (EXTRA_DIST): Add readline.h.
56082         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
56083         rijndael-api-fst.h.
56084
56085 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56086
56087         * m4/rijndael.m4 (gl_ARCFOUR):
56088         * m4/arctwo.m4 (gl_ARCTWO):
56089         * m4/check-version.m4 (gl_CHECK_VERSION):
56090         * m4/crc.m4 (gl_CRC):
56091         * m4/des.m4 (gl_DES):
56092         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
56093         * m4/gc.m4 (gl_GC):
56094         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
56095         * m4/getline.m4 (gl_FUNC_GETLINE):
56096         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
56097         * m4/hmac-md5.m4 (gl_HMAC_MD5):
56098         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
56099         * m4/md2.m4 (gl_MD2):
56100         * m4/md4.m4 (gl_MD4):
56101         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
56102         * m4/read-file.m4 (gl_FUNC_READ_FILE):
56103         * m4/readline.m4 (gl_FUNC_READLINE):
56104         * m4/rijndael.m4 (gl_RIJNDAEL):
56105         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56106         to get the necessary .h files and whatnot.
56107
56108 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56109
56110         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
56111         gnulib rather than the other way around.
56112         * config/srclistvars.sh (COREUTILS): Remove.
56113
56114 2006-08-22  Jim Meyering  <jim@meyering.net>
56115
56116         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
56117
56118         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
56119
56120 2006-08-22  Eric Blake  <ebb9@byu.net>
56121
56122         * modules/regexprops-generic: New file.
56123         * MODULES.html.sh (Support for building documentation): List it.
56124
56125 2006-08-22  Eric Blake  <ebb9@byu.net>
56126
56127         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
56128         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
56129         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
56130         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
56131
56132 2006-08-22  Bruno Haible  <bruno@clisp.org>
56133
56134         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
56135         and lib_LTLIBRARIES like the other lib_* variables.
56136
56137 2006-08-22  Bruno Haible  <bruno@clisp.org>
56138
56139         * build-aux/x-to-1.in: New file, from GNU gettext.
56140
56141 2006-08-22  Bruno Haible  <bruno@clisp.org>
56142
56143         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
56144         <utmpx.h> exists.
56145
56146 2006-08-22  Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
56149         <utmpx.h> exists.
56150
56151 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56152
56153         BeOS portability.
56154         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
56155         exist.
56156         Problem reported by Bruno Haible.
56157
56158 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56159
56160         Avoid the need for AC_LIBSOURCES in m4 macros.
56161         * modules/acl (EXTRA_DIST): Add acl.h.
56162         * modules/argmatch (Files): Add m4/argmatch.m4.
56163         (configure.ac): Add gl_ARGMATCH.
56164         (EXTRA_DIST): Renamed from lib_SOURCES, for
56165         consistency with the other modules.  Remove argmatch.c.
56166         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
56167         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
56168         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
56169         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
56170         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
56171         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
56172         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
56173         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
56174         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
56175         * modules/closeout (EXTRA_DIST): Add closeout.h.
56176         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
56177         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
56178         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
56179         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
56180         dirname.h; remove basename.c and stripslash.c.
56181         * modules/exclude (EXTRA_DIST): Add exclude.h.
56182         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
56183         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
56184         * modules/file-type (EXTRA_DIST): Add file-type.h.
56185         * modules/filemode (EXTRA_DIST): Add filemode.h.
56186         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
56187         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56188         * modules/fpending (EXTRA_DIST): Add __fpending.h.
56189         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
56190         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
56191         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
56192         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
56193         * modules/getdate (EXTRA_DIST): Add getdate.c.
56194         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
56195         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
56196         * modules/getpass (EXTRA_DIST): Add getpass.h.
56197         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
56198         * modules/group-member (EXTRA_DIST): Add group-member.h.
56199         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
56200         * modules/hash (EXTRA_DIST): Add hash.h.
56201         * modules/human (EXTRA_DIST): Add human.h.
56202         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
56203         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
56204         * modules/lchown (EXTRA_DIST): Add lchown.h.
56205         * modules/long-options (EXTRA_DIST): Add long-options.h.
56206         * modules/lstat (EXTRA_DIST): Add lstat.h.
56207         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
56208         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
56209         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
56210         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
56211         * modules/memxor (EXTRA_DIST): Add memxor.h.
56212         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
56213         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
56214         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
56215         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
56216         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
56217         * modules/physmem (EXTRA_DIST): Add physmem.h.
56218         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
56219         * modules/posixver (EXTRA_DIST): Add posixver.h.
56220         * modules/quote (EXTRA_DIST): Add quote.h.
56221         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
56222         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
56223         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
56224         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
56225         regex_internal.h regexec.c.
56226         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
56227         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
56228         * modules/same (EXTRA_DIST): Add same.h.
56229         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
56230         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
56231         * modules/savedir (EXTRA_DIST): Add savedir.h.
56232         * modules/sha1 (EXTRA_DIST): Add sha1.h.
56233         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
56234         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
56235         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
56236         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
56237         * modules/strdup (EXTRA_DIST): Add strdup.h.
56238         * modules/strftime (EXTRA_DIST): Add strftime.h.
56239         * modules/strndup (EXTRA_DIST): Add strndup.h.
56240         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
56241         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
56242         * modules/time_r (EXTRA_DIST): Add time_r.h.
56243         * modules/timespec (EXTRA_DIST): Add timespec.h.
56244         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56245         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
56246         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
56247         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
56248         * modules/userspec (EXTRA_DIST): Add userspec.h.
56249         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
56250         * modules/utimens (EXTRA_DIST): Add utimens.h.
56251         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
56252         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
56253         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
56254         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
56255         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
56256         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
56257         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
56258         * modules/yesno (EXTRA_DIST): Add yesno.h.
56259
56260 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56261
56262         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
56263
56264         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
56265         * m4/dev-ino.m4, same-inode.m4: Remove.
56266
56267         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
56268         * m4/acl.m4 (AC_FUNC_ACL):
56269         * m4/backupfile.m4 (gl_BACKUPFILE):
56270         * m4/c-strtod.m4 (gl_C99_STRTOLD):
56271         * m4/canon-host.m4 (gl_CANON_HOST):
56272         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56273         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
56274         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
56275         * m4/cloexec.m4 (gl_CLOEXEC):
56276         * m4/close-stream.m4 (gl_CLOSE_STREAM):
56277         * m4/closeout.m4 (gl_CLOSEOUT):
56278         * m4/dirfd.m4 (gl_FUNC_DIRFD):
56279         * m4/dirname.m4 (gl_DIRNAME):
56280         * m4/exclude.m4 (gl_EXCLUDE):
56281         * m4/exitfail.m4 (gl_EXITFAIL):
56282         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
56283         * m4/file-type.m4 (gl_FILE_TYPE):
56284         * m4/filemode.m4 (gl_FILEMODE):
56285         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
56286         * m4/fpending.m4 (gl_FUNC_FPENDING):
56287         * m4/fprintftime.m4 (gl_FPRINTFTIME):
56288         * m4/fts.m4 (gl_FUNC_FTS):
56289         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
56290         * m4/getdate.m4 (gl_GETDATE):
56291         * m4/gethrxtime.m4 (gl_GETHRXTIME):
56292         * m4/getpagesize.m4 (gl_GETPAGESIZE):
56293         * m4/getpass.m4 (gl_FUNC_GETPASS):
56294         * m4/gettime.m4 (gl_GETTIME):
56295         * m4/getugroups.m4 (gl_GETUGROUPS):
56296         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
56297         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
56298         * m4/hard-locale.m4 (gl_HARD_LOCALE):
56299         * m4/hash.m4 (gl_HASH):
56300         * m4/idcache.m4 (gl_IDCACHE):
56301         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
56302         * m4/lchown.m4 (gl_FUNC_LCHOWN):
56303         * m4/long-options.m4 (gl_LONG_OPTIONS):
56304         * m4/lstat.m4 (gl_FUNC_LSTAT):
56305         * m4/md5.m4 (gl_MD5):
56306         * m4/memcasecmp.m4 (gl_MEMCASECMP):
56307         * m4/memcoll.m4 (gl_MEMCOLL):
56308         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
56309         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
56310         * m4/memxor.m4 (gl_MEMXOR):
56311         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
56312         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
56313         * m4/modechange.m4 (gl_MODECHANGE):
56314         * m4/mountlist.m4 (gl_MOUNTLIST):
56315         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56316         * m4/openat.m4 (gl_FUNC_OPENAT):
56317         * m4/pathmax.m4 (gl_PATHMAX):
56318         * m4/physmem.m4 (gl_PHYSMEM):
56319         * m4/posixtm.m4 (gl_POSIXTM):
56320         * m4/posixver.m4 (gl_POSIXVER):
56321         * m4/quote.m4 (gl_QUOTE):
56322         * m4/quotearg.m4 (gl_QUOTEARG):
56323         * m4/readtokens.m4 (gl_READTOKENS):
56324         * m4/readutmp.m4 (gl_READUTMP):
56325         * m4/regex.m4 (gl_REGEX):
56326         * m4/safe-read.m4 (gl_SAFE_READ):
56327         * m4/safe-write.m4 (gl_SAFE_WRITE):
56328         * m4/same.m4 (gl_SAME):
56329         * m4/save-cwd.m4 (gl_SAVE_CWD):
56330         * m4/savedir.m4 (gl_SAVEDIR):
56331         * m4/settime.m4 (gl_SETTIME):
56332         * m4/sha1.m4 (gl_SHA1):
56333         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
56334         * m4/stat-macros.m4 (gl_STAT_MACROS):
56335         * m4/stat-time.m4 (gl_STAT_TIME):
56336         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
56337         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
56338         * m4/strdup.m4 (gl_FUNC_STRDUP):
56339         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
56340         * m4/strndup.m4 (gl_FUNC_STRNDUP):
56341         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
56342         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
56343         * m4/time_r.m4 (gl_TIME_R):
56344         * m4/timespec.m4 (gl_TIMESPEC):
56345         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
56346         * m4/unlinkdir.m4 (gl_UNLINKDIR):
56347         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
56348         * m4/userspec.m4 (gl_USERSPEC):
56349         * m4/utimecmp.m4 (gl_UTIMECMP):
56350         * m4/utimens.m4 (gl_UTIMENS):
56351         * m4/xalloc.m4 (gl_XALLOC):
56352         * m4/xgetcwd.m4 (gl_XGETCWD):
56353         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
56354         * m4/xreadlink.m4 (gl_XREADLINK):
56355         * m4/xstrtod.m4 (gl_XSTRTOD):
56356         * m4/yesno.m4 (gl_YESNO):
56357         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56358         to get the necessary .h files and whatnot.
56359
56360 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
56361             Bruno Haible  <bruno@clisp.org>
56362
56363         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
56364         /bin/sh understanding of '!' conditional negation.
56365
56366 2006-08-21  Jim Meyering  <jim@meyering.net>
56367
56368         * modules/openat (Depends-on): Really alphabetize.
56369
56370         * modules/acl (Depends-on): Add error and quote.
56371
56372         * check-module (find_included_lib_files): Add at-func.c to the
56373         ok-to-include-more-than-once white list.
56374
56375         * modules/openat (Depends-on): Add lstat.  Alphabetize.
56376
56377 2006-08-21  Bruno Haible  <bruno@clisp.org>
56378
56379         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56380         Emit a pkgdata_DATA variable only if some snippets add contents to it.
56381         Reported by Martin Lambers <marlam@marlam.de>.
56382
56383 2006-08-21  Bruno Haible  <bruno@clisp.org>
56384
56385         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
56386         specify an installation location, don't emit a noinst_LIBRARIES or
56387         noinst_LTLIBRARIES assignment.
56388
56389 2006-08-21  Bruno Haible  <bruno@clisp.org>
56390
56391         BeOS portability.
56392         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
56393         BeOS has mbrtowc() but no <wctype.h>.
56394
56395 2006-08-21  Bruno Haible  <bruno@clisp.org>
56396
56397         BeOS portability.
56398         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
56399         exist.
56400
56401 2006-08-21  Bruno Haible  <bruno@clisp.org>
56402
56403         BeOS portability.
56404         * lib/mbchar.h: Include <wctype.h> only if it exists.
56405
56406 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56407
56408         Remove files that are no longer needed by their respective modules.
56409         * m4/obstack.m4: Remove.
56410         * m4/strerror_r.m4: Remove.
56411         * m4/uint32_t.m4: Remove.
56412         * m4/uintptr_t.m4: Remove.
56413         * m4/ullong_max.m4: Remove.
56414         * m4/xstrtoimax.m4: Remove.
56415         * m4/xstrtoumax.m4: Remove.
56416
56417         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
56418         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
56419         dependencies now capture this.
56420
56421         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
56422         Do not use AC_LIBSOURCES, since gnulib modules now do this.
56423         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
56424         * m4/human.m4 (gl_HUMAN): Likewise.
56425         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
56426         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
56427
56428         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
56429
56430         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
56431         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
56432         stdint.
56433         * m4/human.m4 (gl_HUMAN): Likewise.
56434         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
56435         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
56436         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56437         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56438         * m4/xstrtol (gl_XSTRTOL): Likewise.
56439
56440         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
56441         AC_TYPE_LONG_LONG_INT.
56442         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56443         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
56444         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
56445         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56446
56447         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
56448         on stdbool.
56449
56450         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
56451         (gl_PREREQ_XSTRTOUL): Remove.
56452
56453         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
56454
56455         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
56456         mode.
56457
56458 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         Add and change modules to make it easier for coreutils to use
56461         gnulib-tool.
56462         * modules/backupfile (Files): Remove m4/d-ino.m4.
56463         (Depends-on): Add d-ino.
56464         * modules/cycle-check (Depends-on): Add stdint.
56465         (lib_SOURCES): Add cycle-check.h.
56466         * modules/d-ino: New module.
56467         * modules/d-type: New module.
56468         * modules/error (Files): Remove m4/strerror_r.m4.
56469         * modules/filemode (Files): Add m4/st_dm_mode.m4.
56470         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56471         m4/inttypes_h.m4, m4/uintmax_t.m4.
56472         (Depends-on): Add stdint.
56473         (lib_SOURCES): Add fsusage.h.
56474         * modules/getcwd (Files): Remove d-ino.m4.
56475         (Depends-on): Add d-ino.
56476         * modules/getndelim2 (Depends-on): Add stdint.
56477         * modules/glob (Files): Remove m4/d-type.m4.
56478         (Depends-on): Add d-type.
56479         * modules/host-os: New module.
56480         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
56481         m4/inttypes_h.m4, m4/uintmax_t.m4.
56482         * Depends-on: Add stdint.
56483         (lib_SOURCES): Add human.h.
56484         * modules/inttostr (Files): Remove m4/intmax_t.m4,
56485         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
56486         m4/uintmax_t.m4, m4/ulonglong.m4.
56487         (Depends-on): Add stdint.
56488         (EXTRA_DIST): Add inttostr.h.
56489         * modules/lchmod: New module.
56490         * modules/link-follow: New module.
56491         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
56492         (Depends-on): Add lchmod.
56493         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
56494         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
56495         (Depends-on): Add stdint.
56496         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
56497         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
56498         (Depends-on): Add stdint.
56499         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
56500         * modules/perl: New module.
56501         * modules/regex (Depends-on): Add stdint.
56502         * modules/rmdir-errno: New module.
56503         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56504         m4/intmax_t.m4.
56505         (Depends-on): Add stdint.
56506         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56507         m4/uintmax_t.m4.
56508         (Depends-on): Add stdint.
56509         * modules/unlink-busy: New module.
56510         * modules/utimecmp (Depends-on): Add stdint.
56511         * modules/uptime: New module.
56512         * modules/winsz-ioctl: New module.
56513         * modules/winsz-termios: New module.
56514         * modules/xnanosleep (Depends-on): Add nanosleep.
56515         * modules/ullong_max: Remove.
56516         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
56517         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
56518         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
56519         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
56520         (Depends-on): Add inttypes.
56521         (lib_SOURCES): Add xstrtol.h.
56522         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
56523         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
56524         * MODULES.html.sh: Move 'assert' into the assert section.
56525         Move 'dummy' into the linking section.
56526         Remove ullong_max.
56527         Add section for compatibility checks for POSIX:2001 functions,
56528         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
56529         winsz-ioctl, and winsz-termios into it.
56530         Add lchmod.
56531         Add top-level Misc section and put host-os, perl, and uptime
56532         into it.
56533
56534 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56535
56536         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
56537         now assume the stdint module.  Do not include inttypes.h.
56538         * lib/fsusage.h: Likewise.
56539         * lib/getndelim2.c: Likewise.
56540         * lib/human.h: Likewise.
56541         * lib/inttostr.h: Likewise.
56542         * lib/obstack.c: Likewise.
56543         * lib/regex_internal.h: Likewise.
56544         * lib/tempname.c: Likewise.
56545         * lib/utimecmp.c: Likewise.
56546         * lib/xstrtol.h: Likewise.
56547
56548         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
56549
56550         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
56551         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
56552         * lib/xtime.h: Likewise.
56553
56554 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56555
56556         * modules/openat (Files): Add lib/fchmodat.c.
56557         Fixes problem reported by Jay Youngman.
56558
56559 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56560
56561         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
56562         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
56563
56564 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
56565             Bruno Haible  <bruno@clisp.org>
56566
56567         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
56568         and is a script that invokes bison. Tighten the code. Add comments.
56569
56570 2006-08-18  Jim Meyering  <jim@meyering.net>
56571
56572         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
56573         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
56574         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
56575         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
56576
56577 2006-08-18  Bruno Haible  <bruno@clisp.org>
56578
56579         * modules/bison-i18n: New file.
56580         * MODULES.html.sh (Internationalization functions): Add it.
56581
56582 2006-08-18  Bruno Haible  <bruno@clisp.org>
56583
56584         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
56585         sys/statvfs.h. When getmntinfo was found, check its declaration and
56586         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
56587
56588 2006-08-18  Bruno Haible  <bruno@clisp.org>
56589
56590         * m4/bison-i18n.m4: New file, from bison.
56591
56592 2006-08-18  Bruno Haible  <bruno@clisp.org>
56593
56594         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
56595         (ME_DUMMY): Treat "kernfs" as a dummy.
56596         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
56597
56598 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56599
56600         Update from coreutils.
56601
56602         2006-08-15  Jim Meyering  <jim@meyering.net>
56603
56604         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
56605
56606         2006-01-17  Jim Meyering  <jim@meyering.net>
56607
56608         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
56609
56610         2006-01-11  Jim Meyering  <jim@meyering.net>
56611
56612         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
56613         Check for the lchmod function.
56614
56615 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56616
56617         Update from coreutils.
56618
56619         * lib/__fpending.h: Add copyright notice.
56620         * lib/fprintftime.h: Likewise.
56621         * lib/savedir.c: Use (C) in copyright notice.
56622         * lib/savedir.h: Likewise.
56623
56624         2006-08-15  Jim Meyering  <jim@meyering.net>
56625
56626         * lib/at-func.c: New file, with the logic of all emulated at-functions.
56627         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
56628         in support of the EXPECTED_ERRNO macro.
56629         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
56630         definitions.  Instead, define the appropriate symbols and include
56631         "at-func.c".
56632         * lib/mkdirat.c (mkdirat): Likewise.
56633         * lib/fchmodat.c (fchmodat): Likewise.
56634         (ENOSYS): Remove definition.
56635         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
56636         it.  Don't include "unistd--.h" -- it wasn't ever used.
56637
56638         2006-01-17  Jim Meyering  <jim@meyering.net>
56639
56640         Rewrite fts.c not to change the current working directory,
56641         by using openat, fstatat, fdopendir, etc..
56642
56643         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
56644         (HAVE_OPENAT_SUPPORT): Define.
56645         [_LIBC] (fchdir): Don't undef or define; no longer used.
56646         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
56647         Now, this `function' always succeeds, and consumes its file descriptor
56648         parameter -- so callers must not close such FDs.  Update callers.
56649         (diropen_fd, opendirat, cwd_advance_fd): New functions.
56650         (diropen): Add parameter, SP.  Adjust all callers.
56651         Implement using diropen_fd, rather than open.
56652         (fts_open): Initialize new member, fts_cwd_fd.
56653         Remove fts_rft-setting code.
56654         (fts_close): Close fts_cwd_fd, if necessary.
56655         (__opendir2): Define in terms of opendir or opendirat,
56656         depending on whether the FST_NOCHDIR flag is set.
56657         (fts_build): Since fts_safe_changedir consumes its FD, and since
56658         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
56659         and close the dup'd file descriptor upon failure.
56660         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
56661         (fts_safe_changedir): Tweak semantics to reflect that this function
56662         now calls cwd_advance_fd and hence consumes its FD argument.
56663         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
56664         [struct FTS] (fts_rft): Remove now-unused member.
56665         [struct FTS] (fts_cycle.state): Improve comment.
56666
56667         * lib/openat.c (openat_needs_fchdir): New function.
56668         * lib/openat.h (openat_needs_fchdir): Declare it.
56669
56670 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56671
56672         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
56673         Problem and fix reported by Pádraig Brady in
56674         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
56675
56676 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56677
56678         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
56679
56680 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56681
56682         * lib/memcoll.c (memcoll): Optimize for the common case where the
56683         arguments are bytewise equal.
56684
56685 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56686
56687         * doc/regexprops-generic.texi: Add a copyright notice.
56688
56689 2006-08-15  Bruno Haible  <bruno@clisp.org>
56690
56691         * modules/tmpdir (License): Change to LGPL.
56692
56693 2006-08-15  Bruno Haible  <bruno@clisp.org>
56694
56695         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
56696         module.
56697
56698 2006-08-14  Simon Josefsson  <jas@extundo.com>
56699
56700         * config/srclist.txt: Add gnupload.
56701
56702 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56703
56704         Change copyright notice from LGPL 2 to GPL 2, since that's the
56705         standard form used in the gnulib repository.
56706         * tests/test-lock.c: Likewise.
56707         * tests/test-stdint.c: Likewise.
56708         * tests/test-tls.c: Likewise.
56709
56710         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
56711         prelude-manager.  User shorter URLs for GNU projects, without '?'.
56712         Add copyright notice.
56713
56714         * check-module: Add copyright notice.  Output a copyright
56715         notice if "--version" is specified.
56716         * modules/COPYING: New file.
56717         * tests/test-getaddrinfo.c: Add copyright notice.
56718         * tests/test-verify.c: Likewise.
56719
56720 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56721
56722         Change copyright notice from LGPL 2 to GPL 2, since that's the
56723         standard form used in the gnulib repository.
56724         * lib/lock.c: LGPL -> GPL.
56725         * lib/lock.h: Likewise.
56726         * lib/strnlen1.c: Likewise.
56727         * lib/strnlen1.h: Likewise.
56728         * lib/tls.c: Likewise.
56729         * lib/tls.h: Likewise.
56730         * lib/tmpdir.c: Likewise.
56731
56732         * lib/TODO: Remove; this belongs only in coreutils.
56733
56734 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56735
56736         Add copyright notices to long-enough files that lack them, since
56737         otherwise the files aren't clearly free.  Use the same notice that
56738         getdate.texi already uses.
56739         * doc/alloca-opt.texi: Add copyright notice.
56740         * doc/alloca.texi: Likewise.
56741         * doc/ctime.texi: Likewise.
56742         * doc/functions.texi: Likewise.
56743         * doc/gcd.texi: Likewise.
56744         * doc/gnulib-tool.texi: Likewise.
56745         * doc/inet_ntoa.texi: Likewise.
56746         * doc/visibility.texi: Likewise.
56747
56748         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
56749         * doc/quote.texi: Add copyright notice.
56750
56751         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
56752         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
56753         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
56754         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
56755         is now obsolete, and give a pointer to the Sun list.
56756         Add copyright notice.
56757
56758 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56759
56760         * config/srclistvars.sh: Add copyright notice.
56761
56762 2006-08-14  Eric Blake  <ebb9@byu.net>
56763
56764         Import the following change from libc:
56765
56766         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
56767
56768         Upstream bug 2997.
56769         * lib/misc/error.c: Add space between program name and message if file
56770         name is missing.
56771
56772 2006-08-12  Karl Berry  <karl@gnu.org>
56773
56774         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
56775         remove, these originate in gnulib now.
56776
56777 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56778
56779         * doc/Makefile (standards.info standards.html standards.dvi):
56780         Also depend on make-stds.texi.
56781
56782 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
56783
56784         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
56785         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
56786
56787         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
56788         in wchar_t.  Problem reported by Eric Blake.
56789
56790         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
56791         LEN is smaller than SIZE.  Suggested by Bruno Haible.
56792         Also, help the compiler to keep LEN in a register.
56793
56794 2006-08-11  Eric Blake  <ebb9@byu.net>
56795
56796         * users.txt: Sort.  Add tar.
56797
56798 2006-08-11  Bruno Haible  <bruno@clisp.org>
56799
56800         * users.txt: New file.
56801
56802 2006-08-11  Bruno Haible  <bruno@clisp.org>
56803
56804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
56805         before <wchar.h>. Needed for OSF/1 and BSD/OS.
56806
56807 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56808
56809         * modules/snprintf (Depends-on): Remove minmax.
56810         (Maintainer): Add self and Bruno.
56811
56812 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56813
56814         * lib/.cppi-disable: Add snprintf.h, socket_.h.
56815         * lib/snprintf.c: Include <errno.h> and <limits.h>.
56816         (EOVERFLOW): Define if the system does not.
56817         Do not include "minmax.h"; it wasn't used.
56818         (snprintf): Don't assume size_t promotes to an unsigned type.
56819         Fix bug when generated string was too long for the buffer: the
56820         buffer's contents are supposed to be the initial prefix of the
56821         output.  Don't assume vasnprintf returns EOVERFLOW if the size
56822         exceeds INT_MAX; do the check ourselves.
56823
56824         Import the following changes from libc:
56825
56826         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
56827
56828         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
56829         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
56830         set wc to the byte which couldn't be converted.
56831         (re_string_reconstruct): Don't clear valid_raw_len before calling
56832         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
56833         tip_context using re_string_context_at.
56834
56835         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
56836
56837         * lib/posix/regex.h: g++ still cannot handled [restrict].
56838
56839         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
56840
56841         * lib/posix/regex.h: Remove special handling for VMS.
56842
56843 2006-08-10  Jim Meyering  <jim@meyering.net>
56844
56845         * modules/same-inode: New module.
56846         * modules/dev-ino: New module.
56847         * modules/cycle-check: Depend on these modules, rather than simply
56848         including their .h files.
56849         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
56850         required via m4/cycle-check.m4.
56851         * modules/same: Depend on new same-inode module, rather than
56852         including same-inode.h.
56853         * modules/chdir-safer: New file.
56854
56855         * modules/chown (Depends-on): Add stat-macros.
56856
56857 2006-08-10  Jim Meyering  <jim@meyering.net>
56858
56859         * m4/cycle-check.m4: New file.
56860         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
56861         * m4/dev-ino.m4, m4/same-inode.m4: New files.
56862
56863 2006-08-10  Eric Blake  <ebb9@byu.net>
56864
56865         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
56866         in from original proposal.
56867
56868 2006-08-10  Eric Blake  <ebb9@byu.net>
56869         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56870
56871         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
56872         namespace.
56873
56874 2006-08-10  Bruno Haible  <bruno@clisp.org>
56875
56876         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
56877         as well.
56878
56879 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56880
56881         Sync from coreutils.
56882
56883         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
56884
56885         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
56886         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
56887
56888 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         * modules/restrict: Remove; no longer needed now that we assume
56891         Autoconf 2.59 or later.
56892         * MODULES.html.sh: Remove 'restrict'.
56893         * modules/argp (Depends-on): Remove 'restrict'.
56894         * modules/base64 (Depends-on): Likewise.
56895         * modules/gc (Depends-on): Likewise.
56896         * modules/getaddrinfo (Depends-on): Likewise.
56897         * modules/glob (Depends-on): Likewise.
56898         * modules/inet_ntop (Depends-on): Likewise.
56899         * modules/inet_pton (Depends-on): Likewise.
56900         * modules/memxor (Depends-on): Likewise.
56901         * modules/regex (Depends-on): Likewise.
56902         * modules/strtok_r (Depends-on): Likewise.
56903         * modules/time_r (Depends-on): Likewise.
56904
56905 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56906
56907         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
56908         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
56909         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56910         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
56911         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
56912         * m4/memxor.m4 (gl_MEMXOR): Likewise.
56913         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
56914         gl_C_RESTRICT replaced by AC_C_RESTRICT.
56915
56916         Merge from coreutils.
56917         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
56918         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
56919         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56920         * m4/time_r.m4 (gl_TIME_R): Likewise.
56921
56922 2006-08-09  Karl Berry  <karl@gnu.org>
56923
56924         * config/srclist.txt: no more gettext-tools, per Bruno.
56925
56926 2006-08-08  Eric Blake  <ebb9@byu.net>
56927
56928         * modules/verror: New module.
56929         * MODULES.html.sh: Document it.
56930
56931 2006-08-08  Eric Blake  <ebb9@byu.net>
56932
56933         * lib/verror.h, lib/verror.c: New files.
56934
56935 2006-08-08  Eric Blake  <ebb9@byu.net>
56936
56937         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
56938         verror_at_line output complies with GNU Coding Standards even when
56939         file is NULL.
56940
56941 2006-08-07  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
56944         versions of AIX.
56945         Reported by Ralf Wildenhues.
56946
56947 2006-08-07  Bruno Haible  <bruno@clisp.org>
56948
56949         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
56950         in an AC_DEFUN. Needed so that the autoconf snippets can use
56951         AC_REQUIRE.
56952
56953 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56954
56955         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56956         Initialize pkgdata_DATA.
56957         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
56958         overriding it.
56959
56960 2006-08-06  Eric Blake  <ebb9@byu.net>
56961
56962         * lib/error.h: Fold in some upstream changes from glibc.
56963         * lib/error.c: Likewise.
56964
56965 2006-08-04  Bruno Haible  <bruno@clisp.org>
56966
56967         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56968         Make the mostlyclean-local rule depend on mostlyclean-generic.
56969         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
56970
56971 2006-07-31  Bruno Haible  <bruno@clisp.org>
56972
56973         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
56974         <stdlib.h>, <string.h>.
56975
56976 2006-07-30  Bruno Haible  <bruno@clisp.org>
56977
56978         * modules/readlink (License): Change to LGPL.
56979
56980 2006-07-30  Bruno Haible  <bruno@clisp.org>
56981
56982         * modules/javaversion (Makefile.am): Distribute javaversion.java and
56983         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
56984         set PKGDATADIR to point to it.
56985
56986 2006-07-30  Bruno Haible  <bruno@clisp.org>
56987
56988         * modules/csharpexec (configure.ac): Comment out macro invocation.
56989         * modules/javaexec (configure.ac): Likewise.
56990         * modules/javacomp-script (configure.ac): Likewise.
56991
56992         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
56993
56994 2006-07-30  Bruno Haible  <bruno@clisp.org>
56995
56996         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
56997         linked-list.
56998
56999 2006-07-30  Bruno Haible  <bruno@clisp.org>
57000
57001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
57002
57003 2006-07-30  Bruno Haible  <bruno@clisp.org>
57004
57005         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57006         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
57007         get removed.
57008
57009 2006-07-29  Bruno Haible  <bruno@clisp.org>
57010
57011         Make it possible for gnulib-tool to work with locally modified or
57012         augmented gnulib repositories.
57013         * gnulib-tool (func_usage): Document --local-dir option.
57014         (local_gnulib_dir): New variable.
57015         Handle --local-dir option.
57016         (func_lookup_file): New function.
57017         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
57018         (func_get_description, func_get_filelist, func_get_description,
57019         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
57020         func_get_automake_snippet, func_get_include_directive,
57021         func_get_license, func_get_maintainer): Use func_lookup_file.
57022         (func_import, func_create_testdir): Use func_lookup_file.
57023
57024 2006-07-29  Bruno Haible  <bruno@clisp.org>
57025
57026         * modules/setenv (Depends-on): Add unistd.
57027
57028 2006-07-29  Bruno Haible  <bruno@clisp.org>
57029
57030         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
57031
57032 2006-07-29  Bruno Haible  <bruno@clisp.org>
57033
57034         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
57035
57036 2006-07-29  Bruno Haible  <bruno@clisp.org>
57037
57038         * gnulib-tool (import, update): If there is no Makefile.am, look at
57039         aclocal.m4, instead of bailing out.
57040
57041 2006-07-29  Bruno Haible  <bruno@clisp.org>
57042
57043         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
57044         Categorize the options by when they are useful.
57045
57046 2006-07-29  Bruno Haible  <bruno@clisp.org>
57047
57048         * gnulib-tool (func_usage): Document option --no-libtool.
57049         Handle option --no-libtool.
57050         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
57051         for changed semantics of $libtool variable.
57052         (func_import): Likewise. If libtool is not used, show this through
57053         an option --no-libtool.
57054         (func_create_testdir): Update.
57055
57056 2006-07-29  Bruno Haible  <bruno@clisp.org>
57057
57058         * gnulib-tool (func_import): Extend error message about missing
57059         --doc-base.
57060
57061 2006-07-29  Bruno Haible  <bruno@clisp.org>
57062
57063         * gnulib-tool (func_import): Don't create the $docbase directory if
57064         there is no file to store there.
57065
57066 2006-07-29  Bruno Haible  <bruno@clisp.org>
57067
57068         * gnulib-tool (autoconf_minversion): If a --dir option is given and
57069         relevant, look for configure.ac there, not in the current directory.
57070         Also use a simple search for AC_PREREQ, not "autoconf --trace".
57071
57072 2006-07-29  Bruno Haible  <bruno@clisp.org>
57073
57074         * gnulib-tool (SORT): New variable.
57075         (func_usage): Undocument --assume-autoconf option.
57076         Remove --assume-autoconf option handling.
57077         (autoconf_minversion): Determine from the contents of configure.ac.
57078         (func_import): Remove autoconf_minversion handling.
57079         Suggested by Eric Blake.
57080
57081 2006-07-29  Bruno Haible  <bruno@clisp.org>
57082
57083         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
57084
57085 2006-07-29  Bruno Haible  <bruno@clisp.org>
57086
57087         * config/srclist.txt (*setenv.[ch]): Remove rules.
57088
57089 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57090
57091         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
57092
57093 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57094
57095         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
57096         arpa/inet.h.
57097
57098 2006-07-28  Simon Josefsson  <jas@extundo.com>
57099
57100         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
57101         * modules/inet_pton (Depends-on): Likewise.
57102
57103 2006-07-28  Simon Josefsson  <jas@extundo.com>
57104
57105         * m4/netinet_in_h.m4: New file.
57106
57107 2006-07-28  Simon Josefsson  <jas@extundo.com>
57108
57109         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
57110         #include's.
57111
57112 2006-07-28  Simon Josefsson  <jas@extundo.com>
57113
57114         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
57115         #include's.
57116
57117 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
57118
57119         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
57120         setgid on directories only if they set these bits.
57121         * lib/modechange.h: Remove obsolete comment about masks.
57122
57123 2006-07-28  Eric Blake  <ebb9@byu.net>
57124
57125         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
57126         macro expansion.
57127
57128 2006-07-28  Bruno Haible  <bruno@clisp.org>
57129
57130         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
57131
57132 2006-07-28  Bruno Haible  <bruno@clisp.org>
57133
57134         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
57135
57136 2006-07-28  Bruno Haible  <bruno@clisp.org>
57137
57138         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57139         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57140         Define fallbacks.
57141         Avoids link error on FreeBSD 4.x.
57142         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57143
57144         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
57145         encoding.
57146         * lib/mbswidth.c (iswcntrl): Likewise.
57147
57148 2006-07-27  Bruno Haible  <bruno@clisp.org>
57149
57150         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
57151         test.
57152
57153 2006-07-27  Bruno Haible  <bruno@clisp.org>
57154
57155         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
57156         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
57157         defined.
57158
57159 2006-07-26  Eric Blake  <ebb9@byu.net>
57160
57161         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
57162
57163 2006-07-26  Eric Blake  <ebb9@byu.net>
57164
57165         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
57166         like mingw that lack mkstemp.
57167         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
57168         avoid compilation warning on mingw.
57169
57170 2006-07-26  Bruno Haible  <bruno@clisp.org>
57171
57172         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
57173         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
57174         INT_FAST*_MIN, INTPTR_MIN.
57175
57176 2006-07-25  Bruno Haible  <bruno@clisp.org>
57177
57178         * modules/version-etc (Depends-on): Add stdarg.
57179
57180 2006-07-25  Bruno Haible  <bruno@clisp.org>
57181
57182         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
57183         complex commands.
57184
57185 2006-07-25  Bruno Haible  <bruno@clisp.org>
57186
57187         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
57188         defined in <stdarg.h> or config.h.
57189
57190 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57191
57192         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
57193         (gl_STDIO_SAFER): Remove.
57194
57195 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57196
57197         * MODULES.html.sh (File stream based Input/Output):
57198         Add fopen-safer, tmpfile-safer; remove stdio-safer.
57199         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
57200         * modules/fopen-safer, modules/tmpfile-safer: New files.
57201         * modules/stdio-safer: Remove.
57202
57203 2006-07-24  Bruno Haible  <bruno@clisp.org>
57204
57205         * modules/tmpdir: New file.
57206         * MODULES.html.sh (File system functions): Add it.
57207
57208 2006-07-24  Bruno Haible  <bruno@clisp.org>
57209
57210         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
57211         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
57212
57213 2006-07-24  Bruno Haible  <bruno@clisp.org>
57214
57215         * modules/clean-temp: New file.
57216
57217 2006-07-24  Bruno Haible  <bruno@clisp.org>
57218
57219         * m4/tmpdir.m4: New file, from GNU gettext.
57220
57221 2006-07-24  Bruno Haible  <bruno@clisp.org>
57222
57223         * lib/tmpdir.h: New file, from GNU gettext.
57224         * lib/tmpdir.c: New file, from GNU gettext.
57225
57226 2006-07-24  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/clean-temp.h: New file, from GNU gettext.
57229         * lib/clean-temp.c: New file, from GNU gettext.
57230
57231 2006-07-23  Eric Blake  <ebb9@byu.net>
57232
57233         * modules/stdio-safer (Files): Add tmpfile-safer.c.
57234         (Depends-on): Add binary-io.
57235
57236 2006-07-23  Eric Blake  <ebb9@byu.net>
57237
57238         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
57239
57240 2006-07-23  Eric Blake  <ebb9@byu.net>
57241
57242         * lib/tmpfile-safer.c: New file.
57243         * lib/stdio-safer.h (fopen_safer): Add prototype.
57244         * lib/stdio--.h (tmpfile): Make safer.
57245
57246 2006-07-23  Bruno Haible  <bruno@clisp.org>
57247
57248         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
57249         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
57250         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
57251         gl_linked_remove_at): Use it.
57252
57253 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57254         and Simon Josefsson <jas@extundo.com>
57255
57256         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
57257
57258         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
57259
57260 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57261
57262         * modules/close-stream: New file.
57263         * modules/closeout (Description): Make it clear that it exits
57264         with a diagnostic on error.
57265         (Depends-on): Add close-stream.  Remove fpending, stdbool.
57266         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
57267
57268 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57269
57270         * m4/close-stream.m4: New file.
57271
57272 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57273
57274         * lib/close-stream.c, lib/close-stream.h: New files.
57275
57276 2006-07-22  Bruno Haible  <bruno@clisp.org>
57277
57278         Merge from GNU gettext 0.15.
57279
57280         2006-05-01  Bruno Haible  <bruno@clisp.org>
57281
57282                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
57283
57284         2006-07-22  Bruno Haible  <bruno@clisp.org>
57285
57286                 * modules/javaversion: New file.
57287                 * MODULES.html.sh (Java): Add javaversion.
57288
57289         2006-03-12  Bruno Haible  <bruno@clisp.org>
57290
57291                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
57292
57293         2005-12-04  Bruno Haible  <bruno@clisp.org>
57294
57295                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
57296                 (untested).
57297
57298         2006-06-21  Bruno Haible  <bruno@clisp.org>
57299
57300                 Avoid warnings from recent versions of mcs.
57301                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
57302                 -o, -L, -r any more. Use options documented since mcs-1.0
57303                 instead. Similarly for -g.
57304
57305         2005-12-04  Bruno Haible  <bruno@clisp.org>
57306
57307                 * build-aux/csharpcomp.sh.in: Suffix for resources is
57308                 .resources, not .resource.
57309
57310         2005-07-09  Bruno Haible  <bruno@clisp.org>
57311
57312                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
57313                 add a .dll suffix.
57314                 Reported by Mark Junker <mjscod@gmx.de>.
57315
57316         2006-07-22  Bruno Haible  <bruno@clisp.org>
57317
57318                 * modules/gettext: Upgrade to gettext-0.15.
57319                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
57320                 m4/visibility.m4.
57321                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
57322
57323 2006-07-22  Bruno Haible  <bruno@clisp.org>
57324
57325         Merge from GNU gettext 0.15.
57326
57327         2006-03-25  Bruno Haible  <bruno@clisp.org>
57328
57329                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
57330
57331         2006-07-21  Bruno Haible  <bruno@clisp.org>
57332
57333                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
57334                 "1.1".
57335
57336         2006-05-09  Bruno Haible  <bruno@clisp.org>
57337
57338                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
57339                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
57340                 for the conftestver execution.
57341
57342         2006-05-01  Bruno Haible  <bruno@clisp.org>
57343
57344                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
57345                 optional target-version argument. Verify that the compiler
57346                 groks source of the specified source-version, or add -source
57347                 option as necessary. Verify that the compiler produces
57348                 bytecode in the specified target-version, or add -target and
57349                 -source options as necessary. Make the result of the test
57350                 available as variable CONF_JAVAC. Also log error output in
57351                 config.log.
57352
57353         2006-03-11  Bruno Haible  <bruno@clisp.org>
57354
57355                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
57356
57357         2006-05-09  Bruno Haible  <bruno@clisp.org>
57358
57359                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
57360                 CLASSPATH_SEPARATOR to a semicolon.
57361
57362         2006-03-12  Bruno Haible  <bruno@clisp.org>
57363
57364                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
57365                 available as variable CONF_JAVA, for subsequent autoconf
57366                 tests. Also log error output in config.log.
57367
57368         2006-07-19  Bruno Haible  <bruno@clisp.org>
57369
57370                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
57371                 that getline works on glibc2 systems. Needed to avoid trouble
57372                 in relocatable.c.
57373                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
57374
57375         2005-12-04  Bruno Haible  <bruno@clisp.org>
57376
57377                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
57378                 launcher (untested).
57379
57380         2005-12-04  Bruno Haible  <bruno@clisp.org>
57381
57382                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
57383
57384         2006-07-22  Bruno Haible  <bruno@clisp.org>
57385
57386                 * gettext.m4: Update from GNU gettext-0.15.
57387                 * nls.m4: Likewise.
57388                 * po.m4: Likewise.
57389                 * inttypes-pri.m4: Likewise.
57390                 * inttypes-h.m4: Renamed from inttypes.m4.
57391                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
57392
57393 2006-07-22  Bruno Haible  <bruno@clisp.org>
57394
57395         Merge from GNU gettext 0.15.
57396
57397         2005-07-05  Bruno Haible  <bruno@clisp.org>
57398
57399                 * printf-args.c (printf_fetchargs): Work around broken
57400                 definition of wint_t on mingw.
57401
57402         2005-02-12  Bruno Haible  <bruno@clisp.org>
57403
57404                 * xallocsa.h: Add extern "C" for C++.
57405
57406         2006-05-17  Bruno Haible  <bruno@clisp.org>
57407
57408                 Cygwin portability.
57409                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
57410
57411         2006-04-30  Bruno Haible  <bruno@clisp.org>
57412
57413                 * progreloc.c: Include <mach-o/dyld.h> if available.
57414                 (find_executable): Use _NSGetExecutablePath when possible.
57415
57416         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57417
57418                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
57419                 function.
57420
57421         2005-12-29  Bruno Haible  <bruno@clisp.org>
57422
57423                 * progreloc.c (set_program_name_and_installdir): Fix
57424                 compilation error.
57425
57426         2005-12-04  Bruno Haible  <bruno@clisp.org>
57427
57428                 Cygwin portability.
57429                 * progreloc.c: Include <windows.h> also on Cygwin.
57430                 (find_executable): Add support for Cygwin.
57431                 (set_program_name_and_installdir): Handle also platforms with
57432                 nonempty EXEEXT.
57433
57434         2006-07-11  Bruno Haible  <bruno@clisp.org>
57435
57436                 * javacomp.c: Fix a comment.
57437                 Reported by Jim Meyering.
57438
57439         2006-04-30  Bruno Haible  <bruno@clisp.org>
57440
57441                 * javacomp.h (compile_java_class): Add source_version,
57442                 target_version arguments.
57443                 * javacomp.c: Rewritten to choose only a compiler that
57444                 respects the specified source_version and target_version.
57445
57446         2006-06-27  Bruno Haible  <bruno@clisp.org>
57447
57448                 Assume correct S_ISDIR macro.
57449                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
57450
57451         2006-07-22  Bruno Haible  <bruno@clisp.org>
57452
57453                 * javaversion.h: New file, from GNU gettext.
57454                 * javaversion.c: New file, from GNU gettext.
57455                 * javaversion.java: New file, from GNU gettext.
57456                 * javaversion.class: New file, from GNU gettext.
57457
57458         2006-05-17  Bruno Haible  <bruno@clisp.org>
57459
57460                 Cygwin portability.
57461                 * javaexec.c (execute_java_class): Test for jview program
57462                 also on Cygwin.
57463
57464         2006-04-09  Bruno Haible  <bruno@clisp.org>
57465
57466                 * fatal-signal.c: Don't include string.h.
57467                 (at_fatal_signal): Use a copying loop instead of memcpy.
57468
57469         2005-12-04  Bruno Haible  <bruno@clisp.org>
57470
57471                 * csharpexec.c: Add support for 'clix' launcher (untested).
57472                 (execute_csharp_using_sscli): New function.
57473                 (execute_csharp_program): Call it.
57474
57475         2006-06-21  Bruno Haible  <bruno@clisp.org>
57476
57477                 Avoid warnings from recent versions of mcs.
57478                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
57479                 -o, -L, -r any more. Use options documented since mcs-1.0
57480                 instead. Similarly for -g.
57481
57482         2005-07-09  Bruno Haible  <bruno@clisp.org>
57483
57484                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
57485                 add a .dll suffix.
57486                 Reported by Mark Junker <mjscod@gmx.de>.
57487
57488         2006-06-17  Bruno Haible  <bruno@clisp.org>
57489
57490                 * config.charset: Update for NetBSD 3.0.
57491
57492         2006-05-17  Bruno Haible  <bruno@clisp.org>
57493
57494                 Cygwin portability.
57495                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
57496
57497         2006-05-16  Bruno Haible  <bruno@clisp.org>
57498
57499                 * localcharset.c [CYGWIN]: Include <windows.h>.
57500                 (get_charset_aliases): For Cygwin, return the same CPxxx
57501                 aliases list as under WIN32.
57502                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
57503                 the environment variables. Fall back to GetACP().
57504
57505         2006-04-05  Bruno Haible  <bruno@clisp.org>
57506
57507                 * config.charset: Update Juan Manuel Guerrero's address.
57508
57509         2005-02-12  Bruno Haible  <bruno@clisp.org>
57510
57511                 * allocsa.h: Add extern "C" for C++.
57512
57513         2005-02-10  Bruno Haible  <bruno@clisp.org>
57514
57515                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
57516                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
57517
57518         2006-07-22  Bruno Haible  <bruno@clisp.org>
57519
57520                 * gettext.h: Update to GNU gettext-0.15.
57521
57522 2006-07-22  Bruno Haible  <bruno@clisp.org>
57523
57524         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
57525         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
57526         lib-prefix.m4, longdouble.m4, ssize_t.m4.
57527
57528 2006-07-21  Eric Blake  <ebb9@byu.net>
57529
57530         * modules/stdlib-safer: New file.
57531         * MODULES.html.sh (File stream based Input/Output): Add
57532         stdlib-safer.
57533
57534 2006-07-21  Eric Blake  <ebb9@byu.net>
57535
57536         * lib/stdlib-safer.h: New file from coreutils, required by
57537         stdlib--.h.
57538
57539 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
57540
57541         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
57542
57543 2006-07-20  Bruno Haible  <bruno@clisp.org>
57544
57545         * gnulib-tool: Recognize new option --assume-autoconf.
57546         (autoconf_minversion): New variable.
57547         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
57548
57549 2006-07-20  Bruno Haible  <bruno@clisp.org>
57550
57551         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
57552
57553 2006-07-19  Derek R. Price  <derek@ximbiot.com>
57554
57555         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
57556         Reindent and repaginate.
57557
57558 2006-07-19  Derek Price  <derek@ximbiot.com>
57559
57560         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
57561         Correct grammar.
57562
57563 2006-07-17  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/list: New file.
57566         * modules/array-list: New file.
57567         * modules/carray-list, modules/carray-list-tests: New files.
57568         * modules/linked-list, modules/linked-list-tests: New files.
57569         * modules/avltree-list, modules/avltree-list-tests: New files.
57570         * modules/rbtree-list, modules/rbtree-list-tests: New files.
57571         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
57572         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
57573         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
57574         * modules/oset: New file.
57575         * modules/array-oset: New file.
57576         * modules/avltree-oset, modules/avltree-oset-tests: New files.
57577         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
57578         * tests/test-carray_list.c: New file.
57579         * tests/test-linked_list.c: New file.
57580         * tests/test-avltree_list.c: New file.
57581         * tests/test-rbtree_list.c: New file.
57582         * tests/test-linkedhash_list.c: New file.
57583         * tests/test-avltreehash_list.c: New file.
57584         * tests/test-rbtreehash_list.c: New file.
57585         * tests/test-avltree_oset.c: New file.
57586         * tests/test-rbtree_oset.c: New file.
57587         * MODULES.html.sh (Container data structures): New section.
57588
57589 2006-07-17  Bruno Haible  <bruno@clisp.org>
57590
57591         * m4/gl_list.m4: New file.
57592
57593 2006-07-17  Bruno Haible  <bruno@clisp.org>
57594
57595         * lib/gl_list.h: New file.
57596         * lib/gl_list.c: New file.
57597         * lib/gl_array_list.h: New file.
57598         * lib/gl_array_list.c: New file.
57599         * lib/gl_carray_list.h: New file.
57600         * lib/gl_carray_list.c: New file.
57601         * lib/gl_linked_list.h: New file.
57602         * lib/gl_linked_list.c: New file.
57603         * lib/gl_anylinked_list1.h: New file.
57604         * lib/gl_anylinked_list2.h: New file.
57605         * lib/gl_avltree_list.h: New file.
57606         * lib/gl_avltree_list.c: New file.
57607         * lib/gl_anyavltree_list1.h: New file.
57608         * lib/gl_anyavltree_list2.h: New file.
57609         * lib/gl_rbtree_list.h: New file.
57610         * lib/gl_rbtree_list.c: New file.
57611         * lib/gl_anyrbtree_list1.h: New file.
57612         * lib/gl_anyrbtree_list2.h: New file.
57613         * lib/gl_anytree_list1.h: New file.
57614         * lib/gl_anytree_list2.h: New file.
57615         * lib/gl_linkedhash_list.h: New file.
57616         * lib/gl_linkedhash_list.c: New file.
57617         * lib/gl_anyhash_list1.h: New file.
57618         * lib/gl_anyhash_list2.h: New file.
57619         * lib/gl_avltreehash_list.h: New file.
57620         * lib/gl_avltreehash_list.c: New file.
57621         * lib/gl_rbtreehash_list.h: New file.
57622         * lib/gl_rbtreehash_list.c: New file.
57623         * lib/gl_anytreehash_list1.h: New file.
57624         * lib/gl_anytreehash_list2.h: New file.
57625
57626         * lib/gl_oset.h: New file.
57627         * lib/gl_oset.c: New file.
57628         * lib/gl_array_oset.h: New file.
57629         * lib/gl_array_oset.c: New file.
57630         * lib/gl_avltree_oset.h: New file.
57631         * lib/gl_avltree_oset.c: New file.
57632         * lib/gl_rbtree_oset.h: New file.
57633         * lib/gl_rbtree_oset.c: New file.
57634         * lib/gl_anytree_oset.h: New file.
57635
57636 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57637
57638         * m4/mkancesdirs.m4: New file.
57639         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
57640         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
57641         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
57642         it.
57643
57644 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57645
57646         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
57647         * lib/mkancesdirs.h: New files.
57648         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
57649         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
57650         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
57651         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
57652         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
57653         callers changed.  Revamp internals significantly, by not
57654         attempting to create directories that are temporarily more
57655         permissive than the final results.  Do not attempt to use
57656         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
57657         This removes some race conditions, fixes some bugs, and simplifies
57658         things.  Use new dirchownmod function to do owner and mode changes.
57659         * lib/mkdir-p.h: Likewise.
57660         * lib/modechange.c (octal_to_mode): New function.
57661         (struct mode_change): New member mentioned.
57662         (make_node_op_equals): New arg mentioned.  All callers changed.
57663         (mode_compile): Keep track of which mode bits the user has explicitly
57664         mentioned.
57665         (mode_adjust): New arg DIR, so that we implement the X op correctly.
57666         New arg PMODE_BITS, to keep track of which mode bits the user
57667         mentioned; it treats S_ISUID and S_ISGID speciall.
57668         All callers changed.
57669         * lib/modechange.h: Likewise.
57670
57671 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57672
57673         * MODULES.html.sh: Add mkancestors.
57674         * modules/mkancesdirs: New module.
57675         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
57676         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
57677         The chdir-safer and afs files are now orphans; I'll remove them
57678         unless someone speaks up.
57679         Add lib/dirchownmod.c, lib/dirchownmod.h.
57680         (Depends-on): Remove alloca, chown, save-cwd, dirname.
57681         Add lchown, mkancesdirs.
57682         (Maintainer): Add self.
57683
57684 2006-07-15  Karl Berry  <karl@gnu.org>
57685
57686         * gnulib-tool: help message wording/arrangement.
57687
57688 2006-07-14  Simon Josefsson  <jas@extundo.com>
57689
57690         * doc/gnulib.texi (Libtool and Windows): New section.
57691
57692 2006-07-12  Simon Josefsson  <jas@extundo.com>
57693
57694         * modules/gendocs (License): Fix license, approved by Karl.
57695
57696 2006-07-12  Eric Blake  <ebb9@byu.net>
57697
57698         * MODULES.html.sh: Add gendocs.
57699
57700 2006-07-11  Eric Blake  <ebb9@byu.net>
57701
57702         * modules/fdl: New module, to install doc/fdl.texi.
57703         * MODULES.html.sh: Add new section for documentation modules.
57704         * gnulib-tool: Avoid space-tab.
57705         (--doc-base): New option, to manage files from doc.
57706
57707 2006-07-11  Eric Blake  <ebb9@byu.net>
57708
57709         * m4/absolute-header.m4: Fix comments to match recent change.
57710
57711 2006-07-11  Eric Blake  <ebb9@byu.net>
57712
57713         * gnulib-tool: List --doc-base before --tests-base.
57714
57715 2006-07-11  Derek R. Price  <derek@ximbiot.com>
57716
57717         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
57718
57719 2006-07-11  Bruno Haible  <bruno@clisp.org>
57720
57721         * README: Mention where to put documentation.
57722
57723 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57724
57725         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
57726
57727 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
57728
57729         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
57730         to stdint.m4.
57731
57732 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
57733
57734         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
57735         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
57736         "no/such/file/stdint.h" when there is no such file, so that
57737         the resulting C code can be parsed by dodgy compilers.
57738         Problems reported by Bob Proulx.
57739
57740 2006-07-10  Derek R. Price  <derek@ximbiot.com>
57741
57742         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
57743         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
57744         macros into the GNU _D_EXACT_NAMLEN.
57745         * lib/savedir.c:  Likewise.
57746         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
57747
57748 2006-07-10  Derek R. Price  <derek@ximbiot.com>
57749         and Paul Eggert  <eggert@cs.ucla.edu>
57750
57751         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
57752         * m4/savedir.m4:
57753         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
57754         macros into the GNU _D_EXACT_NAMLEN.
57755
57756 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57757
57758         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
57759         around the absolute name, to work around a problem with the HP-UX
57760         11.23 native C compiler, reported by Bob Proulx.
57761
57762 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         * doc/maintain.texi, make-stds.texi: Sync from
57765         <http://savannah.gnu.org/projects/gnustandards>.
57766
57767 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57768
57769         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
57770
57771 2006-07-09  Jim Meyering  <jim@meyering.net>
57772
57773         * m4/glob.m4: Remove a doubled word in a comment.
57774
57775 2006-07-09  Jim Meyering  <jim@meyering.net>
57776
57777         * lib/argp-pv.c: Remove a doubled word in a comment.
57778         * lib/check-version.c (check_version): Likewise.
57779         * lib/javacomp.c (compile_java_class): Likewise.
57780
57781 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
57782
57783         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
57784         for the benefit of people using Autoconf 2.60.  If you want to
57785         support older Autoconf versions you can copy m4/onceonly_2_57.m4
57786         (or m4/onceonly.m4, if pre-2.57) manually.
57787
57788 2006-07-08  Jim Meyering  <jim@meyering.net>
57789
57790         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
57791         comment.
57792         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
57793         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
57794         comment.
57795
57796 2006-07-08  Jim Meyering  <jim@meyering.net>
57797
57798         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
57799
57800 2006-07-07  Simon Josefsson  <jas@extundo.com>
57801
57802         * tests/test-crc.c: Change expected crc value, the test vector
57803         were probably computed using the old broken crc.c?
57804
57805 2006-07-06  Simon Josefsson  <jas@extundo.com>
57806
57807         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
57808         now the canonical place for the M4 file).
57809
57810         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
57811         from the sys_socket dependency now.
57812
57813         * modules/inet_pton (Files): Ditto.
57814
57815         * modules/inet_ntop (Files): Ditto.
57816
57817 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57818
57819         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
57820         not gl_PREREQ_GETUSERSHELL.
57821
57822 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57823
57824         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
57825         with only one argument, for Autoconf 2.60.
57826         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
57827         expand to nothing, so add a shell command to avoid syntax error.
57828         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57829
57830 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57831
57832         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
57833
57834 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57835
57836         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
57837         no longer needed.  Check for isblank decl.
57838         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
57839         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
57840         of existence.
57841
57842 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57843
57844         * lib/getloadavg.c: Use __VMS, not VMS.
57845         * lib/getopt.c: Likewise.
57846         * lib/getpagesize.h: Likewise.
57847         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
57848         and probably does not work.
57849
57850 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57851
57852         * lib/.cppi-disable: Add wcwidth.
57853         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
57854         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
57855         (ISGRAPH): Remove.  All uses changed to isgraph.
57856         (FOLD) [!defined _LIBC]: Remove special case.
57857         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
57858         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
57859         HAVE_ISBLANK.
57860         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
57861         case.
57862
57863 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
57864
57865         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
57866         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
57867         brackets.  Other minor changes to suppress some compiler
57868         warnings.
57869
57870 2006-07-06  Derek R. Price  <derek@ximbiot.com>
57871         and Paul Eggert  <eggert@cs.ucla.edu>
57872
57873         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
57874         of invoking obsolescent AC_HEADER_DIRENT macro.
57875         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
57876         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
57877         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
57878         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
57879         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
57880         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57881         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
57882         * m4/readdir.m4: Remove; no longer needed.
57883
57884 2006-07-06  Derek R. Price  <derek@ximbiot.com>
57885         and Paul Eggert  <eggert@cs.ucla.edu>
57886
57887         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
57888         Don't worry about this obsolete case any more.
57889         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
57890         directories.
57891         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
57892         worry about this obsolete case any more.
57893         * lib/fts.c: Likewise.
57894         * lib/getcwd.c: Likewise.
57895         * lib/glob.h: Likewise.
57896         * lib/savedir.c: Likewise.
57897
57898 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57899
57900         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
57901         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
57902         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
57903         needed.
57904         All uses removed.
57905         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57906         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
57907         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
57908         needed.
57909         * m4/getdate.m4 (gl_GETDATE): Likewise.
57910         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
57911         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
57912         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57913         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57914         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
57915         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57916         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
57917         needed.
57918
57919 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57920
57921         * lib/memcasecmp.c: Include <limits.h>.
57922         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
57923         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
57924         Don't assume isdigit succeeds only on '0' through '9'.
57925
57926 2006-07-05  Eric Blake  <ebb9@byu.net>
57927
57928         * modules/getaddrinfo (Depends-on): Add snprintf.
57929
57930 2006-07-05  Eric Blake  <ebb9@byu.net>
57931
57932         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
57933         to avoid 'header present but could not be compiled' on cygwin.
57934
57935 2006-07-05  Eric Blake  <ebb9@byu.net>
57936
57937         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
57938         missing from netdb.h.
57939         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
57940
57941 2006-07-05  Derek R. Price  <derek@ximbiot.com>
57942
57943         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
57944         no longer needed.
57945         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
57946         * m4/getdate.m4 (gl_GETDATE): Likewise.
57947         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
57948         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
57949         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57950         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57951         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57952
57953 2006-07-05  Derek R. Price  <derek@ximbiot.com>
57954
57955         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
57956         All uses of is_space replaced by isspace.
57957         * lib/exit.h: Don't talk about STDC_HEADERS.
57958         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
57959         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
57960         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
57961         replaced by isprint etc.
57962         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
57963         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57964         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
57965         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
57966         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
57967         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57968
57969 2006-07-05  Bruno Haible  <bruno@clisp.org>
57970
57971         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
57972         the function exists, before testing against AIX.
57973         Reported by Martin Lambers <marlam@marlam.de>.
57974
57975 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57976
57977         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
57978         From Mark D. Baushke.
57979
57980 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57981
57982         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
57983         to the absolute name, not just one, to bypass Sun C 5.8's
57984         "warning: #include of /usr/include/... may be non-portable".
57985
57986 2006-07-04  Eric Blake  <ebb9@byu.net>
57987
57988         * modules/dirname-tests: New test module.
57989         * tests/test-dirname.c: New file, replacing dirname.c
57990         TEST_DIRNAME section that was recently deleted.
57991
57992 2006-07-04  Bruno Haible  <bruno@clisp.org>
57993
57994         Assume ANSI C header files and <ctype.h> functions.
57995         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
57996         (mbsnwidth): Use isprint, iscntrl instead.
57997
57998 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57999
58000         Merge from coreutils.
58001         * MODULES.html.sh: Add xstrtold.
58002         * modules/xstrtold: New file.
58003         * modules/cycle-check (Files): Add lib/same-inode.h.
58004         * modules/dirname (Files): Add m4/double-slash-root.m4.
58005         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
58006         * modules/mkdir-p (Files): Add lib/same-inode.h.
58007         * modules/same (Files): Add lib/same-inode.h.
58008
58009 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58010
58011         * m4/absolute-header.m4: Renamed from full-header-path.m4.
58012         This is to keep the terminology clean; POSIX talks about
58013         "absolute pathnames", not "full pathnames", but the GNU
58014         Coding Standards say to use "path" for something else;
58015         so use "absolute" to keep both sides happy.
58016         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
58017         Set gl_absolute_header, not gl_full_header_path.
58018         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
58019         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
58020         All uses changed.
58021
58022         Merge from coreutils.
58023
58024         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58025
58026         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
58027         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
58028         want to require the building of c-strtod.o.
58029         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
58030         needs -lm directly.
58031         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
58032
58033         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58034
58035         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
58036         --as-needed option if available.  Problem reported by Albert Chin in
58037         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
58038         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
58039         cc merely issues a bunch of annoying warnings for --as-needed
58040         (this problem was reported by Bob Proulx).  Also, try linking with
58041         -lm to detect a bug in binutils 2.16 (this problem was reported
58042         by Ralf Wildenhues).
58043
58044         2006-06-18  Jim Meyering  <jim@meyering.net>
58045
58046         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
58047         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
58048         macro.
58049         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
58050         also check for glibc-2.4's abort-inducing bug.
58051
58052         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
58053         Low-probability clean-up should be to use rmdir to get rid of
58054         the just-created directory, not unlink.
58055
58056         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
58057         configure fail, and request a bug report to inform us about it.
58058         Add a comment that, barring reports to the contrary, in 2007 we'll
58059         assume ftruncate is universally available.
58060
58061         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58062
58063         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
58064
58065         2006-03-12  Jim Meyering  <jim@meyering.net>
58066
58067         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
58068         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
58069         * m4/same.m4 (gl_SAME): Likewise.
58070         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
58071
58072         2006-03-11  Eric Blake  <ebb9@byu.net>
58073
58074         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
58075         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
58076         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
58077         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
58078
58079 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
58082         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
58083         reported by Mark D. Baushke, one in
58084         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
58085
58086         Merge from coreutils.
58087
58088         * lib/.cppi-disable: Add stdint_.h.
58089         * lib/.cvsignore: Add stdint.h.
58090
58091         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58092
58093         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
58094         both double and long double versions.
58095         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
58096         * lib/xstrtold.c: New file.
58097         * lib/xstrtod.h (xstrtold): New decl.
58098
58099         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58100
58101         * lib/filemode.c (setst): Remove.
58102         (strmode): Rewrite to avoid setst.  This makes the code shorter,
58103         (arguably) clearer, and the generated code is a bit smaller on my
58104         Debian GNU/Linux stable x86 host.
58105
58106         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58107
58108         * lib/filemode.c: Include "filemode.h" first, to test the interface.
58109         Assume that filemode.h includes sys/types.h and sys/stat.h.
58110         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
58111         (ftypelet): Reorder to put common cases first, for efficiency.
58112         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
58113         to do 'M'.
58114         (strmode): Renamed from mode_string, and now stores 12 bytes instead
58115         of 10, for compatibility with FreeBSD.  All callers changed.
58116         (filemodestring): Now stores 12 bytes instead of 10, and sets file
58117         types that can't be deduced solely from st_mode.  First arg is now a
58118         const pointer.
58119         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
58120         (strmode): Renamed from mode_string.
58121         (filemodestring): New decl.
58122         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
58123         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
58124         needed.
58125         (S_ISPORT, S_ISWHT): New macros, if not already defined.
58126
58127         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58128
58129         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
58130         fsusage.h now does that.  Include fsusage.h first, to test interface.
58131         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
58132         at most one method (the old code could have generated decls that
58133         didn't conform to C89, not that this was ever exercised).
58134         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
58135
58136         2006-03-19  Jim Meyering  <jim@meyering.net>
58137
58138         Work even in a chroot where d_ino values for entries in "/"
58139         don't match the stat.st_ino values for the same names.
58140         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
58141         number, iterate through all entries again, using lstat instead.
58142         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
58143         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
58144
58145         * lib/getcwd.c (__getcwd): Clarify a comment.
58146         Use memcpy in place of a call to strcpy.
58147
58148         2006-03-12  Jim Meyering  <jim@meyering.net>
58149
58150         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
58151         matches that of the current directory (which we're about to chdir ".."
58152         out of), then save the dev-ino of the parent, instead.
58153
58154         * lib/same-inode.h (SAME_INODE): New file/macro.
58155         * lib/chdir-safer.c (SAME_INODE): Remove definition.
58156         Include "same-inode.h", instead.
58157         * lib/same.c: Likewise.
58158         * lib/cycle-check.h: Include "same-inode.h".
58159         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
58160         * lib/cycle-check.c (SAME_INODE): Remove definition.
58161         * lib/root-dev-ino.h: Include "same-inode.h".
58162
58163         2006-03-11  Eric Blake  <ebb9@byu.net>
58164
58165         * lib/same.c (same_name): s/base_name/last_component/
58166         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
58167         * lib/filenamecat.c (file_name_concat): Likewise.
58168
58169         2006-03-11  Eric Blake  <ebb9@byu.net>,
58170                     Paul Eggert  <eggert@cs.ucla.edu>
58171
58172         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
58173         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
58174         drive prefix.
58175         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
58176         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
58177         (last_component): New method.
58178         * lib/dirname.c (dir_len): Determine when drive letters need a
58179         subsequent slash.  Preserve // when it is special.
58180         (dir_name): Don't append dot when drive letter is absolute.
58181         [TEST_DIRNAME]: Move into a full-blown gnulib test.
58182         * lib/basename.c (base_name): New semantics - malloc the result.
58183         Preserve // when it is special.  Preserve relative files that look
58184         like drive letters.
58185         (base_len): Preserve // when it is special.
58186         (last_component): New method, similar to old base_name semantics.
58187         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
58188         base_name.  Strip redundant slashes from ///.
58189
58190 2006-07-03  Jim Meyering  <jim@meyering.net>
58191
58192         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
58193         macro is used before the first cycle_check call.
58194
58195 2006-07-03  Eric Blake  <ebb9@byu.net>
58196
58197         * modules/dirname (Depends-on): Add xstrndup.
58198
58199 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58200
58201         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
58202         test cases, so that config.log is a bit easier to follow.
58203
58204 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58205
58206         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
58207         both are 64 bits, since this seems to be the tradition, and this
58208         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
58209         we ever run into a host that prefers long long to long in this
58210         case, we'll need another configure-time test.  Problem reported by
58211         Jim Meyering.
58212
58213 2006-07-02  Eric Blake  <ebb9@byu.net>
58214
58215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
58216
58217 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58218
58219         * modules/inttypes (Depends-on): No longer depends on stdint.
58220         * modules/stdint (Description): Say more about assumptions.
58221         Say that the fast types might differ.  Say macros are used.
58222         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
58223         (Makefile.am): Revise list of substituted symbols to match
58224         new stdint.m4.
58225         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
58226         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
58227         * tests/test-stdint.c (verify_same_types)
58228         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
58229         the code conforms to C99/C89.
58230         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
58231         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
58232
58233 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58234
58235         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
58236         but fix a bug, by requiring at least 64 bits.
58237         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58238         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
58239         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
58240         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
58241
58242         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
58243         changes.  Make 2.59 a prerequisite.  Check and substitute for
58244         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
58245         inttypes.h.  Do not use special include files; just use the
58246         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
58247         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
58248         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
58249         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
58250         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
58251         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
58252         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
58253         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
58254         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
58255         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
58256         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
58257         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
58258         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
58259         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
58260         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
58261         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
58262         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
58263         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
58264         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
58265         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
58266         WINT_MAX.  Check for C99 conformance more strictly, by detecting
58267         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
58268         not check for things that C99 does not require, e.g., int8_t.  If
58269         a test isn't needed unless <stdint.h> isn't working, and is
58270         unlikely to be needed for any other reason, then don't do it
58271         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
58272         size_t, since we assume C89 freestanding at least.  Do not check
58273         for sig_atomic_t, wchar_t, or wint_t, since the code now does
58274         the right thing even if the types are not defined.  Instead use:
58275         (gl_STDINT_TYPE_PROPERTIES): New macro.
58276         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
58277         testing whether <sys/types.h> clashes, as Autoconf does this for
58278         us now.  All uses removed.
58279         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
58280         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
58281         (gl_CHECK_TYPE_SAME):
58282         Remove; no longer needed.
58283         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
58284         exists, since we'll return 0 anyway in that case.
58285         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
58286
58287 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
58290         possible collision with system files.
58291         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
58292         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
58293         WCHAR_MIN and WCHAR_MAX in this case.
58294         (<stddef.h>): Do not include; no longer needed.
58295         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
58296         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
58297         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
58298         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
58299         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
58300         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
58301         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
58302         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
58303         !defined(__c99))]: Include in this case too, since it's harmless
58304         now.
58305         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
58306         dangerous to do so.
58307         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
58308         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
58309         (_STDINT_MIN, _STDINT_MAX): New macros.
58310         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
58311         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
58312         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
58313         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
58314         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
58315         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
58316         macros, not typedefs; this simplifies things quite a bit.
58317         Use long int for all types narrower than int64_t.
58318         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
58319         Define in terms of long long int or int64_t or long int,
58320         not int64_t or int32_t.  This saves some compile-time testing.
58321         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
58322         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
58323         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
58324         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
58325         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
58326         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
58327         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
58328         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
58329         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
58330         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
58331         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58332         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58333         undef any previous version and define our own version, for
58334         simplicity and consistency with the new macros for types.
58335         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58336         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58337         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
58338         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
58339         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
58340         @WINT_T_SUFFIX@ to keep things simple here.
58341         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
58342         Simplify by assuming typical 8/16/32/64 host, since we're
58343         already doing that elsewhere anyway.
58344         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
58345         and assume long long int is 64 bits if available.  This
58346         speeds up 'configure'.
58347
58348 2006-07-01  Eric Blake  <ebb9@byu.net>
58349
58350         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
58351         Reported by Andreas Buening.
58352
58353 2006-07-01  Eric Blake  <ebb9@byu.net>
58354
58355         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
58356
58357 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58358
58359         * lib/getaddrinfo.c: fixed typo
58360
58361 2006-06-29  Jim Meyering  <jim@meyering.net>
58362
58363         * modules/strftime (Maintainer): Add my name, since with the
58364         FPRINTFTIME changes strftime.c has forked from glibc.
58365
58366 2006-06-29  Eric Blake  <ebb9@byu.net>
58367
58368         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
58369
58370 2006-06-29  Eric Blake  <ebb9@byu.net>
58371
58372         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
58373
58374 2006-06-29  Eric Blake  <ebb9@byu.net>
58375
58376         * lib/stat_.h: New file.
58377
58378 2006-06-29  Eric Blake  <ebb9@byu.net>
58379
58380         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
58381         unused static function.
58382
58383 2006-06-29  Eric Blake  <ebb9@byu.net>
58384
58385         * doc/functions.texi (Function Portability): Document missing lstat
58386         on mingw.
58387
58388 2006-06-29  Eric Blake  <ebb9@byu.net>
58389
58390         * MODULES.html.sh: Add sys_stat.
58391         * modules/sys_stat: New module.
58392         * modules/mkstemp (Depends-on): Add sys_stat.
58393
58394 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58395
58396         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
58397
58398 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58399
58400         * m4/c-bs-a.m4: Removed.
58401
58402 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58403
58404         * lib/strftime.c: Assume strftime() exists.
58405
58406 2006-06-29  Derek Price  <derek@ximbiot.com>
58407
58408         * modules/c-bs-a: Removed - \a is C89.
58409         * MODULES.html.sh: Remove c-bs-a.
58410
58411 2006-06-29  Bruno Haible  <bruno@clisp.org>
58412
58413         * modules/wcwidth (License): Change to LGPL.
58414
58415 2006-06-28  Simon Josefsson  <jas@extundo.com>
58416
58417         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
58418         on _WIN32.
58419
58420         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
58421         getnameinfo.
58422
58423 2006-06-28  Simon Josefsson  <jas@extundo.com>
58424
58425         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
58426
58427 2006-06-28  Simon Josefsson  <jas@extundo.com>
58428
58429         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
58430         functions there.  It will succeed on Windows XP, but on Windows
58431         2000 and (presumably) earlier, it will fail, and use the internal
58432         re-implementation.
58433         (use_win32_p): New function.
58434         (getaddrinfo): Use strtoul on servname, to support numeric ports.
58435         Support AI_NUMERICSERV to disable getservbyname.
58436         (getnameinfo): New function, only supports
58437         NI_NUMERICHOST|NI_NUMERICSERV for now.
58438
58439         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
58440         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
58441         getnameinfo.
58442
58443 2006-06-28  Eric Blake  <ebb9@byu.net>
58444
58445         * modules/wcwidth: New file.
58446         * modules/mbchar (Depends-on): Add wcwidth.
58447         * modules/mbswidth (Depends-on): Add wcwidth.
58448         * MODULES.html.sh: Add wcwidth.
58449
58450 2006-06-28  Eric Blake  <ebb9@byu.net>
58451
58452         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
58453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
58454
58455 2006-06-28  Eric Blake  <ebb9@byu.net>
58456
58457         * lib/xvasprintf.h: Fix comments.
58458
58459 2006-06-28  Eric Blake  <ebb9@byu.net>
58460
58461         * lib/mbchar.h (wcwidth): Include wcwidth.h.
58462         * lib/mbswidth.c (wcwidth): Move from here...
58463         * lib/wcwidth.h: ...to this new file.
58464
58465 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58466
58467         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
58468
58469         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
58470         it's obsolete.
58471         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
58472
58473 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58474
58475         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
58476         Autoconf 2.60 says this stuff was obsolete.
58477
58478 2006-06-28  Bruno Haible  <bruno@clisp.org>
58479
58480         * modules/wcwidth (Files): Add m4/wchar_t.m4.
58481
58482 2006-06-28  Bruno Haible  <bruno@clisp.org>
58483
58484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
58485         gt_TYPE_WCHAR_T.
58486
58487 2006-06-28  Bruno Haible  <bruno@clisp.org>
58488
58489         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
58490         declaration for wcwidth.
58491         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
58492
58493 2006-06-28  Bruno Haible  <bruno@clisp.org>
58494
58495         * lib/mkdtemp.c [MINGW]: Include <io.h>.
58496         (mkdir): Define using _mkdir.
58497
58498 2006-06-28  Bruno Haible  <bruno@clisp.org>
58499
58500         * lib/getaddrinfo.h: Fix POSIX URL.
58501         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
58502         _WIN32.
58503         (use_win32_p): Make static.
58504         (getaddrinfo): Reject service name if it is empty or does not consist
58505         solely of decimal digits, or if its value is > 65535.
58506         (getnameinfo): Remove useless casts.
58507
58508 2006-06-27  Simon Josefsson  <jas@extundo.com>
58509
58510         * modules/sys_select: New file, suggested by Bruno Haible, Paul
58511         Eggert and Martin Lambers.
58512
58513 2006-06-27  Simon Josefsson  <jas@extundo.com>
58514
58515         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
58516         Eggert and Martin Lambers.
58517
58518 2006-06-27  Bruno Haible  <bruno@clisp.org>
58519
58520         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
58521         result to 0, not to empty.
58522         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
58523
58524 2006-06-27  Bruno Haible  <bruno@clisp.org>
58525
58526         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
58527
58528 2006-06-26  Simon Josefsson  <jas@extundo.com>
58529
58530         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
58531         present.
58532
58533 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
58534
58535         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
58536         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
58537         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
58538
58539 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
58540
58541         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
58542
58543 2006-06-26  Bruno Haible  <bruno@clisp.org>
58544
58545         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
58546
58547 2006-06-26  Bruno Haible  <bruno@clisp.org>
58548
58549         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
58550
58551 2006-06-26  Bruno Haible  <bruno@clisp.org>
58552
58553         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
58554         SGI C compiler in pre-C99 mode.
58555         Suggested by Mark D. Baushke and Larry Jones.
58556
58557 2006-06-26  Bruno Haible  <bruno@clisp.org>
58558
58559         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
58560         WCHAR_MAX.
58561         Reported by Mark D. Baushke and Larry Jones.
58562
58563 2006-06-26  Bruno Haible  <bruno@clisp.org>
58564
58565         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
58566         in pre-C99 mode.
58567         Suggested by Mark D. Baushke and Larry Jones.
58568
58569 2006-06-23  Simon Josefsson  <jas@extundo.com>
58570             Bruno Haible  <bruno@clisp.org>
58571
58572         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
58573         Emit mostlyclean-local rule.
58574         (func_emit_tests_Makefile_am): Likewise.
58575         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
58576
58577 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
58578
58579         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
58580
58581 2006-06-23  Bruno Haible  <bruno@clisp.org>
58582
58583         * tests/test-stdint.c: Update to match ISO C 99 Technical
58584         Corrigendum 1.
58585
58586 2006-06-23  Bruno Haible  <bruno@clisp.org>
58587
58588         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
58589
58590 2006-06-23  Bruno Haible  <bruno@clisp.org>
58591
58592         * lib/stdint_.h: Treat IRIX like OpenBSD.
58593
58594 2006-06-23  Bruno Haible  <bruno@clisp.org>
58595
58596         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
58597         ISO C 99 Technical Corrigendum 1.
58598
58599 2006-06-22  Simon Josefsson  <jas@extundo.com>
58600
58601         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
58602         MinGW.
58603
58604 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58605
58606         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
58607         needed.  Some compiler complained about some of them.  Problem reported
58608         by Larry Jones in
58609         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
58610
58611 2006-06-21  Simon Josefsson  <jas@extundo.com>
58612
58613         * tests/test-getaddrinfo.c: New file.
58614
58615         * modules/getaddrinfo-tests: New file.
58616
58617         * MODULES.html.sh: Add inet_pton.
58618
58619         * modules/inet_pton: New file.
58620
58621 2006-06-21  Simon Josefsson  <jas@extundo.com>
58622
58623         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
58624         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
58625         of using the (limited) gnulib implementation on Windows XP.
58626
58627         * m4/inet_pton.m4: New file.
58628
58629 2006-06-21  Simon Josefsson  <jas@extundo.com>
58630
58631         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
58632         variable.
58633
58634         * lib/socket_.h: Don't define WINVER.
58635
58636         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
58637         slightly modified to work in gnulib.
58638
58639 2006-06-21  Simon Josefsson  <jas@extundo.com>
58640
58641         * doc/gnulib.texi (Windows sockets): Add.
58642
58643 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58644
58645         * lib/read-file.c (fread_file): Start with buffer allocation of
58646         0 bytes rather than 1 byte; this simplifies the code.
58647         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
58648         code to free buffer and save/restore errno.
58649         (internal_read_file): Remove unused local.
58650
58651 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
58654         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
58655         Problem reported by Denis Excoffier in
58656         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
58657
58658 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58659
58660         * modules/sys_socket, modules/socklen: Include sys/types since
58661         FreeBSD 4.x's sys/socket.h needs it.
58662
58663 2006-06-19  Simon Josefsson  <jas@extundo.com>
58664
58665         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
58666
58667 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
58670
58671 2006-06-19  Bruno Haible  <bruno@clisp.org>
58672
58673         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
58674         and FULL_PATH_INTTYPES_H in angle brackets.
58675         Reported by Mark D. Baushke <mdb@gnu.org>.
58676
58677 2006-06-17  Eric Blake  <ebb9@byu.net>
58678
58679         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
58680         errno.
58681
58682 2006-06-17  Bruno Haible  <bruno@clisp.org>
58683
58684         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
58685         <sys/inttypes.h>.
58686
58687 2006-06-17  Bruno Haible  <bruno@clisp.org>
58688
58689         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
58690         whether errno is declared. Assume <errno.h> declares errno.
58691
58692 2006-06-17  Bruno Haible  <bruno@clisp.org>
58693
58694         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
58695
58696 2006-06-17  Bruno Haible  <bruno@clisp.org>
58697
58698         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
58699         problem on Solaris 2.5.1.
58700
58701 2006-06-16  Eric Blake  <ebb9@byu.net>
58702
58703         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
58704         * lib/unicodeio.c [!defined errno]: Likewise.
58705         * lib/strtol.c [!defined errno]: Likewise.
58706         * lib/strtod.c [!defined errno]: Likewise.
58707
58708 2006-06-15  Eric Blake  <ebb9@byu.net>
58709
58710         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
58711
58712 2006-06-15  Eric Blake  <ebb9@byu.net>
58713
58714         * config/srclist.txt (ssize_t.m4): Lose sync.
58715
58716 2006-06-15  Bruno Haible  <bruno@clisp.org>
58717
58718         * modules/stdint (Files): Include m4/full-header-path.m4,
58719         m4/size_max.m4, m4/wchar_t.m4.
58720         (Makefile.am): Many more substitutions.
58721         * modules/stdint-tests: New file.
58722         * tests/test-stdint.c: New file.
58723
58724 2006-06-15  Bruno Haible  <bruno@clisp.org>
58725
58726         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
58727         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
58728         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
58729         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
58730         gl_CHECK_TYPE_SAME): New macros.
58731
58732 2006-06-15  Bruno Haible  <bruno@clisp.org>
58733
58734         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
58735
58736 2006-06-15  Bruno Haible  <bruno@clisp.org>
58737
58738         * lib/stdint_.h: Rewritten to be fully auto-configured.
58739         Fixes bug on HP-UX/IA64.
58740
58741 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
58742
58743         * lib/getdate.y (__attribute__): Don't define if already defined.
58744         Problem reported by Larry Jones.
58745         * lib/utimens.c (__attribute__): Likewise.
58746
58747 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
58750         reported by Andreas Schwab.
58751
58752 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58753             Bruno Haible  <bruno@clisp.org>
58754
58755         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
58756         check for the declaration of strnlen and a run test that exposes the
58757         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
58758         rpl_strndup.
58759
58760 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58761             Bruno Haible  <bruno@clisp.org>
58762
58763         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
58764
58765 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58766
58767         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
58768         compile test, for Tru64 4.0D.
58769
58770 2006-05-28  Karl Berry  <karl@gnu.org>
58771
58772         * config/srclist.txt (printf-args.c): lose sync.
58773
58774 2006-05-26  Martin Lambers  <marlam@marlam.de>
58775
58776         * lib/getpass.c: Updates the test for the native W32 API, and adds
58777         missing includes, thus fixing compilation warnings.
58778
58779 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58780
58781         * lib/exclude.c (exclude_fnmatch): New function.
58782         (excluded_file_name): Call exclude_fnmatch.
58783         * lib/exclude.h (excluded_file_name): New prototype
58784
58785 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
58786
58787         * lib/tempname.c (small_open, large_open): New macros.
58788         (__open, __open64) [!_LIBC]: Remove.
58789         (__gen_tempname): Use small_open and large_open instead of __open
58790         and __open64.  This fixes a portability bug on HP-UX 11.11i
58791         reported by Simon Wing-Tang in
58792         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
58793
58794 2006-05-24  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
58797         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
58798         Reported by Thorsten Maerz <torte@netztorte.de> via
58799         Aaron Stone <aaron@serendipity.cx>.
58800
58801 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
58804         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
58805         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
58806         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
58807         not really conditional on the cache.
58808         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
58809
58810 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58811
58812         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
58813         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
58814         (my_usleep): Don't mishandle maximum value.
58815
58816 2006-05-19  Jim Meyering  <jim@meyering.net>
58817
58818         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
58819
58820 2006-05-17  Bruno Haible  <bruno@clisp.org>
58821
58822         Cygwin portability.
58823         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
58824
58825 2006-05-17  Bruno Haible  <bruno@clisp.org>
58826
58827         * lib/stdint_.h: Fix recognition of Cygwin.
58828
58829 2006-05-15  Bruno Haible  <bruno@clisp.org>
58830
58831         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
58832         on libtool patch by Ralf Wildenhues.
58833
58834 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58835
58836         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
58837         test for C99 conformance; (bool) 0.5 is an integer constant
58838         expression, but (bool) -0.5 is not.  Problem reported by Fedor
58839         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
58840
58841 2006-05-11  Simon Josefsson  <jas@extundo.com>
58842
58843         * m4/xvasprintf.m4: Fix obvious typo.
58844
58845 2006-05-11  Jim Meyering  <jim@meyering.net>
58846
58847         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
58848         James Lemley.
58849
58850 2006-05-10  Simon Josefsson  <jas@extundo.com>
58851
58852         * lib/md4.c: Typo fix, update copyright years.
58853         (K1, K2): Don't use L because it turn computations into 64-bit on
58854         64-bit platforms.
58855
58856 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
58857
58858         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
58859         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
58860         unwanted sign propagation, e.g., on hosts with 64-bit int.
58861         There still are some problems with reeelly weird theoretical hosts
58862         (e.g., 33-bit int) but it's not worth worrying about now.
58863         * lib/sha1.c (rol): Likewise.
58864         (K1, K2, K3, K4): Remove unnecessary L suffix.
58865
58866 2006-05-10  Bruno Haible  <bruno@clisp.org>
58867
58868         * lib/des.c: Cast to avoid warnings.
58869
58870 2006-05-09  Bruno Haible  <bruno@clisp.org>
58871
58872         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
58873         (Depends-on): Depend also on xsize, stdarg.
58874         (configure.ac): Add gl_XVASPRINTF.
58875
58876 2006-05-09  Bruno Haible  <bruno@clisp.org>
58877
58878         * m4/xvasprintf.m4: New file.
58879
58880 2006-05-09  Bruno Haible  <bruno@clisp.org>
58881
58882         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
58883         (EOVERFLOW): Define fallback value.
58884         (xstrcat): New function.
58885         (xvasprintf): Recognize the special case of a string concatenation.
58886
58887 2006-05-08  Eric Blake  <ebb9@byu.net>
58888
58889         * gnulib-tool (func_version): Base copyright year on CVS date.
58890         (func_emit_copyright_notice): New function.
58891         (func_emit_lib_Makefile_am): Use it.
58892         (func_emit_tests_Makefile_am): Likewise.
58893         (func_import): Likewise.
58894
58895 2006-05-08  Bruno Haible  <bruno@clisp.org>
58896
58897         * modules/stdarg: New file.
58898         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
58899
58900 2006-05-08  Bruno Haible  <bruno@clisp.org>
58901
58902         * m4/stdarg.m4: New file, from GNU gettext.
58903
58904 2006-05-08  Bruno Haible  <bruno@clisp.org>
58905
58906         * config/srclist.txt (build-aux/config.rpath): different from latest
58907         release.
58908
58909 2006-05-08  Bruno Haible  <bruno@clisp.org>
58910
58911         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
58912
58913 2006-05-05  Jim Meyering  <jim@meyering.net>
58914
58915         * m4/warning.m4: New file, derived from bison's file by the same name.
58916
58917 2006-05-03  Bruno Haible  <bruno@clisp.org>
58918
58919         * lib/stdint_.h: Shorter URL.
58920         * lib/inttypes.h: Likewise.
58921
58922 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58923
58924         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
58925
58926 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58927
58928         * lib/verify.h: Document the internals better.  Most of this change
58929         was written by Bruno Haible.
58930
58931 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         * doc/verify.texi: New file, partly based on a proposal by
58934         Bruno Haible.
58935
58936 2006-05-02  Bruno Haible  <bruno@clisp.org>
58937
58938         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
58939         test from here...
58940         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
58941
58942 2006-04-29  Bruno Haible  <bruno@clisp.org>
58943
58944         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
58945         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
58946
58947 2006-04-29  Bruno Haible  <bruno@clisp.org>
58948
58949         * gnulib-tool: Make --update option actually work.
58950
58951 2006-04-29  Bruno Haible  <bruno@clisp.org>
58952
58953         * doc/gcd.texi: New file.
58954         * doc/gnulib.texi: Include it.
58955
58956 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
58957
58958         * lib/getdate.y (get_date): When adding relative date, start with the
58959         initial time, not with the result of the first mktime call.
58960
58961 2006-04-25  Bruno Haible  <bruno@clisp.org>
58962
58963         * gnulib-tool (func_import): Output the include directives in three
58964         blocks, sorted separately.
58965         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58966
58967 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
58970         to define main with arguments, for C++.  Reported by Eric Blake.
58971         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
58972         Prefer 'int main ()' to 'int main (void)', for C++.
58973         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58974         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
58975         for 'main', for C99 and C++.
58976
58977 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58978
58979         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
58980         Don't assume that exit status -1 is valid.
58981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58982         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58983         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
58984         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
58985         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
58986         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
58987         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
58988         functions can be used without declaring them, or that you can
58989         exit with status -1.
58990         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
58991
58992 2006-04-24  Karl Berry  <karl@gnu.org>
58993
58994         * config/srclist.txt (longdouble.m4): sync lost.
58995
58996 2006-04-24  Eric Blake  <ebb9@byu.net>
58997
58998         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
58999
59000 2006-04-24  Bruno Haible  <bruno@clisp.org>
59001
59002         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
59003         poll() implementation in AIX.
59004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59005
59006 2006-04-24  Bruno Haible  <bruno@clisp.org>
59007
59008         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
59009         assigned exactly once.
59010
59011 2006-04-23  Claudio Fontana  <claudio@gnu.org>
59012             Bruno Haible  <bruno@clisp.org>
59013
59014         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
59015         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
59016         for AM_CPPFLAGS.
59017
59018 2006-04-23  Bruno Haible  <bruno@clisp.org>
59019
59020         * modules/copy-file: Depend on unistd.
59021         * modules/execute: Likewise.
59022         * modules/fatal-signal: Likewise.
59023         * modules/findprog: Likewise.
59024         * modules/mkdtemp : Likewise.
59025         * modules/pipe: Likewise.
59026         * modules/wait-process: Likewise.
59027
59028 2006-04-23  Bruno Haible  <bruno@clisp.org>
59029
59030         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
59031         condition was already detected.
59032         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59033
59034 2006-04-23  Bruno Haible  <bruno@clisp.org>
59035
59036         * lib/copy-file.c: Include <unistd.h> unconditionally.
59037         * lib/execute.c: Likewise.
59038         * lib/fatal-signal.c: Likewise.
59039         * lib/findprog.c: Likewise.
59040         * lib/mkdtemp.c: Likewise.
59041         * lib/pipe.h: Likewise.
59042         * lib/pipe.c: Likewise.
59043         * lib/wait-process.h: Likewise.
59044
59045 2006-04-23  Bruno Haible  <bruno@clisp.org>
59046
59047         * gnulib-tool (func_usage): Fix --import description. Document
59048         --update.
59049         (func_import): Create temporary file in a temporary directory, if
59050         --dry-run is specified. Silence errors from 'grep' when there are no
59051         m4 files in $m4dir.
59052         (func_create_testdir): Silence errors from 'grep' when there are no
59053         m4 files in $m4dir.
59054         Reported by Karl Berry <karl@freefriends.org>.
59055
59056 2006-04-20  Bruno Haible  <bruno@clisp.org>
59057
59058         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
59059         one argument, so that the code will be portable to Autoconf 2.60.
59060         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
59061         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59062         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
59063
59064 2006-04-19  Derek Price  <derek@ximbiot.com>
59065             Eric Blake  <ebb9@byu.net>
59066
59067         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
59068         rather than "/full/path.h".  Update comment to match.  Shorten &
59069         generalize m4_translit call via AS_TR_CPP.
59070
59071 2006-04-19  Derek Price  <derek@ximbiot.com>
59072             Eric Blake  <ebb9@byu.net>
59073
59074         * lib/inttypes.h: Correct grammar in comment.
59075
59076 2006-04-18  Derek Price  <derek@ximbiot.com>
59077             Paul Eggert  <eggert@cs.ucla.edu>
59078
59079         * modules/inttypes: New file.
59080         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
59081
59082 2006-04-18  Derek Price  <derek@ximbiot.com>
59083             Paul Eggert  <eggert@cs.ucla.edu>
59084
59085         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
59086         New files.
59087
59088 2006-04-18  Derek Price  <derek@ximbiot.com>
59089             Paul Eggert  <eggert@cs.ucla.edu>
59090
59091         * lib/inttypes.h: New file.
59092         * lib/strtoimax.c: Assume <inttypes.h>.
59093
59094 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
59095
59096         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
59097         isn't mounted.  Problem reported by Kir Kolyshkin.
59098
59099 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59100
59101         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
59102         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
59103         Derek R. Price.
59104         * lib/regex.h (RE_DUP_MAX): Update comment to match current
59105         implementation.
59106
59107 2006-04-12  Eric Blake  <ebb9@byu.net>
59108
59109         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
59110         is now done automatically by the corresponding Autoconf macro.
59111
59112 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
59113
59114         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
59115         time_r.h.
59116
59117 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59118
59119         Merge regex changes from libc, removing some of our
59120         POSIX-conformance changes that were rejected and redoing them in a
59121         less-intrusive way.
59122
59123         * lib/regcomp.c (re_compile_internal, init_dfa):
59124         Length arg is now size_t, not Idx.  All uses changed.
59125         (peek_token): Forward decl now says internal_function.
59126         (__re_error_msgid, __re_error_msgid_idx):
59127         Now static rather than extern with attribute_hidden.
59128         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
59129         For some reason libc prefers K&R style defns for external functions.
59130         (regerror) [!defined _LIBC]: Likewise.
59131         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
59132         (seek_collating_symbol_entry, lookup_collation_sequence_value):
59133         (build_range_exp, build_collating_symbol):
59134         Use K&R-style defn.
59135         (re_compile_fastmap): Use '\0' to memset, not 0.
59136         (utf8_sb_map): Make the calculations more obvious.
59137         (init_dfa, parse_bracket_exp, build_charclass_op):
59138         Call calloc and cast result, as glibc does.
59139         (init_word_char, fetch_token, peek_token, peek_token_bracket):
59140         (build_range_exp, build_collating_symbol):
59141         Now internal functions.
59142
59143         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
59144
59145         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
59146         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
59147         Don't depend on VMS; depend on __VMS instead, for POSIX
59148         namespace cleanness.
59149         (regoff_t): Define to ssize_t, not long int.
59150
59151         Remove the REG_ macros named below.  Instead, make the old names
59152         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
59153         __USE_GNU_REGEX.
59154         (REG_BACKSLASH_ESCAPE_IN_LISTS):
59155         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
59156         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
59157         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
59158         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
59159         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
59160         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
59161         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
59162         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
59163         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
59164         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
59165         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
59166         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
59167         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
59168         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
59169         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
59170         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
59171         (REG_NREGS):
59172         Remove.  All uses replaced by the old RE_* names.
59173         (RE_BACKSLASH_ESCAPE_IN_LISTS):
59174         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
59175         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
59176         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
59177         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
59178         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
59179         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
59180         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
59181         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
59182         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
59183         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
59184         Don't bother having these macros be independent of each others'
59185         values, since they no longer exist in the POSIX name space.
59186
59187         Rename the following member names back to their old names,
59188         unless !__USE_GNU_REGEX.  All uses changed back.
59189         (buffer): Renamed from re_buffer.
59190         (allocated): Renamed from re_allocated.
59191         (used): Renamed from re_used.
59192         (syntax): Renamed from re_syntax.
59193         (fastmap): Renamed from re_fastmap.
59194         (translate): Renamed from re_translate.
59195         (can_be_null): Renamed from re_can_be_null.
59196         (regs_allocated): Renamed from re_regs_allocated.
59197         (fastmap_accurate): Renamed from re_fastmap_accurate.
59198         (no_sub): Renamed from re_no_sub.
59199         (not_bol): Renamed from re_not_bol.
59200         (not_eol): Renamed from re_not_eol.
59201         (newline_anchor): Renamed from re_newline_anchor.
59202         (num_regs): Renamed from rm_num_regs.
59203         (start): Renamed from rm_start.
59204         (end): Renamed from rm_end.
59205
59206         (free_state): Move up a bit.
59207
59208         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
59209         #define to be empty.
59210         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
59211         when that is what is intended.
59212         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
59213         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
59214         (MAX): New macro.
59215         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
59216         All uses changed back to re_malloc, etc.  It's now the caller's
59217         responsibility to check for overflow; all callers changed.
59218         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
59219         (re_x2nrealloc): Remove.
59220         (free_state): Remove decl.
59221
59222         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
59223         (re_set_registers, re_exec):
59224         Use K&R-style defn.
59225
59226         2006-01-31  Roland McGrath  <roland@redhat.com>
59227
59228         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
59229         Reported by Mike Frysinger <vapier@gentoo.org>.
59230
59231         2006-01-15  Andreas Jaeger  <aj@suse.de>
59232
59233         [BZ #1950]
59234         * lib/regex_internal.c (re_string_reconstruct): Adjust for
59235         build_wcs_upper_buffer change.
59236         (build_wcs_upper_buffer): Change return type.
59237
59238         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
59239
59240         * lib/regex_internal.h: Include <stdint.h> if available.
59241
59242         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
59243
59244         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
59245
59246         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59247
59248         * lib/regcomp.c: Adjust for changed secondary hash function.
59249
59250         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
59251
59252         * lib/regex.h: Pretty printing.
59253         Clean up namespace a bit.
59254
59255         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
59256
59257         * lib/regexec.c (update_cur_sifted_state, check_arrival,
59258         check_arrival_add_next_nodes): Avoid using uninitialized variable.
59259
59260         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59261                     Ulrich Drepper  <drepper@redhat.com>
59262
59263         [BZ #1302]
59264         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
59265         changed.
59266         (bitset_word_t): Renamed from bitset_word.  All uses changed.
59267
59268         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
59269
59270         [BZ #281]
59271         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
59272         * lib/regcomp.c: Remove unnecessary uses of
59273         unsigned RE_TRANSLATE_TYPE.
59274         * lib/regex_internal.h: Likewise.
59275         * lib/regex_internal.c: Likewise.
59276         * lib/regexec.c: Likewise.
59277         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
59278
59279         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
59280
59281         * lib/regexec.c (find_recover_state): Remove unnecessary
59282         initialization.
59283         (transit_state_bkref): Make DFA a const pointer.
59284         (get_subexp): Likewise.
59285         (check_arrival): Likewise.
59286         (update_cur_sifted_state): Likewise.
59287         (re_search_internal): Likewise.
59288         (prune_impossible_nodes): Likewise.
59289         (acquire_init_state_context): Likewise.
59290         (proceed_next_node): Likewise.
59291         (set_regs): Likewise.
59292         (free_fail_stack_return): Likewise.
59293         (check_arrival_expand_ecl): Mark DFA parameter as const.
59294         (check_arrival_expand_ecl_sub): Likewise.
59295         (check_subexp_limits): Likewise.
59296         (sub_epsilon_src_nodes):  Likewise.
59297         (add_epsilon_src_nodes):  Likewise.
59298         (merge_state_array): Likewise.
59299         (update_regs): Likewise.
59300         (build_trtable): Likewise.
59301         (sift_states_backward): Mark MCTX parameter as const.
59302         (build_sifted_states): Likewise.
59303         (update_cur_sifted_state): Likewise.
59304         (sift_states_mkref): Likewise.
59305         (check_arrival_expand_ecl): Mark eclosure as const.
59306         (check_dst_limits_calc_pos_1): Likewise.
59307         * lib/regex_internal.h (re_match_context_t): Make dfa a const
59308         pointer.
59309
59310         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
59311
59312         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
59313         (transit_state_sb): Likewise.
59314         (transit_state_mb): Likewise.
59315         (sift_states_iter_mb): Likewise.
59316         (check_arrival_add_next_nodes): Likewise.
59317         (check_node_accept_bytes): Change first parameter to pointer-to-const.
59318         [_LIBC] (re_search_2_stub): Use mempcpy.
59319
59320         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
59321         mbrtowc for very simple UTF-8 case.
59322
59323         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
59324         a pointer-to-const.
59325         (re_acquire_state_context): Likewise.
59326         * lib/regex_internal.h: Adjust prototypes.
59327
59328         * lib/regex.c: Prevent using C++ compilers.
59329
59330         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
59331         (re_acquire_state_context): Likewise.
59332
59333 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59334
59335         * modules/regex (Depends-on): Add ssize_t.
59336
59337 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59338
59339         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
59340         translation table.
59341
59342 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59343
59344         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
59345
59346 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
59347             Bruno Haible  <bruno@clisp.org>
59348
59349         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
59350         <sys/types.h> and <inttypes.h>.
59351
59352 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59353
59354         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
59355         `__error_t_defined', so argp.h will not typedef the former.
59356
59357 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
59360         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
59361         glibc names.  Even if glibc is changed to conform to POSIX, the
59362         traditional names will be available anyway, since regex depends on
59363         the extensions module.  Also, fix a longstanding typo in the
59364         implementation of Spencer ERE test #75 from grep 2.3.  Problems
59365         reported by Emanuele Giaquinta.  Also, change sense of cached
59366         variable, so that the message makes sense.
59367
59368 2006-03-24  Simon Josefsson  <jas@extundo.com>
59369
59370         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
59371         including some doc fixes.
59372         (base64_encode_alloc): Fix +1 bug on allocation failures.
59373
59374 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59375
59376         * lib/base64.c (base64_encode): Do not read past end of array with
59377         unsanitized input on systems with CHAR_BIT > 8.
59378
59379 2006-03-24  Eric Blake  <ebb9@byu.net>
59380
59381         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
59382
59383 2006-03-22  Karl Berry  <karl@gnu.org>
59384
59385         * config/srclist.txt (*setenv.[ch]): get from coreutils.
59386         * config/srclistvars.sh (COREUTILS): new var.
59387
59388 2006-03-17  Jim Meyering  <jim@meyering.net>
59389
59390         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
59391         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
59392
59393 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59394
59395         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
59396         no longer needs it.  Instead, check that regoff_t is as least
59397         as wide as ptrdiff_t.
59398
59399         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
59400         so that our regex.h stays compatible with the installed regex.
59401         This is helpful for installers who configure --without-included-regex.
59402         Problem reported by Emanuele Giaquinta.
59403
59404 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
59407         Typedef to long int, not to off_, as POSIX will likely change
59408         in that direction.
59409
59410 2006-03-15  Eric Blake  <ebb9@byu.net>
59411
59412         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
59413
59414 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59415
59416         * lib/argp-help.c (validate_uparams): Fix typo
59417         * lib/argp-parse.c (argp_default_options): Consistently begin help
59418         messages with a lowercase letter.
59419
59420 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
59421
59422         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
59423         overrun buffers and shouldn't be used (much as gets shouldn't be
59424         used).
59425         * lib/time_r.c (asctime_r, ctime_r): Likewise.
59426
59427 2006-03-08  Simon Josefsson  <jas@extundo.com>
59428
59429         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
59430         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59431
59432 2006-03-08  Simon Josefsson  <jas@extundo.com>
59433
59434         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
59435         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59436
59437 2006-03-08  Simon Josefsson  <jas@extundo.com>
59438
59439         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
59440         signal that configure disabled the device.
59441
59442 2006-03-08  Simon Josefsson  <jas@extundo.com>
59443
59444         * build-aux/maint.mk: Fix refresh-po, to handle no translated
59445         languages.
59446
59447 2006-03-07  Simon Josefsson  <jas@extundo.com>
59448
59449         * modules/getopt (Depends-on): Add unistd.
59450
59451         * modules/unistd: New file.
59452
59453 2006-03-07  Simon Josefsson  <jas@extundo.com>
59454
59455         * modules/gc-random: New file.
59456
59457 2006-03-07  Simon Josefsson  <jas@extundo.com>
59458
59459         * m4/unistd_h.m4: New file.
59460
59461 2006-03-07  Simon Josefsson  <jas@extundo.com>
59462
59463         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
59464         test to be side-effect free by storing the result in the cache
59465         variable gl_cv_lib_readline, and moving the assignment of
59466         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
59467         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59468
59469 2006-03-07  Simon Josefsson  <jas@extundo.com>
59470
59471         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
59472         error on missing devices (the functions will return an error).
59473
59474         * m4/gc.m4: Move random stuff to gc-random.m4
59475
59476 2006-03-07  Simon Josefsson  <jas@extundo.com>
59477
59478         * lib/unistd_.h: New file.
59479
59480 2006-03-07  Simon Josefsson  <jas@extundo.com>
59481
59482         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
59483
59484 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59485
59486         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
59487         Problem reported by Juan Manuel Guerrero.
59488
59489 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59490
59491         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
59492         the unistd module.
59493         * lib/getlogin_r.c: Likewise.
59494         * lib/getlogin_r.h: Likewise.
59495         * lib/glob.c: Likewise.
59496         * lib/pagealign_alloc.c: Likewise.
59497         * lib/unistd_.h: Remove; no longer needed.
59498
59499 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59500
59501         * MODULES.html.sh (Support for systems lacking POSIX:2001):
59502         Add unistd.
59503         * modules/c-stack (Depends-on): Add unistd.
59504         * modules/getlogin_r: Likewise.
59505         * modules/glob: Likewise.
59506         * modules/pagealign_alloc: Likewise.
59507         * modules/unistd (Files): Remove lib/unistd_.h.
59508         (EXTRA_DIST): Remove.
59509         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
59510         need unistd_.h.
59511         (MOSTLYCLEANFILES): Remove unistd.h-t.
59512
59513 2006-03-03  Simon Josefsson  <jas@extundo.com>
59514
59515         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
59516
59517 2006-03-03  Simon Josefsson  <jas@extundo.com>
59518
59519         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
59520         libidn and bison.
59521
59522 2006-03-03  Simon Josefsson  <jas@extundo.com>
59523
59524         * build-aux/maint.mk: Add indent target.
59525
59526 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
59527
59528         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
59529         our replacement poll.h in any case, to avoid a differing
59530         declaration from a system header.  Seen on AIX.
59531
59532 2006-03-01  Simon Josefsson  <jas@extundo.com>
59533
59534         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
59535         <kasal@ucw.cz>.
59536
59537 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59538
59539         * modules/gettime (Depends-on): Add extensions module.
59540         * modules/nanosleep (Depends-on): Likewise.
59541         * modules/settime (Depends-on): Likewise.
59542
59543 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59544
59545         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
59546         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
59547         pedantically.
59548         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59549         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
59550
59551         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
59552         not "==".  Reported by Ralf Wildenhues.
59553
59554 2006-03-01  Karl Berry  <karl@gnu.org>
59555
59556         * doc/Copyright/request-*: new files, synced from gnuorg.
59557
59558 2006-03-01  Karl Berry  <karl@gnu.org>
59559
59560         * config/srclist.txt (Copyright/*): new entries.
59561
59562 2006-02-28  Simon Josefsson  <jas@extundo.com>
59563
59564         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
59565
59566 2006-02-27  Simon Josefsson  <jas@extundo.com>
59567
59568         * lib/base64.h: Indent #define's.  From Jim Meyering
59569         <jim@meyering.net>.
59570
59571 2006-02-27  Jim Meyering  <jim@meyering.net>
59572
59573         Revert the change of 2006-02-24, so these files can continue
59574         to be sync'd from gettext.
59575         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
59576         of `config.h'.
59577
59578 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59579
59580         * modules/intprops: New file.
59581         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59582         Add intprops.
59583         * modules/getloadavg (Files): Remove lib/intprops.h.
59584         (Depends-on): Add intprops.
59585         * modules/human: Likewise.
59586         * modules/inttostr: Likewise.
59587         * modules/openat: Likewise.
59588         * modules/sig2str: Likewise.
59589         * modules/userspec: Likewise.
59590         * modules/utimecmp: Likewise.
59591         * modules/xnanosleep: Likewise.
59592         * modules/xstrtol: Likewise.
59593
59594 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
59595
59596         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
59597         * modules/lock-tests (TESTS): Use $(EXEEXT).
59598         * modules/tls-tests: Likewise.
59599         * modules/argp-tests: Likewise.
59600         (check_PROGRAMS): New var, replacing...
59601         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
59602
59603 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59604
59605         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
59606         `config.h'.
59607
59608 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59609
59610         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
59611
59612 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59613
59614         Sync from coreutils.
59615         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
59616         gl_CHDIR_SAFER.
59617
59618 2006-02-22  Jim Meyering  <jim@meyering.net>
59619
59620         Sync from coreutils.
59621         * m4/chdir-safer.m4: New file.
59622
59623 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
59626         AT_FDCWD exceeds INT_MAX.
59627         * lib/openat.h (AT_FDCWD): Likewise.
59628
59629 2006-02-17  Eric Blake  <address@hidden>
59630
59631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
59632
59633 2006-02-16  Simon Josefsson  <jas@extundo.com>
59634
59635         * modules/getaddrinfo (Depends-on): Add sys_socket.
59636
59637 2006-02-15  Simon Josefsson  <jas@extundo.com>
59638
59639         * build-aux/maint.mk: Add dsyntax-check rule.
59640
59641 2006-02-15  Eric Blake  <ebb9@byu.net>
59642
59643         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
59644         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
59645         'present but cannot compile' warnings on cygwin.
59646         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
59647         use ws2tcpip.h if sys/socket.h works.
59648         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
59649         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
59650
59651 2006-02-14  Simon Josefsson  <jas@extundo.com>
59652
59653         * modules/maintainer-makefile (Files): Rename.
59654
59655         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
59656         and (the local) Makefile.cfg to maint-cfg.mk.
59657
59658         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
59659         to the latter.
59660
59661         * modules/maintainer-makefile: New module.
59662
59663         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
59664         severaly stripped to make it possible to build it up from scratch
59665         with reliable tests.
59666
59667         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
59668         fixes to permit overriding the default actions when configure and
59669         makefile are not available.
59670
59671 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59672
59673         Sync from coreutils.
59674         * modules/lstat (Depends-on): Don't depend on xalloc.
59675         (License): Change from GPL to LGPL, since this is now simply a
59676         replacement for a libc function.
59677
59678 2006-02-14  Jim Meyering  <jim@meyering.net>
59679
59680         Sync from coreutils.
59681
59682         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
59683         failure on deficient systems, and simplify gnulib lgpl dependencies.
59684         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
59685         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
59686
59687         * lib/xalloc-die.c: Remove unused definition of N_.
59688
59689 2006-02-14  Jim Meyering  <jim@meyering.net>
59690
59691         Sync from coreutils.
59692         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
59693         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
59694         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
59695         double-quote uses of that variable, to accommodate the rare case in
59696         which getmntent is available in none of the libraries checked.  This
59697         happens at least on FreeBSD 5.0.
59698
59699 2006-02-13  Simon Josefsson  <jas@extundo.com>
59700
59701         * gnulib-tool (Usage): Fix --import, from
59702         karl@freefriends.org (Karl Berry).
59703
59704 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59705
59706         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
59707
59708 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
59709
59710         * lib/argp-namefrob.h: Restore changes accidentally lost during the
59711         "autoupdate" on 2005-12-12.
59712
59713 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
59714
59715         * modules/closeout (Depends-on): Remove atexit.
59716
59717 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
59718
59719         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
59720         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
59721
59722 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59723
59724         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
59725         __EXTENSIONS__ if this causes compilation to fail.  Problem
59726         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
59727         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
59728
59729 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
59730
59731         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
59732         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
59733         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
59734         All uses changed.
59735
59736 2006-01-26  Simon Josefsson  <jas@extundo.com>
59737
59738         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
59739         prototype is visible on mingw32.
59740
59741         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
59742         for mingw32.
59743
59744         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
59745         mingw32).
59746
59747 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59748
59749         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
59750         attempt to open for write; this always fails, at least on POSIX
59751         hosts.  This reinstates the 2006-01-09 change, which was
59752         inadvertently removed.
59753
59754 2006-01-26  Bruno Haible  <bruno@clisp.org>
59755
59756         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
59757         Reported by Paul Eggert.
59758
59759 2006-01-26  Bruno Haible  <bruno@clisp.org>
59760             Paul Eggert  <eggert@cs.ucla.edu>
59761
59762         * lib/stdbool_.h (_Bool)
59763         [(! (defined __cplusplus || defined __BEOS__)
59764           && !defined __GNUC__
59765           && !(defined __HP_cc || defined __xlc__
59766                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
59767                || defined __sgi))]:
59768         #define to signed char in these cases too; this simplifies
59769         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
59770         etc., separately) and makes it more conservative.
59771
59772 2006-01-25  Simon Josefsson  <jas@extundo.com>
59773
59774         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
59775         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
59776         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
59777
59778 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59779
59780         * lib/argp-namefrob.h: Bugfix. Remove stray #
59781
59782 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59783
59784         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
59785         so that we test the test.
59786         Check for yet another HP-UX cc bug involving *bool |= bool.
59787
59788 2006-01-25  Karl Berry  <karl@gnu.org>
59789
59790         * config/srclist.txt (vasnprintf.c): sync lost.
59791
59792 2006-01-25  Jim Meyering  <jim@meyering.net>
59793
59794         Sync from the stable (b5) branch of coreutils:
59795
59796         * lib/fts.c (fts_children): Don't let close() clobber errno from
59797         failed fchdir().
59798
59799         * lib/fts.c (fts_stat): When following a symlink-to-directory,
59800         don't necessarily interpret stat-fails+lstat-succeeds as indicating
59801         a dangling symlink.  That can also happen at least for ELOOP.
59802         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
59803         FYI, this bug predates the inclusion of fts.c in coreutils.
59804
59805         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
59806         in their own block, so pre-c99 compilers don't object.
59807
59808         Avoid the double-free (first in fts_read, second in fts_close) that
59809         would occur when an `active' directory is made inaccessible (e.g.,
59810         via chmod a-x) during a traversal.
59811         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59812         before returning.  Reproduce this failure by
59813         mkdir -p a/b; cd a; chmod a-x . b
59814         Reported by Stavros Passas.
59815
59816 2006-01-25  Jim Meyering  <jim@meyering.net>
59817
59818         * lib/fileblocks.c: Remove more useless parentheses.
59819         * lib/readutmp.h: Likewise.
59820
59821 2006-01-25  Bruno Haible  <bruno@clisp.org>
59822
59823         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
59824         warnings.
59825         Reported by Paul Eggert.
59826
59827 2006-01-25  Bruno Haible  <bruno@clisp.org>
59828
59829         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
59830         rid of a trap command. For Solaris sh.
59831         Reported by Mark D. Baushke <mdb@gnu.org>.
59832
59833 2006-01-24  Simon Josefsson  <jas@extundo.com>
59834
59835         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
59836         Bruno.
59837
59838 2006-01-24  Karl Berry  <karl@gnu.org>
59839
59840         * config/srclist.txt (argp-namefrob.h): sync lost.
59841
59842 2006-01-24  Jim Meyering  <jim@meyering.net>
59843
59844         * modules/openat (Files): Add lib/intprops.h.
59845         From Mark D. Baushke.
59846
59847 2006-01-24  Jim Meyering  <jim@meyering.net>
59848
59849         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
59850         Reported by Mark D. Baushke.
59851
59852 2006-01-24  Jim Meyering  <jim@meyering.net>
59853
59854         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
59855
59856 2006-01-24  Bruno Haible  <bruno@clisp.org>
59857
59858         * modules/strnlen (Maintainer): Change from glibc to all.
59859
59860 2006-01-24  Bruno Haible  <bruno@clisp.org>
59861
59862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
59863         Patch by Paul Eggert.
59864
59865 2006-01-24  Bruno Haible  <bruno@clisp.org>
59866
59867         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
59868         already has it.
59869         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
59870         2005-11-26.
59871
59872         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
59873         'signed char' to avoid problems with the built-in _Bool type.
59874         Reported by Paul Eggert on 2005-11-26.
59875
59876 2006-01-24  Bruno Haible  <bruno@clisp.org>
59877
59878         * gnulib-tool (func_import): Avoid constructing complicated sed
59879         expressions inside backquote.
59880         Report and solution by Mark D. Baushke <mdb@gnu.org>.
59881
59882 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
59883
59884         These changes imported from libc.
59885         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
59886         test and two separate function calls.
59887         * lib/strndup.c (__strndup): Add libc_hidden_def.
59888
59889 2006-01-23  Simon Josefsson  <jas@extundo.com>
59890
59891         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
59892         Remove the test_*_SOURCES variable: automake infers it by default.
59893         * modules/tls-tests: Likewise.
59894
59895 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59896
59897         Work around porting bugs reported by Dieter in
59898         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
59899         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
59900         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
59901         Include "getopt.h" first, to check interface.
59902         (getenv): Declare only if defined HAVE_DECL_GETENV &&
59903         !HAVE_DECL_GETENV.
59904         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
59905         (__strndup): Revert to K&R-style function dfns, the glibc style.
59906         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
59907         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
59908         Include strnlen.h first, to get prototype properly.
59909         (strnlen): Renamed from __strnlen.
59910         Remove weak alias.
59911
59912 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59913
59914         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
59915
59916 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59917
59918         * config/srclist.txt: Adjust to reflect glibc reorganization.
59919         This affects only comments.
59920
59921 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59922
59923          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
59924          Reported by Bruce Korb <bkorb@gnu.org>.
59925
59926 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
59929         to pacify gcc -Wswitch-default.
59930
59931 2006-01-22  Bruno Haible  <bruno@clisp.org>
59932
59933         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
59934         temporary buffer for sprintf, take into account the precision also
59935         for 'd', 'i', 'u', 'o', 'x', 'X'.
59936
59937 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
59938
59939         * modules/argp-tests: New module
59940         * tests/test-argp.c: New file
59941         * tests/test-argp-2.sh: New file
59942
59943 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
59944
59945         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
59946         (__argp_base_name): Removed
59947         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
59948         typo.
59949         (__argp_base_name): Provide macro definition or extern declaration
59950         depending on the configuration
59951
59952 2006-01-20  Simon Josefsson  <jas@extundo.com>
59953
59954         * modules/inet_ntop (Depends-on): Depend on sys_socket.
59955
59956 2006-01-20  Simon Josefsson  <jas@extundo.com>
59957
59958         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
59959
59960 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59961
59962         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
59963         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
59964         Suggested by Bruno Haible.
59965
59966 2006-01-20  Karl Berry  <karl@gnu.org>
59967
59968         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
59969         until changes propagate, I guess.
59970
59971 2006-01-19  Simon Josefsson  <jas@extundo.com>
59972
59973         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
59974
59975 2006-01-19  Simon Josefsson  <jas@extundo.com>
59976
59977         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
59978
59979 2006-01-19  Simon Josefsson  <jas@extundo.com>
59980
59981         * gnulib-tool: Set check_PROGRAMS.
59982
59983         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
59984         modules/des-tests, modules/gc-arcfour-tests,
59985         modules/gc-arctwo-tests, modules/gc-des-tests,
59986         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
59987         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
59988         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
59989         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
59990         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
59991         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
59992         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
59993         test_*_SOURCES.
59994
59995 2006-01-18  Simon Josefsson  <jas@extundo.com>
59996
59997         * modules/socklen (Depends-on): Depend on sys_socket.
59998
59999 2006-01-18  Simon Josefsson  <jas@extundo.com>
60000
60001         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60002         modules/des-tests, modules/gc-arcfour-tests,
60003         modules/gc-arctwo-tests, modules/gc-des-tests,
60004         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60005         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60006         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60007         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60008         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60009         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
60010         $(EXEEXT) to automake TESTS variable, for mingw32.
60011
60012 2006-01-17  Simon Josefsson  <jas@extundo.com>
60013
60014         * modules/socklen (Include): Need sys/socket.h.
60015
60016 2006-01-17  Bruno Haible  <bruno@clisp.org>
60017
60018         * modules/ssize_t (Include): Add <sys/types.h>.
60019
60020 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
60021
60022         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
60023         it's not portable and it doesn't work with cross-compiles.
60024         Problem reported by Bruno Haible.  Fix missing-$ typo in
60025         'test "gl_cv_ignore_unused_libraries" ...' that prevented
60026         -zignore from being used with Sun's C compiler.
60027
60028 2006-01-12  Simon Josefsson  <jas@extundo.com>
60029
60030         * lib/base64.c: Fix warning, reported by Bruno Haible
60031         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
60032
60033 2006-01-12  Bruno Haible  <bruno@clisp.org>
60034
60035         * modules/ldd: New file.
60036         * build-aux/ldd.sh.in: New file.
60037         * MODULES.html.sh (Support for building libraries and executables): Add
60038         ldd.
60039
60040 2006-01-12  Bruno Haible  <bruno@clisp.org>
60041
60042         * m4/ldd.m4: New file.
60043
60044 2006-01-12  Bruno Haible  <bruno@clisp.org>
60045
60046         * gnulib-tool (func_import, func_create_testdir): Don't go into an
60047         endless loop while replacing $auxdir with build-aux.
60048
60049 2006-01-11  Simon Josefsson  <jas@extundo.com>
60050
60051         * lib/stdint_.h (SIZE_MAX): Add missing (.
60052
60053 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60054
60055         Sync from coreutils.
60056         * lib/md5.c: Fix commentary typos.
60057         (alignof, UNALIGNED_P): No need for a GCC-specific version.
60058         * lib/md5.h (__attribute__): Remove; unused.
60059         * lib/sha1.c: Fix commentary to match md5 better.
60060         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
60061         so that we don't need to worry about alignment.  All uses changed.
60062         This merges the 2005-10-28 md5 change into sha1.
60063
60064 2006-01-11  Jim Meyering  <jim@meyering.net>
60065
60066         Sync from coreutils.
60067         * lib/md5.c (OP): Fix spacing.
60068
60069 2006-01-11  Bruno Haible  <bruno@clisp.org>
60070
60071         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60072         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
60073         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
60074
60075 2006-01-11  Bruno Haible  <bruno@clisp.org>
60076
60077         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60078         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
60079         the "early" section as well.
60080
60081 2006-01-11  Bruno Haible  <bruno@clisp.org>
60082
60083         Avoid "ar: no archive members specified" error on MacOS X.
60084         * gnulib-tool (func_modules_add_dummy): New function.
60085         (func_import, func_create_testdir): Invoke it.
60086
60087 2006-01-11  Bruno Haible  <bruno@clisp.org>
60088
60089         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
60090         with $auxdir in AC_CONFIG_FILES statements.
60091
60092 2006-01-11  Bruno Haible  <bruno@clisp.org>
60093
60094         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60095         Initialize also noinst_HEADERS to empty.
60096
60097 2006-01-11  Bruno Haible  <bruno@clisp.org>
60098
60099         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
60100         variables.
60101         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
60102         autoreconf.
60103
60104 2006-01-11  Bruno Haible  <bruno@clisp.org>
60105
60106         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
60107         overridable by the user.
60108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60109
60110 2006-01-10  Simon Josefsson  <jas@extundo.com>
60111
60112         * modules/sys_socket: New file.
60113
60114 2006-01-10  Simon Josefsson  <jas@extundo.com>
60115
60116         * m4/sys_socket_h.m4: New file.
60117
60118 2006-01-10  Simon Josefsson  <jas@extundo.com>
60119
60120         * lib/socket_.h: New file.
60121
60122 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60123
60124         * modules/readutmp (Maintainer): Add myself.
60125
60126 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60127
60128         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
60129         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
60130         People who are still concerned with buggy memcmp implementations
60131         can invoke gl_FUNC_MEMCMP themselves.
60132
60133 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60134
60135         * lib/regex_internal.h (BITSET_WORD_BITS):
60136         Work around a bug in 64-bit PGC (before version 6.1-2), where the
60137         preprocessor mishandles large unsigned values as if they were signed.
60138         Problem reported by Claudio Fontana in
60139         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
60140
60141 2006-01-10  Jim Meyering  <jim@meyering.net>
60142
60143         Avoid the double-free (first in fts_read, second in fts_close) that
60144         would occur when an `active' directory is made inaccessible (e.g.,
60145         via chmod a-x) during a traversal.
60146         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60147         before returning.  Reproduce this failure by
60148         mkdir -p a/b; cd a; chmod a-x . b
60149         Reported by Stavros Passas.
60150
60151         Sync from coreutils.
60152         * lib/sha1.c: Tweak grammar in a comment.
60153
60154 2006-01-10  Jim Meyering  <jim@meyering.net>
60155
60156         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
60157         Patch by Joerg Sonnenberger.
60158
60159 2006-01-10  Bruno Haible  <bruno@clisp.org>
60160
60161         * modules/readutmp: Depend on module free.
60162         * modules/strtok_r: Depend on module restrict.
60163
60164 2006-01-10  Bruno Haible  <bruno@clisp.org>
60165
60166         * modules/gettext (configure.ac): Add an invocation of
60167         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
60168
60169 2006-01-10  Bruno Haible  <bruno@clisp.org>
60170
60171         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
60172         Reported by Werner Lemberg <wl@gnu.org>.
60173
60174 2006-01-10  Bruno Haible  <bruno@clisp.org>
60175
60176         * lib/localcharset.c: Update from GNU gettext.
60177
60178 2006-01-10  Bruno Haible  <bruno@clisp.org>
60179
60180         * lib/argp.h (__const): Remove macro. Use const instead.
60181         * lib/argp-fmtstream.h (__const): Likewise.
60182         * lib/glob_.h (__const): Remove macro.
60183         * lib/glob-libc.h: Use const instead of __const.
60184
60185 2006-01-10  Bruno Haible  <bruno@clisp.org>
60186
60187         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
60188         variable.
60189         Needed to avoid an automake error regarding the 'gettext' module.
60190
60191 2006-01-09  Simon Josefsson  <jas@extundo.com>
60192
60193         * modules/inet_ntop (Depends-on): Add restrict.
60194
60195 2006-01-09  Simon Josefsson  <jas@extundo.com>
60196
60197         * modules/gc-rijndael-tests (License): Put under LGPL.
60198
60199         * modules/gc-des-tests (License): Likewise.
60200
60201         * modules/gc-arcfour-tests (License): Likewise.
60202
60203         * modules/gc-arctwo-tests (License): Likewise.
60204
60205         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
60206
60207         * modules/gc-hmac-sha1-tests (Files): Likewise.
60208
60209         * modules/gc-hmac-md5-tests (License): Likewise.
60210
60211         * modules/gc-sha1-tests (License): Likewise.
60212
60213         * modules/gc-md5-tests (License): Likewise.
60214
60215         * modules/gc-md4-tests (License): Likewise.
60216
60217         * modules/gc-md2-tests (License): Likewise.
60218
60219         * modules/gc-tests (License): Likewise.
60220
60221         * modules/des-tests (License): Likewise.
60222
60223         * modules/md4-tests (License): Likewise.
60224
60225         * modules/md2-tests (License): Likewise.
60226
60227 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60228
60229         Sync from coreutils:
60230
60231         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
60232         * modules/lib-ignore: New file.
60233         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
60234         chdir-safer.m4, lchmod.m4.
60235         * modules/openat: Add mkdirat.c, openat-priv.h.
60236
60237 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60238
60239         Sync from coreutils.
60240         * m4/lib-ignore.m4: New file.
60241         * m4/lchmod.m4: New file.
60242
60243 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60244
60245         Sync from coreutils.
60246         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
60247         for write access: POSIX says that must fail.
60248         * lib/fts.c (diropen): Likewise.
60249         * lib/save-cwd.c (save_cwd): Likewise.
60250         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
60251         well, for minor improvements on hosts that lack O_DIRECTORY.
60252         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
60253         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
60254         Fall back on chown if open failed with EACCES.
60255
60256         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
60257         Report an error at compile-time if only a 1-second nominal clock
60258         resolution is found.
60259
60260         * lib/lchmod.h: New file.
60261         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
60262         (make_dir_parents): Use lchown rather than chown, and
60263         lchmod rather than chmod.
60264
60265         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
60266         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
60267         "proc" reported by n0dalus.
60268
60269         * lib/mountlist.c: Include <limits.h>.
60270         (dev_from_mount_options)
60271         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
60272         New function.  It no longer assumes "dev=" has the System V meaning
60273         on Linux (since it doesn't).  It also parses "dev=" more carefully.
60274         (read_file_system_list)
60275         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
60276         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
60277         dev= in that case.
60278
60279         * lib/posixtm.h (PDS_PRE_2000): New macro.
60280         * lib/posixtm.c (year): Arg is now syntax_bits rather than
60281         allow_century.  All usages changed.  Reject dates outside the range
60282         1969-1999 if PDS_PRE_2000 is used.
60283
60284 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         Sync from coreutils.
60287         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
60288         (Time of day items): Mention the possibility of leap seconds.
60289         Problem reported by Dr. David Alan Gilbert.
60290
60291 2006-01-09  Jim Meyering  <jim@meyering.net>
60292
60293         Sync from coreutils.
60294
60295         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
60296
60297         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
60298
60299         * lib/modechange.c (mode_compile): Reject an invalid mode string
60300         that starts with an octal digit.  From Andreas Gruenbacher.
60301
60302         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
60303         and dup to open_safer and dup_safer, respectively.
60304         (openat_permissive): Fix typo in comment.
60305
60306         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
60307         "gettext.h"; either no longer needed or are guaranteed by openat.h.
60308         (_): Remove; no longer needed.
60309         (openat): Renamed from rpl_openat; no need for rpl_openat
60310         since openat.h renames openat for us.
60311         Replace most of the body with a call to openat_permissive,
60312         to avoid duplicate code.
60313         Port to (probably hypothetical) environments were mode_t is
60314         wider than int.
60315         (openat_permissive): Require mode arg, so that we can check
60316         types better.  Put it just after flags.  Change cwd failure
60317         indicator from pointer-to-bool to pointer-to-errno-value.
60318         All callers changed.
60319         Invoke openat_save_fail and/or openat_restore_fail if
60320         cwd_errno is null, so that openat can call us.
60321         (openat_permissive, fdopendir, fstatat, unlinkat):
60322         Simplify errno handling to avoid some duplicate code,
60323         as it's OK to set errno on success.
60324         * lib/openat.h: Revamp code so that function macros depend on
60325         __OPENAT_PREFIX only, not also on AT_FDCWD.
60326         (openat_ro): Remove.  Caller changed to use openat_permissive.
60327         (openat_permissive): Now a macro, if not a function.
60328         (openat_restore_fail, openat_save_fail): Now always functions,
60329         since mkdirat needs them even if __OPENAT_PREFIX is defined.
60330
60331         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
60332         and openat.c.
60333         * lib/mkdirat.c: Include openat-priv.h.
60334         Remove definitions of macros defined therein.
60335         * lib/openat.c: Likewise.
60336
60337         * lib/mkdirat.c (mkdirat): New file and function.
60338         * lib/openat.h (mkdirat): Declare.
60339
60340         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
60341
60342         * lib/openat.h (openat_permissive): Declare.
60343         (openat_ro): Define.
60344
60345         * lib/openat.c (EXPECTED_ERRNO): New macro.
60346         (openat_permissive): New function -- used in remove.c rewrite.
60347         (all functions): Set errno just before returning, only if there
60348         was an actual failure.
60349         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
60350
60351         Emulate openat-family functions using Linux's procfs, if possible.
60352         Idea and some code based on Ulrich Drepper's glibc changes.
60353
60354         * lib/openat.c: (BUILD_PROC_NAME): New macro.
60355         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
60356         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
60357         before falling back on save_cwd and restore_cwd.
60358         (fdopendir, fstatat, unlinkat): Likewise.
60359
60360         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
60361         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
60362
60363         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
60364         as second argument to va_arg.  Otherwise, some versions of gcc
60365         warn that `if this code is reached, the program will abort'.
60366
60367 2006-01-09  Jim Meyering  <jim@meyering.net>
60368
60369         Sync from coreutils.
60370         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
60371         Require openat-priv.h.
60372
60373 2006-01-09  Bruno Haible  <bruno@clisp.org>
60374
60375         * modules/strnlen (Include): Use strnlen.h.
60376
60377 2006-01-09  Bruno Haible  <bruno@clisp.org>
60378
60379         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
60380
60381 2006-01-09  Bruno Haible  <bruno@clisp.org>
60382
60383         * lib/sysexit_.h (EX_OK): New macro.
60384         Suggested by Martin Lambers <marlam@marlam.de>.
60385
60386 2006-01-09  Bruno Haible  <bruno@clisp.org>
60387
60388         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
60389         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
60390
60391 2006-01-09  Bruno Haible  <bruno@clisp.org>
60392
60393         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
60394         numbers.
60395
60396 2006-01-09  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
60399         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
60400         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
60401         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
60402
60403 2006-01-09  Bruno Haible  <bruno@clisp.org>
60404
60405         * build-aux/javacomp.sh.in: New file, moved from lib/.
60406         * modules/javacomp-script (Files): Update.
60407         (configure.ac): Add AC_CONFIG_FILES invocation.
60408         (EXTRA_DIST): Remove variable.
60409
60410         * build-aux/javaexec.sh.in: New file, moved from lib/.
60411         * modules/javaexec (Files): Update.
60412         (configure.ac): Add AC_CONFIG_FILES invocation.
60413         (EXTRA_DIST): Remove javaexec.sh.in.
60414
60415         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
60416         * modules/csharpcomp-script (Files): Update.
60417         (configure.ac): Add AC_CONFIG_FILES invocation.
60418         (EXTRA_DIST): Remove variable.
60419
60420         * build-aux/csharpexec.sh.in: New file, moved from lib/.
60421         * modules/csharpexec (Files): Update.
60422         (configure.ac): Add AC_CONFIG_FILES invocation.
60423         (EXTRA_DIST): Remove csharpexec.sh.in.
60424
60425 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60426
60427         Sync from coreutils.
60428
60429         Add POSIX ACL support
60430         * lib/acl.h (copy_acl, set_acl): Add declarations.
60431         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
60432         systems other than Linux.
60433         (chmod_or_fchmod): New function: use fchmod when possible,
60434         and chmod otherwise.
60435         (file_has_acl): Add a POSIX ACL implementation, with a
60436         Linux-specific subcase.
60437         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
60438         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
60439         acls are unsupported.
60440         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
60441         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
60442         are unsupported.
60443
60444 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60445
60446         Sync from coreutils.
60447         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
60448
60449 2006-01-07  Bruno Haible  <bruno@clisp.org>
60450
60451         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
60452         gl_EARLY.
60453
60454 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60455
60456         * lib/strftime.c (tzname): Don't declare if it is already #defined.
60457         Problem reported for Mingw by Mark Junker.
60458
60459 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60460
60461         * README: Gnulib normally doesn't generate a tarball.
60462
60463 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
60464
60465         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
60466         long int, not int, for nanosecond counts, so that people who are
60467         used to POSIX struct timespec won't be surprised.  Reported by Jim
60468         Meyering.
60469
60470 2005-12-28  Bruno Haible  <bruno@clisp.org>
60471
60472         * build-aux/config.rpath: Update from GNU gettext.
60473
60474 2005-12-16  Jim Meyering  <jim@meyering.net>
60475
60476         * modules/fprintftime: New module.
60477         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
60478
60479 2005-12-16  Jim Meyering  <jim@meyering.net>
60480
60481         * m4/fprintftime.m4: New file.
60482
60483 2005-12-16  Jim Meyering  <jim@meyering.net>
60484
60485         * lib/fprintftime.c, lib/fprintftime.h: New files.
60486
60487 2005-12-15  Simon Josefsson  <jas@extundo.com>
60488
60489         * modules/socklen (configure.ac): Fix M4 macro name, to align with
60490         new m4/socklen.m4.
60491
60492 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60493
60494         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
60495         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
60496
60497 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60498
60499         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
60500         * lib/argp-help.c (fill_in_uparams): Check if the constructed
60501         struct uparams is valid. Fall back to the default values if it is
60502         not.
60503
60504 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60505
60506         * modules/argp (Files): Add argp-pin.c
60507         (Depends-on): dirname
60508         (lib_SOURCES): Add argp-pin.c
60509
60510 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60511
60512         * m4/argp.m4:  Check if program_invocation_name and
60513         program_invocation_short_name are declared and define appropriate
60514         macros if they are not.
60515
60516 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60517
60518         * lib/argp-help.c (__argp_base_name): New function
60519         (__argp_short_program_name): Rewrite using __argp_base_name
60520         * lib/argp-namefrob.h: Define program_invocation_name and
60521         program_invocation_short_name if requested
60522         (__argp_base_name): Add prototype
60523         * lib/argp-parse.c (argp_def): Use gettext wrappers
60524         (argp_default_parser): Use __argp_base_name
60525         * lib/argp-pin.c: New file. Defines program_invocation_name and
60526         program_invocation_short_name on systems that lack them.
60527
60528 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60529
60530         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
60531         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60532         porting problem reported by Georg Schwarz in
60533         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60534
60535 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60536
60537         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
60538         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60539         porting problem reported by Georg Schwarz in
60540         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60541
60542 2005-12-05  Bruno Haible  <bruno@clisp.org>
60543
60544         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
60545         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
60546         Reported by Mark Junker <mjscod@gmx.de>.
60547
60548 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
60549
60550         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
60551         Use implementation from Albert Chin, with some
60552         comments/corrections by Stepan Kasal and myself.
60553
60554 2005-12-02  Bruno Haible  <bruno@clisp.org>
60555
60556         * gnulib-tool (func_import): Accept GPLed build tool modules when
60557         --lgpl is given.
60558         * modules/csharpcomp-script: New file.
60559         * modules/csharpcomp: Depend on it.
60560         * modules/javacomp-script: New file.
60561         * modules/javacomp: Depend on it.
60562         Suggested by Simon Josefsson.
60563
60564 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60565
60566         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
60567         statement, to work around an HP-UX 10.20 compiler bug reported by
60568         Peter O'Gorman.
60569
60570 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60571
60572         * modules/savedir (Depends-on): Add openat.
60573
60574 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60575
60576         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
60577         (uintmax_t) [defined uintmax_t]: Do not declare.
60578         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
60579         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
60580         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
60581         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
60582         sake of portability to weird hosts that C allows (though we don't
60583         know of any practical examples).
60584
60585         * lib/savedir.h (fdsavedir): New decl.
60586         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
60587         contains most of the former guts of savedir.
60588         (savedir): Use savedirstream.
60589         Include "openat.h".
60590
60591 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60592
60593         * modules/obstack (Files): Add m4/ulonglong.m4.
60594         Problem reported by Davide Angelocola.
60595
60596 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60597
60598         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
60599         coreutils no longer futzes with rounding modes.
60600
60601 2005-11-14  Jim Meyering  <jim@meyering.net>
60602
60603         * lib/mkstemp-safer.c: Include <config.h>, required for possible
60604         replacement of mkstemp.
60605
60606 2005-11-10  Simon Josefsson  <jas@extundo.com>
60607
60608         * lib/readline.c: Remove EOL.
60609
60610 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         * modules/gethrxtime (Depends-on): Add gettime.
60613
60614 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
60617         or gettimeofday; no longer needed.
60618
60619 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60620
60621         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
60622         time business.
60623         (gethrxtime) [! (HAVE_NANOUPTIME
60624         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
60625         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
60626         our own approximation.
60627
60628 2005-11-08  Eric Blake  <ebb9@byu.net>
60629
60630         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60631
60632 2005-11-08  Eric Blake  <ebb9@byu.net>
60633
60634         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60635
60636 2005-11-04  Bruno Haible  <bruno@clisp.org>
60637
60638         * gnulib-tool: Implement --update mode.
60639
60640 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60641
60642         Fix porting problem reported by Theodoros V. Kalamatianos.
60643         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
60644         Don't assume that futimes failing means we must fail.
60645
60646 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60647
60648         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
60649         variables to suggest the intended function of the PATH_MAX check.
60650
60651 2005-10-30  Kean Johnston  <jkj@sco.com>
60652
60653         Trivial changes to support SCO systems.
60654         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
60655         as PATH_MAX.
60656         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
60657         where __ptr is null when no I/O is pending.
60658
60659 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60660
60661         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
60662         leave errno alone.  Problem reported by Dmitry V. Levin.
60663
60664 2005-10-28  Simon Josefsson  <jas@extundo.com>
60665
60666         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
60667         Test more.
60668
60669         * tests/test-gc-md2.c, tests/test-md2.c: New files.
60670
60671         * modules/md2, modules/md2-tests: New files.
60672
60673 2005-10-28  Simon Josefsson  <jas@extundo.com>
60674
60675         * m4/inet_ntop.m4: More tests.
60676
60677         * m4/gc-md2.m4, md2.m4: New file.
60678
60679 2005-10-28  Simon Josefsson  <jas@extundo.com>
60680
60681         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
60682         "restrict" keywords, as per POSIX.  Protect the function
60683         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
60684         Don't use K&R prototypes.  Check the sprintf return values.
60685         Re-define EAFNOSUPPORT if not present.  Indent.
60686
60687         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
60688         suggested by Bruno Haible <bruno@clisp.org>.
60689
60690         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
60691
60692         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
60693
60694         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
60695         libgcrypt).
60696
60697         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
60698
60699         * lib/md2.h, lib/md2.c: New files.
60700
60701 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
60702
60703         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
60704         errno alone.  Problem reported by Frederic Jolliton.
60705
60706 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60707
60708         * modules/verify (License): Change from GPL to LGPL.  This is a
60709         tiny module and there are apparently near-equivalents that are
60710         under the BSD license.
60711
60712 2005-10-24  Simon Josefsson  <jas@extundo.com>
60713
60714         * modules/sha1: Relicense to LGPL.
60715
60716 2005-10-24  Simon Josefsson  <jas@extundo.com>
60717
60718         * lib/md4.h: Shrink buffer size, now that we changed the type.
60719
60720 2005-10-23  Simon Josefsson  <jas@extundo.com>
60721
60722         * gnulib-tool (func_import): Fix --tests-base.
60723
60724 2005-10-22  Simon Josefsson  <jas@extundo.com>
60725
60726         * modules/arcfour (Depends-on): Need stdint.
60727
60728 2005-10-22  Simon Josefsson  <jas@extundo.com>
60729
60730         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
60731         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
60732
60733 2005-10-22  Simon Josefsson  <jas@extundo.com>
60734
60735         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
60736         suggested by Bruno Haible <bruno@clisp.org>.
60737
60738 2005-10-22  Simon Josefsson  <jas@extundo.com>
60739
60740         * lib/crc.h: Include stddef.h, for size_t.
60741
60742 2005-10-22  Simon Josefsson  <jas@extundo.com>
60743
60744         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
60745         arcfour_context struct (simplify test vector testing in GNU
60746         Shishi).
60747
60748 2005-10-21  Simon Josefsson  <jas@extundo.com>
60749
60750         * modules/des, modules/des-tests: New files.
60751
60752         * modules/gc-des, modules/gc-des-tests: New files.
60753
60754         * tests/test-des.c, tests/test-gc-des.c: New file.
60755
60756 2005-10-21  Simon Josefsson  <jas@extundo.com>
60757
60758         * modules/arctwo, modules/arctwo-tests: New files.
60759
60760         * tests/test-arctwo.c: New file.
60761
60762         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
60763
60764         * tests/test-gc-arctwo.c: New file.
60765
60766 2005-10-21  Simon Josefsson  <jas@extundo.com>
60767
60768         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
60769         Bruno Haible <bruno@clisp.org>.
60770
60771         * m4/gc-des.m4: New file.
60772
60773 2005-10-21  Simon Josefsson  <jas@extundo.com>
60774
60775         * m4/arctwo.m4: New file.
60776
60777         * m4/gc-arctwo.m4: New file.
60778
60779 2005-10-21  Simon Josefsson  <jas@extundo.com>
60780
60781         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
60782         block.
60783
60784 2005-10-21  Simon Josefsson  <jas@extundo.com>
60785
60786         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
60787         <bruno@clisp.org>.
60788
60789         * lib/hmac-sha1.c (hmac_sha1): Likewise.
60790
60791         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
60792         Bruno Haible <bruno@clisp.org>.
60793
60794         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
60795         <bruno@clisp.org>.
60796
60797 2005-10-21  Simon Josefsson  <jas@extundo.com>
60798
60799         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
60800
60801 2005-10-21  Simon Josefsson  <jas@extundo.com>
60802
60803         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
60804
60805 2005-10-21  Simon Josefsson  <jas@extundo.com>
60806
60807         * lib/des.h, lib/des.c: New files.
60808
60809         * lib/gc-gnulib.c: Support DES.c
60810
60811 2005-10-21  Simon Josefsson  <jas@extundo.com>
60812
60813         * lib/arctwo.h, lib/arctwo.c: New files.
60814
60815         * lib/gc-gnulib.c: Support ARCTWO.
60816
60817 2005-10-21  Simon Josefsson  <jas@extundo.com>
60818
60819         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
60820         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60821
60822 2005-10-21  Simon Josefsson  <jas@extundo.com>
60823
60824         * gnulib-tool (func_import, func_create_testdir): Define automake
60825         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
60826         Makefile.am snippet),
60827         suggested by Bruno Haible <bruno@clisp.org>.
60828
60829         * modules/gc (Makefile.am): Use it.
60830
60831 2005-10-21  Bruno Haible  <bruno@clisp.org>
60832
60833         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
60834         patch.
60835
60836 2005-10-19  Simon Josefsson  <jas@extundo.com>
60837
60838         * tests/test-gc-rijndael.c: New file.
60839
60840         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
60841
60842 2005-10-19  Simon Josefsson  <jas@extundo.com>
60843
60844         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
60845         interface too.
60846
60847 2005-10-19  Simon Josefsson  <jas@extundo.com>
60848
60849         * tests/test-gc-arcfour.c: New file.
60850
60851         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
60852
60853 2005-10-19  Simon Josefsson  <jas@extundo.com>
60854
60855         * modules/gc-md4, modules/gc-md4-tests: New file.
60856
60857         * tests/test-gc-md4.c: New file.
60858
60859 2005-10-19  Simon Josefsson  <jas@extundo.com>
60860
60861         * m4/gc-md4.m4: New file.
60862
60863 2005-10-19  Simon Josefsson  <jas@extundo.com>
60864
60865         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
60866         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
60867         <kasal@ucw.cz>.
60868
60869 2005-10-19  Simon Josefsson  <jas@extundo.com>
60870
60871         * m4/gc-arcfour.m4: New file.
60872
60873         * m4/gc-rijndael.m4: New file.
60874
60875 2005-10-19  Simon Josefsson  <jas@extundo.com>
60876
60877         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
60878
60879 2005-10-19  Simon Josefsson  <jas@extundo.com>
60880
60881         * lib/gc-gnulib.c: Support ARCFOUR.
60882
60883 2005-10-19  Simon Josefsson  <jas@extundo.com>
60884
60885         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
60886         support.
60887
60888         * lib/gc.h: Add ECB enum type.
60889
60890         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
60891
60892 2005-10-18  Simon Josefsson  <jas@extundo.com>
60893
60894         * tests/test-md5.c: New file.
60895
60896         * modules/md5-tests: New file.
60897
60898 2005-10-18  Simon Josefsson  <jas@extundo.com>
60899
60900         * tests/test-md4.c: New file.
60901
60902         * modules/md4, modules/md4-tests: New files.
60903
60904 2005-10-18  Simon Josefsson  <jas@extundo.com>
60905
60906         * m4/md4.m4: New file.
60907
60908 2005-10-18  Simon Josefsson  <jas@extundo.com>
60909
60910         * lib/md4.h, lib/md4.c: New files, based on md5.?.
60911
60912 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
60913
60914         * gnulib-tool (func_create_testdir): Omit the second check whether
60915         BUILT_SOURCES in nonempty.
60916
60917 2005-10-17  Simon Josefsson  <jas@extundo.com>
60918
60919         * tests/test-rijndael.c: New file.
60920
60921 2005-10-17  Simon Josefsson  <jas@extundo.com>
60922
60923         * modules/sha1: Depend on stdint instead of md5.
60924
60925         * modules/md5: Depend on stdint, remove uint32_t.
60926
60927 2005-10-17  Simon Josefsson  <jas@extundo.com>
60928
60929         * modules/gc-sha1-tests: New file.
60930
60931         * tests/test-gc-sha1.c: New file.
60932
60933 2005-10-17  Simon Josefsson  <jas@extundo.com>
60934
60935         * m4/md5.m4: Remove call to uint32_t.m4.
60936
60937 2005-10-17  Simon Josefsson  <jas@extundo.com>
60938
60939         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
60940
60941         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
60942         md5.h.
60943
60944         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
60945
60946         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
60947
60948 2005-10-17  Simon Josefsson  <jas@extundo.com>
60949
60950         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
60951
60952 2005-10-17  Simon Josefsson  <jas@extundo.com>
60953
60954         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
60955
60956 2005-10-17  Simon Josefsson  <jas@extundo.com>
60957
60958         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
60959
60960         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
60961
60962 2005-10-17  Bruno Haible  <bruno@clisp.org>
60963
60964         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
60965         that it can also be used in a test.
60966
60967 2005-10-16  Bruno Haible  <bruno@clisp.org>
60968
60969         * gnulib-tool (func_emit_tests_Makefile_am): Also define
60970         TESTS_ENVIRONMENT, so that individual tests can augment it.
60971
60972         * gnulib-tool (func_create_testdir): Use an intermediate target for
60973         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
60974         macros, like $(ALLOCA_H), which cannot be passed through the command
60975         line.
60976
60977 2005-10-15  Simon Josefsson  <jas@extundo.com>
60978
60979         * modules/rijndael-tests: New file.
60980
60981         * modules/rijndael: New file.
60982
60983 2005-10-15  Simon Josefsson  <jas@extundo.com>
60984
60985         * m4/rijndael.m4: New file.
60986
60987 2005-10-15  Simon Josefsson  <jas@extundo.com>
60988
60989         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
60990
60991         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
60992
60993 2005-10-14  Simon Josefsson  <jas@extundo.com>
60994
60995         * tests/test-arcfour.c: New file.
60996
60997         * modules/arcfour, modules/arcfour-tests: New files.
60998
60999 2005-10-14  Simon Josefsson  <jas@extundo.com>
61000
61001         * m4/arcfour.m4: New file.
61002
61003 2005-10-14  Simon Josefsson  <jas@extundo.com>
61004
61005         * lib/arcfour.h, lib/arcfour.c: New files.
61006
61007 2005-10-14  Roland McGrath  <roland@redhat.com>
61008
61009         Import from libc.  [BZ #1331]
61010         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
61011         macro argument.
61012         Reported by Matej Vela <vela@debian.org>.
61013
61014 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
61017         include <wchar.h>; no longer needed.
61018
61019 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61020
61021         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
61022
61023 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
61024         and  Ulrich Drepper  <drepper@redhat.com>
61025
61026         Import from libc.
61027         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
61028         instead of inline stream orientation test and two separate
61029         function calls.  Pay no attention to USE_IN_LIBIO.
61030
61031 2005-10-13  Simon Josefsson  <jas@extundo.com>
61032
61033         * modules/gc-hmac-md5-tests: New file.
61034
61035         * tests/test-gc-hmac-sha1.c: New file.
61036
61037         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
61038
61039         * modules/gc-hmac-md5-tests: New file.
61040
61041         * tests/test-gc-md5.c: New file.
61042
61043         * modules/gc-md5-tests: New file.
61044
61045 2005-10-13  Simon Josefsson  <jas@extundo.com>
61046
61047         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
61048         Move memory allocation outside of loop.
61049
61050 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
61051
61052         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
61053         intermediate directory is in a read-only file system.  Problem
61054         reported by Eric Blake.
61055
61056 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
61057
61058         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
61059
61060 2005-10-12  Simon Josefsson  <jas@extundo.com>
61061
61062         * tests/test-hmac-sha1.c: New file.
61063
61064         * modules/hmac-sha1-tests: New file.
61065
61066         * modules/hmac-sha1: New file.
61067
61068 2005-10-12  Simon Josefsson  <jas@extundo.com>
61069
61070         * modules/gc-sha1: New file.
61071
61072 2005-10-12  Simon Josefsson  <jas@extundo.com>
61073
61074         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
61075
61076         * tests/test-gc-pbkdf2-sha1.c: New file.
61077
61078 2005-10-12  Simon Josefsson  <jas@extundo.com>
61079
61080         * modules/gc-md5, modules/gc-hmac-md5: New files.
61081
61082         * modules/gc (Files): Remove md5, memxor and hmac files.
61083
61084 2005-10-12  Simon Josefsson  <jas@extundo.com>
61085
61086         * m4/gc-pbkdf2-sha1.m4: New file.
61087
61088         * m4/gc-hmac-sha1.m4: New file.
61089
61090         * m4/gc-sha1: New file.
61091
61092         * m4/hmac-sha1.m4: New file.
61093
61094 2005-10-12  Simon Josefsson  <jas@extundo.com>
61095
61096         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
61097
61098         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
61099
61100 2005-10-12  Simon Josefsson  <jas@extundo.com>
61101
61102         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
61103         suggested by Bruno Haible <bruno@clisp.org>.
61104
61105 2005-10-12  Simon Josefsson  <jas@extundo.com>
61106
61107         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
61108
61109 2005-10-12  Simon Josefsson  <jas@extundo.com>
61110
61111         * lib/gc-pbkdf2-sha1.c: New file.
61112
61113         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
61114
61115 2005-10-12  Simon Josefsson  <jas@extundo.com>
61116
61117         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
61118
61119         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
61120
61121 2005-10-12  Simon Josefsson  <jas@extundo.com>
61122
61123         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
61124         GC_USE_HMAC_MD5, respectively.
61125
61126         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
61127         (gc_md5): Fix typo.
61128
61129         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
61130
61131         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
61132
61133         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
61134
61135 2005-10-12  Bruno Haible  <bruno@clisp.org>
61136
61137         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
61138         Reported by Stepan Kasal <kasal@ucw.cz>.
61139
61140 2005-10-11  Simon Josefsson  <jas@extundo.com>
61141
61142         * tests/test-crc.c: New file.
61143
61144         * modules/crc, modules/crc-tests: New files.
61145
61146 2005-10-11  Simon Josefsson  <jas@extundo.com>
61147
61148         * m4/crc.m4: New file.
61149
61150 2005-10-11  Simon Josefsson  <jas@extundo.com>
61151
61152         * lib/gc.h: Add gc_hash and gc_hash_buffer.
61153
61154         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
61155
61156         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
61157
61158 2005-10-11  Simon Josefsson  <jas@extundo.com>
61159
61160         * lib/crc.h, lib/crc.c: New files.
61161
61162         * lib/gc.h (gc_hash_buffer): Add doc.
61163
61164 2005-10-11  Bruno Haible  <bruno@clisp.org>
61165
61166         * modules/c-strcasestr: New file.
61167         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
61168
61169 2005-10-11  Bruno Haible  <bruno@clisp.org>
61170
61171         * modules/c-strcase: New file.
61172         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
61173
61174 2005-10-11  Bruno Haible  <bruno@clisp.org>
61175
61176         * lib/strcasecmp.c: Include limits.h.
61177         (strcasecmp): Avoid integer overflow on exotic platforms.
61178         * lib/strncasecmp.c: Include limits.h.
61179         (strncasecmp): Avoid integer overflow on exotic platforms.
61180         Reported by Paul Eggert.
61181
61182 2005-10-11  Bruno Haible  <bruno@clisp.org>
61183
61184         * lib/c-strcasestr.h: New file, from GNU gettext.
61185         * lib/c-strcasestr.c: New file, from GNU gettext.
61186
61187 2005-10-11  Bruno Haible  <bruno@clisp.org>
61188
61189         * lib/c-strcase.h: New file, from GNU gettext.
61190         * lib/c-strcasecmp.c: New file, from GNU gettext.
61191         * lib/c-strncasecmp.c: New file, from GNU gettext.
61192
61193 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61194
61195         * modules/mempcpy (License): GPL -> LGPL.
61196         * modules/strchrnul (License): Likewise.
61197         * modules/sysexits (License): Likewise.
61198
61199 2005-10-08  Simon Josefsson  <jas@extundo.com>
61200
61201         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
61202
61203 2005-10-07  Simon Josefsson  <jas@extundo.com>
61204
61205         * m4/memxor.m4: Remove gl_C_RESTRICT call.
61206
61207 2005-10-06  Simon Josefsson  <jas@extundo.com>
61208
61209         * tests/test-hmac-md5.c: New file.
61210
61211         * modules/hmac-md5-tests: New file.
61212
61213         * modules/hmac-md5: New file.
61214
61215 2005-10-06  Simon Josefsson  <jas@extundo.com>
61216
61217         * m4/hmac-md5.m4: New file.
61218
61219         * m4/memxor.m4: Require gl_C_RESTRICT.
61220
61221 2005-10-06  Simon Josefsson  <jas@extundo.com>
61222
61223         * lib/memxor.c (memxor): Avoid casts and warnings.
61224
61225 2005-10-06  Simon Josefsson  <jas@extundo.com>
61226
61227         * lib/hmac-md5.c: New file.
61228
61229         * lib/hmac.h: New file.
61230
61231 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61232
61233         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
61234         promotes to int, not unsigned int, to catch the AIX 5.3
61235         compiler bug.
61236
61237 2005-10-05  Simon Josefsson  <jas@extundo.com>
61238
61239         * modules/memxor: New file.
61240
61241         * modules/iconv (Files): Move config.rpath to havelib, it is used
61242         there.
61243
61244         * modules/havelib (Files): Add config.rpath.
61245
61246 2005-10-05  Simon Josefsson  <jas@extundo.com>
61247
61248         * m4/memxor.m4: New file.
61249
61250 2005-10-05  Simon Josefsson  <jas@extundo.com>
61251
61252         * lib/memxor.c (memxor): Fix compiler error.
61253
61254         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
61255         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
61256
61257         * lib/memxor.h, lib/memxor.c: New files.
61258
61259         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
61260         we assume all systems have it, suggested by Jim Meyering
61261         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
61262         any systems lack sys/socket.h; mingw32 is known to lack it, but we
61263         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
61264         same reasons.
61265
61266 2005-10-05  Simon Josefsson  <jas@extundo.com>
61267
61268         * config/srclist.txt: Add glibc bug 1423 for md5.h.
61269
61270 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
61273         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
61274         needed, since the source code now assumes these .h files.
61275
61276 2005-10-05  Derek Price  <derek@ximbiot.com>
61277
61278         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
61279
61280 2005-10-05  Bruno Haible  <bruno@clisp.org>
61281
61282         * modules/stdint (License): Change to LGPL.
61283
61284 2005-10-04  Simon Josefsson  <jas@extundo.com>
61285
61286         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
61287         D. Baushke" <mdb@gnu.org>.
61288
61289 2005-10-04  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/verify.h (verify_true): Provide alternative definition for C++.
61292
61293 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61294
61295         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
61296         (SSIZE_MAX): New macro, if not already defined.
61297         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
61298         than 2 GiB.
61299
61300 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61301
61302         Sync from coreutils.
61303         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
61304         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
61305         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
61306         ULLONG_MAX doesn't work with 2.7.2.1.
61307
61308 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61309
61310         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
61311         From Ben Pfaff.
61312
61313         * modules/exclude (Depends-on): Depend on verify.
61314         * modules/strtoimax (Depends-on): Likewise.
61315         * modules/utimecmp (Depends-on): Likewise.
61316
61317 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61318
61319         * lib/exclude.c: Include verify.h.
61320         (verify): Remove.  All callers changed to use verify.h's version.
61321         * lib/strtoimax.c: Likewise.
61322         * lib/utimecmp.c: Likewis.e
61323
61324         Sync from coreutils.
61325         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
61326         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
61327         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
61328         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
61329         bother returning ENOSYS if settimeofday or stime fails; just let
61330         them return whatever errno they want to return.
61331         * lib/utimens.c: Include unistd.h, for dup2.
61332         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
61333         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
61334
61335 2005-10-02  Jim Meyering  <jim@meyering.net>
61336
61337         Sync from coreutils.
61338         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
61339         from glibc-2.2.5 that fails for read-only files.
61340
61341 2005-10-02  Jim Meyering  <jim@meyering.net>
61342
61343         Sync from coreutils.
61344         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
61345         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
61346         `#if HAVE_CONFIG_H'.
61347         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
61348         Remove AT_FDCWD test.
61349         Do not consume the fd unless successful.
61350         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
61351         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
61352         block, so that we don't even try to compile it if settimeofday is
61353         available.  This works around a compilation failure on OSF1 V5.1,
61354         due to stime requiring a `long int*' while tv_sec is `int'.
61355
61356 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
61357
61358         Sync from coreutils.
61359         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
61360         against `yes', rather than just testing for nonempty.
61361
61362 2005-10-01  Simon Josefsson  <jas@extundo.com>
61363
61364         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
61365         and Darwin.
61366
61367         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
61368         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
61369         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
61370         freeaddrinfo and gai_strerror are declared by the POSIX headers.
61371         Check if struct addrinfo is declared.
61372
61373 2005-10-01  Simon Josefsson  <jas@extundo.com>
61374
61375         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
61376         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
61377         AI_* and EAI_* definitions.  Protect function declarations.
61378
61379 2005-10-01  Jim Meyering  <jim@meyering.net>
61380
61381         Sync from coreutils.
61382
61383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
61384         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
61385         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
61386         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61387         in the inet and nsl libraries.  Required on Solaris 5.7.
61388
61389 2005-10-01  Jim Meyering  <jim@meyering.net>
61390
61391         Sync from coreutils.
61392         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61393         in the inet and nsl libraries.  Required on Solaris 5.7.
61394
61395 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
61396
61397         * lib/getdelim.c (getdelim): Remove unused variables.
61398
61399 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61400
61401         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
61402         so that the code works even with ancient cpp.  Portability problem
61403         with GCC 2.7.2.1 reported by Thomas M.Ott.
61404
61405 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61406
61407         * modules/regex (Depends-on): Add strcase.
61408
61409         * modules/gethostname (Licence): Change from GPL to LGPL, since
61410         gethostname.c is a trivial implementation of a standard library
61411         function.
61412         * modules/poll (License): Change from GPL to LGPL, since it's
61413         derived from LGPL code.
61414
61415 2005-09-27  Jim Meyering  <jim@meyering.net>
61416
61417         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
61418         HAVE_CONFIG_H.
61419
61420         * lib/intprops.h (signed_type_or_expr__): Define.
61421         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
61422         for unsigned types.
61423
61424 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         * lib/verify.h (verify_expr): Remove, replacing with:
61427         (verify_true): New macro that returns true instead of void.
61428         (verify_type__): Remove.
61429         (verify): Use verify_true rather than verify_type__.
61430
61431 2005-09-26  Bruno Haible  <bruno@clisp.org>
61432
61433         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
61434         is necessary.
61435         (lib_SOURCES): Remove mbchar.c.
61436         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
61437         (Files): Add m4/mbrtowc.m4.
61438         * modules/mbiter: Likewise.
61439         * modules/mbuiter: Likewise.
61440
61441 2005-09-26  Bruno Haible  <bruno@clisp.org>
61442
61443         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
61444         compile mbchar.c if they are not both present.
61445         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
61446         * m4/mbiter.m4 (gl_MBITER): Likewise.
61447         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
61448         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
61449         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
61450
61451 2005-09-25  Jim Meyering  <jim@meyering.net>
61452
61453         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
61454         also uses socklen_t.
61455
61456 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
61457
61458         * lib/utimens.c (ENOSYS): Define if not already defined.
61459         (futimens): Support having a null PATH if the file descriptor
61460         is nonnegative.
61461
61462         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
61463         Remove.
61464         (__attribute): Define to empty unless GCC 3.1 or later.
61465         This works around a core dump on OpenBSD 3.4, which has GCC
61466         2.95.3, which dumps core when given __attribute__(()).  It also
61467         simplifies other tests, since we really don't want to bother with
61468         worrying about which ancient version of GCC supported what.
61469         Original problem reported by Yoann Vandoorselaere, with part of
61470         the fix suggested by Derek Price.
61471
61472 2005-09-24  Jim Meyering  <jim@meyering.net>
61473
61474         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
61475         so we can once again use a positive bitfield width of 1 -- now we
61476         don't have to explain why we were using a bitfield width of 2.
61477
61478 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61479
61480         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
61481         and similarly for the other external symbols.  Problem reported
61482         by James Gallager.
61483
61484         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
61485         bug reported by Jim Meyering.
61486
61487         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
61488         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
61489         not needed, since socklen is a prerequisite module.
61490
61491 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61492
61493         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
61494         Problem reported by Eric Blake.
61495         (getaddrinfo): Initialize se so that it's not garbage.
61496         Redo internal storage allocation so that it doesn't make unportable
61497         assumptions about alignment.
61498         Fix a memory leak.
61499
61500         * lib/utimens.c (futimens): Use futimesat if available.
61501         Prefer it to futimes since it doesn't have the futimes bug.
61502
61503         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
61504         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
61505         Instead, declare a function that returns a pointer to an array,
61506         and use verify_type__ to declare the size of the array.
61507         Problem and germ of a solution reported by Bruno Haible.
61508         (verify_type__): Use 2, not 1, for bitfield size, to avoid
61509         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
61510
61511 2005-09-23  Jim Meyering  <jim@meyering.net>
61512
61513         Sync from coreutils.
61514         Correct build failure (socklen_t not defined) on at least
61515         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
61516         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
61517
61518 2005-09-23  Jim Meyering  <jim@meyering.net>
61519
61520         * modules/getaddrinfo (Depends-on): Add socklen.
61521
61522 2005-09-23  Bruno Haible  <bruno@clisp.org>
61523
61524         * tests/test-verify.c: New file.
61525
61526 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61527
61528         Sync from coreutils.
61529
61530         * modules/argmatch (Depends-on): Add verify.
61531         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
61532         unistd-safer.
61533         * modules/save-cwd (Depends-on): Likewise.
61534
61535         * modules/openat (Files): Add lib/openat-die.c.
61536         (Depends-on): Remove error, exitfail.
61537         Add dirname.
61538
61539         * modules/verify: New file.
61540         * MODULES.html.sh (Diagnostics <assert.h>): New section,
61541         with "verify" module.
61542
61543 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         Sync from coreutils.
61546
61547         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
61548         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
61549         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
61550         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
61551         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
61552         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
61553         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
61554         Don't bother checking for string.h, stdlib.h, unistd.h.
61555         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
61556         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
61557         module's job.
61558         * m4/jm-macros.m4 (gl_MACROS): Likewise.
61559         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
61560
61561         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
61562         (gl_GETDATE): Use it.
61563
61564         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
61565
61566 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61567
61568         Sync from coreutils.
61569
61570         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
61571         stat-time.h.
61572         * lib/argmatch.h: Include verify.h
61573         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
61574         (ARGMATCH_ASSERT): Remove; unused.
61575         * lib/canonicalize.c: Assume STDC_HEADERS.
61576         * lib/exclude.c: Include "strcase.h".
61577         * lib/regex_internal.h [!defined _LIBC]: Likewise.
61578         * lib/getusershell.c: Include stdio--.h rather than stdio.h
61579         and stdio-safer.h.
61580         (getusershell): Call fopen, not fopen_safer.
61581         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
61582         Do not include unistd-safer.h.
61583         (save_cwd): Don't call fd_safer; no longer needed
61584         now that we include fcntl--.h.
61585
61586         * lib/getdate.y (relative_time): New type.
61587         (RELATIVE_TIME_0): New constant.
61588         (parser_control): Use relative_time instead of doing it ourselves.
61589         (%union): Add new relative_time rel member.
61590         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
61591         Now typeless.
61592         (relunit, relunit_snumber): Now of type rel.
61593         (zone, rel, relunit, get_date): Adjust to above changes.
61594
61595         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
61596         Do not include unistd-safer.h.
61597         (getloadavg): Don't call fd_safer; no longer needed
61598         now that we include fcntl--.h.
61599
61600         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
61601         (make_dir_parents): Treat ENOSYS like EEXIST.
61602
61603         Improve quality of diagnostics on restore_cwd failure.
61604         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
61605         (make_dir_parents): Last arg is now int * (for errno), not bool *.
61606         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
61607         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
61608         each time through the loop.  Do not diagnose restore_cwd failure;
61609         that is the caller's job (and perhaps the caller does not care).
61610
61611         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
61612         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
61613         If the file already exists but is not a directory, don't bother
61614         to try to make its parents.
61615         Close potential file descriptor leak if we can't chdir("/") (!).
61616         Don't always return true if chdir($PWD) fails; return true only
61617         if the requested action was done successfully (except for the
61618         chdir($PWD)).
61619         Don't log final directory unless we actually made it.
61620         Refactor to avoid duplicate code to fix up permissions.
61621         Don't attempt to fix up parent permissions if chdir($PWD) fails.
61622
61623         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
61624         to make it a bit faster and (I hope) clearer.
61625         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
61626         Fix bug in formats like %2N.
61627
61628         * lib/verify.h: New file.
61629
61630 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61631
61632         Sync from coreutils.
61633         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
61634
61635 2005-09-22  Jim Meyering  <jim@meyering.net>
61636
61637         Sync from coreutils.
61638
61639         * m4/lstat.m4 (gl_FUNC_LSTAT):
61640         Use AC_LIBSOURCES to require lstat.c and lstat.h.
61641         Remove obsolete comment.
61642         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
61643         * m4/xstrtod.m4: Likewise.
61644
61645         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
61646
61647 2005-09-22  Jim Meyering  <jim@meyering.net>
61648
61649         Sync from coreutils.
61650
61651         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
61652
61653         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
61654         the .tm_year member, since otherwise gcc-4.0 would now warn about
61655         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
61656
61657         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
61658         order to avoid an unsuppressible warning from gcc on 64-bit systems.
61659
61660         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
61661         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
61662         when run in a time zone for which daylight savings time is in effect
61663         for the starting date.
61664
61665         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
61666         stop us from restricting permissions of just-created absolute-named
61667         directories.
61668         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
61669         to restore initial working directory.
61670         * lib/mkdir-p.c (make_dir_parents): New parameter:
61671         different_working_dir, to tell caller if/when we change the working
61672         directory and are unable to return to the initial one.
61673         * lib/mkdir-p.h (make_dir_parents): Update prototype.
61674         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
61675         `return false'.  This fixes a bug introduced on 2004-07-30.
61676
61677         * lib/openat.c (fdopendir): Be sure to close the supplied
61678         file descriptor before returning.  This makes our replacement
61679         implementation a little closer to Solaris's, where fdopendir
61680         ties the file descriptor to the returned DIR* pointer.
61681         * lib/openat.c (unlinkat): New function.
61682         * lib/openat.h (unlinkat): Add prototype.
61683         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
61684         (openat_restore_fail): Rename from openat_restore_die.
61685         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
61686
61687         Provide an alternative to exiting immediately upon save_cwd or
61688         restore_cwd failure.  Now, an application can arrange e.g.,
61689         to perform a longjump in that case.
61690         * lib/openat.c: Include dirname.h.
61691         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
61692         (rpl_openat, fdopendir, fstatat): Call openat_save_die
61693         and openat_restore_die rather than calling error directly.
61694         Don't include "error.h" or "exitfail.h"; they're no longer needed.
61695
61696         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
61697         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
61698         define.
61699
61700         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
61701         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
61702                             int utc, int nanoseconds);
61703         Background:
61704         date should not have to allocate a megabyte of virtual memory to
61705         handle a format argument like +%1048575T.  When implemented with
61706         strftime, it must allocate such a buffer, use strftime to fill it
61707         in, print it, then free it.
61708         With fprintftime, it simply prints everything and exits.
61709         With no need for memory allocation, that's one fewer way to fail.
61710         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
61711         optional field width, not before, so we accept %9:z, not %:9z.
61712         (my_strftime): Be sure to use L_('x') for literals.
61713
61714         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
61715         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
61716         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
61717         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
61718         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
61719         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
61720         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
61721         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
61722         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
61723         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
61724         * lib/xgethostname.c, lib/xreadlink.c:
61725         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
61726
61727         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
61728         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
61729         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
61730         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61731         and don't include <sys/file.h>).
61732
61733 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
61734
61735         Sync from coreutils.
61736
61737         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
61738         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
61739         [!LDAV_DONE]: Avoid unused variable warning.
61740
61741 2005-09-21  Bruno Haible  <bruno@clisp.org>
61742
61743         * lib/unicodeio.h (unicode_to_mb): New declaration.
61744
61745 2005-09-20  Derek Price  <derek@ximbiot.com>
61746
61747         * lib/getaddrinfo.c: Don't include <netdb.h> included from
61748         getaddrinfo.h.
61749
61750 2005-09-20  Bruno Haible  <bruno@clisp.org>
61751
61752         * gnulib-tool: Remove trailing slashes from the values specified for
61753         --source-base, --m4-base, --tests-base, --aux-dir.
61754         Suggested by Simon Josefsson <jas@extundo.com>.
61755
61756 2005-09-20  Bruno Haible  <bruno@clisp.org>
61757
61758         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
61759         func_modules_to_filelist, func_import, func_create_testdir): Make all
61760         sorting results locale-independent, so that gnulib-cache.m4 doesn't
61761         change when gnulib-tool is invoked in a different locale.
61762
61763 2005-09-19  Simon Josefsson  <jas@extundo.com>
61764
61765         * m4/socklen.m4: Fix typo.
61766
61767 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61768
61769         Use a consistent style for including <config.h>.
61770         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
61771         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
61772         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
61773         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
61774         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
61775         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
61776         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
61777         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
61778         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
61779         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
61780         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
61781         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
61782         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
61783         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
61784         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
61785         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
61786         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
61787         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
61788         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
61789         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
61790         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
61791         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
61792         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
61793         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
61794         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
61795         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
61796         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
61797         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
61798         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
61799         lib/xstrtoumax.c, lib/yesno.c:
61800         Standardize inclusion of config.h.
61801         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
61802         lib/inttostr.h:  Removed inclusion of config.h from header files.
61803         * lib/inttostr.c:  Adjusted in-tree users.
61804         * lib/timespec.h: Remove superfluous warning to include config.h.
61805         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
61806         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
61807         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
61808         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
61809         config.h with HAVE_CONFIG_H.
61810
61811 2005-09-19  Jim Meyering  <jim@meyering.net>
61812
61813         * modules/pathmax (License): Change to LGPL.
61814
61815 2005-09-19  Derek Price  <derek@ximbiot.com>
61816
61817         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
61818
61819 2005-09-19  Bruno Haible  <bruno@clisp.org>
61820
61821         * gnulib-tool (import): Provide default for --tests-base.
61822
61823 2005-09-19  Bruno Haible  <bruno@clisp.org>
61824
61825         * doc/quote.texi: New file, extracted from gnulib.texi.
61826         * doc/ctime.texi: New file, extracted from gnulib.texi.
61827         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
61828         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
61829         * doc/gnulib.texi: Include them.
61830
61831 2005-09-18  Bruno Haible  <bruno@clisp.org>
61832
61833         Portability fix.
61834         * gnulib-tool (func_readlink): New function.
61835         (func_ln_if_changed): Use it.
61836
61837 2005-09-18  Bruno Haible  <bruno@clisp.org>
61838
61839         * gnulib-tool: Support --with-tests also with --import.
61840         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
61841         (func_import): Use variables $testsbase and $inctests. Emit a
61842         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
61843         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
61844         SUBDIRS += $testsdir.
61845         (func_create_testdir): Update.
61846
61847 2005-09-18  Bruno Haible  <bruno@clisp.org>
61848
61849         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
61850         instead of $dry_run.
61851         (func_cp_if_changed, func_mv_if_changed): Remove functions.
61852         (func_ln_if_changed): Don't handle dry-run here.
61853         (func_import): In dry-run mode, detect more precisely which actions
61854         would be performed, and don't use "...ing" verbs.
61855
61856 2005-09-18  Bruno Haible  <bruno@clisp.org>
61857
61858         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
61859         (func_import): Use join on two temporary files instead of three nested
61860         loops, in order to determine which files are new or old.
61861
61862 2005-09-18  Bruno Haible  <bruno@clisp.org>
61863
61864         * gnulib-tool (func_import): Comment out code that spits out the
61865         new files with --dry-run.
61866
61867 2005-09-18  Bruno Haible  <bruno@clisp.org>
61868
61869         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
61870
61871 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61872
61873         * lib/stat-time.h: New file.
61874         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
61875         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
61876         in a different way.
61877         (timespec_cmp): New function.
61878         * lib/utimecmp.c: Include stat-time.h.
61879         (SYSCALL_RESOLUTION): Depend on whether various struct stat
61880         members exist, not on the obsolescent ST_MTIM_NSEC.
61881         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
61882
61883 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61884
61885         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
61886
61887 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61888
61889         * MODULES.html.sh (File system functions): Add stat-time.
61890         * modules/stat-time: New file.
61891         * modules/timespec (Files): Remove m4/st_mtim.m4; this
61892         is now done in a different way, by the stat-time module.
61893         * modules/utimecmp (Depends-on): Add stat-time.
61894
61895 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         * m4/st_mtim.m4: Remove.  Superseded by...
61898         * m4/stat-time.m4: New file.
61899         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
61900         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
61901
61902 2005-09-15  Derek Price  <derek@ximbiot.com>
61903
61904         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
61905
61906 2005-09-15  Derek Price  <derek@ximbiot.com>
61907
61908         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
61909         * lib/regex_internal.c: Ditto, using this...
61910         (__GNUC_PREREQ): ...new macro.
61911         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
61912         using...
61913         (__GNUC_PREREQ): ...this new macro.
61914
61915         * lib/strstr.h: Include string.h. Define strstr as a macro here.
61916
61917 2005-09-15  Derek Price  <derek@ximbiot.com>
61918             Paul Eggert  <eggert@cs.ucla.edu>
61919
61920         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
61921         changes, consolidating in...
61922         * lib/regex_internal.h: ...this file.
61923
61924 2005-09-13  Jim Meyering  <jim@meyering.net>
61925
61926         * lib/canon-host.c: Filter through gnu indent and reword comments
61927         slightly.
61928         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
61929
61930 2005-09-13  Derek Price  <derek@ximbiot.com>
61931
61932         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
61933         failure.
61934         Reported by Jim Meyering  <jim@meyering.net>.
61935
61936 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61937
61938         * lib/base64.c: Typo.
61939         (base64_encode): Put b64str in initialized data section.
61940
61941 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61942
61943         Merge glibc and coreutils changes into gnulib, plus a few
61944         extra fixes.
61945         * lib/md5.c: Use #error rather than a string.
61946         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
61947         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
61948         (__attribute__): Define to empty for non recent-GCC.
61949         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
61950         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
61951         Renamed from their non-__ counterparts, with new macros replacing
61952         them if not _LIBC.  Add __THROW attribute.
61953         (rol): Remove.
61954         (struct md5_ctx): Align buffer if using GCC.
61955         * lib/sha1.h (struct sha1_ctx): Likewise.
61956         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
61957         The old name was backwards.
61958         (NOTSWAP): Remove; not used.
61959         (rol): New macro, moved here from md5.h.
61960         (sha1_process_block): Remove a FIXME that doesn't make sense.
61961
61962 2005-09-12  Derek Price  <derek@ximbiot.com>
61963
61964         Return usable errors from canon-host.
61965         * lib/canon-host.h: New file.
61966         * lib/canon-host.c (canon_host): Wrap...
61967         (canon_host_r): ...this new function, which now relies exclusively on
61968         getaddrinfo.
61969         (ch_strerror): New function.
61970         (last_cherror): New global.
61971         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
61972         interface.
61973         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
61974         void *.
61975         (freeaddrinfo): Free ai->ai_canonname when set.
61976
61977 2005-09-12  Derek Price  <derek@ximbiot.com>
61978
61979         Make canon-host require getaddrinfo.
61980         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
61981         AC_LIBSOURCE canon-host.h.  Call...
61982         (gl_PREREQ_CANON_HOST): ...this new function, which requires
61983         gl_GETADDRINFO.
61984         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
61985
61986 2005-09-12  Derek Price  <derek@ximbiot.com>
61987
61988         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
61989         LGPL.
61990         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
61991
61992 2005-09-12  Derek Price  <derek@ximbiot.com>
61993
61994         * lib/gai_strerror.c: Include config.h when available.  Include
61995         getaddrinfo.h before other headers to test interface.
61996         Reported by Larry Jones <lawrence.jones@ugs.com>.
61997
61998 2005-09-12  Derek Price  <derek@ximbiot.com>
61999             Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         * modules/glob (Files): Add glob-libc.h.
62002
62003 2005-09-12  Derek Price  <derek@ximbiot.com>
62004             Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
62007         glob_.h, glob-libc.h.
62008         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
62009
62010 2005-09-12  Derek Price  <derek@ximbiot.com>
62011             Paul Eggert  <eggert@cs.ucla.edu>
62012
62013         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
62014         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
62015         protecting things that should be done only in gnulib contexts.
62016         * lib/glob_.h: New file, containing only the glob things needed for
62017         gnulib.
62018         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
62019         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
62020         (glob, globfree, glob_pattern_p): Now defined simply in terms of
62021         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
62022         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
62023         and to respect the namespace rules better.
62024
62025 2005-09-08  Simon Josefsson  <jas@extundo.com>
62026
62027         * modules/socklen: New file.
62028
62029 2005-09-08  Simon Josefsson  <jas@extundo.com>
62030
62031         * m4/socklen.m4: New file.
62032
62033 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         * modules/utimens (Files): Add m4/utimbuf.m4, since
62036         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
62037         Reported by Sergey Poznyakoff.
62038
62039 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
62042         definitions, since that's the preferred style in glibc.
62043         Fix a minor spacing issue, and update copyright notice to match
62044         glibc's.
62045
62046 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62047
62048         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
62049
62050 2005-09-06  Simon Josefsson  <jas@extundo.com>
62051
62052         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
62053         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
62054
62055 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
62058         warning.
62059
62060 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62061
62062         * config/srclist.txt: Add glibc bug 1302.
62063
62064 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
62065
62066         Change bitset word type from unsigned int to unsigned long int,
62067         as this has better performance on typical 64-bit hosts.
62068         Port bitset code to hosts with unusual word sizes.
62069         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
62070         (build_collating_symbol):
62071         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
62072         argument is a bitset.  This is merely a style issue, but it makes
62073         it clearer that an entire array is expected.
62074         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
62075         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
62076         Port to the case where bitset_word is not the same as unsigned int.
62077         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62078         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
62079         Likewise.
62080         * lib/regexec.c (check_dst_limits_calc_pos_1,
62081         check_subexp_matching_top):
62082         (build_trtable, group_nodes_into_DFAstates):
62083         Likewise.
62084         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
62085         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
62086         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
62087         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
62088         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
62089         * lib/regcomp.c (optimize_subexps, lower_subexp):
62090         Work even if bitset_word has holes in its bitwise representation.
62091         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
62092         * lib/regexec.c (check_dst_limits_calc_pos_1,
62093         check_subexp_matching_top):
62094         Likewise.
62095         * lib/regex_internal.c (re_string_reconstruct):
62096         Don't assume UCHAR_MAX == 255.
62097         * lib/regex_internal.h (bitset_set_all): Likewise.
62098         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
62099         All uses changed.
62100         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
62101         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
62102         All uses changed.
62103         (BITSET_WORD_MAX): New macro.
62104         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
62105         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
62106         (bitset_empty, bitset_copy):
62107         Prefer sizeof (bitset) to multiplying it out ourselves.
62108         (bitset_not_merge): Remove; unused.
62109         (bitset_contain): Return bool, not unsigned int with one bit on.
62110         All callers changed.
62111         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
62112         alignment than re_node_set; do this by defining a new internal
62113         type struct dests_alloc and using it to allocate memory.
62114
62115 2005-09-05  Bruno Haible  <bruno@clisp.org>
62116
62117         * gnulib-tool (func_import): Fix comparison in handling of symbolic
62118         links.
62119
62120 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
62121
62122         * modules/size_max (Makefile.am): Add size_max.h
62123
62124 2005-09-04  Derek Price  <derek@ximbiot.com>
62125
62126         * gnulib-tool (func_import): Fix reversed $symbolic logic.
62127
62128 2005-09-03  Simon Josefsson  <jas@extundo.com>
62129
62130         * gnulib-tool: Fix typo.
62131
62132 2005-09-03  Simon Josefsson  <jas@extundo.com>
62133
62134         * config/srclist.txt: Add glibc bug 1293.
62135
62136 2005-09-03  Derek Price  <derek@ximbiot.com>
62137
62138         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
62139         From Larry Jones <lawrence.jones@ugs.com>.
62140
62141 2005-09-02  Simon Josefsson  <jas@extundo.com>
62142
62143         * modules/socklen: New file.
62144
62145 2005-09-02  Simon Josefsson  <jas@extundo.com>
62146
62147         * modules/havelib: New module.
62148
62149         * modules/gettext, modules/iconv, modules/lock, modules/readline:
62150         Use havelib.
62151
62152 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62153
62154         Check for arithmetic overflow when calculating sizes, to prevent
62155         some buffer-overflow issues.  These patches are conservative, in the
62156         sense that when I couldn't determine whether an overflow was possible,
62157         I inserted a run-time check.
62158         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
62159         macros.
62160         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
62161         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
62162         (re_xnrealloc, re_x2nrealloc): New inline functions.
62163         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
62164         parse_bracket_exp):
62165         (build_equiv_class, build_charclass): Check for arithmetic overflow
62166         in size expression calculations.
62167         * lib/regex_internal.c (re_string_realloc_buffers):
62168         (build_wcs_upper_buffer, re_node_set_add_intersect):
62169         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
62170         (re_dfa_add_node, register_state): Likewise.
62171         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
62172         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
62173         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
62174         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
62175
62176 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62177
62178         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62179         m4/ulonglong.m4.  Problem reported by Martin Lambers.
62180
62181 2005-09-02  Bruno Haible  <bruno@clisp.org>
62182
62183         Support for lib vs. lib64 distinction on biarch platforms.
62184         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
62185         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
62186         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
62187
62188 2005-09-02  Bruno Haible  <bruno@clisp.org>
62189
62190         * gnulib-tool (import): In the other first-use case, provide defaults
62191         as well.
62192
62193 2005-09-02  Bruno Haible  <bruno@clisp.org>
62194
62195         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
62196         patches not yet found in the latest gettext release.
62197
62198 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62199
62200         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
62201         to avoid a collision with bits/local_lim.h in glibc.
62202         All uses changed.  Problem reported by Dmitry V. Levin in
62203         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
62204
62205         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
62206         bugs in int versus size_t comparisons.
62207         (re_string_context_at): Fix bug where the code assumed that
62208         Idx is signed.
62209
62210         Use bool where appropriate.
62211         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
62212         All callers changed.
62213         (calc_eclosure_iter): Likewise, for ROOT arg.
62214         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
62215         (build_charclass_op): Likewise, for NON_MATCH arg.
62216         * lib/regex_internal.c (re_string_allocate, re_string_construct):
62217         (re_string_construct_common): Likewise, for ICASE arg.
62218         * lib/regexec.c (re_search_2_stub, re_search_stub):
62219         Likewise, for RET_LEN arg.
62220         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
62221         (set_regs): Likewise, for FL_BACKTRACK arg.
62222         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
62223         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
62224         (calc_eclosure_iter, parse_bracket_exp):
62225         Use bool for internal variables that are booleans.
62226         * lib/regexec.c (re_search_internal, check_matching,
62227         proceed_next_node):
62228         (set_regs, build_sifted_states, sift_states_bkref):
62229         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
62230         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62231         (find_collation_sequence_value):
62232         Likewise.
62233         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
62234         (re_node_set_compare):
62235         Return bool, not int. All callers changed.
62236         * lib/regexec.c (check_halt_node_context, check_dst_limits):
62237         (build_trtable, check_node_accept): Likewise.
62238         * lib/regex_internal.h: Include stdbool.h.
62239
62240         Fix bugs uncovered when converting to bool.
62241         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
62242         failure instead of charging ahead blindly.
62243         * lib/regex_internal.c (register_state): Likewise.
62244         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
62245         for freeing internal storage.
62246         (group_nodes_into_DFA_states): Use unsigned int, not int, for
62247         bitset pieces used as boolean, to avoid undefined behavior
62248         on hosts that do int overflow checking.
62249
62250 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62251
62252         * config/srclist.txt: Add glibc bugs 1285-1287.
62253
62254 2005-09-01  Jim Meyering  <jim@meyering.net>
62255
62256         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
62257         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
62258         Require gl_STAT_MACROS, too.
62259
62260 2005-09-01  Bruno Haible  <bruno@clisp.org>
62261
62262         * gnulib-tool (import): In the first-use case, provide defaults.
62263
62264 2005-09-01  Bruno Haible  <bruno@clisp.org>
62265
62266         * gnulib-tool (func_import): Remove the .tmp files.
62267
62268 2005-09-01  Bruno Haible  <bruno@clisp.org>
62269
62270         * gnulib-tool (func_import): Fix handling of symbolic links.
62271
62272 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62273
62274         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
62275         old glibc regex code mishandles strings longer than 2**31 bytes.
62276         This patch fixes this when the regex code is used in gnulib
62277         (i.e., outside glibc).
62278
62279         This patch should not affect the use of the regex code inside
62280         glibc.  No doubt this problem also needs to be handled for glibc
62281         as well, but the result will be an incompatible change to the
62282         glibc ABI, and the old ABI will have to be supported too.  That
62283         can be the the subject for another patch.
62284
62285         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
62286         governing whether the rest of this patch is active.  By default,
62287         the macro is disabled and the patch has no effect.
62288         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
62289         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
62290         (struct re_pattern_buffer, re_search, re_search_2, re_match):
62291         (re_match_2, re_set_registers): Use the new types.
62292         * lib/regex_internal.h (Idx, re_hashval_t): New types.
62293         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
62294         New macros.
62295         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
62296         (re_string_context_at, bin_tree_t, re_dfastate_t):
62297         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
62298         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
62299         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
62300         (re_string_char_size_at, re_string_wchar_at):
62301         (re_string_elem_size_at):
62302         Use the new types and macros to port to 64-bit hosts.
62303         Use unsigned types for internal values, so that the code
62304         mostly works even for arrays larger than SSIZE_MAX.
62305         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
62306         (search_duplicated_node, calc_eclosure_iter, fetch_number):
62307         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
62308         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
62309         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
62310         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
62311         (calc_inveclosure, parse_dup_op, build_range_exp):
62312         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
62313         (fetch_number, create_token_tree, mark_opt_subexp):
62314         Likewise.
62315         * lib/regex_internal.c (re_string_construct_common,
62316         create_ci_newstate):
62317         (create_cd_newstate, re_string_allocate, re_string_construct):
62318         (re_string_realloc_buffers, build_wcs_upper_buffer):
62319         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62320         (re_string_reconstruct, re_string_peek_byte_case):
62321         (re_string_fetch_byte_case, re_string_context_at):
62322         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62323         (re_node_set_init_copy, re_node_set_add_intersect):
62324         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62325         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62326         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62327         (re_acquire_state, re_acquire_state_context, register_state):
62328         Likewise.
62329         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
62330         search_cur_bkref_entry):
62331         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
62332         (re_search_internal, re_search_2_stub, re_search_stub)
62333         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
62334         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
62335         (update_cur_sifted_state, check_dst_limits):
62336         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62337         (check_subexp_limits, sift_states_bkref, merge_state_array):
62338         (check_subexp_matching_top, get_subexp, get_subexp_sub):
62339         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
62340         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62341         (expand_bkref_cache, check_node_accept_bytes):
62342         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
62343         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
62344         (acquire_init_state_context, check_halt_node_context):
62345         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
62346         (sift_states_backward, clean_state_log_if_needed):
62347         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
62348         (find_recover_state, transit_state_sb, transit_state_mb):
62349         (transit_state_bkref, build_trtable, match_ctx_clean):
62350         Likewise.
62351         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
62352         to work around an assumption that REG_MISSING is negative.
62353
62354         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
62355         (seek_collating_symbol_entry) [defined _LIBC]:
62356         (lookup_collation_sequence_value) [defined _LIBC]:
62357         (build_range_exp, build_collating_symbol) [defined _LIBC]:
62358         Use prototypes rather than old-style function definitions.
62359         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
62360         (transit_state_sb) [0]:
62361         (find_collation_sequence_value) [defined _LIBC]: Likewise.
62362
62363         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
62364         rm_eo.
62365
62366         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
62367         (optimize_subexps, lower_subexp):
62368         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
62369         since the signed shift might overflow.  Use 1u<<31 instead.
62370         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62371         Likewise.
62372         * lib/regexec.c (check_dst_limits_calc_pos_1,
62373         check_subexp_matching_top): Likewise.
62374
62375         * lib/regcomp.c (optimize_subexps, lower_subexp):
62376         Use CHAR_BIT rather than 8, for clarity.
62377         * lib/regexec.c (check_dst_limits_calc_pos_1):
62378         (check_subexp_matching_top): Likewise.
62379         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
62380         have to worry about portability issues when shifting it left.
62381         Remove no-longer-needed test for table_size > 0.
62382         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
62383         in a word, as the resulting behavior is undefined.
62384         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
62385         in one case, a <= should have been an <, and in another case the
62386         whole test was missing.
62387         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
62388         the standard name CHAR_BIT.
62389         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
62390         this is not true on one's complement and signed-magnitude hosts.
62391
62392         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
62393         next_last_offset.
62394         (struct re_dfa_t): Remove unused member states_alloc.
62395         * lib/regcomp.c (init_dfa): Don't initialize unused members.
62396
62397 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62398
62399         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
62400         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
62401         and large-file glibc and in 32-bit large-file Solaris.
62402
62403 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62404
62405         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
62406         lengths fit in regoff_t; this isn't true if regoff_t is the same
62407         width as size_t.
62408         * lib/regex.c (re_search_internal): 5th arg is LAST_START
62409         (= START + RANGE) instead of RANGE.  This avoids overflow
62410         problems when regoff_t is the same width as size_t.
62411         All callers changed.
62412         (re_search_2_stub): Check for overflow when adding the
62413         sizes of the two strings.
62414         (re_search_stub): Check for overflow when adding START
62415         to RANGE; if it occurs, substitute the extreme value.
62416
62417 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
62420
62421 2005-08-31  Jim Meyering  <jim@meyering.net>
62422
62423         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
62424         a pointer-to-const.
62425         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
62426         (register_state): Likewise.
62427         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
62428         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62429         (group_nodes_into_DFAstates): Likewise.
62430
62431 2005-08-31  Jim Meyering  <jim@meyering.net>
62432
62433         * check-module: Add a FIXME comment.
62434
62435 2005-08-31  Eric Blake  <ebb9@byu.net>
62436
62437         * modules/unistd-safer (Files): Add unistd--.h.
62438         * modules/stdio-safer (Files): Add stdio--.h.
62439
62440 2005-08-31  Derek Price  <derek@ximbiot.com>
62441
62442         * lib/getdelim.c (getdelim): Return EOF on EOF.
62443         Reported by Larry Jones <lawrence.jones@ugs.com>.
62444
62445 2005-08-31  Bruno Haible  <bruno@clisp.org>
62446
62447         Avoid unnecessary diffs in the generated lib/Makefile.am.
62448         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
62449         the generated files.
62450         (func_import): Don't set cmd.
62451
62452 2005-08-31  Bruno Haible  <bruno@clisp.org>
62453
62454         * lib/strstr.c: Include <stddef.h>, for NULL.
62455         * lib/strcasestr.c: Likewise.
62456         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62457
62458 2005-08-31  Bruno Haible  <bruno@clisp.org>
62459
62460         * gnulib-tool: New option --macro-prefix.
62461         (func_import): Use macro_prefix.
62462         (import): Handle option --macro-prefix.
62463
62464 2005-08-31  Bruno Haible  <bruno@clisp.org>
62465
62466         * gnulib-tool (import): Rename most ac_* variables to cached_*.
62467         Also use new variables cached_lgpl, cached_libtool.
62468
62469 2005-08-31  Bruno Haible  <bruno@clisp.org>
62470
62471         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
62472         always instantiating them.
62473
62474 2005-08-31  Bruno Haible  <bruno@clisp.org>
62475
62476         * gnulib-tool (func_import): Read the previous cached settings
62477         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
62478         earlier added by gnulib but are now dropped. Warn when a gnulib file
62479         overwrites a non-gnulib file.
62480
62481 2005-08-31  Bruno Haible  <bruno@clisp.org>
62482
62483         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
62484         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
62485         projects that don't keep autogenerated files in CVS. Put into
62486         actioncmd only the specified modules, not the transitive closure.
62487
62488 2005-08-31  Bruno Haible  <bruno@clisp.org>
62489
62490         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
62491         Create directories that shall be filled.
62492         (import): Don't look for gl_* macros in configure.ac. Recurse across
62493         all directories containing a gnulib-cache.m4 files, if meaningful.
62494
62495 2005-08-31  Bruno Haible  <bruno@clisp.org>
62496
62497         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
62498         (import): Set seen_libtool when we see gl_LIBTOOL.
62499
62500 2005-08-31  Bruno Haible  <bruno@clisp.org>
62501
62502         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
62503         declaration macro definitions from generated gnulib.m4.
62504
62505 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
62506
62507         * lib/iconvme.h: Add prototype for iconv_alloc.
62508
62509 2005-08-29  Simon Josefsson  <jas@extundo.com>
62510
62511         * lib/iconvme.c: Fix errno.
62512
62513 2005-08-29  Bruno Haible  <bruno@clisp.org>
62514
62515         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
62516         that it works when the directory contains spaces.
62517
62518 2005-08-29  Bruno Haible  <bruno@clisp.org>
62519
62520         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
62521
62522 2005-08-29  Bruno Haible  <bruno@clisp.org>
62523
62524         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
62525         Emit more advice.
62526
62527 2005-08-29  Bruno Haible  <bruno@clisp.org>
62528         and Stepan Kasal  <kasal@ucw.cz>
62529
62530         * check-module: If more parameters are given, check each of them
62531         separately; add more exceptions, as noted by Jim Meyering.
62532         (check_module): New procedure.
62533         (%exempt_header): Now contains all exceptions.
62534
62535 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
62536
62537         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
62538
62539 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62540
62541         * lib/iconvme.c: Split iconv_string into iconv_alloc.
62542
62543 2005-08-28  Bruno Haible  <bruno@clisp.org>
62544
62545         * m4/gnulib-tool.m4: New file.
62546
62547 2005-08-27  Jim Meyering  <jim@meyering.net>
62548
62549         * modules/unistd-safer (Files): Add pipe-safer.c.
62550         * modules/fcntl-safer (Files): Add creat-safer.c.
62551
62552 2005-08-27  Jim Meyering  <jim@meyering.net>
62553
62554         * m4/stdlib-safer.m4: New file.  From coreutils.
62555         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
62556         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
62557         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
62558         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
62559         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
62560
62561 2005-08-27  Jim Meyering  <jim@meyering.net>
62562
62563         * lib/fopen-safer.c: Merge minor changes from coreutils.
62564         * lib/dup-safer.c: Likewise.
62565         * lib/fd-safer.c: Likewise.
62566
62567         Merge from coreutils.
62568         * lib/stdio--.h: New file.
62569         * lib/stdlib--.h: New file.
62570         * lib/mkstemp-safer.c: New file.
62571
62572         GNU tar needs these.
62573         * lib/pipe-safer.c: New file.
62574         * lib/creat-safer.c: New file.
62575         * lib/fcntl--.h (creat): Define to creat_safer.
62576         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
62577         * lib/unistd--.h (pipe): Define to pipe_safer.
62578         * lib/unistd-safer.h: Declare pipe_safer.
62579
62580 2005-08-26  Simon Josefsson  <jas@extundo.com>
62581
62582         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
62583         Haible <bruno@clisp.org>.
62584
62585 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
62586
62587         * lib/regex_internal.h: Remove all references to
62588         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
62589         or better.
62590         (bitset_not, bitset_merge, bitset_not_merge):
62591         (bitset_mask, re_string_allocate, re_string_construct):
62592         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
62593         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
62594         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
62595         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
62596         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62597         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62598         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
62599         (re_acquire_state_context):
62600         Remove unnecessary forward decls.
62601         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
62602         Put __attribute at function definition,
62603         now that the function decl has been removed.
62604         * lib/regex_internal.c (re_string_peek_byte_case):
62605         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
62606         Likewise.
62607
62608 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
62609
62610         * m4/regex.m4: Add AC_PREREQ(2.50).
62611         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
62612
62613 2005-08-25  Simon Josefsson  <jas@extundo.com>
62614
62615         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
62616         __fsetlocking.
62617
62618 2005-08-25  Simon Josefsson  <jas@extundo.com>
62619
62620         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
62621         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
62622         GLIBC specific code.
62623
62624 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         Make regex safe for g++.  This fixes one real bug (an "err"
62627         that should have been "*err").  g++ problem reported by
62628         Sam Steingold.
62629         * lib/regex_internal.h (re_calloc): New macro, consistent with
62630         re_malloc etc.  All callers of calloc changed to use re_calloc.
62631         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
62632         not int.  All callers changed.
62633         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
62634         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
62635         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
62636         (find_recover_state): Change "err" to "*err"; this fixes what
62637         appears to be a real bug.
62638         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
62639         versus int.
62640
62641 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62642
62643         * modules/regex (Depends-on): Add malloc, since the code
62644         assumes that !malloc(0) means failure.
62645
62646 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
62649
62650         alloca modernization/simplification for regex.
62651         * lib/regex.c: Remove portability cruft for alloca.  This no longer
62652         needs to be at the start of the file, and can be moved into
62653         regex_internal.h and simplified.
62654         * lib/regex_internal.h: Include <alloca.h>.
62655         (__libc_use_alloca) [!defined _LIBC]: New macro.
62656         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
62657         now works outside glibc.
62658
62659 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62660
62661         * config/srclist.txt: Add glibc bugs 1241, 1245.
62662
62663 2005-08-25  Jim Meyering  <jim@meyering.net>
62664
62665         * lib/open-safer.c: Include <config.h>.
62666         Otherwise, we'd lose LARGEFILE support in any file using
62667         e.g. "fcntl--.h"
62668
62669 2005-08-25  Bruno Haible  <bruno@clisp.org>
62670
62671         * m4/minmax.m4: Require autoconf 2.52.
62672         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
62673         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
62674         alternatives of translit over the alphabet.
62675         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
62676
62677 2005-08-24  Simon Josefsson  <jas@extundo.com>
62678
62679         * tests/test-getpass.c: New file.
62680
62681 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62682
62683         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
62684         for GNU regex features.
62685
62686 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62687
62688         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
62689         * lib/regex.h (regerror): Likewise.
62690
62691         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
62692         requires this.  (The code never needed it.)
62693
62694         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
62695         All uses of recently-renamed identifiers changed to use the new,
62696         POSIX-compliant names.  The code will build and run just fine
62697         without these changes, but it's better to eat our own dog food
62698         and use the standard-conforming names.
62699
62700         * lib/regex.h: Fix a multitude of POSIX name space violations.
62701         These changes have an effect only for programs that define
62702         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
62703         do not change anything for programs compiled in the normal way.
62704         Also, there is no effect on the ABI.
62705
62706         (_REGEX_SOURCE): New macro.
62707         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
62708         defined and _GNU_SOURCE is not; this fixes a name space violation.
62709
62710         Rename the following macros to obey POSIX requirements.
62711         The old names are still visible as macros if _REGEX_SOURCE is defined.
62712         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
62713         RE_BACKSLASH_ESCAPE_IN_LISTS.
62714         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
62715         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
62716         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
62717         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
62718         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
62719         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
62720         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
62721         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
62722         (REG_INTERVALS): renamed from RE_INTERVALS.
62723         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
62724         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
62725         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
62726         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
62727         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
62728         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
62729         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
62730         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
62731         RE_UNMATCHED_RIGHT_PAREN_ORD.
62732         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
62733         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
62734         (REG_DEBUG): renamed from RE_DEBUG.
62735         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
62736         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
62737         unusual, since we can't clash with the POSIX REG_ICASE.
62738         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
62739         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
62740         (REG_NO_SUB): renamed from RE_NO_SUB.
62741         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
62742         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
62743         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
62744         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
62745         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
62746         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
62747         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
62748         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
62749         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
62750         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
62751         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
62752         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
62753         RE_SYNTAX_POSIX_MINIMAL_BASIC.
62754         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
62755         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
62756         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
62757         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
62758         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
62759         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
62760         (REG_FIXED): Renamed from REGS_FIXED.
62761         (REG_NREGS): Renamed from RE_NREGS.
62762
62763         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
62764         of other REG_* macros, since POSIX says the user is allowed to
62765         #undef these macros selectively.
62766
62767         (reg_errcode_t): Update comment stating what other tables need
62768         to be consistent.
62769
62770         Rename the following enum values to obey POSIX requirements.
62771         The old names are still visible as macros.
62772         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
62773         is not defined, since GNU is supposed to be a superset of POSIX as
62774         much as possible, and since we want reg_errcode_t to be a signed
62775         type for implementation consistency.
62776         (_REG_NOERROR): Renamed from REG_NOERROR.
62777         (_REG_NOMATCH): Renamed from REG_NOMATCH.
62778         (_REG_BADPAT): Renamed from REG_BADPAT.
62779         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
62780         (_REG_ECTYPE): Renamed from REG_ECTYPE.
62781         (_REG_EESCAPE): Renamed from REG_EESCAPE.
62782         (_REG_ESUBREG): Renamed from REG_ESUBREG.
62783         (_REG_EBRACK): Renamed from REG_EBRACK.
62784         (_REG_EPAREN): Renamed from REG_EPAREN.
62785         (_REG_EBRACE): Renamed from REG_EBRACE.
62786         (_REG_BADBR): Renamed from REG_BADBR.
62787         (_REG_ERANGE): Renamed from REG_ERANGE.
62788         (_REG_ESPACE): Renamed from REG_ESPACE.
62789         (_REG_BADRPT): Renamed from REG_BADRPT.
62790         (_REG_EEND): Renamed from REG_EEND.
62791         (_REG_ESIZE): Renamed from REG_ESIZE.
62792         (_REG_ERPAREN): Renamed from REG_ERPAREN.
62793         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
62794         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
62795         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
62796         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
62797
62798         (_REG_RE_NAME, _REG_RM_NAME): New macros.
62799         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
62800         changed.  But support the old name if the new one is not defined
62801         and if _REGEX_SOURCE.
62802
62803         Change the following member names in struct re_pattern_buffer.
62804         The old names are still supported if !_REGEX_SOURCE.
62805         The new names are always supported, regardless of _REGEX_SOURCE.
62806         (re_buffer): Renamed from buffer.
62807         (re_allocated): Renamed from allocated.
62808         (re_used): Renamed from used.
62809         (re_syntax): Renamed from syntax.
62810         (re_fastmap): Renamed from fastmap.
62811         (re_translate): Renamed from translate.
62812         (re_can_be_null): Renamed from can_be_null.
62813         (re_regs_allocated): Renamed from regs_allocated.
62814         (re_fastmap_accurate): Renamed from fastmap_accurate.
62815         (re_no_sub): Renamed from no_sub.
62816         (re_not_bol): Renamed from not_bol.
62817         (re_not_eol): Renamed from not_eol.
62818         (re_newline_anchor): Renamed from newline_anchor.
62819
62820         Change the following member names in struct re_registers.
62821         The old names are still supported if !_REGEX_SOURCE.
62822         The new names are always supported, regardless of _REGEX_SOURCE.
62823         (rm_num_regs): Renamed from num_regs.
62824         (rm_start): Renamed from start.
62825         (rm_end): Renamed from end.
62826
62827         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
62828         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
62829         Prepend __ to parameter names.
62830
62831         Undo yesterday's changes.
62832
62833 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62834
62835         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
62836         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
62837         lib/regex.c.
62838
62839 2005-08-24  Jim Meyering  <jim@meyering.net>
62840
62841         Sync from coreutils.
62842         * m4/fcntl-safer.m4: New file.
62843
62844         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
62845         and object files for this module.
62846
62847 2005-08-24  Jim Meyering  <jim@meyering.net>
62848
62849         Sync from coreutils.
62850         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
62851
62852 2005-08-24  Jim Meyering  <jim@meyering.net>
62853
62854         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
62855         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
62856
62857 2005-08-24  Jim Meyering  <jim@meyering.net>
62858
62859         * modules/fcntl-safer: New module.
62860         * modules/fts (Depends-on): Add fcntl-safer.
62861         * MODULES.html.sh (File descriptor based Input/Output):
62862         Add fcntl-safer.
62863
62864 2005-08-24  Bruno Haible  <bruno@clisp.org>
62865
62866         Support for unit test modules.
62867         * modules/README: Mention tests modules.
62868         * modules/TEMPLATE-TESTS: New file.
62869         * gnulib-tool: New options --extract-tests-module, --with-tests and
62870         --tests-base (unused for the moment).
62871         (testsbase, inctests): New variables.
62872         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
62873         (func_verify_module): Exclude TEMPLATE-TESTS.
62874         (func_verify_nontests_module, func_verify_tests_module): New functions.
62875         (func_get_dependencies): Add implicit dependency for tests modules.
62876         (func_get_tests_module): New function.
62877         (func_modules_transitive_closure): When --with-tests was specified,
62878         include the unit tests as well, unless explicitly avoided.
62879         (func_emit_lib_Makefile_am): Ignore the tests modules here.
62880         (func_emit_tests_Makefile_am): New function.
62881         (func_create_testdir): When --with-tests was specified, emit a
62882         tests/ directory.
62883         * MODULES.html.sh (Future developments): Update.
62884
62885 2005-08-24  Bruno Haible  <bruno@clisp.org>
62886
62887         * modules/tls-tests: New file.
62888         * tests/test-tls.c: New file, from GNU gettext.
62889
62890 2005-08-24  Bruno Haible  <bruno@clisp.org>
62891
62892         * modules/lock-tests: New file.
62893         * tests/test-lock.c: New file, from GNU gettext.
62894
62895 2005-08-24  Bruno Haible  <bruno@clisp.org>
62896
62897         * lib/lock.h: Add multiple inclusion guard.
62898         * lib/tls.h: Add multiple inclusion guard.
62899
62900 2005-08-24  Bruno Haible  <bruno@clisp.org>
62901
62902         * gnulib-tool: Add support for the --aux-dir option to
62903         --create-testdir, --create-megatestdir, --test, --megatest.
62904         (func_create_testdir, func_create_megatestdir): Optionally emit a
62905         AC_CONFIG_AUX_DIR directive.
62906         (create-testdir, create-megatestdir, test, megatest): Provide a
62907         default value for $auxdir.
62908
62909 2005-08-24  Bruno Haible  <bruno@clisp.org>
62910
62911         * gnulib-tool (import): Use compound statement instead of subshell
62912         where possible.
62913
62914 2005-08-24  Bruno Haible  <bruno@clisp.org>
62915
62916         * gnulib-tool (import): Change --aux-dir default to "build-aux".
62917
62918 2005-08-24  Bruno Haible  <bruno@clisp.org>
62919
62920         * gnulib-tool (func_version): Update.
62921
62922 2005-08-24  Bruno Haible  <bruno@clisp.org>
62923
62924         * gnulib-tool (func_import, func_create_testdir,
62925         func_create_megatestdir): Quote all autoconf macro arguments.
62926
62927 2005-08-24  Bruno Haible  <bruno@clisp.org>
62928
62929         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
62930         option --force, because --force causes the aclocal.m4 of each
62931         subdirectory to be newer than the corresponding config.h.in.
62932
62933 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62934
62935         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
62936         All contents moved to gl_REGEX.
62937         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
62938         assume that it does.
62939
62940 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62941
62942         * lib/regex.h (REG_NOSYS)
62943         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
62944         Define, since POSIX requires it as of 2001.
62945         (_REG_ENOSYS)
62946         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
62947         New private symbol, used to keep the enum signed in all cases.
62948         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
62949         Youngman in
62950         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
62951
62952         * lib/regex_internal.c (re_string_skip_chars, register_state):
62953         (calc_state_hash):
62954         Remove forward decls; no longer needed now that we use prototypes.
62955         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
62956         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
62957         (clean_state_log_if_needed): Likewise.
62958
62959 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62960
62961         * config/srclist.txt: Add glibc bugs 1231-1233.
62962
62963 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62964
62965         Fix problems reported by Sam Steingold in
62966         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
62967         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
62968         assumed that reg_errcode_t is a signed type, which is not
62969         necessarily true if _XOPEN_SOURCE is not defined.
62970         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
62971         since some compilers warn about it otherwise.
62972
62973 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62974
62975         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
62976         (init_word_char, create_initial_state, duplicate_node_closure):
62977         (fetch_token, peek_token_bracket, build_range_exp):
62978         (build_collating_symbol): Remove forward decls; no longer needed
62979         now that we use prototypes.
62980
62981         * lib/regcomp.c:
62982         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
62983         (re_compile_fastmap_iter, regcomp, regerror, regfree):
62984         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
62985         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
62986         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
62987         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
62988         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
62989         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
62990         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
62991         (build_range_exp, build_collating_symbol, parse_bracket_exp):
62992         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
62993         (build_charclass, build_charclass_op, fetch_number, create_tree):
62994         (create_token_tree, mark_opt_subexp, duplicate_tree):
62995         Use prototypes rather than old-style definitions.
62996
62997         * lib/regex_internal.c:
62998         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
62999         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
63000         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63001         (re_string_reconstruct, re_string_peek_byte_case):
63002         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
63003         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63004         (re_node_set_init_copy, re_node_set_add_intersect):
63005         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63006         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63007         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63008         (re_acquire_state, re_acquire_state_context, register_state):
63009         (create_ci_newstate, create_cd_newstate, free_state):
63010         Likewise.
63011         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
63012         re_search_2):
63013         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
63014         (re_search_internal, prune_impossible_nodes):
63015         (acquire_init_state_context, check_matching, static):
63016         (check_halt_node_context, check_halt_state_context, proceed_next_node):
63017         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
63018         (update_regs, sift_states_backward, build_sifted_states):
63019         (clean_state_log_if_needed, merge_state_array):
63020         (update_cur_sifted_state, add_epsilon_src_nodes):
63021         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
63022         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
63023         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
63024         (find_recover_state, check_subexp_matching_top, transit_state_mb):
63025         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
63026         (check_arrival, check_arrival_add_next_nodes):
63027         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63028         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63029         (check_node_accept_bytes, check_node_accept, extend_buffers):
63030         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
63031         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
63032         (sift_ctx_init):
63033         Likewise.
63034
63035         * lib/regex_internal.h:
63036         (re_string_allocate, re_string_construct, re_string_reconstruct):
63037         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
63038         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
63039         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
63040         (re_string_context_at, re_string_peek_byte_case):
63041         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
63042         is defined, since we now use prototypes always.
63043
63044         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
63045         C89 or better.  All uses removed.
63046
63047 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63048
63049         * config/srclist.txt: Add glibc bugs 1220-1227.
63050
63051 2005-08-20  Jim Meyering  <jim@meyering.net>
63052
63053         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
63054         of unused local, dfa.
63055
63056 2005-08-20  Bruno Haible  <bruno@clisp.org>
63057
63058         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
63059
63060 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63061
63062         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
63063         (re_node_set_insert_last, re_dfa_add_node):
63064         Rename local variables to avoid GCC shadowing warnings.
63065
63066 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
63069         [defined lint]: Suppress bogus uninitialized-variable warnings.
63070
63071         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
63072         and let the caller return REG_ESPACE if out of space.  This
63073         removes an uninitialied-variable warning with GCC 4.0.1, and also
63074         avoids taking the address of a local variable.  All callers
63075         changed.
63076
63077 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63078
63079         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
63080         $LIBCSRC/posix/regexec.c.
63081         Add glibc bug 1217 for regcomp.c.
63082
63083 2005-08-19  Jim Meyering  <jim@meyering.net>
63084
63085         * lib/regexec.c (proceed_next_node): Redo local variables to
63086         avoid GCC shadowing warnings.
63087
63088 2005-08-18  Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/strstr.c (strstr): Fix return value in multibyte case.
63091         * lib/strcasestr.c (strcasestr): Likewise.
63092
63093 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63094
63095         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
63096
63097 2005-08-17  Jim Meyering  <jim@meyering.net>
63098
63099         Make the %s format (seconds since the epoch) work for a negative
63100         number and when used with a zero-padded field width, e.g. %015s.
63101
63102         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
63103         label so that it precedes the code to set `digits'.  Otherwise,
63104         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
63105         print `00-22'.  Now, it prints `-0022', as it should.
63106
63107 2005-08-17  Bruno Haible  <bruno@clisp.org>
63108
63109         * modules/strstr (Files): Add m4/mbrtowc.m4.
63110         (Depends-on): Add mbuiter.
63111
63112 2005-08-17  Bruno Haible  <bruno@clisp.org>
63113
63114         * modules/strcasestr: New file.
63115         * MODULES.html.sh (String handling, based on ANSI C 89): Add
63116         strcasestr.
63117
63118 2005-08-17  Bruno Haible  <bruno@clisp.org>
63119
63120         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
63121
63122 2005-08-17  Bruno Haible  <bruno@clisp.org>
63123
63124         * modules/mbuiter: New file.
63125         * MODULES.html.sh (Extended multibyte and wide character utilities):
63126         Add mbuiter.
63127
63128 2005-08-17  Bruno Haible  <bruno@clisp.org>
63129
63130         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
63131         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
63132
63133 2005-08-17  Bruno Haible  <bruno@clisp.org>
63134
63135         * m4/strcasestr.m4: New file.
63136
63137 2005-08-17  Bruno Haible  <bruno@clisp.org>
63138
63139         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
63140         * lib/strstr.c: Completely rewritten, with multibyte locale support.
63141
63142 2005-08-17  Bruno Haible  <bruno@clisp.org>
63143
63144         * lib/strcasestr.h: New file.
63145         * lib/strcasestr.c: New file.
63146
63147 2005-08-17  Bruno Haible  <bruno@clisp.org>
63148
63149         * lib/strcasecmp.c: Use mbuiter.h.
63150
63151 2005-08-17  Bruno Haible  <bruno@clisp.org>
63152
63153         * lib/mbuiter.h: New file.
63154
63155 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63156
63157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
63158         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
63159         and gl_GETOPT are both invoked via different paths (as happens
63160         with GNU tar CVS because it uses both argp and getopt), the former
63161         wins.
63162
63163 2005-08-16  Bruno Haible  <bruno@clisp.org>
63164
63165         * modules/tls: New file.
63166         * MODULES.html.sh (Multithreading): Add tls.
63167
63168 2005-08-16  Bruno Haible  <bruno@clisp.org>
63169
63170         * modules/strnlen1: New file.
63171         * MODULES.html.sh (String handling): Add strnlen1.
63172
63173 2005-08-16  Bruno Haible  <bruno@clisp.org>
63174
63175         * modules/strcase (Files): Add m4/mbrtowc.m4.
63176         (Depends-on): Add strnlen1, mbchar.
63177
63178 2005-08-16  Bruno Haible  <bruno@clisp.org>
63179
63180         * modules/mbiter: New file.
63181         * MODULES.html.sh (Extended multibyte and wide character utilities):
63182         Add mbiter.
63183
63184 2005-08-16  Bruno Haible  <bruno@clisp.org>
63185
63186         * modules/mbfile: New file.
63187         * MODULES.html.sh (Extended multibyte and wide character utilities):
63188         Add mbfile.
63189
63190 2005-08-16  Bruno Haible  <bruno@clisp.org>
63191
63192         * modules/mbchar: New file.
63193         * MODULES.html.sh (Extended multibyte and wide character utilities):
63194         New section.
63195
63196 2005-08-16  Bruno Haible  <bruno@clisp.org>
63197
63198         * m4/tls.m4: New file, from GNU gettext.
63199
63200 2005-08-16  Bruno Haible  <bruno@clisp.org>
63201
63202         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
63203         always.
63204         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
63205
63206 2005-08-16  Bruno Haible  <bruno@clisp.org>
63207
63208         * m4/mbiter.m4: New file.
63209
63210 2005-08-16  Bruno Haible  <bruno@clisp.org>
63211
63212         * m4/mbfile.m4: New file.
63213
63214 2005-08-16  Bruno Haible  <bruno@clisp.org>
63215
63216         * m4/mbchar.m4: New file.
63217
63218 2005-08-16  Bruno Haible  <bruno@clisp.org>
63219
63220         * lib/tls.h: New file, from GNU gettext.
63221         * lib/tls.c: New file, from GNU gettext.
63222
63223 2005-08-16  Bruno Haible  <bruno@clisp.org>
63224
63225         * lib/strnlen1.h: New file.
63226         * lib/strnlen1.c: New file.
63227
63228 2005-08-16  Bruno Haible  <bruno@clisp.org>
63229
63230         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
63231         (mbi_init): Update.
63232         (mbi_avail, mbi_advance): Let the iteration end before the terminating
63233         NUL byte, not after it.
63234
63235 2005-08-16  Bruno Haible  <bruno@clisp.org>
63236
63237         * lib/strcase.h (strcasecmp): Add note in comments.
63238         * lib/strncasecmp.c: Use code from strcasecmp.c.
63239         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
63240         (strcasecmp): Work correctly in multibyte locales.
63241
63242 2005-08-16  Bruno Haible  <bruno@clisp.org>
63243
63244         * lib/mbiter.h: New file.
63245
63246 2005-08-16  Bruno Haible  <bruno@clisp.org>
63247
63248         * lib/mbfile.h: New file.
63249
63250 2005-08-16  Bruno Haible  <bruno@clisp.org>
63251
63252         * lib/mbchar.h: New file.
63253         * lib/mbchar.c: New file.
63254
63255 2005-08-16  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
63258         the valid ones. Makes the comparison operations transitive:
63259         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
63260         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
63261
63262 2005-08-15  Simon Josefsson  <jas@extundo.com>
63263
63264         * modules/ssize_t (License): Change to 'unlimited'.
63265
63266         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
63267
63268 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
63271         Add comments for each pending glibc patch.
63272
63273 2005-08-15  Bruno Haible  <bruno@clisp.org>
63274
63275         * lib/regex.h (__restrict_arr): Don't define to __restrict if
63276         __cplusplus is defined.
63277
63278 2005-08-14  Jim Meyering  <jim@meyering.net>
63279
63280         Sync from coreutils.
63281
63282         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
63283         Use the hash-table-based cycle-detection code not just when
63284         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
63285         Reported by James Youngman in
63286         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
63287         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
63288         FTS_TIGHT_CYCLE_CHECK.
63289         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
63290         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
63291         once again.
63292         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
63293         * lib/fts.c (fd_safer): Remove decl.
63294         Include fcntl--.h rather than unistd-safer.h
63295         (fts_safe_changedir): Don't call fd_safer; no longer needed
63296         now that we include fcntl--.h.
63297
63298 2005-08-12  Simon Josefsson  <jas@extundo.com>
63299
63300         * modules/getndelim2: Use ssize_t module.
63301         * modules/getnline: Likewise.
63302         * modules/safe-read: Likewise.
63303         * modules/xreadlink: Likewise.
63304
63305         * modules/ssize_t: New file.
63306
63307 2005-08-12  Simon Josefsson  <jas@extundo.com>
63308
63309         * m4/readline.m4: Look for termcap, curses or ncurses if required.
63310
63311 2005-08-12  Simon Josefsson  <jas@extundo.com>
63312
63313         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63314         ssize_t.
63315
63316 2005-08-12  Simon Josefsson  <jas@extundo.com>
63317
63318         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
63319         readline, getdelim and check_version.
63320         (Support for systems lacking ISO C 99: Sizes of integer types):
63321         Add size_max.
63322
63323 2005-08-12  Bruno Haible  <bruno@clisp.org>
63324
63325         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
63326
63327 2005-08-11  Simon Josefsson  <jas@extundo.com>
63328
63329         * modules/readline: New file.
63330
63331         * modules/strnlen (Files): Add strnlen.h.
63332
63333 2005-08-11  Simon Josefsson  <jas@extundo.com>
63334
63335         * m4/readline.m4: New file.
63336
63337 2005-08-11  Simon Josefsson  <jas@extundo.com>
63338
63339         * lib/readline.h, readline.c: New file.
63340
63341 2005-08-11  Simon Josefsson  <jas@extundo.com>
63342
63343         * doc/gnulib.texi (Initial import, Finishing touches): Mention
63344         gl_AVOID.
63345
63346 2005-08-11  Bruno Haible  <bruno@clisp.org>
63347
63348         * lib/strnlen.h (strnlen): Change parameter name to match comment.
63349
63350 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
63351
63352         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
63353
63354 2005-08-10  Simon Josefsson  <jas@extundo.com>
63355
63356         * tests/test-iconvme.c: New file.
63357
63358 2005-08-10  Simon Josefsson  <jas@extundo.com>
63359
63360         * m4/strnlen.m4: New file.
63361
63362         * m4/strndup.m4: Don't check for strnlen declaration, done in
63363         strnlen.m4.
63364
63365 2005-08-10  Simon Josefsson  <jas@extundo.com>
63366
63367         * lib/strndup.c: Use strnlen.h.
63368
63369         * lib/strnlen.h: New file.
63370
63371 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63372
63373         * README: Typos.
63374
63375 2005-08-02  Simon Josefsson  <jas@extundo.com>
63376
63377         * modules/readline: New file.
63378
63379 2005-08-02  Simon Josefsson  <jas@extundo.com>
63380
63381         * modules/getdelim: New file.
63382
63383         * modules/getline: Rewrite, don't use getndelim2.
63384
63385 2005-08-02  Simon Josefsson  <jas@extundo.com>
63386
63387         * m4/getline.m4: Separate out getdelim stuff into separate module.
63388
63389         * m4/getdelim.m4: New file.
63390
63391 2005-08-02  Simon Josefsson  <jas@extundo.com>
63392
63393         * lib/getline.h, getline.c: Rewrite.
63394
63395         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
63396
63397 2005-07-31  Bruno Haible  <bruno@clisp.org>
63398
63399         * lib/lock.h (gl_lock_initializer): New macro.
63400         (gl_lock_define_initialized): Use it.
63401         (gl_rwlock_initializer): New macro.
63402         (gl_rwlock_define_initialized): Use it.
63403         (gl_recursive_lock_initializer): New macro.
63404         (gl_recursive_lock_define_initialized): Use it.
63405
63406 2005-07-30  Karl Berry  <karl@gnu.org>
63407
63408         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
63409         Report from Ben Pfaff, regarding getopt.
63410
63411 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
63412
63413         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
63414         normal way.
63415         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
63416         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
63417         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
63418         (gl_GETOPT): Use the new macros.  Most of the implementation
63419         is moved to the new macros.  This is for programs like Emacs
63420         that don't want all the functionality of gl_GETOPT.
63421
63422 2005-07-26  Bruno Haible  <bruno@clisp.org>
63423
63424         * m4/lock.m4: Update from GNU gettext.
63425
63426 2005-07-26  Bruno Haible  <bruno@clisp.org>
63427
63428         * lib/lock.h: Update from GNU gettext.
63429         * lib/lock.c: Update from GNU gettext.
63430
63431 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
63434         obsolescent AC_TRY_RUN.  Include the default includes files, for
63435         'exit'.
63436
63437 2005-07-24  Bruno Haible  <bruno@clisp.org>
63438
63439         * modules/visibility: New file.
63440         * MODULES.html.sh (Misc): Add visibility.
63441
63442 2005-07-24  Bruno Haible  <bruno@clisp.org>
63443
63444         * m4/visibility.m4: New file.
63445
63446 2005-07-24  Bruno Haible  <bruno@clisp.org>
63447
63448         * doc/visibility.texi: New file.
63449
63450 2005-07-22  Bruno Haible  <bruno@clisp.org>
63451
63452         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
63453         $(ALLOCA_H), redundant through BUILT_SOURCES.
63454         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
63455         redundant through BUILT_SOURCES.
63456         * modules/byteswap (Makefile.am): Remove explicit dependency on
63457         $(BYTESWAP_H), redundant through BUILT_SOURCES.
63458         * modules/fnmatch (Makefile.am): Remove explicit dependency on
63459         $(FNMATCH_H), redundant through BUILT_SOURCES.
63460         * modules/getopt (Makefile.am): Remove explicit dependency on
63461         $(GETOPT_H), redundant through BUILT_SOURCES.
63462         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
63463         redundant through BUILT_SOURCES.
63464         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
63465         redundant through BUILT_SOURCES.
63466         * modules/stdbool (Makefile.am): Remove explicit dependency on
63467         $(STDBOOL_H), redundant through BUILT_SOURCES.
63468         * modules/stdint (Makefile.am): Remove explicit dependency on
63469         $(STDINT_H), redundant through BUILT_SOURCES.
63470         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
63471         Remove explicit dependency on $(SYSEXITS_H).
63472         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
63473
63474 2005-07-18  Simon Josefsson  <jas@extundo.com>
63475
63476         * lib/check-version.c (check_version): Accept identical versions too.
63477
63478 2005-07-18  Bruno Haible  <bruno@clisp.org>
63479
63480         * modules/lock: New file.
63481         * MODULES.html.sh (Multithreading): New section.
63482
63483 2005-07-18  Bruno Haible  <bruno@clisp.org>
63484
63485         * m4/lock.m4: New file, from GNU gettext.
63486
63487 2005-07-18  Bruno Haible  <bruno@clisp.org>
63488
63489         * lib/lock.h: New file, from GNU gettext.
63490         * lib/lock.c: New file, from GNU gettext.
63491
63492 2005-07-18  Bruno Haible  <bruno@clisp.org>
63493
63494         * lib/lock.h (gl_once_t): New type.
63495         (gl_once_define, gl_once): New macros.
63496         * lib/lock.c (fresh_once): New variable.
63497         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
63498         functions.
63499
63500 2005-07-16  Simon Josefsson  <jas@extundo.com>
63501
63502         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
63503         workaround, suggested by Bruno.
63504
63505 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63506
63507         * modules/xalloc (Depends-on): Add xalloc-die.
63508         * modules/xvasprintf (Depends-on): Add xalloc-die.
63509
63510 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63511
63512         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
63513         with a minor change.
63514
63515 2005-07-15  Bruno Haible  <bruno@clisp.org>
63516
63517         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
63518         When using lib/poll.c, define poll as rpl_poll.
63519
63520 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
63521
63522         * modules/argp (Depends-on): Remove unlocked-io.
63523
63524 2005-07-14  Derek Price  <derek@ximbiot.com>
63525
63526         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
63527         for glob symlink bug.
63528
63529 2005-07-14  Bruno Haible  <bruno@clisp.org>
63530
63531         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
63532         Instead, test for *_unlocked function declarations directly.
63533
63534 2005-07-11  Simon Josefsson  <jas@extundo.com>
63535
63536         * modules/size_max: New file.
63537
63538         * modules/xsize: Depend on size_max module for size_max.m4.
63539
63540 2005-07-11  Simon Josefsson  <jas@extundo.com>
63541
63542         * lib/size_max.h: New file.
63543
63544 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
63545
63546         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
63547         copyright symbol and the year.
63548         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
63549         (version_etc_va): Use parameterized copyright notice.
63550         Reword to conform to the current GNU coding standards.
63551
63552 2005-07-11  Karl Berry  <karl@gnu.org>
63553
63554         * doc/gnulib.texi (Quoting): new node.
63555         (Initial import): more info, from Patrice.
63556
63557 2005-07-11  Bruno Haible  <bruno@clisp.org>
63558
63559         * gnulib-tool (func_usage): Document option --avoid.
63560         (Command line options): Handle --avoid.
63561         (func_acceptable): New function.
63562         (func_modules_transitive_closure): Use it.
63563
63564 2005-07-11  Bruno Haible  <bruno@clisp.org>
63565
63566         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
63567         Reported by Jim Meyering.
63568
63569 2005-07-10  Bruno Haible  <bruno@clisp.org>
63570
63571         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
63572         Needed when size_t is smaller than 'unsigned int'.
63573         Reported by Paul Eggert.
63574
63575 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63576
63577         * modules/argp (Depends-on): Add unlocked-io
63578
63579 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63580
63581         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
63582         block of defines.
63583
63584 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63585
63586         * config/srclist.txt: Comment out regcomp.c, since we have a porting
63587         fix now.
63588
63589 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
63590         and Paul Eggert  <eggert@cs.ucla.edu>
63591
63592         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
63593         in wint_t, not wchar_t.  Remove now-unnecessary cast.
63594
63595 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63596
63597         * modules/regex (Files): Add lib/regex_internal.c,
63598         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
63599         (Depends-on): Add extensions.
63600         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
63601
63602 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63603
63604         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
63605         pathconf.
63606         * m4/same.m4 (gl_SAME): Likewise.
63607         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
63608
63609         * m4/regex.m4: Adjust to new libc regex implementation.
63610         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
63611         all the .c and .h parts of (the new) regex.
63612         Quote the m4 stuff better.
63613         Check for RE_ICASE bug of old gnulib.
63614         Check for REG_STARTEND of recent libc.
63615         Rename local variables from jm_* to gl_*.
63616         Quote operand of "test -f".
63617         Say "recent enough" version of libc, not "version 2".
63618         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
63619         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
63620         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
63621         Remove check for btowc, isascii.
63622         Require AM_LANGINFO_CODESET.
63623
63624 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * lib/regex.c, regex.h: Sync from libc.
63627         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
63628         * lib/regexec.c:
63629         New files, synced from libc, except that regex_internal.h
63630         currently has a small porting fix.
63631
63632 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63633
63634         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
63635         regex_internal.c, regexec.c.
63636         Add regex_internal.h too, but as a comment, since the libc version
63637         is currently broken in gnulib mode.
63638
63639 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63640
63641         Support programs like Emacs that use gnulib but not gettext.
63642         * MODULES.html.sh (Internationalization functions): Add gettext-h.
63643         * modules/gettext-h: New file.
63644         * modules/gettext (Files): Remove lib/gettext.h.
63645         (Depends-on): Add gettext-h.
63646         (Makefile.am): Remove lib_SOURCES.
63647         * modules/argmatch, modules/c-stack, modules/closeout:
63648         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
63649         * modules/execute, modules/file-type, modules/getaddrinfo:
63650         * modules/getopt, modules/human, modules/javacomp:
63651         * modules/javaexec, modules/mkdir-p, modules/obstack:
63652         * modules/openat, modules/pagealign_alloc, modules/pipe:
63653         * modules/quotearg, modules/regex, modules/rpmatch:
63654         * modules/unicodeio, modules/userspec, modules/version-etc:
63655         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
63656         * modules/xsetenv:
63657         Depend on gettext-h, not gettext.
63658
63659 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63660
63661         * gnulib-tool (func_import): Add support for 'public domain' license.
63662         * modules/alloca, modules/atexit, modules/memmove:
63663         Now public domain, not GPL.
63664         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
63665         * modules/realloc, modules/strerror, modules/strtod:
63666         Now LGPL, not GPL.
63667
63668 2005-07-05  Bruno Haible  <bruno@clisp.org>
63669
63670         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
63671         autoconf CVS. Needed for mingw.
63672
63673 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63674
63675         Remove the dependency of the strftime module on the tzset module.
63676         * modules/strftime (Depends-on): Remove dependency on tzset.
63677
63678 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63679
63680         Remove the dependency of the strftime module on the tzset module.
63681         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
63682         gl_FUNC_TZSET_CLOBBER.
63683
63684 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63685
63686         Remove the dependency of the strftime module on the tzset module.
63687         * lib/strftime.c (my_strftime)
63688         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
63689         Copy the input structure, to work around some of the bug with
63690         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
63691         Solaris releases, you should also use the tzset module, but we won't
63692         require it as a dependency any more since we don't want LGPLed code
63693         to depend on GPLed code.
63694
63695 2005-07-02  Jim Meyering  <jim@meyering.net>
63696
63697         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
63698         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
63699         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
63700         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
63701
63702 2005-07-02  Jim Meyering  <jim@meyering.net>
63703
63704         * lib/backupfile.c (backup_args): Change a `0' to NULL.
63705
63706 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
63709         declares only 'struct timespec;' (!).
63710
63711 2005-07-01  Jim Meyering  <jim@meyering.net>
63712
63713         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
63714         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
63715         * lib/save-cwd.c, tempname.c:
63716         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63717         and don't include <sys/file.h>).
63718
63719 2005-06-29  Jim Meyering  <jim@meyering.net>
63720
63721         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
63722         type name.  Use the variable name instead.
63723         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
63724         Likewise.
63725
63726 2005-06-28  Simon Josefsson  <jas@extundo.com>
63727
63728         * modules/check-version (Files): Add check-version.m4.
63729
63730 2005-06-28  Simon Josefsson  <jas@extundo.com>
63731
63732         * m4/check-version.m4: New file, suggested by Jim Meyering
63733         <jim@meyering.net>.
63734
63735 2005-06-28  Simon Josefsson  <jas@extundo.com>
63736
63737         * lib/check-version.h, lib/check-version.c: New files.
63738
63739 2005-06-28  Simon Josefsson  <jas@extundo.com>
63740
63741         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
63742         collision with global variable.  Better indentation.  Don't
63743         increment buffer pointer beyond buffer end.  Based on comments
63744         from Paul Eggert <eggert@cs.ucla.edu>.
63745
63746         * lib/base64.h: Indent.
63747
63748 2005-06-28  Simon Josefsson  <jas@extundo.com>
63749
63750         * doc/gnulib.texi (Library version handling): New section.
63751
63752 2005-06-28  Jim Meyering  <jim@meyering.net>
63753
63754         * check-module (find_included_lib_files): Hard-code another
63755         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
63756         but modules/fts-lgpl (correctly) does not list those files.
63757
63758         * modules/canonicalize (Files): Add lib/pathmax.h.
63759
63760 2005-06-25  Simon Josefsson  <jas@extundo.com>
63761
63762         * modules/check-version: New file.
63763
63764 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
63767         initializer of struct addrinfo, as an indication that we don't
63768         care how many members the structure has.
63769
63770 2005-06-24  Derek Price  <derek@ximbiot.com>
63771         and Bruno Haible  <bruno@clisp.org>
63772
63773         Remove stat module & update lstat.
63774         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
63775         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63776         * m4/stat.m4: Remove this file.
63777
63778 2005-06-24  Derek Price  <derek@ximbiot.com>
63779         and Bruno Haible  <bruno@clisp.org>
63780
63781         Remove stat module & update lstat.
63782         * lib/stat.c: Remove this file...
63783         (slash_aware_lstat): ...moving this content and its support...
63784         * lib/lstat.c (rpl_lstat): ...into here.
63785         * lib/lstat.h: New file.
63786
63787 2005-06-24  Derek Price  <derek@ximbiot.com>
63788         and Bruno Haible  <bruno@clisp.org>
63789
63790         Remove stat module & update lstat.
63791         * config/srclist.txt (libc sources): Remove stat.
63792
63793 2005-06-24  Derek Price  <derek@ximbiot.com>
63794         and Bruno Haible  <bruno@clisp.org>
63795
63796         Remove stat module & update lstat.
63797         * MODULES.html.sh (stat): Remove.
63798         * MODULES.html: Regenerated.
63799         * modules/lstat (Description): Correct function name.
63800         (Files): Add "lstat.h".
63801         (Depends-on): Remove stat, add xalloc, stat-macros.
63802         * modules/stat: Remove this file.
63803         (Include): Add "lstat.h", remove <sys/stat.h>.
63804
63805 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
63808         (ranged_convert): Don't save conversion in a temporary struct.
63809         This causes a warning with GCC 4.0.0, and anyway in the typical
63810         case it's not worth the extra 100 bytes or so of code.
63811         (ranged_convert, __mktime_internal): When calling a function via a
63812         pointer P, use P () rather than (*P) (), as we now assume C89 or
63813         better.
63814
63815 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63816
63817         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
63818         "who -r" failed to give output.  Problem reported by Tim Waugh.
63819
63820         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
63821         (xcalloc): Use it to avoid needless tests.
63822         Problem reported by Jim Meyering.
63823
63824 2005-06-20  Derek Price  <derek@ximbiot.com>
63825
63826         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
63827         unnecessary for Autoconfs > 2.59c.
63828
63829 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63830
63831         * lib/argp.h (__option_is_short): Check upper limit of
63832         __key. Isprint() requires its argument to have the value
63833         of an unsigned char or EOF.
63834
63835 2005-06-16  Jim Meyering  <jim@meyering.net>
63836
63837         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
63838         when either N or S is zero.
63839
63840 2005-06-16  Derek Price  <derek@ximbiot.com>
63841
63842         * m4/bison.m4: Declare YACC & YFLAGS precious.
63843
63844 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
63847         multibyte string or pattern, fall back on unibyte matching.
63848         Problem reported by James Youngman.
63849
63850 2005-06-08  Bruno Haible  <bruno@clisp.org>
63851
63852         * modules/csharpcomp: New file.
63853         * MODULES.html.sh (C#): Add csharpcomp.
63854
63855 2005-06-08  Bruno Haible  <bruno@clisp.org>
63856
63857         * m4/csharpcomp.m4: New file, from GNU gettext.
63858
63859 2005-06-08  Bruno Haible  <bruno@clisp.org>
63860
63861         * lib/csharpcomp.h: New file, from GNU gettext.
63862         * lib/csharpcomp.c: New file, from GNU gettext.
63863         * lib/csharpcomp.sh.in: New file, from GNU gettext.
63864
63865 2005-06-08  Bruno Haible  <bruno@clisp.org>
63866
63867         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
63868         warning on mingw.
63869
63870 2005-06-07  Derek Price  <derek@ximbiot.com>
63871
63872         Sync from CVS.
63873         * lib/glob_.h: Indent nested #ifdef.
63874
63875 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63876
63877         Sync from coreutils.
63878         Use "file name" when talking about file names, instead of "filename"
63879         or "path", as per the GNU coding standards.
63880         * lib/mkdir-p.c: Renamed from makepath.c.
63881         (make_dir_parents): Renamed from make_path.  All callers changed.
63882         * lib/mkdir-p.h: Likewise.  All includers changed.
63883         * lib/filenamecat.c: Renamed from path-concat.c.
63884         (file_name_concat): Renamed from path_concat.  All callers changed.
63885         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
63886         * lib/filenamecat.h: Likewise.  All includers changed.
63887         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
63888         in comments or local variable names.
63889         * lib/basename.c: Likewise.
63890         * lib/canonicalize.c, canonicalize.h: Likewise.
63891         * lib/dirname.c, dirname.h: Likewise.
63892         * lib/euidaccess.c: Likewise.
63893         * lib/exclude.c: Likewise
63894         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
63895         * lib/fsusage.c, fsuage.h: Likewise.
63896         * lib/fts.c, fts_.h: Likewise.
63897         * lib/getcwd.c: Likewise.
63898         * lib/getloadavg.c: Likewise.
63899         * lib/mkstemp.c: Likewise.
63900         * lib/mountlist.c, mountlist.h: Likewise.
63901         * lib/openat.c, openat.h: Likewise.
63902         * lib/readlink-stub.c: Likewise.
63903         * lib/readutmp.c, readutmp.h: Likewise.
63904         * lib/rename.c: Likewise.
63905         * lib/rmdir.c: Likewise.
63906         * lib/same.c: Likewise.
63907         * lib/savedir.c: Likewise.
63908         * lib/stripslash.c: Likewise.
63909         * lib/tempname.c: Likewise.
63910         * lib/xreadlink.c: Likewise.
63911         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
63912         All uses changed.
63913         * lib/exclude.h: Likewise.
63914
63915         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
63916         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
63917         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
63918         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
63919         * lib/pathmax.h: Include <limits.h> unconditionally, since other
63920         files have been getting away with it for years (MORE/BSD 4.3
63921         is extinct now).
63922         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
63923         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
63924
63925         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
63926         Define to 256, not 255, as per modern POSIX.
63927
63928 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         Sync from coreutils.
63931         Use "file name" when talking about file names, instead of "filename"
63932         or "path", as per the GNU coding standards.
63933         * MODULES.html.sh: mkdir-p renamed from makepath.
63934         filenamecat renamed from path-concat.
63935         * modules/filenamecat: Renamed from modules/path-concat.
63936         (Files): filenamecat.h and filenamecat.c renamed from
63937         path-concat.h and path-concat.c.
63938         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
63939         (Include): filenamecat.h, not path-concat.h.
63940         * modules/mkdir-p: Renamed from modules/makepath.
63941         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
63942         makepath.c.
63943         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
63944         (Include): mkdir-p.h, not makepath.h.
63945
63946 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63947
63948         Sync from coreutils.
63949         * m4/mkdir-p.m4: Renamed from makepath.m4.
63950         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
63951         Rename files from makepath.c to mkdir-p.c, and from
63952         makepath.h to mkdir-p.h.
63953         * m4/filenamecat.m4: Renamed from path-concat.m4.
63954         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
63955         Rename files from path-concat.c to filenamecat.c,
63956         and from path-concat.h to filenamecat.h.
63957         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
63958         "file name" in local variables or comments.
63959         * m4/rename.m4: Likewise.
63960
63961 2005-06-01  Bruno Haible  <bruno@clisp.org>
63962
63963         * modules/csharpexec: New file.
63964         * MODULES.html.sh (C#): New section.
63965
63966 2005-06-01  Bruno Haible  <bruno@clisp.org>
63967
63968         * m4/csharp.m4: New file, from GNU gettext.
63969         * m4/csharpexec.m4: New file, from GNU gettext.
63970
63971 2005-06-01  Bruno Haible  <bruno@clisp.org>
63972
63973         * lib/csharpexec.h: New file, from GNU gettext.
63974         * lib/csharpexec.c: New file, from GNU gettext.
63975         * lib/csharpexec.sh.in: New file, from GNU gettext.
63976
63977 2005-05-31  Derek Price  <derek@ximbiot.com>
63978             Paul Eggert  <eggert@cs.ucla.edu>
63979
63980         Sync from cvs.
63981         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63982
63983 2005-05-31  Derek Price  <derek@ximbiot.com>
63984             Paul Eggert  <eggert@cs.ucla.edu>
63985
63986         Sync from cvs.
63987         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63988
63989 2005-05-29  Derek Price  <derek@ximbiot.com>
63990
63991         * config/srclist.txt (glob_.h, glob.c): Add these files.
63992
63993 2005-05-29  Derek Price  <derek@ximbiot.com>
63994
63995         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
63996         * modules/glob: New file.
63997         * modules/getlogin_r: Add link to POSIX spec in description.
63998
63999 2005-05-29  Derek Price  <derek@ximbiot.com>
64000             Paul Eggert  <eggert@cs.ucla.edu>
64001
64002         * m4/glob.m4: New file.
64003
64004 2005-05-29  Derek Price  <derek@ximbiot.com>
64005             Paul Eggert  <eggert@cs.ucla.edu>
64006
64007         * lib/glob_.h, lib/glob.c: New files.
64008
64009 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         * modules/fts (Files): Remove m4/inttypes-pri.m4.
64012         * modules/fts-lgpl (Depends-on): Remove gettext.
64013
64014 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64015
64016         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
64017         and don't require gt_INTTYPES_PRI.
64018
64019 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
64022
64023         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
64024         the configuration hassle isn't worth it.
64025         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
64026         (LONGEST_MODIFIER, PRIuMAX): Remove.
64027
64028 2005-05-27  Bruno Haible  <bruno@clisp.org>
64029
64030         * lib/getlogin_r.h: Remove second include of <stddef.h>.
64031
64032 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
64035         _POSIX_PTHREAD_SEMANTICS for Solaris.
64036
64037 2005-05-25  Derek Price  <derek@ximbiot.com>
64038
64039         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
64040
64041 2005-05-25  Derek Price  <derek@ximbiot.com>
64042             Paul Eggert  <eggert@cs.ucla.edu>
64043
64044         * modules/getlogin_r, m4/getlogin_r.m4: New files.
64045         * lib/getlogin_r.c, getlogin_r.h: New files.
64046
64047 2005-05-25  Bruno Haible  <bruno@clisp.org>
64048             Derek Price  <derek@ximbiot.com>
64049
64050         * lib/getlogin_r.h: Simplify API documentation.
64051
64052 2005-05-23  Derek Price  <derek@ximbiot.com>
64053
64054         * modules/minmax (Files): Add m4/minmax.m4.
64055         (configure.ac): Add gl_MINMAX.
64056
64057 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64058
64059         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
64060         so that unistd-safer.h (GPL'ed code) need not be included.
64061
64062 2005-05-22  Bruno Haible  <bruno@clisp.org>
64063
64064         * m4/minmax.m4: New file.
64065         Based on a patch by Derek Price <derek@ximbiot.com>.
64066
64067 2005-05-22  Bruno Haible  <bruno@clisp.org>
64068
64069         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
64070         (INT64_MIN): Fix definition.
64071         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
64072
64073         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
64074         NEED_SIGNED_INT_TYPES.
64075
64076         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
64077         HAVE_SYSTEM_INTTYPES.
64078
64079 2005-05-22  Bruno Haible  <bruno@clisp.org>
64080
64081         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
64082         Also include <sys/param.h> if it defines MIN, MAX.
64083         Based on a patch by Derek Price <derek@ximbiot.com>.
64084
64085 2005-05-21  Jim Meyering  <jim@meyering.net>
64086
64087         * modules/fts (Files): Add m4/inttypes-pri.m4.
64088         (Depends-on): Add lstat and remove gettext.  Alphabetize.
64089
64090 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64091
64092         New fts module.
64093         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
64094         (setup_dir, free_dir): New functions.
64095         (enter_dir, leave_dir): Define trivial
64096         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
64097         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
64098         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
64099         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
64100         Move to fts-cycle.c.
64101         (fts_open): Use setup_dir.
64102         (fts_close): Use free_dir.
64103         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
64104         This adds a label and some gotos, but the alternatives were messier.
64105         Check for memory allocation failure when entering a dir.
64106         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
64107         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
64108         (FTS): New member fts_cycle, that is a union that contains the
64109         old active_dir_ht and cycle_state.  All uses changed to mention
64110         fts_cycle.ht and fts_cycle.state.
64111         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
64112         fts.c, with the following changes:
64113         (setup_dir, free_dir): New functions.
64114         (enter_dir): Now returns bool.  Return true if successful, false
64115         if memory exhausted.  All callers changed.
64116         Do not bother partly cleaning up on
64117         memory allocation failure; that is free_dir's job.
64118         However, free ad if hash_insert fails, to avoid memory leak.
64119         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
64120         fts->fts_options to see which union member to use.
64121
64122 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
64125         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
64126
64127 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64128
64129         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
64130
64131 2005-05-20  Jim Meyering  <jim@meyering.net>
64132
64133         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
64134         Now a macro, to pacify GCC.
64135
64136 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64137
64138         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
64139         of -1.
64140
64141 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64142
64143         * lib/chown.c (rpl_chown): Return -1 on failure.
64144
64145 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64146
64147         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
64148         Don't check for stddef.h.
64149         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
64150         don't use its results.
64151         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
64152         since we include them unconditionally.  Don't require
64153         AM_STDBOOL_H, since stdbool is a prerequisite.
64154         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
64155         since we assume C89 or better.
64156         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
64157         as we don't use their results.
64158         Don't check for fchdir, memmove, memset, strrchr, as we use
64159         them unconditionally.
64160         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
64161         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
64162
64163 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
64166         Include <stddef.h> unconditionally, since we assume C89 now.
64167         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
64168         * lib/fts.c: Include fts_.h first, to check interface.
64169         Do not include intprops.h; no longer needed.
64170         Include cycle-check.h and hash.h, since fts_.h no longer does.
64171         Remove unnecessary casts of closedir to void.
64172         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
64173         decide whether to decrement nlinks.
64174         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
64175         (FTS): Use struct hash_table * instead of Hash_table, so that
64176         we no longer need to include hash.h here.
64177
64178 2005-05-18  Jim Meyering  <jim@meyering.net>
64179
64180         * modules/dirfd (License): Change to LGPL.  Most of the code
64181         is already in the public domain.
64182
64183 2005-05-18  Jim Meyering  <jim@meyering.net>
64184
64185         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
64186         Reported by Yoann Vandoorselaere.
64187
64188 2005-05-17  Jim Meyering  <jim@meyering.net>
64189
64190         * m4/fts.m4: New file, from coreutils.
64191
64192 2005-05-17  Jim Meyering  <jim@meyering.net>
64193
64194         * lib/fts.c, lib/fts_.h: New files, from coreutils.
64195
64196 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64197
64198         Sync from coreutils.
64199         * m4/unlinkdir.m4: New file.
64200
64201 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64202
64203         Sync from coreutils.
64204         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
64205         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
64206         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
64207         White space changes only.
64208         * lib/makepath.c (make_path): Port to hosts where leading "//" is
64209         special.
64210         * lib/yesno.c: Include getline.h, not ctype.h.
64211         (yesno): Don't remove leading white space; POSIX doesn't allow it.
64212         Use getline to remove arbitrary restriction on response length.
64213
64214 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64215
64216         * config/srclist-update: Spell out "Street" in FSF postal
64217         mail address; this is the style the FSF seems to prefer.
64218
64219         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
64220         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
64221         this updates FSF postal mail address.
64222
64223         Sync from coreutils.
64224         * modules/unlinkdir: New file.
64225         * modules/yesno (Depends-on): Add getline.
64226         * MODULES.html.sh (File system functions): Add unlinkdir.
64227
64228 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64229
64230         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
64231         lib/strsep.h:
64232         Change the initial comment to refer to GPL, not LGPL.
64233         gnulib-tool will change it to LGPL as needed.
64234
64235         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
64236         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
64237         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
64238         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
64239         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
64240         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
64241         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
64242         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
64243         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
64244         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
64245         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
64246         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
64247         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
64248         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
64249         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
64250         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
64251         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
64252         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
64253         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
64254         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
64255         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
64256         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
64257         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
64258         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
64259         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
64260         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
64261         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
64262         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
64263         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
64264         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
64265         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
64266         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
64267         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
64268         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
64269         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
64270         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
64271         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
64272         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
64273         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
64274         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
64275         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
64276         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
64277         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
64278         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
64279         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
64280         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
64281         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
64282         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
64283         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
64284         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
64285         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64286         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
64287         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
64288         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
64289         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
64290         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
64291         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
64292         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
64293         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
64294         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
64295         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
64296         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
64297         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
64298         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
64299         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
64300         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
64301         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
64302         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
64303         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
64304         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
64305         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
64306         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
64307         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
64308         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
64309         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
64310         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
64311         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
64312         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
64313         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
64314         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
64315         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
64316         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
64317         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
64318         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
64319         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
64320         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
64321         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
64322         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
64323         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
64324         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
64325         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
64326         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
64327         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
64328         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
64329         lib/yesno.c, lib/yesno.h:
64330         Update FSF postal mail address.
64331
64332 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64333
64334         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
64335         tests/test-memmem.c, tests/test-stpncpy.c:
64336         Update FSF postal mail address.
64337
64338 2005-05-13  Bruno Haible  <bruno@clisp.org>
64339
64340         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
64341         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
64342         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
64343         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
64344         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
64345         Add support for 64-bit integers in the MSVC compiler.
64346
64347 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64348
64349         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
64350
64351 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
64352
64353         * gnulib-tool (func_import): Sort and uniquify recommended includes.
64354
64355 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
64356
64357         * doc/getdate.texi (General date syntax): Don't say that date
64358         date --iso-8601=ns generates acceptable dates; it doesn't yet.
64359         Problem reported by Nic Ferrier.
64360
64361 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64362
64363         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
64364         specified in ai_socktype. Fix invalid ai_protocol
64365         check. ai_protocol is usually set to 0 or depending on
64366         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
64367         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
64368         ai_socktype / ai_protocol in the returned addrinfo structure.
64369
64370 2005-05-10  Simon Josefsson  <jas@extundo.com>
64371
64372         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
64373         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64374
64375 2005-05-10  Karl Berry  <karl@gnu.org>
64376
64377         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
64378         (from http://www.gnu.org/licenses).
64379         * doc/COPYING.LIB: also rename to COPYING.LESSER.
64380         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
64381         fdl.texi suffices.
64382
64383 2005-05-10  Karl Berry  <karl@gnu.org>
64384
64385         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
64386         (COPYING.DOC): remove.
64387
64388         * config/srclist-update: new FSF address.
64389
64390 2005-05-10  Derek Price  <derek@ximbiot.com>
64391
64392         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
64393         possible.
64394
64395 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64396             Bruno Haible  <bruno@clisp.org>
64397
64398         * modules/inet_ntop: New file.
64399         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64400         inet_ntop.
64401
64402 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64403             Bruno Haible  <bruno@clisp.org>
64404
64405         * m4/inet_ntop.m4: New file.
64406
64407 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64408             Bruno Haible  <bruno@clisp.org>
64409
64410         * lib/inet_ntop.h: New file.
64411         * lib/inet_ntop.c: New file, from glibc with modifications.
64412
64413 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
64414
64415         * modules/time_r (License): Change to LGPL.
64416         * modules/extensions (License): Change to LGPL.  Actually,
64417         the license is more permissive than that, but currently gnulib-tool
64418         doesn't know how to handle more-permissive licenses.
64419
64420         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
64421         Problem reported by Dave Love.
64422
64423 2005-05-08  Jim Meyering  <jim@meyering.net>
64424
64425         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
64426         blank.
64427
64428 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64429
64430         * modules/argmatch (Depends-on): Add stdbool.
64431         * modules/backupfile (Depends-on): Likewise.
64432         * modules/chdir-long (Depends-on): Likewise.
64433         * modules/closeout (Depends-on): Likewise.
64434         * modules/cycle-check (Depends-on): Likewise.
64435         * modules/dirname (Depends-on): Likewise.
64436         * modules/fnmatch (Depends-on): Likewise.
64437         * modules/fsusage (Depends-on): Likewise.
64438         * modules/fwriteerror (Depends-on): Likewise.
64439         * modules/getcwd (Depends-on): Likewise.
64440         * modules/getloadavg (Depends-on): Likewise.
64441         * modules/hard-locale (Depends-on): Likewise.
64442         * modules/makepath (Depends-on): Likewise.
64443         * modules/mountlist (Depends-on): Likewise.
64444         * modules/nanosleep (Depends-on): Likewise.
64445         * modules/posixtm (Depends-on): Likewise.
64446         * modules/quotearg (Depends-on): Likewise.
64447         * modules/readtokens (Depends-on): Likewise.
64448         * modules/readtokens0 (Depends-on): Likewise.
64449         * modules/readutmp (Depends-on): Likewise.
64450         * modules/save-cwd (Depends-on): Likewise.
64451         * modules/strftime (Depends-on): Likewise.
64452         * modules/userspec (Depends-on): Likewise.
64453         * modules/utimecmp (Depends-on): Likewise.
64454         * modules/xgetcwd (Depends-on): Likewise.
64455         * modules/xnanosleep (Depends-on): Likewise.
64456         * modules/xstrtod (Depends-on): Likewise.
64457         * modules/yesno (Depends-on): Likewise.
64458
64459 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64460
64461         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
64462         needless checks.
64463
64464 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64465
64466         Merge from coreutils.  Among other things,
64467         add bulletproofing for cases where stdin, stdout, or stderr are closed.
64468         * lib/fd-safer.c: New file.
64469         * lib/fcntl-safer.h, open-safer.c: Remove.
64470         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
64471         * lib/dup-safer.c: Include unistd-safer.h first.
64472         Don't include errno.h.
64473         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
64474         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
64475         * lib/file-type.c: Rely on file-type.h change.
64476         * lib/getloadavg.c: Include unistd-safer.h.
64477         (getloadavg): Use safer open.
64478         * lib/getusershell.c: Include "stdio-safer.h".
64479         (getusershell): Use safer fopen.
64480         * lib/long-options.c (long_options): Use NULL rather than 0.
64481         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
64482         'free'.
64483         * lib/modechange.c: Likewise.
64484         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
64485         (MODE_DONE): New constant.
64486         (struct mode_change): Remove 'next' member.
64487         (make_node_op_equals): New function; like the old one of the
64488         same name, except it allocates an array.
64489         (mode_compile, mode_create_from_ref): Use it.
64490         (mode_compile): Allocate result as an array, not a linked list.
64491         Parse octal string ourself, so that we catch mistakes like "+0".
64492         (mode_adjust): Arg is an array, not a linked list.
64493         * lib/modechange.c: Include stat-macros.h, xalloc.h.
64494         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
64495         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
64496         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
64497         Remove.  This is now stat-macros.h's job.
64498         (talloc): Remove.  All callers replaced by xalloc, so that
64499         our invokers don't have to worry about reporting memory failures.
64500         (make_node_op_equals): Remove.
64501         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64502         New constants.
64503         (struct mode_change): Moved here from modechange.h.
64504         (mode_append_entry): Remove.
64505         (mode_compile): Remove MASKED_OPS arg, since it encouraged
64506         apps to have incorrect behavior.  Use simpler algorithm for head
64507         and tail.  Don't futz with umask; that's now the job of mode_adjust.
64508         Detect more invalid usages rather than having somewhat-random behavior.
64509         Don't insert an "a=" action, as that leads to incorrect behavior.
64510         (mode_compile, mode_create_from_ref): Return NULL on error instead
64511         of an enum, since now there's only one way to have an error.  All
64512         callers changed.
64513         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
64514         at the correct time.  Simplify calculation of "+u" and its ilk.
64515         Don't mishandle "+X".
64516         (mode_free): Remove "register" and localize decls.
64517         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64518         (struct mode_change): Move to modechange.c; callers don't
64519         need to see this stuff.
64520         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
64521         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
64522         (mode_change, mode_adjust): Reflect the new signatures noted above.
64523         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
64524         that might redefine system include files.
64525         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
64526         (my_usleep): Use NULL rather than (void *) 0.
64527         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
64528         Use siginterrupt to specify that system calls should be interrupted.
64529         (rpl_nanosleep): Move initialization of suspended closer to call of
64530         my_usleep.
64531         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
64532         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
64533         (desirable_utmp_entry): New function.
64534         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
64535         using x2nrealloc, to simplify logic.
64536         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
64537         size calculation.  Do not assume utmp file is a regular file.
64538         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
64539         (READ_UTMP_CHECK_PIDS): New constant.
64540         * lib/save-cwd.c: Include unistd-safer.h.
64541         (save_cwd): Use fd_safer.
64542         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
64543         [!_LIBC] Include "stat-macros.h" instead.
64544         * lib/unistd-safer.h (fd_safer): New decl.
64545
64546 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64547
64548         * modules/getloadavg (Depends-on): Add unistd-safer.
64549         * modules/getusershell (Depends-on): Add stdio-safer.
64550         * modules/lstat (Depends-on): Remove xalloc.
64551         * modules/mkstemp (Depends-on): Add stat-macros.
64552         * modules/modechange (Depends-on): Remove xstrtol.
64553         Add stat-macros, xalloc.
64554         * modules/save-cwd (Depends-on): Add unistd-safer.
64555         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
64556         * modules/unistd-safer (Files): Add lib/fd-safer.c
64557         (Makefile.am): Remove lib_SOURCES.
64558
64559         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
64560         Remove fcntl-safer; unistd-safer supersedes it.
64561
64562 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
64565         AC_HEADER_STAT.
64566         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
64567         (gl_PREREQ_CHOWN): Remove.
64568         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
64569         it.  Don't require AC_HEADER_STAT.
64570         (gl_PREREQ_LSTAT): Remove.
64571         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
64572         Don't require AC_HEADER_STAT.
64573         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
64574         (gl_PREREQ_RMDIR): Remove.
64575         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
64576         mention stat-macros.h or AC_HEADER_STAT, since we'll make
64577         the stat-macros module a prerequisite.
64578         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
64579         * m4/filemode.m4 (gl_FILEMODE): Likewise.
64580         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
64581         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
64582         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
64583         variable names.
64584         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
64585         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
64586         variable prefixes.
64587         * m4/fcntl-safer.m4: Remove.
64588         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
64589         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
64590         Invoke gl_PREREQ_FD_SAFER.
64591         (gl_PREREQ_FD_SAFER): New macro.
64592         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
64593         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
64594         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
64595         Remove duplicate call to AC_LIBOBJ(readutmp).
64596         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
64597
64598         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
64599         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
64600
64601 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64602
64603         * MODULES.html.sh (Misc): Add byteswap.
64604
64605 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64606
64607         * modules/getcwd (Depends-on): Add extensions.
64608         * modules/openat (Depends-on): Likewise.
64609
64610 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64611
64612         * modules/byteswap: New file.
64613
64614 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64615
64616         * m4/byteswap.m4: New file.
64617
64618 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64619
64620         * lib/byteswap_.h: New file.
64621
64622 2005-04-25  Karl Berry  <karl@gnu.org>
64623
64624         * m4/gettext.m4: Update from GNU gettext 0.14.4.
64625
64626 2005-04-25  Albert Chin  <china@thewrittenword.com>
64627
64628         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
64629         Toolkit C bug.
64630
64631 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
64632
64633         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
64634         (func_ln_if_changed) Remove forcibly for no error message
64635         in case file does not exist.
64636
64637 2005-04-19  Simon Josefsson  <jas@extundo.com>
64638
64639         * gnulib-tool (Options): Make --symlink mean --symbolic.
64640
64641 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
64642
64643         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
64644
64645 2005-04-16  Simon Josefsson  <jas@extundo.com>
64646
64647         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
64648
64649 2005-04-15  Simon Josefsson  <jas@extundo.com>
64650
64651         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
64652
64653 2005-04-15  Simon Josefsson  <jas@extundo.com>
64654
64655         * gnulib-tool: Rename --symlink to --symbolic.
64656
64657 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
64658
64659         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
64660         symbolic links to files instead of copying/moving.  Add --aux-dir,
64661         specifying directory relative --dir where auxiliary build tools
64662         are placed.
64663
64664 2005-04-14  Bruno Haible  <bruno@clisp.org>
64665
64666         * modules/allocsa (License): Change to LGPL.
64667         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
64668
64669 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64670
64671         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
64672         that "UTC +1 second" continues to work.  Problem reported
64673         by Dmitry V. Levin.
64674         (relunit_snumber): New rule.
64675         (relunit): Use it.
64676
64677 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         * lib/getdate.y (universal_time_zone_table): New constant.
64680         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
64681         universal_time_zone_table.
64682         (lookup_zone): Prefer universal_time_zone_table to
64683         local_time_zone_table, so that "GMT" time stamps are allowed in
64684         London during the summer.  Problem reported by Ian Abbott.
64685
64686 2005-04-12  Jim Meyering  <jim@meyering.net>
64687
64688         * lib/human.c (humblock): Set *options even when returning due to
64689         xstrtoumax conversion failure.  Thanks to a used-uninitialized
64690         warning from gcc-4.
64691
64692 2005-04-09  Jim Meyering  <jim@meyering.net>
64693
64694         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
64695         -Wuninitialized: initialize tm0.tm_year.
64696
64697 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64698
64699         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
64700         count, since there's no maximum.  All uses changed.
64701         Add member dsts_seen.
64702         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
64703         not being INT_MAX.
64704         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
64705         Use pc_rels_seen to decide whther a date is absolute.
64706
64707         * lib/getdate.y (number): Don't overwrite year.
64708         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
64709         check.
64710
64711 2005-04-02  Simon Josefsson  <jas@extundo.com>
64712
64713         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
64714         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
64715
64716 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
64717
64718         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
64719         where no absolute path name can be longer than PATH_MAX.
64720
64721 2005-03-27  Jim Meyering  <jim@meyering.net>
64722
64723         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
64724
64725 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
64726
64727         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
64728         "one's complement" -> "ones' complement" in comment, as per Knuth.
64729         "value of type" -> "type or expression" in comment.
64730         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
64731
64732 2005-03-26  Jim Meyering  <jim@meyering.net>
64733
64734         Comment nits.
64735         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
64736         Correct typos: s/or/of/.
64737
64738 2005-03-26  Jim Meyering  <jim@meyering.net>
64739
64740         * modules/check-include-files: Move to ../ and rename to...
64741         * check-module: ...this.
64742
64743 2005-03-25  Jim Meyering  <jim@meyering.net>
64744
64745         * modules/xvasprintf (Files): Add xalloc.h.
64746
64747 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         * modules/gettext (Files): config/config.rpath ->
64750         build-aux/config.rpath
64751         * modules/iconv (Files): Likewise.
64752         Problem reported by Oskar Liljeblad.
64753
64754 2005-03-23  Jim Meyering  <jim@meyering.net>
64755
64756         * modules/check-include-files: New script to check for
64757         missing dependencies, multiple includes, etc.
64758
64759         * modules/c-strtold (Depends-on): Add xalloc.
64760         * modules/c-strtod (Depends-on): Add xalloc.
64761         * modules/hash (Depends-on): Add xalloc.
64762         (Files): Remove lib/xalloc.h.
64763
64764         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
64765         * modules/userspec (Files): Add lib/inttostr.h.
64766
64767 2005-03-23  Jim Meyering  <jim@meyering.net>
64768
64769         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
64770
64771 2005-03-22  Jim Meyering  <jim@meyering.net>
64772
64773         * modules/stat-macros: New module.
64774         * modules/canonicalize, modules/euidaccess, modules/file-type,
64775         * modules/filemode, modules/lchown, modules/makepath,
64776         * modules/rmdir, modules/stat: Depend on new stat-macros module
64777         rather than listing lib/stat-macros.h manually.
64778         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
64779
64780 2005-03-22  Jim Meyering  <jim@meyering.net>
64781
64782         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
64783
64784 2005-03-22  Bruno Haible  <bruno@clisp.org>
64785
64786         * config/srclist.txt: Replace target directory 'config' with
64787         'build-aux'.
64788         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
64789         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
64790         ../build-aux/.
64791
64792 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * modules/chdir-long (Depends-on): Add mempcpy.
64795
64796         * modules/acl, modules/backupfile, modules/c-strtod,
64797         modules/c-strtold, modules/canon-host, modules/canonicalize,
64798         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
64799         modules/exclude, modules/exitfail, modules/file-type,
64800         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
64801         modules/getdate, modules/getline, modules/getpagesize,
64802         modules/getpass, modules/getugroups, modules/group-member,
64803         modules/hard-locale, modules/hash, modules/human, modules/idcache,
64804         modules/inttostr, modules/long-options, modules/makepath,
64805         modules/md5, modules/memcasecmp, modules/memcoll,
64806         modules/modechange, modules/mountlist, modules/path-concat,
64807         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
64808         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
64809         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
64810         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
64811         modules/strftime, modules/strndup, modules/strverscmp,
64812         modules/timespec, modules/unlocked-io, modules/userspec,
64813         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
64814         modules/yesno:
64815         Remove lib_SOURCES line from Makefile.am section, as this is now
64816         done automatically by the corresponding Autoconf macro.
64817
64818 2005-03-21  Jim Meyering  <jim@meyering.net>
64819
64820         Changes imported from coreutils.
64821
64822         * lib/cycle-check.c: Don't include xalloc.h.
64823
64824         * lib/path-concat.c: Don't include assert.h.
64825         (path_concat): Remove assertion that would have triggered
64826         for ABASE starting with more than one slash.
64827         Reported by Andreas Schwab.
64828
64829         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
64830         properly when ABASE is an absolute file name.
64831         Correct the description of this function.
64832         Include <assert.h>.
64833         Add an assertion and a test driver.
64834         This fixes a bug introduced on 2004-07-02.
64835         Andreas Schwab reported the resulting failure of cp --parents:
64836         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
64837
64838 2005-03-21  Jim Meyering  <jim@meyering.net>
64839
64840         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
64841         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
64842
64843 2005-03-21  Jim Meyering  <jim@meyering.net>
64844         and  Paul Eggert  <eggert@cs.ucla.edu>
64845
64846         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
64847         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
64848         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
64849         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
64850         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
64851         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
64852         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
64853         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
64854         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
64855         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
64856         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
64857         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
64858         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
64859         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
64860         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
64861         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
64862         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
64863         for these modules.
64864
64865 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
64868         (which shouldn't happen), generate nothing instead of returning 0
64869         immediately, so that nstrftime (NULL, ...) doesn't return 0.
64870
64871 2005-03-16  Bruno Haible  <bruno@clisp.org>
64872
64873         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
64874         HAVE_LONGLONG_64BIT.
64875
64876 2005-03-16  Bruno Haible  <bruno@clisp.org>
64877
64878         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
64879         HAVE_LONGLONG_64BIT.
64880
64881 2005-03-16  Bruno Haible  <bruno@clisp.org>
64882
64883         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
64884         HAVE_LONGLONG_64BIT.
64885
64886 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * lib/strftime.c (my_strftime): Prepend space to format so that we can
64889         reliably distinguish strftime failure from empty output on POSIX
64890         hosts.
64891
64892 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
64895         (iconv_string): Don't guess a size-zero buffer, as that might cause
64896         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
64897         result would be 'too large', where 'too large' is (heuristically)
64898         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
64899         overflow concerns.  This will prevent some unwanted malloc failures
64900         when the inputs are very large.
64901
64902 2005-03-15  Karl Berry  <karl@gnu.org>
64903
64904         * config/srclist.txt (config.rpath): from gettext.
64905         * config/config.rpath: update.
64906
64907 2005-03-15  Bruno Haible  <bruno@clisp.org>
64908
64909         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
64910         to 'negate'.
64911
64912         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
64913         variable.
64914
64915         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
64916         results.
64917
64918 2005-03-14  Simon Josefsson  <jas@extundo.com>
64919
64920         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
64921         <fx@gnu.org>.
64922
64923 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
64924
64925         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
64926         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
64927         intprops.h.
64928         * lib/strtol.c: Likewise.
64929
64930 2005-03-14  Jim Meyering  <jim@meyering.net>
64931
64932         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
64933         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
64934         to be nonzero so that we (and caller) can detect the difference
64935         between a valid zero-length expansion and an error return, even
64936         when the underlying strftime fails before writing anything into
64937         that location.
64938
64939 2005-03-14  Bruno Haible  <bruno@clisp.org>
64940
64941         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
64942         Update from GNU gettext 0.14.3.
64943
64944 2005-03-10  Jim Meyering  <jim@meyering.net>
64945
64946         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
64947
64948 2005-03-10  Jim Meyering  <jim@meyering.net>
64949
64950         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
64951         so that this module works on systems without fchdir.
64952
64953 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
64954
64955         Factor int-properties macros into a single file, except for
64956         glibc-related files.
64957         * lib/intprops.h: New file.
64958         * lib/getloadavg.c: Include it instead of limits.h.
64959         (INT_STRLEN_BOUND): Remove.
64960         * lib/human.c: Include intprops.h.
64961         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
64962         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
64963         302/1000.
64964         * lib/inttostr.h: Include intprops.h instead of limits.h.
64965         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
64966         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
64967         for consistency with intprops.h.
64968         (time_t_is_integer, twos_complement_arithmetic): Use them.
64969         * lib/sig2str.h: Include <signal.h>, intprops.h.
64970         (INT_STRLEN_BOUND): Remove.
64971         * lib/strftime.c (TYPE_SIGNED): Remove.
64972         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
64973         * lib/strtol.c: Adjust comments to match intprops.h.
64974         * lib/userspec.c: Include intprops.h.
64975         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
64976         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
64977         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
64978         instead of rolling our own expressions.
64979         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
64980
64981         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
64982         instead of int.
64983         (my_strftime): Do not mishandle years close to INT_MAX, by doing
64984         the right thing even if adding 1900 would overflow.  Similarly
64985         for tm_mon + 1 and tm_yday + 1.
64986         Make %Y always equivalent to %C%y, and similarly for %G and %g.
64987         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
64988         (DO_SIGNED_NUMBER): New macro.
64989         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
64990
64991 2005-03-07  Bruno Haible  <bruno@clisp.org>
64992
64993         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
64994
64995 2005-03-07  Bruno Haible  <bruno@clisp.org>
64996
64997         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
64998
64999 2005-03-04  Derek R. Price  <derek@ximbiot.com>
65000
65001         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
65002         (func_import): Only replace files via --import when they have actually
65003         changed.
65004
65005 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65006
65007         * m4/mmap-anon.m4: New file.
65008         * m4/pagealign_alloc.m4: New file.
65009
65010 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65011             Bruno Haible  <bruno@clisp.org>
65012
65013         * modules/pagealign_alloc: New file.
65014         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
65015
65016 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65017             Bruno Haible  <bruno@clisp.org>
65018
65019         * lib/pagealign_alloc.h: New file.
65020         * lib/pagealign_alloc.c: New file.
65021
65022 2005-03-03  Bruno Haible  <bruno@clisp.org>
65023
65024         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
65025         Use an all-permissive copyright notice, recommended by RMS.
65026
65027 2005-03-02  Bruno Haible  <bruno@clisp.org>
65028
65029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
65030         of AIX, the replacement has to be done only after <string.h> is
65031         included, therefore not in config.h. stpncpy.h does the replacement,
65032         and stpncpy.c uses it.
65033
65034 2005-03-02  Bruno Haible  <bruno@clisp.org>
65035
65036         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
65037         stpncpy.c uses it.
65038
65039 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65040
65041         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
65042         The workaround isn't strictly needed for POSIX conformance, and
65043         it's too much of a pain to configure and maintain.  We'll ask
65044         people to fix their kernels instead.
65045         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
65046         (NANOSLEEP_BUG_WORKAROUND): Remove.
65047         (xnanosleep): Remove the workaround.
65048
65049 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
65052         Reported by Derek Price.
65053         (Include): Add "timespec.h".
65054
65055         * modules/xnanosleep (Depends-on): Remove gethrxtime.
65056
65057 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
65060         to detect nanosleep bug.
65061
65062 2005-03-01  Bruno Haible  <bruno@clisp.org>
65063
65064         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
65065
65066 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65067
65068         * modules/gethrxtime: New file.
65069         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
65070         (Depends-on): Add gethrxtime.
65071         (configure.ac): Add gl_XNANOSLEEP.
65072         (Makefile.am): Remove lib_SOURCES line.
65073
65074 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65075
65076         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
65077         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
65078
65079 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65080
65081         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
65082         * lib/timespec.h (gettime): Return void, since it always
65083         succeeds now.  All uses changed.
65084         * lib/gettime.c (gettime) Likewise.
65085         [HAVE_NANOTIME]: Prefer nanotime.
65086         Assume gettimeofday succeeds, as POSIX requires.
65087         Assime time () succeeds, since other code already does.
65088         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
65089         (timespec_subtract): Remove.
65090         (NANOSLEEP_BUG_WORKAROUND): New constant.
65091         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
65092         things considerably.  Use it only on GNU/Linux hosts, since the
65093         workaround shouldn't be needed elsewhere.
65094
65095 2005-02-24  Bruno Haible  <bruno@clisp.org>
65096
65097         * modules/gettext (Files): Add m4/glibc2.m4.
65098
65099 2005-02-24  Bruno Haible  <bruno@clisp.org>
65100
65101         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
65102         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
65103         * m4/progtest.m4:
65104         Update from GNU gettext 0.14.2.
65105         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
65106
65107 2005-02-24  Bruno Haible  <bruno@clisp.org>
65108
65109         * lib/localcharset.c: Update from GNU gettext 0.14.2.
65110         * lib/config.charset: Update from GNU gettext 0.14.2.
65111
65112 2005-02-24  Bruno Haible  <bruno@clisp.org>
65113
65114         * lib/gettext.h: Update from GNU gettext 0.14.2.
65115
65116 2005-02-23  Simon Josefsson  <jas@extundo.com>
65117
65118         * m4/iconvme.m4: New file.
65119
65120 2005-02-23  Jim Meyering  <jim@meyering.net>
65121
65122         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
65123         change.
65124         Thanks to Bruno Haible for catching it.
65125
65126 2005-02-22  Simon Josefsson  <jas@extundo.com>
65127
65128         * modules/iconvme: New file.
65129
65130         * MODULES.html.sh: Add iconvme.
65131
65132 2005-02-22  Simon Josefsson  <jas@extundo.com>
65133
65134         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
65135
65136 2005-02-22  Simon Josefsson  <jas@extundo.com>
65137
65138         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
65139
65140 2005-02-22  Jim Meyering  <jim@meyering.net>
65141
65142         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
65143         s/ifndef/ifdef/.
65144
65145 2005-02-20  Neil Conway  <neilc@samurai.com>
65146
65147         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
65148         returned by OSX/Darwin if the specified buffer is not large
65149         enough for the hostname.
65150
65151 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65152
65153         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
65154         pass it to _help, otherwise the latter coredumps trying to
65155         dereference state.root_argp.
65156
65157 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65158
65159         * modules/chdir-long (Depends-on): Add memrchr.
65160         * modules/memrchr (Files): Add lib/memrchr.h.
65161         (Include): "memrchr.h".
65162
65163 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65164
65165         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
65166
65167 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         * lib/memrchr.h: New file.
65170         * lib/chdir-long.c: Include it.
65171         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
65172         Don't bother including stddef.h.
65173
65174 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65175
65176         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
65177         inclusion.
65178         Include <sys/types.h>, for dev_t.
65179         (ME_DUMMY, ME_REMOTE): Move from here....
65180         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
65181         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
65182         Dmitry V. Levin.
65183         Include mountlist.h first, to test the interface.
65184
65185 2005-01-29  Bruno Haible  <bruno@clisp.org>
65186
65187         * lib/progname.c (program_name): Initialize.
65188         Needed when linking statically on MacOS X.
65189
65190 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         Sync from coreutils.
65193         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
65194         (Depends-on): Add c-strtod.
65195         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
65196
65197 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65198
65199         Sync from coreutils.
65200         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
65201
65202         Remove files that are specific to coreutils.
65203         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
65204
65205 2005-01-28  Bruno Haible  <bruno@clisp.org>
65206
65207         * modules/javacomp: New file.
65208         * MODULES.html.sh (Java): Add javacomp.
65209
65210 2005-01-28  Bruno Haible  <bruno@clisp.org>
65211
65212         * m4/javacomp.m4: New file, from GNU gettext.
65213
65214 2005-01-28  Bruno Haible  <bruno@clisp.org>
65215
65216         * lib/javacomp.sh.in: New file, from GNU gettext.
65217         * lib/javacomp.h: New file, from GNU gettext.
65218         * lib/javacomp.c: New file, from GNU gettext.
65219
65220 2005-01-26  Simon Josefsson  <jas@extundo.com>
65221
65222         * lib/gai_strerror.c: Use GPL in header.
65223
65224 2005-01-26  Bruno Haible  <bruno@clisp.org>
65225
65226         * modules/javaexec: New file.
65227         * MODULES.html.sh (Java): Add javaexec.
65228
65229 2005-01-26  Bruno Haible  <bruno@clisp.org>
65230
65231         * m4/javaexec.m4: New file, from GNU gettext.
65232
65233 2005-01-26  Bruno Haible  <bruno@clisp.org>
65234
65235         * lib/javaexec.sh.in: New file, from GNU gettext.
65236         * lib/javaexec.h: New file, from GNU gettext.
65237         * lib/javaexec.c: New file, from GNU gettext.
65238
65239 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65240
65241         * modules/lchown (Depends-on): Remove lchown.h
65242
65243 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65244
65245         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
65246         must be defined if the header file was not found, in order
65247         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
65248
65249 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65250
65251         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
65252         initializers for struct pentry_state.
65253         (__argp_error): Check return value of __asprintf
65254         (__argp_failure): Translate error message
65255
65256         * lib/argp-parse.c: Removed braces around the expansion of N_()
65257
65258 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65259
65260         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
65261         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
65262         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
65263         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
65264         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
65265         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
65266         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
65267         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
65268         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
65269         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
65270         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
65271         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
65272         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
65273         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
65274         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
65275         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
65276         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
65277         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
65278         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
65279         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
65280         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
65281         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
65282         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
65283         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
65284         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
65285         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
65286         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
65287         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
65288         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
65289         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
65290         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
65291         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
65292         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
65293         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
65294         xstrtol.m4, xstrtoumax.m4, yesno.m4:
65295         Use an all-permissive copyright notice, recommended by RMS.
65296
65297 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
65298
65299         * modules/chdir-long (Depends-on): Remove mempcpy.
65300
65301 2005-01-21  Jim Meyering  <jim@meyering.net>
65302
65303         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
65304         same value as for Solaris 9.
65305
65306         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
65307         component length.  This included changing the parameter to be
65308         of type `char *' rather than `char const *'.
65309         * lib/chdir-long.h (chdir_long): Update prototype.
65310
65311         * lib/openat.c (fdopendir, fstatat): New functions.
65312         * lib/openat.h: Include headers required for use of DIR and struct
65313         stat.
65314         [AT_SYMLINK_NOFOLLOW]: Define.
65315         (fdopendir, fstatat): Add prototypes.
65316
65317 2005-01-21  Bruno Haible  <bruno@clisp.org>
65318
65319         * modules/classpath: New file.
65320         * MODULES.html.sh (Java): Add classpath.
65321
65322 2005-01-21  Bruno Haible  <bruno@clisp.org>
65323
65324         * lib/classpath.h: New file, from GNU gettext.
65325         * lib/classpath.c: New file, from GNU gettext.
65326
65327 2005-01-20  Simon Josefsson  <jas@extundo.com>
65328
65329         * modules/version-etc-fsf: New file.
65330
65331 2005-01-20  Simon Josefsson  <jas@extundo.com>
65332
65333         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
65334         * lib/version-etc.c: Remove version_etc_copyright.
65335         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
65336         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
65337
65338 2005-01-20  Simon Josefsson  <jas@extundo.com>
65339
65340         * lib/base64.h (isbase64): Add.
65341
65342         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
65343         using a unsigned prototype, don't inline.
65344         (base64_decode): Use it.
65345
65346 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65347
65348         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
65349         it.
65350
65351 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65352
65353         * lib/save-cwd.c (save_cwd): Remove code to support the case
65354         where fchdir is missing or flaky.
65355
65356 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65357
65358         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
65359
65360 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65361
65362         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
65363         AC_LIBSOURCES now does this.
65364         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
65365         with new ullong_max module.
65366
65367 2005-01-19  Bruno Haible  <bruno@clisp.org>
65368
65369         * modules/sh-quote: New file.
65370         * MODULES.html.sh (Executing programs): Add sh-quote.
65371
65372 2005-01-19  Bruno Haible  <bruno@clisp.org>
65373
65374         * lib/sh-quote.h: New file, from GNU gettext.
65375         * lib/sh-quote.c: New file, from GNU gettext.
65376
65377 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         Merge from coreutils.
65380         * m4/ullong_max.m4: New file.
65381         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
65382         (gl_MACROS): Assume localeconv exists.
65383
65384 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65385
65386         Merge changes from coreutils, as described below in several
65387         changelogs dated today.
65388
65389         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
65390         (O_DIRECTORY): Remove; not needed here, since "." must be
65391         a directory.  All uses removed.
65392         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
65393         universal on Suns, and we also need to test for IRIX.
65394         Revamp code to use 'if' rather than '#if'.
65395         Avoid unnecessary comparison of cwd->desc to 0.
65396
65397         * lib/utimens.c (futimens): Robustify the previous patch, by checking
65398         for known valid error numbers rather than observed invalid ones.
65399
65400 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65401
65402         * modules/ullong_max: New file.
65403
65404         * modules/chdir-long, modules/openat: New files.
65405         * modules/save-cwd (Depends-on): Depend on chdir-long.
65406         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
65407
65408 2005-01-18  Jim Meyering  <jim@meyering.net>
65409
65410         Merge from coreutils.
65411         * m4/chdir-long.m4, m4/openat.m4: New files.
65412         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
65413         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
65414         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
65415         is sane and DOES follow symlinks.  Besides, testing 20 different
65416         systems found no broken chown implementations.
65417         Prompted by a change in rsync's copy of this macro.
65418         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
65419
65420         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
65421
65422         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
65423         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
65424         NULL-means-set-to-current-time semantics.
65425         Remove temporary file immediately, rather than waiting
65426         for configure's at-exit trap code to do it.
65427
65428 2005-01-18  Jim Meyering  <jim@meyering.net>
65429
65430         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65431
65432         * lib/utimens.c (futimens): Account for the fact that futimes
65433         can also fail with errno == ENOSYS or errno == ENOENT.
65434         Patch from Dmitry V. Levin.
65435
65436         Change the name of the robust chdir function from chdir to chdir_long.
65437         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
65438         (restore_cwd): Use chdir_long, not chdir.
65439         * lib/chdir-long.c: Renamed from chdir.c.
65440         * lib/chdir-long.h: Renamed from chdir.h.
65441         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
65442         Hurd.
65443
65444 2005-01-18  Bruno Haible  <bruno@clisp.org>
65445
65446         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
65447         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
65448         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
65449         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
65450         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
65451         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
65452         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
65453         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
65454         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
65455         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
65456         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
65457         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
65458         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
65459         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
65460         Use an all-permissive copyright notice, recommended by RMS.
65461
65462 2005-01-18  Bob Proulx  <bob@proulx.com>
65463
65464         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
65465         simplify offsetof() macro construct to avoid compile failure with
65466         native HP-UX 11.0 ANSI C compiler.
65467
65468 2005-01-17  Bruno Haible  <bruno@clisp.org>
65469
65470         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
65471         redundant because stpncpy.m4 takes care of it.
65472
65473 2005-01-17  Bruno Haible  <bruno@clisp.org>
65474
65475         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
65476
65477 2005-01-17  Bruno Haible  <bruno@clisp.org>
65478
65479         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
65480         used.
65481
65482 2005-01-17  Bruno Haible  <bruno@clisp.org>
65483
65484         * lib/fwriteerror.h (fwriteerror): Change specification to include
65485         fclose.
65486         * lib/fwriteerror.c: Include <stdbool.h>.
65487         (fwriteerror): At the end, close the file stream. Record whether
65488         stdout was already closed.
65489
65490 2005-01-17  Bruno Haible  <bruno@clisp.org>
65491
65492         * lib/execute.c (environ): Declare if needed.
65493         * lib/pipe.c (environ): Likewise.
65494         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
65495
65496 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65497
65498         * modules/argp: Depend on vsnprintf
65499
65500 2005-01-10  Jim Meyering  <jim@meyering.net>
65501
65502         * modules/closeout (Depends-on): Add atexit.
65503
65504 2005-01-06  Bruno Haible  <bruno@clisp.org>
65505
65506         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
65507
65508 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65509
65510         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
65511         definitions to be after all include files, to avoid collisions.
65512         Problem reported by Bob Proulx.
65513
65514 2005-01-04  Jim Meyering  <jim@meyering.net>
65515
65516         Changes imported from coreutils.
65517         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
65518         as the mkstemp template, use a temporary directory and an
65519         8.3-friendly template to avoid trouble on systems like DJGPP.
65520         Reported by Juan M. Guerrero via Stepan Kasal.
65521         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
65522         close. Remove the temporary directory right away, rather than waiting
65523         for configure's at-exit trap code to do it.
65524         Suggestion from Stepan Kasal.
65525
65526 2005-01-01  Simon Josefsson  <jas@extundo.com>
65527
65528         * gnulib-tool: Print #include directives when --import'ing.
65529
65530 2004-12-28  Simon Josefsson  <jas@extundo.com>
65531
65532         * tests/test-base64.c: Include required header files.  Remove
65533         unused variables.
65534
65535 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * modules/error (Depends-on): Remove gettext.
65538
65539 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65540
65541         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
65542         not needed.  This removes a dependency on the gettext module.
65543         [defined _LIBC]: Do not include <libintl.h>; not needed.
65544
65545 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
65548         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
65549
65550 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
65553         HAVE_DECL_STRTOLD.
65554
65555 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65556
65557         * modules/getdate (Depends-on): Remove alloca-opt.
65558
65559 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
65562
65563 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * lib/argp-parse.c: Include <stddef.h>.
65566         (alignof, alignto): New macros.
65567         (parser_init): Don't assume that void * is aligned sufficiently
65568         for struct option.
65569
65570         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
65571         need to extend the stack.
65572         (YYINITDEPTH): New macro, so that the initial stack isn't overly
65573         large.
65574
65575 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65576
65577         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
65578
65579 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65580
65581         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
65582         (2004-10-24) change.  Apparently this was a false alarm.
65583
65584         * modules/getdate: Depend on alloca-opt, not alloca.
65585
65586 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65587
65588         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
65589         Remove now-obsolete comment about AIX.
65590         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
65591         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
65592         (YYMAXDEPTH): New macro.
65593
65594 2004-12-18  Simon Josefsson  <jas@extundo.com>
65595
65596         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
65597
65598 2004-12-18  Bruno Haible  <bruno@clisp.org>
65599
65600         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
65601
65602 2004-12-18  Bruno Haible  <bruno@clisp.org>
65603
65604         * lib/fatal-signal.c (fatal_signals): Make non-const.
65605         (init_fatal_signals): New function.
65606         (uninstall_handlers, install_handlers): Ignore signals that were set to
65607         SIG_IGN.
65608         (at_fatal_signal): Call init_fatal_signals.
65609         (init_fatal_signal_set): Likewise. Ignore signals that were set to
65610         SIG_IGN.
65611         Reported by Paul Eggert.
65612
65613 2004-12-18  Bruno Haible  <bruno@clisp.org>
65614
65615         * doc/alloca.texi: New file.
65616         * doc/alloca-opt.texi: New file.
65617
65618 2004-12-17  Jim Meyering  <jim@meyering.net>
65619
65620         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
65621         Otherwise, install-sh could exit with improper exit status when
65622         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
65623
65624 2004-12-16  Simon Josefsson  <jas@extundo.com>
65625
65626         * tests/test-base64.c: Add license.
65627
65628 2004-12-15  Stepan Kasal  <address@hidden>
65629
65630         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
65631
65632 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
65633
65634         * modules/getcwd (Files): Add m4/d-ino.m4.
65635         Suggested by Mark D. Baushke.
65636
65637 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65638
65639         * lib/getdate.y (textint): New member "negative".
65640         (time_zone_hhmm): New function.
65641         Expect 14 shift-reduce conflicts, not 13.
65642         (o_colon_minutes): New rule.
65643         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
65644         (yylex): Set the "negative" member of signed numbers.
65645
65646 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65647
65648         * doc/getdate.texi (Time of day items, Time zone items):
65649         Describe new formats +00:00, UTC+00:00.
65650
65651 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65652
65653         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
65654         spurious "-l"s.  Problem reported by Stepan Kasal.
65655
65656 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
65657
65658         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
65659         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
65660
65661 2004-12-04  Simon Josefsson  <jas@extundo.com>
65662
65663         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
65664         Vandoorselaere <yoann@prelude-ids.org>.
65665
65666 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         Changes imported from coreutils.
65669         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
65670         exist.
65671         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
65672
65673 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65674
65675         Changes imported from coreutils.
65676         * lib/hard-locale.c: Assume <locale.h> exists.
65677         Include "strdup.h".
65678         (GLIBC_VERSION): New macro.
65679         (hard_locale): Assume setlocale exists.
65680         Rewrite to avoid #ifdef.
65681         Use strdup rather than malloc + strcpy.
65682         * lib/human.c: Assume <locale.h> exists.
65683         (human_readable): Assume localeconv exists.
65684
65685 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * modules/hard-locale (Depends-on): Add strdup.
65688
65689 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65690
65691         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
65692         convert T2, not T.  (Imported from libc.)
65693
65694 2004-11-30  Simon Josefsson  <jas@extundo.com>
65695
65696         * modules/restrict (License): Change to LGPL.
65697
65698 2004-11-30  Simon Josefsson  <jas@extundo.com>
65699
65700         * m4/restrict.m4: Add copyright and copying conditions.
65701
65702 2004-11-30  Simon Josefsson  <jas@extundo.com>
65703
65704         * m4/base64.m4: New file.
65705
65706 2004-11-30  Simon Josefsson  <jas@extundo.com>
65707
65708         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
65709         base64.
65710
65711         * tests/test-base64.c: New file.
65712
65713         * modules/base64: New file.
65714
65715 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
65718         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
65719
65720         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
65721
65722 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
65725         (__getcwd.c): Don't restore errno; glibc doesn't.
65726         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
65727         first, falling back to our code only if its results look suspicious.
65728         Ensure that the resulting buffer is only as large as necessary.
65729
65730         * lib/readutmp.c: Include readutmp.h first.
65731         Include <errno.h>, since readutmp.h no longer does that.
65732         * lib/readutmp.h: Don't include <errno.h>,
65733         <sys/param.h>, <time.h>; not needed to establish interface.
65734         (errno): Remove decl.
65735         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
65736         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
65737         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
65738
65739 2004-11-28  Simon Josefsson  <jas@extundo.com>
65740
65741         * lib/base64.h, base64.c: New file.
65742
65743 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
65746
65747 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65748
65749         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
65750         (Depends-on): Remove pathmax, same.  Add mempcpy.
65751         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
65752         (Makefile.am): Append getcwd.h to lib_SOURCES.
65753         (Include): Add getcwd.h.
65754         (Maintainer): Change from Jim Meyering to "all, glibc",
65755         since getdate now uses intended-for-glibc code.
65756         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
65757         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
65758
65759 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65760
65761         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
65762         HP's ANSI C compiler.
65763         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
65764         Declaring int functions causes warnings on some modern systems and
65765         shouldn't be needed to compile on ancient ones.
65766         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
65767         defined.
65768
65769         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
65770         with the following changes.
65771         (__set_errno): Parenthesize properly.
65772         Include <stdbool.h>.
65773         (MIN, MAX, MATCHING_INO): New macros.
65774         (__getcwd): Define with prototype, not K&R form.
65775         Use heuristics to allocate default buffer on stack if possible.
65776         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
65777         behavior, and to avoid the PATH_MAX limit when computing
65778         ../../../../...
65779         Use MATCHING_INO to compare inode number to file.
65780         Check for arithmetic overflow in size calculations.
65781         Fix bug in reallocation of dot array that caused getcwd to fail
65782         on directories nested deeper than 75.
65783         Be more careful about saving errno on error.
65784         Do not use realloc; use only free+malloc, as this is a bit
65785         more flexible and avoids a needless copy operation.
65786         Do not inspect st_dev and st_ino for symbolic links; POSIX
65787         doesn't specify the latter.
65788         Check for closedir errors.
65789         Avoid needless casts.
65790         Use "#ifdef weak_alias" around weak_alias, to be like other
65791         glibc code.
65792         The following changes to getcwd.c have effect only when used in
65793         gnulib; they have no effect inside glibc proper.
65794         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
65795         as alloca isn't used.
65796         (alloca, __alloca): Likewise.
65797         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
65798         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65799         unconditionally, as gnulib assumes C89 or better.
65800         Do not include <sys/param.h>.
65801         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
65802         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
65803         better.
65804         (NULL) [!defined NULL]: Remove; we assume C89 or better.
65805         Include <dirent.h> in a way that is compatible with modern Autoconf.
65806         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
65807         New macros, if not already defined.
65808         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
65809         Use "_LIBC", not "defined _LIBC", for consistency.
65810         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
65811         a mempcpy module.
65812         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
65813         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
65814         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
65815         credit only to Jim Meyering and adjust the copyright dates.
65816         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
65817         <stdlib.h>, <unistd.h>, "pathmax.h".
65818         Instead, include "xgetcwd.h" (first) and "getcwd.h".
65819         (INITIAL_BUFFER_SIZE): Remove.
65820         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
65821
65822 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65823
65824         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
65825         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
65826         Use the _ONCE methods, for efficiency.
65827         Check for fcntl.h.  In test program, include <errno.h>
65828         and <fcntl.h> if available.  Remove old K&R cruft from
65829         test program.  Check for common errors in GNU/Linux,
65830         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
65831         don't do AC_LIBOBJ, as that's getcwd.m4's job.
65832         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
65833         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
65834         name accordingly.
65835         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
65836         accommodate new getcwd.c.
65837         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
65838         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
65839         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
65840         that's all we need now.
65841
65842 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65843
65844         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
65845         argp-parse.c depends on getopt internals, that means we should
65846         always use our getopt, to be on the safe side.
65847         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
65848         order not to spoil the result of an eventual previous invocation
65849         of gl_GETOPT_SUBSTITUTE.
65850
65851 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65852
65853         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
65854         redefinition warnings. To avoid them, include the defines
65855         in `#if !defined __need_getopt ... #endif'. The only place
65856         where __getopt_argv_const is used is in definitions
65857         of getopt_long and getopt_long_only below, which are as well
65858         protected by `#ifndef __need_getopt'.
65859         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
65860         __need_getopt after including <stdio.h> and <unistd.h> These
65861         headers might have defined it.
65862
65863 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
65864
65865         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
65866
65867 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
65868
65869         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
65870         (futimens): New function, which uses futimes if available.
65871         (futimens, utimens): Support timespec==NULL, with same semantics
65872         as utime and utimens.
65873         * lib/utimens.h (futimens): New decl.
65874
65875 2004-11-23  Jim Meyering  <jim@meyering.net>
65876
65877         * lib/getopt_.h: Remove trailing blanks.
65878
65879 2004-11-23  Jim Meyering  <jim@meyering.net>
65880
65881         * lib/__fpending.c: Add comment.
65882
65883 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
65884
65885         * modules/canonicalize (Depends-on): Add xreadlink.
65886         Problem reported by James Youngman.
65887
65888 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65889
65890         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
65891         New macros.
65892         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
65893         optopt): Use them instead of invoking ## directly; otherwise, the
65894         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
65895
65896 2004-11-19  Bruno Haible  <bruno@clisp.org>
65897
65898         * lib/strtok_r.c: Move comments from here...
65899         * lib/strtok_r.h: ... to here.
65900
65901 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65902
65903         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
65904         implementations that mishandle size_t overflow.
65905
65906 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65907
65908         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
65909         might fail.  Problem reported by Yoann Vandoorselaere.
65910         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
65911         implementations that mishandle size_t overflow.
65912
65913 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65914
65915         * modules/canon-host (Depends-on): Add strdup.
65916
65917 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
65920
65921 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65922
65923         * lib/canon-host.c: Include "strdup.h".
65924         (canon_host): Use getaddrinfo if available, so that IPv6 works.
65925         Use strdup instead of malloc/strcpy to duplicate strings.
65926
65927         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
65928         (human_space_before_unit): New constant.
65929         * lib/human.c (human_readable): Support it.
65930
65931         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
65932         (xgetcwd): Set errno correctly when failing.
65933         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
65934         the failure is actually due to a PATH_MAX problem.
65935
65936         Further getopt changes to make it more likely that glibc will
65937         buy the changes back.
65938         * lib/getopt.c (POSIXLY_CORRECT): New constant.
65939         (getopt): Use it, so to preserve glibc semantic
65940         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
65941         when compiling for libc.
65942         * lib/getopt_.h (__getopt_argv_const): Bring it back.
65943         (getopt_long, getopt_long_only): Use it.
65944
65945         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
65946         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
65947         (getopt): Argv is now char * const *, as per standard.
65948         (_getopt_internal_r, _getopt_internal): Argv is now char **,
65949         not char *__getopt_argv_const *.
65950         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
65951         _getopt_long_only_r): Likewise.
65952         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
65953         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
65954         _getopt_long_r, _getopt_long_only_r): Likewise.
65955         * lib/getopt_.h (__getopt_argv_const): Remove.
65956         (getopt): Argv is now char * const *, as per standard.
65957
65958         * lib/getdate.y (tORDINAL): New token.
65959         (day, relunit): Allow it for relative times.
65960         (relative_time_table): Use tORDINAL for ordinals.
65961
65962 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65963
65964         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
65965         Document that "second" isn't allowed as an ordinal number.
65966
65967 2004-11-16  Jim Meyering  <jim@meyering.net>
65968
65969         * modules/closeout (Depends-on): Add fpending.
65970
65971 2004-11-15  Jim Meyering  <jim@meyering.net>
65972
65973         * lib/closeout.c: Include "__fpending.h" once again.
65974         Include <stdbool.h>.
65975         (close_stdout): Don't fail just because stdout was closed initially,
65976         since some programs don't write to stdout in the normal course of
65977         operation (other than --version and --help), and we don't want this
65978         function to make e.g. `touch file >&-' fail.
65979         But do fail if it was closed and someone has tried to write to it.
65980         E.g., `printf foo >&-' must fail.
65981
65982 2004-11-13  Jim Meyering  <jim@meyering.net>
65983
65984         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
65985
65986 2004-11-12  Simon Josefsson  <jas@extundo.com>
65987
65988         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
65989         small doc fix is still pending.
65990
65991 2004-11-11  Simon Josefsson  <jas@extundo.com>
65992
65993         * modules/strtok_r: New file.
65994
65995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65996         strtok_r.
65997
65998 2004-11-11  Simon Josefsson  <jas@extundo.com>
65999
66000         * m4/strtok_r.m4: New file.
66001
66002         * m4/getopt.m4: Replace opterr.
66003
66004 2004-11-11  Simon Josefsson  <jas@extundo.com>
66005
66006         * lib/strtok_r.h, strtok_r.c: New file.
66007
66008 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66009
66010         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
66011         of replacing opterr, getopt, etc.  This should handle the
66012         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
66013
66014 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66015
66016         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
66017         we can stop lying to compilers about the constness of argv when we
66018         are compiled outside glibc.
66019         (getopt, getopt_long, getopt_long_only): Use it.
66020         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66021         _getopt_internal, getopt): Likewise.
66022         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66023         _getopt_long_only_r): Likewise.
66024         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66025         _getopt_long_r, _getopt_long_only_r): Likewise.
66026
66027         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
66028         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
66029         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
66030         the other external symbols.
66031         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
66032         declaration, since the above renaming now works around collisions.
66033
66034 2004-11-11  Jim Meyering  <jim@meyering.net>
66035
66036         * lib/linebreak.c: Remove trailing blanks.
66037         * lib/alloca_.h: Likewise.
66038         * lib/acosl.c: Likewise.
66039         * lib/euidaccess.c: Likewise.
66040         * lib/allocsa.h: Likewise.
66041
66042 2004-11-10  Simon Josefsson  <jas@extundo.com>
66043
66044         * m4/getaddrinfo.m4: New file.
66045
66046 2004-11-10  Simon Josefsson  <jas@extundo.com>
66047
66048         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
66049
66050 2004-11-10  Simon Josefsson  <jas@extundo.com>
66051
66052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66053         getaddrinfo.
66054
66055         * modules/getaddrinfo: New file.
66056
66057 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66058
66059         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
66060
66061 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * lib/mktime.c (SHR): New macro, which is a portable
66064         substitute for >> that should work even on Crays.
66065         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
66066         Problem reported by Mark D. Baushke in
66067         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
66068         * lib/getdate.y (SHR): Likewise.
66069         (tm_diff): Use it.
66070         * lib/strftime.c (SHR): Likewise.
66071         (tm_diff): Use it.
66072         * lib/quotearg.c (struct quoting_options): Use unsigned int for
66073         quote_these_too, so that right shifts are well defined.  All uses
66074         changed.
66075
66076 2004-11-10  Jim Meyering  <jim@meyering.net>
66077
66078         Ensure that no close failure goes unreported.
66079         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
66080         return early when it seems there's nothing to flush.
66081         Don't include __fpending.h.
66082
66083 2004-11-10  Jim Meyering  <jim@meyering.net>
66084
66085         * modules/closeout (Depends-on): Remove fpending.
66086
66087 2004-11-10  Jim Meyering  <jim@meyering.net>
66088
66089         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
66090
66091 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66092
66093         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
66094         gl_FUNC_STRFTIME.
66095         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
66096         and AC_REQUIRE when possible, to avoid duplicate checks.
66097         Check for <wchar.h>.
66098
66099 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66100
66101         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
66102
66103 2004-11-09  Bruno Haible  <bruno@clisp.org>
66104
66105         * m4/sockpfaf.m4: New file.
66106
66107 2004-11-05  Bruno Haible  <bruno@clisp.org>
66108
66109         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
66110         Reported by Mark D. Baushke <mdb@cvshome.org>.
66111
66112 2004-11-04  Bruno Haible  <bruno@clisp.org>
66113
66114         2004-09-11  Bruno Haible  <bruno@clisp.org>
66115                 * allocsa.valgrind: New file.
66116         2004-02-06  Bruno Haible  <bruno@clisp.org>
66117                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
66118                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
66119                 Reported by Christopher Seip <chris.seip@hp.com>.
66120
66121 2004-11-04  Bruno Haible  <bruno@clisp.org>
66122
66123         * modules/allocsa (Files): Add lib/allocsa.valgrind.
66124         (Makefile.am): Distribute it.
66125
66126 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
66129         with errno == ERANGE if the buffer is too small.
66130         Problem reported by Mark D. Baushke.
66131
66132 2004-11-03  Albert Chin  <china@thewrittenword.com>
66133             Paul Eggert  <eggert@cs.ucla.edu>
66134
66135         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
66136         equivalent, substitute $ac_type for equivalent type rather than
66137         blindly using uint32_t *always* which won't work if uint32_t is not
66138         available.  Define _UINT32_T to work around typedef of uint32_t if
66139         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
66140         2.5.1.
66141
66142 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66143
66144         * m4/jm-macros.m4: Sync from coreutils.
66145         (gl_MACROS): Check for mbrlen, for pathchk.
66146         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
66147
66148 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66149
66150         * lib/xreadlink.c (MAXSIZE): New macro.
66151         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
66152         size does not exceed MAXSIZE.  Avoid cast.
66153         As suggested by Mark D. Baushke in
66154         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
66155         if readlink fails with buffer size just under MAXSIZE, try again
66156         with MAXSIZE.
66157
66158 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66159
66160         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
66161
66162 2004-11-02  Derek R. Price  <derek@ximbiot.com>
66163         and  Paul Eggert  <eggert@cs.ucla.edu>
66164
66165         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
66166         (get_date): Overparenthesize to avoid GCC warning.
66167
66168 2004-11-02  Bruno Haible  <bruno@clisp.org>
66169
66170         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
66171         returns void.
66172
66173 2004-11-02  Bruno Haible  <bruno@clisp.org>
66174
66175         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
66176         function returns void.
66177
66178 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66179
66180         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
66181         fflush_unlocked, flockfile, funlockfile, funlockfile,
66182         fputs_unlocked, putc_unlocked.
66183
66184 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66187         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
66188         already declared.
66189
66190 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * modules/getdate (Files): Add doc/getdate.texi.
66193         (Depends-on): Add setenv, xalloc.
66194
66195 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66196
66197         * lib/getdate.y: Add support for TZ="foo" within a date string.
66198         Fix some bugs near time_t boundaries.  Reject dates with
66199         out-of-range components, e.g., "Sept 31".
66200         Include <stdlib.h>, "setenv.h", "xalloc.h".
66201         (ISDIGIT_LOCALE): Remove; unused.
66202         Note that the TZ and time functions used here are not reentrant.
66203         (mktime_ok, get_tz): New functions.
66204         (TZBUFSIZE): New constant.
66205         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
66206         This requires that we sometimes generate our own TZ="XXX..." setting.
66207
66208 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66209
66210         * doc/getdate.texi: New file, from coreutils with modifications for
66211         the new TZ parsing.
66212
66213 2004-10-27  Derek R. Price  <derek@ximbiot.com>
66214
66215         * lib/mktime.c (not_equal_tm): Remove redundant check.
66216
66217 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66218
66219         * modules/regex (lib_SOURCES): Add regex.c.
66220         Reported by James Youngman in
66221         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
66222
66223 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * lib/getdate.y: Use Bison 1.875 features, and some minor
66226         code cleanups.  This change does not affect semantics.
66227         Don't include <stdlib.h>; no longer needed.
66228         Don't include unlocked-io.h; only the "#if TEST" code uses
66229         stdio, and performance isn't crucial there.
66230         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
66231         Bison 1.875 features as described below.
66232         All uses of "PC." replaced by "pc->".
66233         (YYSTYPE): Add a forward declaration.
66234         (yylex, yyerror): Use full prototypes in forward decls.
66235         Use "%pure-parser" rather than obsolescent "%pure_parser".
66236         Use %parse-param and %lex-param instead of obsolescent
66237         YYPARSE_PARAM and YYLEX_PARAM.
66238         (meridian_table, month_and_day_table, time_units_table,
66239         relative_time_table, time_zone_table, military_table,
66240         lookup_zone, lookup_word, get_date):
66241         Use NULL instead of 0 where appropriate.
66242         (to_hour): Avoid abort (), to avoid a dependency on
66243         stdlib.h.
66244         (yyerror, yylex): Now accepts parser_control * arg.
66245         (main) [TEST]: Use '\0' rather than 0 for char.
66246
66247 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
66250
66251 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
66254         It's now the caller's responsibility to handle the case where
66255         !HAVE_GETPAGESIZE && !defined getpagesize.
66256
66257         * lib/mktime.c (leapyear): Arg is long int, not int.
66258
66259 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
66260
66261         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
66262
66263 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66264
66265         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
66266         missing.  Problem reported by James Youngman.
66267
66268 2004-10-16  Simon Josefsson  <jas@extundo.com>
66269
66270         * gnulib-tool: Fix comments.  Fix parse problem.
66271         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
66272
66273 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
66274
66275         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
66276         implementation of getopt_long.  Problem reported by Alexander Taler in:
66277         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
66278
66279 2004-10-15  Bruno Haible  <bruno@clisp.org>
66280
66281         * gnulib-tool: Untabify. Initialize supplied_libname.
66282         (func_usage): More homogenous output.
66283         (func_modules_transitive_closure, func_modules_to_filelist,
66284         func_emit_lib_Makefile_am): New functions.
66285         (func_import): New function, extracted from big case statement. Use
66286         func_get_license, func_modules_transitive_closure,
66287         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
66288         opt_lgpl. Don't use test -a, as it's not portable.
66289         (func_create_testdir): Use func_modules_transitive_closure,
66290         func_modules_to_filelist, func_emit_lib_Makefile_am.
66291
66292 2004-10-15  Bruno Haible  <bruno@clisp.org>
66293
66294         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
66295
66296 2004-10-15  Bruno Haible  <bruno@clisp.org>
66297
66298         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
66299         the portions belonging to each module.
66300         Suggested by Derek Robert Price <derek@ximbiot.com>.
66301
66302 2004-10-12  Simon Josefsson  <jas@extundo.com>
66303
66304         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66305         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
66306         to real functions.
66307
66308 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66309
66310         * modules/vsnprintf: New file.
66311
66312 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66313
66314         * m4/vsnprintf.m4: New file.
66315
66316 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66317
66318         * lib/vsnprintf.h: New file.
66319         * lib/vsnprintf.c: New file.
66320
66321 2004-10-11  Bruno Haible  <bruno@clisp.org>
66322
66323         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
66324         vsnprintf.
66325
66326 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66327
66328         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
66329
66330 2004-10-07  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
66333         fits into the provided buffer.
66334
66335 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66336
66337         * lib/diacrit.c, diacrit.h: Add GPL notice.
66338
66339         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
66340         notice.
66341         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
66342         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
66343         This avoids a potential constant-folding bug.
66344
66345 2004-10-05  Bruno Haible  <bruno@clisp.org>
66346
66347         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
66348         for the declaration of strsep.
66349
66350 2004-10-05  Bruno Haible  <bruno@clisp.org>
66351
66352         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
66353
66354 2004-10-04  Simon Josefsson  <jas@extundo.com>
66355
66356         * modules/memmem: New file.
66357         * tests/test-memmem.c: New file.
66358         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
66359
66360 2004-10-04  Simon Josefsson  <jas@extundo.com>
66361
66362         * m4/memmem.m4: New file.
66363
66364 2004-10-04  Simon Josefsson  <jas@extundo.com>
66365
66366         * lib/memmem.h: New file.
66367         * lib/memmem.c: New file, taken from glibc.
66368
66369 2004-10-04  Simon Josefsson  <jas@extundo.com>
66370
66371         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
66372         '#ifdef USE_UNLOCKED_IO'.
66373
66374 2004-10-04  Simon Josefsson  <jas@extundo.com>
66375
66376         * config/srclist.txt: Add memmem from glibc.
66377
66378 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66379
66380         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
66381
66382         * modules/argmatch, modules/argp, modules/closeout, modules/error,
66383         modules/exclude, modules/getdate, modules/getline,
66384         modules/getndelim2, modules/getpass, modules/getpass-gnu,
66385         modules/getusershell, modules/linebuffer, modules/md5,
66386         modules/mountlist, modules/posixtm, modules/readtokens,
66387         modules/readutmp, modules/regex, modules/sha1,
66388         modules/version-etc, modules/yesno:
66389         Remove dependency on unlocked-io.
66390
66391 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
66394
66395         * m4/unlocked-io.m4: Add copyright notice.
66396         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
66397
66398 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66399
66400         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
66401         * lib/xmalloc.c (xmemdup): Likewise.
66402         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
66403         XFREE): Remove these long-obsolescent macros.
66404         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
66405         * lib/xstrdup.c: Remove.
66406
66407         * lib/regex.c (re_comp): Cast gettext return value to char *,
66408         Problem reported by Martin Neitzel via Mark D. Baushke.
66409
66410 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
66413         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
66414         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
66415         regex.c, sha1.c, version-etc.c, yesno.c:
66416         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
66417         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
66418         the includer's responsibility.
66419
66420         Sync from coreutils.
66421
66422         * lib/modechange.c (mode_compile): Don't decrement a pointer that
66423         points to the start of a string, as the C Standard says the
66424         resulting behavior is undefined.
66425
66426         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
66427         simple -> simple_backups, numbered_existing ->
66428         numbered_existing_backups, numbered -> numbered_backups
66429         to avoid shadowing problems.  All uses changed.
66430         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
66431         * lib/backupfile.c (check_extension, numbered_backup):
66432         Rename locals to avoid shadowing 'basename'.
66433         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
66434         once.
66435
66436         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
66437         * lib/.cvsignore: Add getopt.h.
66438
66439 2004-10-04  Bruno Haible  <bruno@clisp.org>
66440
66441         * modules/README: New file.
66442         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
66443         not a module.
66444
66445 2004-10-02  Jim Meyering  <jim@meyering.net>
66446
66447         * lib/dirfd.h, getpagesize.h: Add copyright notice.
66448
66449 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66450
66451         * modules/strsep: New file.
66452
66453 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66454
66455         * m4/strsep.m4: New file.
66456
66457 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66458
66459         * lib/strsep.h: New file.
66460         * lib/strsep.c: New file.
66461
66462 2004-10-01  Simon Josefsson  <jas@extundo.com>
66463
66464         * lib/snprintf.c (snprintf): Handle size==0.
66465
66466 2004-10-01  Simon Josefsson  <jas@extundo.com>
66467             Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
66470         (snprintf): Declare 'args'.
66471
66472 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         * lib/snprintf.c: Remove comments as to why each header is needed.
66475
66476 2004-10-01  Bruno Haible  <bruno@clisp.org>
66477
66478         * MODULES.html.sh: Add strsep.
66479
66480 2004-09-30  Simon Josefsson  <jas@extundo.com>
66481
66482         * modules/snprintf: New file.
66483
66484 2004-09-30  Simon Josefsson  <jas@extundo.com>
66485
66486         * m4/snprintf.m4: New file.
66487
66488 2004-09-30  Simon Josefsson  <jas@extundo.com>
66489
66490         * lib/snprintf.h, lib/snprintf.c: New files.
66491
66492 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66493
66494         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
66495         (hol_entry_help): Never translate an empty string.
66496         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
66497         * lib/argp.h (OPTION_NO_TRANS): New option.
66498
66499 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66500
66501         * modules/argp (Maintainer): Replace Simon Josefsson
66502         by Sergey Poznyakoff.
66503
66504 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
66507         changes merged back into glibc.
66508
66509 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66510
66511         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
66512
66513 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66514
66515         * lib/xvasprintf.c: Include xalloc.h.
66516         (xvasprintf): Use xalloc_die, not xmalloc_die.
66517
66518 2004-09-29  Bruno Haible  <bruno@clisp.org>
66519
66520         * modules/alloca-opt: New file, derived from modules/alloca.
66521         * modules/allocsa: Depend on alloca-opt instead of alloca.
66522         * modules/setenv: Likewise.
66523         * modules/vasnprintf: Likewise.
66524         * MODULES.html.sh: Add alloca-opt.
66525
66526 2004-09-28  Simon Josefsson  <jas@extundo.com>
66527
66528         * gnulib-tool: New parameter --lgpl, to asseert that modules are
66529         LGPL, and to replace license template from GPL to LGPL.
66530
66531 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * modules/dummy: Change license to LGPL.
66534
66535 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66536
66537         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
66538
66539 2004-09-24  Simon Josefsson  <jas@extundo.com>
66540
66541         * modules/minmax (License): Change from GPL to LGPL.
66542
66543 2004-09-23  Simon Josefsson  <jas@extundo.com>
66544
66545         * gnulib-tool (--import): Typo.
66546
66547 2004-09-23  Simon Josefsson  <jas@extundo.com>
66548
66549         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
66550
66551 2004-09-22  Bruno Haible  <bruno@clisp.org>
66552
66553         * modules/*: Add 'License' field.
66554         * gnulib-tool: Accept --extract-license option.
66555         (func_get_license): New function.
66556
66557 2004-09-21  Bruno Haible  <bruno@clisp.org>
66558
66559         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
66560         Reported by Simon Josefsson.
66561
66562 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66563
66564         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
66565         gl_AC_TYPE_LONG_LONG.
66566
66567 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66568
66569         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
66570
66571 2004-09-18  Simon Josefsson  <jas@extundo.com>
66572         and  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
66575         calls with autoreconf.  Define GL_LIB.
66576
66577 2004-09-14  Karl Berry  <karl@gnu.org>
66578
66579         * config/srclist.txt: unsync setenv.c, sigh.
66580
66581 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66582
66583         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
66584         Problem reported by Bruno Haible in:
66585         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
66586
66587 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66588
66589         * config/srclist.txt: Comment out argp-pvh.c.
66590
66591 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
66592
66593         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
66594         in case some system header has #define'd it.  Problem reported by
66595         Soeren D. Schulze in
66596         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
66597
66598 2004-09-09  Karl Berry  <karl@gnu.org>
66599
66600         * regex.[ch]: delete from the root.  These were supposed to be
66601                 synced with emacs cvs, but this has not happened for about
66602                 a year, and anyway nothing else uses emacs regex.[ch].
66603                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
66604                 lib/regex[.ch] is untouched.
66605
66606 2004-09-09  Bruno Haible  <bruno@clisp.org>
66607
66608         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
66609
66610 2004-09-09  Bruno Haible  <bruno@clisp.org>
66611
66612         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
66613         modifications.
66614         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
66615
66616 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66617
66618         * modules/xvasprintf: New file.
66619         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
66620
66621 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66622
66623         * lib/xvasprintf.h: New file.
66624         * lib/xvasprintf.c: New file.
66625         * lib/xasprintf.c: New file.
66626
66627 2004-09-08  Bruno Haible  <bruno@clisp.org>
66628
66629         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
66630
66631 2004-09-08  Bruno Haible  <bruno@clisp.org>
66632
66633         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
66634         length is > INT_MAX.
66635         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
66636         more.
66637
66638 2004-09-08  Bruno Haible  <bruno@clisp.org>
66639
66640         * lib/stdint_.h: New file, taken from GNU clisp.
66641
66642 2004-09-08  Bruno Haible  <bruno@clisp.org>
66643             Oskar Liljeblad  <oskar@osk.mine.nu>
66644
66645         * modules/stdint: New file.
66646         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
66647
66648 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66649
66650         Import from coreutils.
66651         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
66652         strings on unbounded length.  alloca's performance benefits aren't
66653         that important here.
66654         (V_STRDUP): Remove.
66655         (parse_with_separator): New function, with most of the internals
66656         of the old parse_user_spec.  Allow user to omit both user and group,
66657         for compatibility with FreeBSD.
66658         Clone only the user name, not the entire spec.
66659         Do not set *uid, *gid unless entirely successful.
66660         Avoid memory leak in some failing cases.
66661         Fix regression for USER.GROUP reported by Dmitry V. Levin in
66662         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
66663         (parse_user_spec): Rewrite to use parse_with_separator.
66664
66665 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66666
66667         * modules/userspec: Don't depend on alloca.
66668
66669 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
66672
66673 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66674
66675         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
66676         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
66677         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
66678
66679 2004-08-16  Simon Josefsson  <jas@extundo.com>
66680
66681         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
66682         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
66683         Add --dry-run for --import.
66684         Let user provided command line parameters override configure.ac
66685         settings.
66686
66687 2004-08-12  Simon Josefsson  <jas@extundo.com>
66688
66689         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
66690         as discussed with Paul Eggert in threads rooted at
66691         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
66692         and
66693         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
66694         Before, the test was empty, and relied on ELIDE_CODE in source
66695         code.)
66696         (gl_PREREQ_GETOPT): New macro.
66697         (gl_GETOPT): Use them.
66698
66699 2004-08-12  Simon Josefsson  <jas@extundo.com>
66700
66701         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
66702         * lib/getopt_.h: Renamed from getopt.h.
66703
66704 2004-08-12  Simon Josefsson  <jas@extundo.com>
66705
66706         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
66707         Change default library name from libfoo to libgnu.
66708         Now, if you have a configure.ac that says:
66709                 gl_SOURCE_BASE(gl)
66710                 gl_M4_BASE(gl/m4)
66711                 gl_MODULES(error getopt etcetera)
66712                 gl_INIT
66713         you can import all you need by running:
66714                 ../gnulib/gnulib-tool --import
66715
66716         * modules/getopt (Files): Rename getopt.h to getopt_.h.
66717         (Makefile.am): Rewrite, use logic from argz.
66718         (Include): Use <getopt.h> instead of "getopt.h".
66719
66720 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         * modules/argp (Files): Add m4/unlocked-io.m4.
66723         (Depends-on): Add extensions.
66724
66725 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66726
66727         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
66728         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
66729         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
66730         Check for program_invocation_name, program_invocation_short_name,
66731         flockfile, funlockfile, features.h, _getopt_long_only_r.
66732
66733 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
66736         its complicated substitute.
66737         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
66738         and program_invocation_name.
66739         (__argp_basename) [!_LIBC]: Remove; the only use was
66740         replaced by its body.
66741         (__argp_short_program_name): Change condition from
66742         !defined __argp_short_program_name to
66743         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
66744         to match argp-namefrob.h.
66745         (__argp_failure): Don't assume strerror_r returns char *.
66746         * lib/argp-parse.c (N_): Define unconditionally.
66747         (argp_default_options): Fill out initializers with 0 to avoid
66748         gcc warnings.
66749
66750 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66751
66752         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
66753         getopt1.c.
66754
66755 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66756
66757         Merge from coreutils.
66758
66759         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
66760
66761         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
66762         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
66763
66764 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66765
66766         Merge from coreutils.
66767
66768         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
66769         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
66770         for Reliant Unix 5.43.
66771
66772         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
66773         (union fooround): Use uintmax_t, not long int.
66774         The rest is a merge from libc:
66775         [defined _LIBC]: Include <shlib-compat.h>.
66776         (_obstack) [defined _LIBC]: Remove after 2.3.4.
66777
66778         * lib/settime.c (settime): Recode to avoid warning with
66779         Sun Forte C 6U2.
66780
66781         * lib/strverscmp.c: Convert to UTF-8.
66782
66783 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66784
66785         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66786         m4/uintmax_t.m4.
66787
66788 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66789
66790         * modules/xalloc-die: New file.
66791         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
66792
66793         * modules/md5 (Files): Add m4/uint32_t.m4.
66794         * modules/sha1: Renamed from modules/sha.
66795         (Files):
66796         Rename lib/sha.h to lib/sha1.h.
66797         Rename lib/sha.c to lib/sha1.c.
66798         Rename m4/sha.m4 to m4/sha1.m4.
66799         (lib_SOURCES): Likewise.
66800         (configure.ac): Rename gl_SHA to gl_SHA1.
66801         (Include): sha.h -> sha1.h.
66802
66803 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66804
66805         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
66806         * m4/sha1.m4: Renamed from sha.m4.
66807         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
66808
66809 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * lib/obstack.h (obstack_empty_p):
66812         Don't assume that chunk->contents is suitably aligned.
66813         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
66814         Likewise. Problem reported by Benno in
66815         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
66816
66817         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
66818         readable.  This could be improved further but it'd take some work.
66819
66820 2004-08-08  Simon Josefsson  <jas@extundo.com>
66821
66822         * modules/xgethostname (Depends-on): Remove exit and error (not
66823         used).
66824
66825         * modules/getpass-gnu: Add getpass.h.
66826         (Depends-on): Add stdbool.
66827         * modules/getpass: Add getpass.h.
66828
66829 2004-08-08  Simon Josefsson  <jas@extundo.com>
66830
66831         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
66832         Check getpass declaration.
66833
66834 2004-08-08  Simon Josefsson  <jas@extundo.com>
66835
66836         * lib/xgethostname.c: Don't include error.h (not used).
66837
66838         * lib/getpass.h: Add.
66839         * lib/getpass.c: Include getpass.h first.
66840
66841 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
66842
66843         * lib/xalloc-die.c: New file.
66844         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
66845         All uses removed.
66846         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
66847         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
66848         xalloc-die.c.
66849         (_, N_, xalloc_die): Move to xalloc-die.c.
66850         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
66851         so that we needn't mess with xalloc_msg_memory_exhausted.
66852
66853         * lib/sha1.h: Renamed from sha.h.
66854         (SHA1_H): Renamed from _SHA_H.
66855         (sha1_ctx): Renamed from sha_ctx.
66856         (sha1_init_ctx): Renamed from sha_init_ctx.
66857         (sha1_process_block): Renamed from sha_process_block.
66858         (sha1_process_bytes): Renamed from sha_process_bytes.
66859         (sha1_finish_ctx): Renamed from sha_finish_ctx.
66860         (sha1_read_ctx): Renamed from sha_read_ctx.
66861         (sha1_stream): Renamed from sha_stream.
66862         (sha1_buffer): Renamed from sha_buffer.
66863         * lib/sha1.c: Likewise; renamed from sha.c.
66864         Do not include <sys/types.h>.
66865         Include <stddef.h> rather than <stdlib.h>.
66866
66867 2004-08-08  Bruno Haible  <bruno@clisp.org>
66868
66869         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
66870         FILESYSTEM_PREFIX_LEN.
66871         * lib/progreloc.c: Likewise.
66872         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
66873
66874 2004-08-06  Simon Josefsson  <jas@extundo.com>
66875
66876         * modules/progname (Depends-on): Don't depend on stdbool.
66877
66878 2004-08-06  Simon Josefsson  <jas@extundo.com>
66879
66880         * modules/getsubopt: New file.
66881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66882         getsubopt.
66883
66884 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66885
66886         More merge from coreutils.
66887
66888         * m4/utimens.m4, m4/utimecmp.m4: New files.
66889         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
66890         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
66891         prereq.m4, sha.m4: Import changes from coreutils.
66892
66893 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         More merge from coreutils.
66896         * modules/raise, modules/readtokens0, modules/utimens:
66897         * modules/utimecmp, module/xnanosleep: New files.
66898         * modules/strftime: Add lib/strftime.h.
66899         Change include from <time.h> to "strftime.h".
66900         * modules/yesno: Add lib/yesno.h.
66901         * modules/backupfile: Remove lib/addext.c.
66902         * modules/euidaccess: Add stat-macros.h.
66903         * modules/canonicalize, modules/euidaccess,
66904         modules/filemode, modules/lchown, modules/makepath,
66905         modules/rmdir, modules/stat: Likewise.
66906
66907 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66908
66909         Merge from tar.
66910         * lib/argp-help.c (make_hol, hol_append): Don't assume that
66911         SIZE_MAX is a valid preprocessor constant.
66912         (__argp_basename): Change from "#ifndef _LIBC"
66913         to "#ifndef __argp_short_program_name", so that
66914         we don't compile these functions for tar.
66915
66916         More merges from coreutils.
66917         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
66918         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
66919         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
66920         * lib/addext.c: Remove; no longer needed.
66921         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
66922         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
66923         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
66924         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
66925         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
66926         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
66927         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
66928         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
66929         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
66930         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66931         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
66932         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
66933         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
66934         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
66935         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
66936         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
66937         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
66938         Import changes from coreutils.
66939
66940 2004-08-05  Simon Josefsson  <jas@extundo.com>
66941
66942         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
66943
66944 2004-08-05  Simon Josefsson  <jas@extundo.com>
66945
66946         * m4/getsubopt.m4: New file.
66947
66948 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66949
66950         Merge from coreutils.
66951
66952         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
66953         * m4/getcwd-path-max.m4: New files.
66954
66955         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
66956         FILESYSTEM_PREFIX_LEN ->
66957         FILE_SYSTEM_PREFIX_LEN.
66958         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
66959         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
66960         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
66961         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
66962
66963         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
66964         prerequisite modules now handle the DOS stuff.
66965         Don't check for unistd.h.
66966
66967 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66968
66969         Merge from coreutils.
66970
66971         * lib/.gdb-history: Remove; this doesn't belong here.
66972
66973         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
66974         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
66975         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
66976         * lib/getcwd.c: New files.
66977
66978         * lib/dirname.h: Include <stdbool.h>.
66979         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
66980         for consistency with POSIX terminology.  All uses changed.
66981         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
66982         (strip_trailing_slashes): Use bool for booleans.
66983         * lib/stripslash.c (strip_trailing_slashes): Likewise.
66984
66985         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
66986         sometimes returns a positive errno value even when it succeeds.
66987         (print_errno_message) [!LIBC]: Fall back on strerror if
66988         __strerror_r fails.
66989
66990         * lib/path-concat.c (mempcpy): Don't define if a system header defines
66991         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
66992         (longest_relative_suffix): New function.
66993         (path_concat): Use it.  Assume first argument is not NULL.
66994         Port to DOS.  Omit redundant separators.
66995         Report an error instead of returning NULL.
66996         Use mempcpy instead of memcpy.
66997         (xpath_concat): Remove: not declared or used.
66998
66999         * lib/same.h: Include <stdbool.h>
67000         (same_name): Return bool, not int.
67001         * lib/same.c (same_name): Likewise.
67002         (errno): Don't declare; we assume C89 or better now.
67003
67004         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
67005         if not already defined.
67006
67007         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
67008         * lib/dup-safer.c (errno): Likewise.
67009
67010 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67011
67012         Merge from coreutils.
67013         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
67014         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
67015         * modules/path-concat: Don't depend on strdup.
67016
67017 2004-08-03  Simon Josefsson  <jas@extundo.com>
67018
67019         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
67020         * lib/progname.h: Don't include stdbool.h.
67021
67022 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67023
67024         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
67025         * MODULES.html.sh (func_all_modules): Remove fatal.
67026
67027 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
67030
67031 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67032
67033         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
67034         working.
67035
67036 2004-08-02  Simon Josefsson  <jas@extundo.com>
67037
67038         * lib/getsubopt.h: New file, with comments from Bruno Haible.
67039         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
67040         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
67041
67042 2004-08-01  Simon Josefsson  <jas@extundo.com>
67043
67044         * lib/xgetdomainname.c: Include stdlib.h, for free().
67045
67046 2004-07-19  Bruno Haible  <bruno@clisp.org>
67047
67048         * MODULES.html.sh (func_all_modules): Add dummy.
67049
67050 2004-07-16  Simon Josefsson  <jas@extundo.com>
67051
67052         * modules/dummy: New file.
67053
67054 2004-07-16  Simon Josefsson  <jas@extundo.com>
67055
67056         * lib/dummy.c: New file.
67057
67058 2004-07-16  Bruno Haible  <bruno@clisp.org>
67059
67060         * lib/backupfile.h: Add extern "C" for C++.
67061         * lib/closeout.h: Likewise.
67062         * lib/copy-file.h: Likewise.
67063         * lib/findprog.h: Likewise.
67064         * lib/full-write.h: Likewise.
67065         * lib/pathname.h: Likewise.
67066         * lib/progname.h: Likewise.
67067         * lib/stpcpy.h: Likewise.
67068         * lib/stpncpy.h: Likewise.
67069         * lib/strcase.h: Likewise.
67070         * lib/strstr.h: Likewise.
67071         * lib/xalloc.h: Likewise.
67072
67073         * lib/mbswidth.h: Add extern "C" for C++.
67074         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
67075
67076 2004-07-13  Robert Millan  <robertmh@gnu.org>
67077
67078         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
67079
67080 2004-07-09  Simon Josefsson  <jas@extundo.com>
67081
67082         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
67083         failed without this.)
67084
67085 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67086
67087         * modules/chown (Files): Add lib/fchown-stub.c, since
67088         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
67089
67090 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * lib/fchown-stub.c: New file.
67093
67094 2004-06-24  Jim Meyering  <jim@meyering.net>
67095
67096         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
67097
67098 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67099
67100         * modules/argz: Omit "#include".
67101
67102         * MODULES.html.sh (func_all_modules): Add calloc, to match
67103         2004-06-01 addition of calloc module.
67104
67105 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67106
67107         * m4/argz.m4: New file, which is autoupdated from libtool.
67108
67109 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67110
67111         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
67112         libtool.
67113
67114 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67115
67116         * config/srclist-update: Don't insist on "USA." before the
67117         close-comment, as libtool omits the period and puts the */ on a
67118         separate line.
67119         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
67120         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
67121
67122 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
67123
67124         * modules/argz: New file.
67125         * MODULES.html.sh (func_all_modules): Add argz.
67126
67127 2004-06-12  Jim Meyering  <jim@meyering.net>
67128         and  Paul Eggert  <eggert@cs.ucla.edu>
67129
67130         * modules/hash (Files): Add lib/xalloc.h.
67131         * modules/pipe (Depends-on): Add wait-process.
67132         * modules/stat (Depends-on): Add xalloc.
67133         * modules/userspec (Files): Add lib/userspec.h.
67134         * modules/xstrto
67135
67136         Upgrade from gettext-0.13.
67137         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
67138         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
67139         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
67140
67141 2004-06-10  Jim Meyering  <jim@meyering.net>
67142
67143         * lib/calloc.c: New file.
67144
67145 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         * lib/getdate.y (yylex): Allow space between sign and number.
67148         Problem reported by Dan Jacobson.
67149
67150 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         Merge from coreutils CVS.
67153
67154         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
67155         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
67156         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
67157         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
67158         xstrtol.m4: Fix copyright date and/or serial number.
67159
67160         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
67161         See if we need an fchown replacement.
67162         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
67163         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
67164         and use the replacement function if we detect either defect.
67165
67166         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
67167         gl_UTIMECMP.
67168
67169 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67170         and  Jim Meyering  <jim@meyering.net>
67171
67172         Merge from coreutils CVS.
67173
67174         * lib/stat-macros.h: New file, with contents from file-type.h
67175         and coreutils' system.h.
67176         * lib/file-type.c: Include "stat-macros.h".
67177         * lib/file-type.h (file_type): Move all macro definitions to new file,
67178         stat-macros.h.
67179
67180         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
67181         Wrap old code with this conditional.
67182         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
67183         function that does not dereference symlinks.
67184         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
67185
67186         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
67187         dependency problems.
67188         (xreadlink): Accept new arg SIZE, for efficiency.
67189         All decls and uses changed.
67190         * lib/xreadlink.h: Include <stddef.h>, for size_t.
67191
67192         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
67193         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
67194
67195         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
67196         sysexits.h.
67197
67198 2004-06-01  Jim Meyering  <jim@meyering.net>
67199
67200         * m4/calloc.m4: New file.
67201
67202 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
67203
67204         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
67205         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
67206         Also, fix a typo in a diagnostic.
67207
67208 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67209
67210         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
67211         or AC_FUNC_REALLOC.
67212
67213 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67214
67215         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
67216         macros to be defined.
67217         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
67218         the allocator returns NULL because the requested size is zero.
67219
67220 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
67223         var.  Add comment explaining why libc still defines it.  This
67224         merges the following patch from glibc:
67225         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
67226
67227 2004-05-20  Andreas Schwab  <schwab@suse.de>
67228
67229         * m4/free.m4: Replace free if it not known to work, not the other
67230         way round.
67231
67232 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67233
67234         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
67235         present in glibc since revision 1.1 of this file.
67236         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
67237         obstack_alignment_mask, obstack_alloc, obstack_base,
67238         obstack_blank, obstack_blank_fast, obstack_chunk_size,
67239         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
67240         obstack_grow0, obstack_init, obstack_int_grow,
67241         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
67242         obstack_next_free, obstack_object_size, obstack_ptr_grow,
67243         obstack_ptr_grow_fast, obstack_room): Remove declarations of
67244         nonexistent functions.
67245
67246 2004-05-18  Karl Berry  <karl@gnu.org>
67247
67248         * config/srclist.txt: break link for vasnprintf.c.
67249
67250 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         Port obstack to the AS/400, where pointers are 16 bytes wide and
67253         you cannot cast an integer to a valid pointer.  This patch is
67254         currently waiting to be integrated into glibc; see
67255         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
67256
67257         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
67258         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
67259         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
67260         (struct obstack): temp member is now a union of a pointer and
67261         an integer, instead of an integer.  All integer uses changed.
67262         This does not affect the physical layout of struct obstack,
67263         except on hosts (like the AS/400) where the size or alignment of
67264         void * is greater than that of ptrdiff_t.
67265         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
67266         __STDC__)]: Store temporary in pointer member of union, not
67267         integer member.
67268         * lib/obstack.c: Include <stddef.h>, for offsetof.
67269         (struct fooalign): Remove; it doesn't need a name.
67270         (union fooround): Change double to long double, and add void *.
67271         (DEFAULT_ALIGNMENT): Use offsetof to compute.
67272         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
67273         not a macro.  Hence the values are always int; so remove all
67274         casts-to-int in uses.
67275
67276 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67277
67278         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
67279         we can get this patch merged into glibc.
67280
67281 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67282             Paul Eggert  <eggert@cs.ucla.edu>
67283
67284         * m4/argp: Depend on alloca.
67285
67286 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67287             Paul Eggert  <eggert@cs.ucla.edu>
67288
67289         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
67290         freecoding.
67291
67292 2004-05-17  Bruno Haible  <bruno@clisp.org>
67293
67294         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
67295         precision that consists of a '.' followed by an empty digit string.
67296         Patch by Tor Lillqvist <tml@iki.fi>.
67297
67298 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67299
67300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
67301         for backward compatibility with older code.  We need our own
67302         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
67303         it under some other name, and our alloca.h will define it.
67304
67305 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67306             Derek Price  <derek@ximbiot.com>
67307
67308         * lib/alloca.c: Include <alloca.h>, to get our interface.
67309         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
67310         include <alloca.h> first.  Use C89 prototype for alloca; this
67311         requires including <stddef.h> for size_t.  Use extern "C" if C++.
67312         Use #elif for simplicity, since we can assume C89 now.
67313         Don't try to source the system alloca.h since it will not be found
67314         and to prevent recursively including its replacement.
67315         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
67316         * lib/regex.c: Likewise.
67317
67318 2004-05-16  Derek Price  <derek@ximbiot.com>
67319             Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         getline cleanup.  This changes the getndelim2 API: both order of
67322         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
67323         no delimiter).
67324
67325         * lib/getline.c: Don't include stddef.h or stdio.h, since our
67326         interface does that.
67327         (getline): Always use getdelim, so that we don't have two
67328         copies of this code.
67329         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
67330         if available.
67331         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
67332         (GETNDELIM2_MAXIMUM): New macro.
67333         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
67334         instead of the old practice of delim2==0.  All callers changed.
67335         Return -1 on overflow, instead of returning junk.
67336         Do not set *linesize unless allocation succeeds.
67337         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
67338         that we include sys/types.h.
67339         * lib/getnline.h: Likewise.
67340         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
67341         (getndelim2): Reorder arguments.
67342         * lib/getnline.c (getnline, getndelim):
67343         Don't discard the NMAX argument.
67344         (getnline): Invoke getndelim, to avoid code duplication.
67345         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
67346         of (size_t) -1 by callers of the getnline family.
67347
67348 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67349
67350         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
67351         Check for gettimeofday.
67352         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
67353         Check for settimeofday, stime.
67354
67355 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67356
67357         * lib/nanosleep.c (suspended): Change its type from int to
67358         sig_atomic_t volatile.
67359         (first_call): Make it private to rpl_nanosleep, and have it
67360         be zero initially as that's a bit faster.
67361         (my_usleep): Round up fractional times instead of truncating them,
67362         as this is the usual meaning for 'sleep'.
67363
67364         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
67365         doesn't work.
67366         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
67367         (ENOSYS): Define if not defined.
67368         (settime): Fall back on stime if it exists and settimeofday fails.
67369         But don't bother with fallbacks if a method fails with errno == EPERM.
67370
67371 2004-05-11  Jim Meyering  <jim@meyering.net>
67372
67373         Prior to this change, the save_cwd caller required read access to the
67374         current directory on most systems (ones with the fchdir function).
67375
67376         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
67377         fails, try write-only, and finally, resort to using xgetcwd.
67378
67379 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67380
67381         * lib/obstack.c, obstack.h: Import changes from libc.
67382
67383 2004-04-28  Bruno Haible  <bruno@clisp.org>
67384
67385         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
67386         also implicitly appends .exe to executables.
67387         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
67388         accepts Windows pathnames.
67389         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67390         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67391         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67392         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67393         Reported by Derek Robert Price <derek@ximbiot.com>.
67394
67395 2004-04-21  Karl Berry  <karl@gnu.org>
67396
67397         * config/srclist.txt (localcharset.c): break sync.
67398
67399 2004-04-20  Paul Eggert  <eggert@twinsun.com>
67400
67401         * m4/host-os.m4: Add a copyright notice.
67402
67403 2004-04-20  Jim Meyering  <jim@meyering.net>
67404
67405         Change UTILS_ to gl_ in AC_DEFINE'd names.
67406         Change utils_- and jm_-prefixed variables, too.
67407         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
67408         UTILS_FUNC_MKDIR_TRAILING_SLASH.
67409         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
67410
67411         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
67412         Don't emit trailing blanks.
67413         Also rename jm_-prefixed variables to have gl_ prefix.
67414
67415         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
67416         Also rename jm_-prefixed variables to have gl_ prefix.
67417
67418         * m4/jm-macros.m4: Reflect the renamings.
67419         * m4/prereq.m4: Likewise.
67420
67421 2004-04-20  Jim Meyering  <jim@meyering.net>
67422
67423         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
67424         memory.
67425
67426 2004-04-20  Jim Meyering  <jim@meyering.net>
67427             Bruno Haible  <bruno@clisp.org>
67428
67429         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
67430         memory when realloc fails.
67431
67432 2004-04-19  Jim Meyering  <jim@meyering.net>
67433
67434         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
67435         now that readutmp.c may call `free (0)'.
67436
67437 2004-04-19  Bruno Haible  <bruno@clisp.org>
67438
67439         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
67440         * m4/inttypes_h.m4: Likewise.
67441         * m4/stdint_h.m4: Likewise.
67442         * m4/intmax_t.m4: Likewise.
67443         * m4/uintmax_t.m4: Likewise.
67444
67445 2004-04-18  Jim Meyering  <jim@meyering.net>
67446
67447         * m4/prereq.m4: Don't forbid jm_ prefix.
67448
67449         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
67450         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
67451         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
67452         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
67453         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
67454         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
67455         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
67456         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
67457         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
67458         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
67459         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
67460         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
67461         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
67462         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
67463         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
67464         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
67465         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
67466         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
67467         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
67468
67469 2004-04-18  Jim Meyering  <jim@meyering.net>
67470
67471         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
67472         failure, don't leak memory and do call END_UTMP_ENT.
67473
67474 2004-04-16  Jim Meyering  <jim@meyering.net>
67475
67476         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
67477         coreutils' stat program.
67478         (gl_PREREQ): Don't require jm_PREREQ_STAT.
67479
67480 2004-04-11  Paul Eggert  <eggert@twinsun.com>
67481
67482         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
67483         C89.
67484         (CHAR_BIT): Remove, since we assume C89.
67485         Include <stdint.h> if available, as per current Autoconf CVS advice.
67486
67487 2004-03-31  Jim Meyering  <jim@meyering.net>
67488
67489         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
67490         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
67491         * m4/xalloc.m4: Likewise.
67492
67493 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67494
67495         Merge from coreutils.
67496
67497         * m4/inttostr.m4: New file.
67498         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
67499         Require AM_STDBOOL_H and gl_TIMESPEC instead.
67500         Require gl_CLOCK_TIME.
67501         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
67502
67503 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67504
67505         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
67506         not bool, to be more consistent with Unix conventions.
67507         Suggested by Bruno Haible.
67508
67509         Merge from coreutils.
67510
67511         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
67512         * lib/umaxtostr.c: New files.
67513
67514         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
67515         the usual <time.h> dance.
67516         (get_date): Change signature to support fractional time stamps.
67517         All callers changed.
67518         * lib/getdate.y: Include "getdate.h" first, as we can now
67519         assume C89 and don't need to worry about 'const'.
67520         Similarly, include "unlocked-io.h" near start, not in middle.
67521         Include <limits.h>.
67522         (textint.value): Use long int rather than int.
67523         (textint.digits): Use size_t rather than int.
67524         (BILLION, LOG10_BILLION): New constants.
67525         (parser_control): New member rel_ns.  Members day_ordinal,
67526         time_zone, month, day, hour, minutes, rel_year, rel_month,
67527         rel_day, rel_hour, rel_minutes, rel_seconds
67528         are now long int, not int.  Member seconds is now struct timespec,
67529         not int.  New member timespec_seen.  Members dates_seen, days_seen,
67530         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
67531         not int.
67532         (%union.intval): Now long int, not int.
67533         New member timespec.
67534         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
67535         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
67536         (spec): Now is a timespec or an item list.
67537         (timespec, items): New nonterminals.
67538         (time, rel, relunit, number, get_date):
67539         Add support for fractional seconds.
67540         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
67541         (gmtime, localtime, mktime): Remove decls; not needed with C89.
67542         (to_hour): First arg is now long int, not int.
67543         (to_year): Returns long int, not int.
67544         Don't treat year -70 like 70.
67545         (tm_diff): Returns long int, not int.
67546         (lookup_word): Use bool instead of int when appropriate.
67547         (yylex): Use size_t for count, not int.
67548         Detect overflow when parsing large integer constants.
67549         Add support for fractions.
67550         (get_date): Make pointers 'const' if possible.
67551         Use more-portable code to detect integer overflow.
67552         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
67553         Don't use ctime; it's not reliable if the year has >4 digits.
67554
67555         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
67556         This is for compatibility with BSD.
67557
67558         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
67559         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
67560         From coreutils' system.h.
67561
67562         * lib/userspec.c: Don't include "posixver.h".
67563         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
67564         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
67565         compatible extension.  Simplify code by removing a boolean int
67566         that was always nonzero if a string was nonnull.
67567
67568 2004-03-30  Jim Meyering  <jim@meyering.net>
67569
67570         Merge from coreutils.
67571
67572         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
67573         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
67574         on some systems one must include <grp.h> before it.
67575         Reported by Christian Krackowizer.
67576
67577 2004-03-30  Jim Meyering  <jim@meyering.net>
67578
67579         Merge from coreutils.
67580
67581         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
67582
67583         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
67584         an empty input stream.
67585
67586         * lib/readtokens.c: Include <stdbool.h>.
67587         (readtoken): Use `size_t' rather than int/long.
67588         All callers adjusted.
67589         Use `bool' rather than `int' where appropriate.
67590         Use memset rather than an explicit loop.
67591         Use x2nrealloc rather than xrealloc.
67592         Allow the use of `\0' as a delimiter.
67593         (readtokens): Likewise.
67594         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
67595
67596 2004-03-30  Jim Meyering  <jim@meyering.net>
67597
67598         * m4/realloc.m4: Remove file, since now it does no more than
67599         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
67600         the `configure.ac' section of module/realloc.
67601         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
67602
67603 2004-03-30  Bruno Haible  <bruno@clisp.org>
67604
67605         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
67606         nonnull.
67607
67608 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67609
67610         Merge changes to getloadavg.c from coreutils and Emacs.
67611
67612         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
67613         Define to an expression, not to the empty string.
67614         Include cloexec.h and xalloc.h.
67615         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
67616         Use set_cloexec_flag rather than rolling our own.
67617         * lib/cloexec.c, lib/cloexec.h: New files.
67618
67619 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67620
67621         * m4/cloexec.m4: New file.
67622
67623 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67624
67625         * lib/getopt.h: Sync with libc CVS.
67626
67627 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67628             Bruno Haible  <bruno@clisp.org>
67629
67630         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
67631         mbswidth.
67632
67633 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67634             Bruno Haible  <bruno@clisp.org>
67635
67636         * lib/mbswidth.h: Include <wchar.h> only if
67637         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
67638         <wchar.h>.
67639         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
67640
67641 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67642
67643         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
67644         Sync with libc CVS.
67645         * lib/getopt_int.h: New file, also synced from libc.
67646
67647 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67648
67649         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
67650         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
67651         Bring back getopt.c, getopt.h, getopt1.c.
67652
67653 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67654
67655         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
67656         All uses changed.  Check for sa_sigaction member; this fixes
67657         a bug first reported by Jason Andrade in
67658         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67659
67660 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67661
67662         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
67663         '#if' expressions.  Unlike the code it replaces, it does not
67664         depend on (defined _SC_PAGESIZE).  However, it does depend on
67665         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
67666         first reported by Jason Andrade in
67667         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67668
67669 2004-02-25  Simon Josefsson  <jas@extundo.com>
67670
67671         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
67672
67673 2004-02-25  Simon Josefsson  <jas@extundo.com>
67674
67675         * lib/strdup.h: New file.
67676         * lib/strdup.c: Include it.
67677         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
67678         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
67679
67680 2004-02-23  Karl Berry  <karl@gnu.org>
67681
67682         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
67683         (from fencepost.gnu.org:/gd/gnuorg).
67684
67685 2004-02-23  Karl Berry  <karl@gnu.org>
67686
67687         * config/srclistvars.sh (GNUORG) [karl]: redefine.
67688         * config/srclist.txt: add maintain/standards documents.
67689
67690 2004-02-18  Bruno Haible  <bruno@clisp.org>
67691
67692         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
67693         Reported by Derek Robert Price <derek@ximbiot.com>.
67694
67695 2004-02-16  Karl Berry  <karl@gnu.org>
67696
67697         * config/mkinstalldirs, install-sh: update from automake.
67698
67699 2004-02-06  Karl Berry  <karl@gnu.org>
67700
67701         * m4/po.m4: update from gettext 0.14.1.
67702
67703 2004-02-06  Karl Berry  <karl@gnu.org>
67704
67705         * lib/config.charset: update from gettext 0.14.1.
67706
67707 2004-02-05  Paul Eggert  <eggert@twinsun.com>
67708
67709         Add comments and code, prompted by suggestions from Bruno Haible
67710         for sh-quote.
67711         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
67712         describing the enum quoting_style values.
67713         * lib/quotearg.c (quotearg_alloc): New function.
67714         (quotearg_buffer_restyled): Treat lone { and } as special.
67715         Treat = as special.  Work around bug with older shells
67716         that "see" a '\' that is really the 2nd byte of a multibyte char.
67717         Quote empty string with shell_quoting_style.
67718
67719 2004-02-03  Bruno Haible  <bruno@clisp.org>
67720
67721         * m4/pipe.m4: New file, from GNU gettext.
67722
67723 2004-02-03  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/pipe.h: New file, from GNU gettext.
67726         * lib/pipe.c: New file, from GNU gettext.
67727
67728 2004-01-27  Bruno Haible  <bruno@clisp.org>
67729
67730         * m4/execute.m4: New file, from GNU gettext.
67731
67732 2004-01-27  Bruno Haible  <bruno@clisp.org>
67733
67734         * lib/execute.h: New file, from GNU gettext.
67735         * lib/execute.c: New file, from GNU gettext.
67736         * lib/w32spawn.h: New file, from GNU gettext.
67737
67738 2004-01-24  Paul Eggert  <eggert@twinsun.com>
67739
67740         Merge from diffutils.
67741
67742         * lib/file-type.c (file_type): Add typed memory objects.
67743         * lib/file-type.h (S_TYPEISTMO): New macro.
67744
67745         * lib/c-stack.h (c_stack_action): Remove argv argument.
67746         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
67747         (die): Don't calculate message unless segv_action returns.
67748         (get_stack_location, min_address_from_argv, max_address_from_argv,
67749         volatile stack_base, volatile_stack_size): Remove.
67750         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
67751         that every segmentation violation is a stack overflow.  (Ouch!)
67752         See Debian bug 136249 (still outstanding) for more info about why
67753         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
67754
67755 2004-01-24  Paul Eggert  <eggert@twinsun.com>
67756
67757         Exit-status fix from coreutils.
67758
67759         Use exit_failure consistently in place of EXIT_FAILURE,
67760         so that program exit statuses are consistent on failure.
67761
67762         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
67763         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
67764         * lib/argmatch.h: Comment fix to match the above.
67765         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
67766         Now a macro referring to exit_failure, instead of a separate
67767         variable.  Include "exitfail.h" to get it.
67768         * lib/xstrtol.h: Include "exitfail.h".
67769         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
67770
67771         * lib/long-options.c (parse_long_options): Use prototype
67772         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
67773         for clarity.
67774
67775 2004-01-21  Jim Meyering  <jim@meyering.net>
67776
67777         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
67778         so as not to conflict with a different-sized __mktime_internal
67779         function in GNU libc.
67780         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
67781         Problem building statically-linked `ls' reported by Michael Brunnbauer.
67782
67783 2004-01-20  Karl Berry  <karl@gnu.org>
67784
67785         * config/config.guess: update from config.
67786
67787         * config/srclistvars.sh: GNUWWWLICENSES for karl.
67788
67789 2004-01-20  Bruno Haible  <bruno@clisp.org>
67790
67791         Safer stack allocation.
67792         * lib/setenv.c: Include allocsa.h.
67793         (alloca): Remove fallback definition.
67794         (freea): Remove macro.
67795         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
67796         instead of freea.
67797
67798 2004-01-20  Bruno Haible  <bruno@clisp.org>
67799
67800         * m4/eealloc.m4: New file, from GNU gettext.
67801
67802 2004-01-20  Bruno Haible  <bruno@clisp.org>
67803
67804         * m4/allocsa.m4: New file, from GNU gettext.
67805
67806 2004-01-20  Bruno Haible  <bruno@clisp.org>
67807
67808         * lib/xallocsa.h: New file, from GNU gettext.
67809         * lib/xallocsa.c: New file, from GNU gettext.
67810
67811 2004-01-20  Bruno Haible  <bruno@clisp.org>
67812
67813         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
67814
67815 2004-01-20  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
67818         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
67819         specially.
67820
67821 2004-01-20  Bruno Haible  <bruno@clisp.org>
67822
67823         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
67824         patch.
67825
67826 2004-01-20  Bruno Haible  <bruno@clisp.org>
67827
67828         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
67829
67830 2004-01-20  Bruno Haible  <bruno@clisp.org>
67831
67832         * lib/eealloc.h: New file.
67833
67834 2004-01-20  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/binary-io.h: Avoid warnings on Cygwin.
67837
67838 2004-01-20  Bruno Haible  <bruno@clisp.org>
67839
67840         * lib/allocsa.h: New file, from GNU gettext.
67841         * lib/allocsa.c: New file, from GNU gettext.
67842
67843 2004-01-18  Karl Berry  <karl@gnu.org>
67844
67845         * doc/gpl.texi, doc/lgpl.texi: new files.
67846
67847 2004-01-18  Karl Berry  <karl@gnu.org>
67848
67849         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
67850         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
67851
67852 2004-01-15  Paul Eggert  <eggert@twinsun.com>
67853
67854         Merge from coreutils.
67855
67856         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
67857         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
67858         (gl_DEFAULT_POSIX2_VERSION): Move
67859         the documentation from 'configure' into 'config.hin',
67860         so that 'configure --help' isn't burdened by it and
67861         we don't have to worry about its formatting there.
67862         Reword the documentation so that it's more succinct
67863         and can be run together into a single paragraph.
67864         * m4/same.m4 (gl_SAME): Check for pathconf.
67865
67866 2004-01-15  Paul Eggert  <eggert@twinsun.com>
67867
67868         Merge from coreutils.
67869
67870         * lib/posixver.c: Include posixver.h.
67871
67872         * lib/same.c: Include <stdbool.h>, <limits.h>.
67873         (_POSIX_NAME_MAX): Define if not defined.
67874         (MIN): New macro.
67875         (same_name): If file names are silently truncated, report
67876         that the file names are the same if they are the same after
67877         the silent truncation.
67878
67879         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
67880         conversion function.
67881         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
67882         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
67883         longer needed.
67884
67885 2004-01-15  Jim Meyering  <jim@meyering.net>
67886
67887         Merge from coreutils.
67888
67889         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
67890         if no library is required.
67891         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
67892         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
67893         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
67894         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
67895         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
67896         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
67897         value, $ac_cv_search_crypt, if it's "none required".
67898         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
67899         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
67900         not gl_FUNC_GETLOADAVG.
67901         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
67902         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
67903
67904 2004-01-15  Jim Meyering  <jim@meyering.net>
67905
67906         Merge from coreutils.
67907
67908         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
67909         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
67910         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
67911
67912         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
67913         optional configure-time default.
67914
67915         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67916
67917         * lib/xreadlink.c (xreadlink): Correct outdated comment.
67918
67919 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
67920
67921         Merge from coreutils.
67922
67923         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
67924         value, $ac_cv_search_nanosleep, if it's "none required".
67925
67926 2004-01-14  Paul Eggert  <eggert@twinsun.com>
67927
67928         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
67929         with like-named macro in fnmatch.c.
67930         (EXT): Use an internal constant instead.
67931
67932         Merge fnmatch patches from glibc.
67933         * lib/fnmatch.c (mbsinit): Remove define.
67934         Add libc_hidden_ver (__fnmatch, fnmatch).
67935         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
67936         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
67937
67938 2004-01-14  Karl Berry  <karl@gnu.org>
67939
67940         * config/install-sh: update from automake.
67941
67942 2004-01-13  Karl Berry  <karl@gnu.org>
67943
67944         * config/install-sh: update from automake.
67945
67946 2004-01-09  Karl Berry  <karl@gnu.org>
67947
67948         * config/install-sh: update from automake.
67949
67950 2004-01-05  Karl Berry  <karl@gnu.org>
67951
67952         * config/config.{sub,guess}: update from config.
67953
67954 2003-12-31  Karl Berry  <karl@gnu.org>
67955
67956         * config/depcomp: update from automake.
67957
67958 2003-12-14  Karl Berry  <karl@gnu.org>
67959
67960         * lib/config.charset: update from gettext-runtime.
67961
67962 2003-12-03  Paul Eggert  <eggert@twinsun.com>
67963
67964         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
67965         Bug reported by Alfred M. Szmidt.
67966
67967 2003-12-03  Bruno Haible  <bruno@clisp.org>
67968
67969         * m4/gettext.m4: Upgrade from gettext-0.13.
67970         * m4/po.m4: Upgrade from gettext-0.13.
67971         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
67972         * m4/intmax.m4: New file, from gettext-0.13.
67973         * m4/printf-posix.m4: New file, from gettext-0.13.
67974
67975 2003-11-29  Karl Berry  <karl@gnu.org>
67976
67977         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
67978
67979 2003-11-25  Paul Eggert  <eggert@twinsun.com>
67980             Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/printf-parse.h: Don't include sys/types.h.
67983         (ARG_NONE): New macro.
67984         (char_directive): Change type of *arg_index fields to size_t.
67985         * lib/printf-parse.c: Don't include sys/types.h.
67986         (SSIZE_MAX): Remove macro.
67987         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
67988         Remove unnecessary overflow check.
67989         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
67990         fields.
67991
67992 2003-11-25  Bruno Haible  <bruno@clisp.org>
67993
67994         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
67995
67996 2003-11-25  Bruno Haible  <bruno@clisp.org>
67997
67998         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
67999         gt_TYPE_SSIZE_T.
68000
68001 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68002
68003         * modules/alloca: Remove dependency on xalloc.
68004
68005 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68006
68007         * lib/alloca.c: Remove dependency on xalloc module.
68008         (xalloc_die): Remove.
68009         (memory_full) [!defined emacs]: New macro.
68010         [!defined emacs]: Don't include xalloc.h.
68011         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
68012         address arithmetic overflows.  Change datatypes a bit to avoid
68013         unnecessary casts.
68014
68015 2003-11-22  Jim Meyering  <jim@meyering.net>
68016
68017         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
68018         s/size/size_t/.
68019
68020 2003-11-21  Karl Berry  <karl@gnu.org>
68021
68022         * config/config.{sub,guess}: update from config.
68023
68024 2003-11-18  Karl Berry  <karl@gnu.org>
68025
68026         * config/config.{sub,guess}: update from config.
68027
68028         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
68029
68030 2003-11-17  Paul Eggert  <eggert@twinsun.com>
68031
68032         * README: Mention that S+T cannot overflow if S is the size of
68033         an existing object and T is sufficiently small.
68034
68035 2003-11-17  Jim Meyering  <jim@meyering.net>
68036
68037         On systems without utime and without a utimes function capable of
68038         dealing with a NULL struct utimbuf* argument, this utime replacement
68039         could -- in unusual circumstances -- leak a file descriptor.
68040         * lib/utime.c: Include <unistd.h> and <errno.h>.
68041         (utime_null): Be sure to close `fd' and to preserve errno.
68042         Reported by Geoff Collyer via Arnold Robbins.
68043
68044 2003-11-17  Bruno Haible  <bruno@clisp.org>
68045
68046         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
68047         (Depends-on): Add xsize.
68048
68049 2003-11-17  Bruno Haible  <bruno@clisp.org>
68050
68051         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
68052
68053 2003-11-17  Bruno Haible  <bruno@clisp.org>
68054
68055         * lib/vasnprintf.c (alloca): Remove fallback definition.
68056         (freea): Remove definition.
68057         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
68058         Reported by Paul Eggert.
68059
68060 2003-11-16  Paul Eggert  <eggert@twinsun.com>
68061             Bruno Haible  <bruno@clisp.org>
68062
68063         Protect against address arithmetic overflow.
68064         * lib/printf-args.h: Include stddef.h.
68065         (arguments): Change type of field 'count' to size_t.
68066         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
68067         'unsigned int' where appropriate.
68068         * lib/printf-parse.h: Include sys/types.h.
68069         (char_directive): Change type of *arg_index fields to ssize_t.
68070         (char_directives): Change type of fields 'count', max_*_length to
68071         size_t.
68072         * lib/printf-parse.c: Include sys/types.h and xsize.h.
68073         (SSIZE_MAX): Define fallback value.
68074         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
68075         instead of 'int' where appropriate. Check a_allocated, d_allocated
68076         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
68077         * lib/vasnprintf.c: Include xsize.h.
68078         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
68079         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
68080         overflow. Avoid wraparound when converting a width or precision from
68081         decimal to binary.
68082
68083 2003-11-16  Bruno Haible  <bruno@clisp.org>
68084
68085         Update from GNU gettext.
68086         * lib/printf-parse.c: Generalize to it can be compiled for wide
68087         strings.
68088         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
68089         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
68090         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
68091         SNPRINTF): New macros.
68092         Don't include <alloca.h> if the file is used inside libintl.
68093         (local_wcslen): New function, for Solaris 2.5.1.
68094         (VASNPRINTF): Use it instead of wcslen.
68095
68096 2003-11-16  Bruno Haible  <bruno@clisp.org>
68097
68098         * lib/xsize.h (xmax): New function.
68099         (xsum, xsum3, xsum4): Declare as "pure" functions.
68100
68101 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68102
68103         * modules/xalloc (Files): Undo latest change, since xalloc.h
68104         no longer needs SIZE_MAX or PTRDIFF_MAX.
68105
68106 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68107
68108         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
68109         gl_PTRDIFF_MAX.
68110
68111 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68112
68113         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
68114         "return", to pacify some unknown compiler.  Problem reported
68115         by Joerg Schilling.
68116
68117 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68118
68119         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
68120         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
68121         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
68122         heuristic is just as accurate as far as we know, and it removes a
68123         dependency on size_max.m4 and ptrdiff_max.m4.
68124
68125 2003-11-11  Bruno Haible  <bruno@clisp.org>
68126
68127         * modules/xsize (Files): Add m4/size_max.m4.
68128         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
68129
68130 2003-11-11  Bruno Haible  <bruno@clisp.org>
68131
68132         * m4/size_max.m4: New file.
68133         * m4/ptrdiff_max.m4: New file.
68134         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
68135         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
68136         (gl_XALLOC): Invoke it.
68137
68138 2003-11-11  Bruno Haible  <bruno@clisp.org>
68139
68140         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
68141         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
68142         defined.
68143
68144 2003-11-10  Paul Eggert  <eggert@twinsun.com>
68145
68146         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
68147         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
68148         rejected some allocations of exactly SIZE_MAX - 2 bytes.
68149         From Bruno Haible.
68150         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
68151         not (size_t) -1, since it's defined here.
68152
68153 2003-11-09  Karl Berry  <karl@gnu.org>
68154
68155         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
68156
68157 2003-11-06  Paul Eggert  <eggert@twinsun.com>
68158
68159         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
68160         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
68161         Reject sizes of exactly SIZE_MAX bytes.
68162         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
68163         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
68164
68165 2003-11-05  Bruno Haible  <bruno@clisp.org>
68166
68167         * lib/xsize.h: Include limits.h, to avoid a possible collision with
68168         SIZE_MAX defined in <limits.h> on Solaris.
68169
68170 2003-11-04  Jim Meyering  <jim@meyering.net>
68171
68172         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
68173         variable names, rather than @VAR@.
68174         * modules/poll: Likewise.
68175
68176 2003-11-04  Bruno Haible  <bruno@clisp.org>
68177
68178         * modules/xsize: New file.
68179         * modules/linebreak: Depend on xsize.
68180         * MODULES.html.sh (func_all_modules): Add xsize.
68181
68182 2003-11-04  Bruno Haible  <bruno@clisp.org>
68183
68184         * m4/xsize.m4: New file.
68185
68186 2003-11-04  Bruno Haible  <bruno@clisp.org>
68187
68188         * lib/xsize.h: New file.
68189         * lib/linebreak.c: Include xsize.h.
68190         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
68191         argument for overflow.
68192         Suggested by Paul Eggert.
68193
68194 2003-11-03  Karl Berry  <karl@gnu.org>
68195
68196         * config/config.{guess,sub}: update from config.
68197
68198 2003-11-03  Jim Meyering  <jim@meyering.net>
68199
68200         * modules/userspec (lib_SOURCES): Add userspec.h.
68201         (Include): Add "userspec.h".
68202         Improve description.
68203
68204 2003-11-03  Jim Meyering  <jim@meyering.net>
68205
68206         * lib/userspec.c: Include "userspec.h".
68207         * lib/userspec.h: New file.
68208
68209 2003-11-03  Bruno Haible  <bruno@clisp.org>
68210
68211         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
68212
68213 2003-11-03  Bruno Haible  <bruno@clisp.org>
68214
68215         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
68216         available, to avoid (extremely rare) race condition.
68217         Suggested by Paul Eggert.
68218
68219 2003-11-02  Karl Berry  <karl@gnu.org>
68220
68221         * config/srclist.txt (vasprintf.c): sync broken, sigh.
68222
68223 2003-10-31  Paul Eggert  <eggert@twinsun.com>
68224
68225         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
68226         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
68227         (read_filesystem_list): Set and use me_type_malloced.
68228         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
68229         whatever the type happens to be), for brevity and consistency.
68230         Check for size calculation overflow on Alphas running OSF/1.
68231
68232 2003-10-31  Jim Meyering  <jim@meyering.net>
68233
68234         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
68235
68236         * lib/linebuffer.c: Include <string.h> for declaration of memset.
68237
68238 2003-10-30  Paul Eggert  <eggert@twinsun.com>
68239             Bruno Haible  <bruno@clisp.org>
68240
68241         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
68242         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
68243
68244 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68245
68246         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
68247         netbsd*-gnu*.  Suggested by Robert Millan.
68248
68249 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68250
68251         * modules/group-member: Depend on stdbool.
68252
68253 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68254
68255         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
68256
68257 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68258
68259         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
68260         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
68261         after the 'gnu' in these cases.  This fixes some bugs in the
68262         previous change, and is based on suggestions by Robert Millan.
68263
68264 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68265
68266         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
68267         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
68268         no longer needed.
68269         * lib/quotearg.c (quotearg_n_options): Use it.
68270         * lib/group-member.c: Include <stdbool.h>.
68271         (free_group_info): Arg is now const *; don't free arg.
68272         (get_group_info): Now returns bool and accepts struct group_info *,
68273         rather than returning a malloc'ed struct group_info *.
68274         All uses changed.  Check for overflow in internal size calculation.
68275
68276         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
68277         rather than xmalloc/xrealloc.
68278         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
68279         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
68280         conformance bug: the old code used a pointer after freeing the
68281         storage that it addressed.
68282         * lib/hash.c (hash_initialize): Simplify the code by using
68283         xalloc_oversized rather than doing it by hand.
68284         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
68285         the buffer preserved.  Use free and xmalloc instead.
68286         * lib/quotearg.c (quotearg_n_options): Likewise.
68287         Use a simpler test for size overflow.  Don't use xalloc_oversized
68288         because unsigned int might be wider than size_t (!); this suggests
68289         that we should switch from unsigned int to size_t for slot numbers.
68290
68291 2003-10-28  Paul Eggert  <eggert@twinsun.com>
68292
68293         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
68294         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
68295         NetBSD kernels.  Requested by Richard Stallman.
68296
68297 2003-10-27  Paul Eggert  <eggert@twinsun.com>
68298
68299         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
68300         to allocate the returned structure.  Do not allocate a subarray,
68301         as x2nrealloc will do that.
68302         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
68303         instead of xnrealloc.
68304         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
68305
68306 2003-10-27  Bruno Haible  <bruno@clisp.org>
68307
68308         * lib/stdbool_.h: Better support for BeOS.
68309
68310 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68311
68312         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
68313         now uses inline.
68314
68315 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68316
68317         * lib/xalloc.h (xalloc_oversized): New static inline function, for
68318         callers that want to do their own size-overflow checking.  Include
68319         <stdbool.h>, since xalloc_oversized returns bool.
68320         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
68321         to use xalloc_oversized.
68322
68323         Add two functions x2realloc, x2nrealloc, for programs that grow
68324         arrays dynamically by doubling their sizes.
68325         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
68326         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
68327         New functions.
68328
68329         Port to C99 semantics for 'inline' of external functions.
68330         Bug reported by Bruno Haible.
68331         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
68332         with the old contents of xnmalloc.
68333         (xnmalloc, xmalloc): Use it.
68334         (xnrealloc_inline): New static inline function,
68335         with the old contents of xnrealloc.
68336         (xnrealloc, xrealloc): Use it.
68337
68338         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
68339         that.
68340
68341 2003-10-26  Karl Berry  <karl@gnu.org>
68342
68343         * config/srclist.txt (COPYING.DOC): no longer available from
68344         /gd/gnuorg; don't know where the ultimate source is.
68345
68346 2003-10-25  Paul Eggert  <eggert@twinsun.com>
68347
68348         Fix several address-calculation bugs in the hash modules,
68349         plus some minor code cleanup.
68350
68351         * lib/hash.h: Include <stdbool.h>, for bool.
68352         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
68353         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
68354         hash_get_n_entries, hash_get_max_bucket_length,
68355         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
68356         hash_rehash): Use size_t rather than unsigned.
68357         * lib/hash.c (struct hash_table, hash_get_n_buckets,
68358         hash_get_n_buckets_used, hash_get_n_entries,
68359         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
68360         hash_get_entries, hash_do_for_each, hash_string, is_prime,
68361         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
68362         Likewise.
68363         (SIZE_MAX): Define if not defined.
68364         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
68365         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
68366         hash_print):
68367         Use const * when possible.
68368         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
68369         (check_tuning): Fix bug: if tuning parameters were very close to
68370         0 or 1, rounding errors could have caused subscript violations.
68371         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
68372         (hash_initialize): Add 'fail:' label
68373         to free table and return NULL, and use it to simplify code.
68374         Use calloc rather than clearing the storage ourself.
68375         (hash_initialize, hash_rehash): Check for arithmetic overflow in
68376         buffer size calculations.
68377         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
68378         Include <stddef.h>, for size_t.
68379         * lib/hash-pjw.c (hash_pjw): Likewise.
68380         Switch to method described by Bruno Haible.
68381         Include <limits.h>, for CHAR_BIT.
68382         (SIZE_BITS): New macro.
68383
68384 2003-10-23  Paul Eggert  <eggert@twinsun.com>
68385
68386         * m4/getline.m4 (AM_FUNC_GETLINE):
68387         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
68388         hosts.  Problem reported by Derek Robert Price in
68389         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
68390         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
68391         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
68392
68393 2003-10-21  Paul Eggert  <eggert@twinsun.com>
68394
68395         * lib/getndelim2.c (getndelim2): When size calculation overflows,
68396         ceiling the allocation at NMAX bytes rather than silently
68397         discarding input bytes before NMAX is reached.  This makes
68398         a difference only if NMAX exceeds SIZE_MAX / 2.
68399
68400         * lib/obstack.c: Merge from glibc.
68401         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
68402         Add libc_hidden_def (_obstack_newchunk).
68403         (_obstack_free) [! defined _LIBC]: Remove.
68404         [defined _LIBC]: Make a strong alias from obstack_free, rather than
68405         a clone of the function body.
68406         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
68407         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
68408
68409         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
68410         glibc.
68411         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
68412         arg to memcpy.
68413
68414         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
68415         (obstack_ptr_grow_fast, obstack_int_grow_fast):
68416         Don't use lvalue casts, as GCC plans to remove support for them
68417         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
68418         was also present in the non-GCC version, indicating that this
68419         code had always been buggy and had never been widely used.
68420         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
68421         Use the fast variant of each macro, rather than copying the
68422         definiens of the fast variant; that way, we'll be more likely to
68423         catch future bugs in the fast variants.
68424
68425 2003-10-20  Bruno Haible  <bruno@clisp.org>
68426
68427         * modules/wait-process: New file.
68428         * MODULES.html.sh (func_all_modules): Add wait-process.
68429
68430 2003-10-20  Bruno Haible  <bruno@clisp.org>
68431
68432         * m4/wait-process.m4: New file.
68433
68434 2003-10-20  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/wait-process.h: New file, from GNU gettext.
68437         * lib/wait-process.c: New file, from GNU gettext.
68438
68439 2003-10-19  Jim Meyering  <jim@meyering.net>
68440
68441         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
68442         HPUX 10.20.
68443
68444 2003-10-18  Karl Berry  <karl@gnu.org>
68445
68446         * config/config.guess: update from config.
68447
68448 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68449
68450         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
68451         (getgroups): First arg is int, not size_t.
68452         Don't let 'free' mangle errno.
68453
68454 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68455
68456         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
68457
68458 2003-10-16  Karl Berry  <karl@gnu.org>
68459
68460         * config/config.{guess,sub}: update from config.
68461
68462 2003-10-16  Jim Meyering  <jim@meyering.net>
68463
68464         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
68465         memcpy.
68466
68467 2003-10-15  Paul Eggert  <eggert@twinsun.com>
68468
68469         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
68470         (SIZE_MAX): Remove.
68471         (new_exclude, add_exclude_file): Initial size no longer needs to
68472         be a power of 2.
68473         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
68474         our own address arithmetic overflow checking.
68475
68476         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
68477         (fnmatch): Do not alloca more than 2000 wide characters;
68478         instead, use malloc for large buffers.
68479         Check for address arithmetic overflow, and return -1
68480         with errno set to ENOMEM in that case.
68481         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
68482         (NEW_PATTERN): Do not alloca more than 8000 bytes;
68483         instead, return -1.  Check for address arithmetic overflow.
68484
68485 2003-10-14  Paul Eggert  <eggert@twinsun.com>
68486
68487         Handle invalid suffixes and overflow independently, so that
68488         callers can treat them independently as needed.  Fix some bugs in
68489         suffix handling, e.g., "100k@" was not diagnosed as an invalid
68490         suffix for a human-readable blocksize.  The major caller-visible
68491         change is the addition of a new
68492         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
68493         that both overflow and suffix chars were found.
68494
68495         * lib/human.c (humblock): Don't check separately for invalid suffix
68496         char; that is xstrtoumax's job (now that its bug is fixed).
68497         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
68498         INTMAX_MAX]: New macros.
68499         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
68500         TYPE_MAXIMUM): New macros.
68501         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
68502         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
68503         if overflow occurs, as it's what __strtol does and it's more useful
68504         in practice.
68505         (__xstrtol): If __strtol reports some error other than ERANGE,
68506         reflect it to the caller as LONGINT_INVALID.  If it reports
68507         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
68508         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
68509         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
68510         value.
68511         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
68512         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
68513         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
68514         [defined UINTMAX_MAX]: New macros.
68515
68516 2003-10-14  Bruno Haible  <bruno@clisp.org>
68517
68518         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
68519
68520 2003-10-14  Bruno Haible  <bruno@clisp.org>
68521
68522         * m4/sig_atomic_t: New file, from GNU gettext.
68523         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
68524
68525 2003-10-14  Bruno Haible  <bruno@clisp.org>
68526
68527         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
68528         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
68529         Also use volatile where needed.
68530
68531 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68532
68533         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
68534         Change maintainer from Bruno Haible to 'all'.
68535
68536 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68537
68538         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
68539
68540 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68541
68542         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
68543         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
68544         and define in terms of the other primitives.
68545         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
68546         (SIZE_MAX): Define if not already defined.
68547         (array_size_overflow): New function.
68548         (xalloc_die): Abort instead of exiting if 'error' returns.
68549         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
68550         (xmalloc, xrealloc): Use them.
68551         (xcalloc): Check for address arithmetic overflow.
68552         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
68553         a bit faster than strcpy.
68554
68555 2003-10-10  Simon Josefsson  <jas@extundo.com>
68556
68557         * modules/argp (Depends-on): Add restrict and strcase.
68558
68559 2003-10-10  Simon Josefsson  <jas@extundo.com>
68560
68561         * m4/argp.m4: Add AC_C_INLINE.
68562
68563 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68564
68565         Merge getpass from libc, plus a few fixes.
68566
68567         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
68568         Include <stdbool.h>.
68569         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
68570         __fsetlocking to empty.
68571         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
68572         do include <bits/libc-lock.h>.
68573         Do not include <fcntl.h>; not needed.
68574         [_LIBC]: Include <wchar.h>.
68575         (NOTCANCEL_MODE): New macro.
68576         (flockfile, funlockfile) [_LIBC]: New macros.
68577         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
68578         [!_LIBC]: New macros.
68579         (call_fclose): New function.
68580         (getpass): Use it.  Save tty stream separately; this simplifies the
68581         code and makes it more reliable if stdin happens to equal stdout.
68582         Invoke __fsetlocking on tty.
68583         Handle thread cancellation if needed.
68584         Namespace cleanup (use __tcgetattr, __getline).
68585         Use bool for Booleans.
68586         [USE_IN_LIBIO]: Handle wide streams.
68587         [!_LIBC]: Unconditionally do the fseek, since we don't know what
68588         stream might go where.
68589
68590         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
68591         doesn't have to include <stdio.h> before us.
68592         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
68593         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
68594         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
68595         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
68596         if not declared, so that we can use getpass.c code from libc without
68597         rewriting it.
68598         (flockfile, ftrylockfile, funlockfile): New macros.
68599
68600 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68601
68602         * modules/getpass: Depend on stdbool.
68603
68604 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68605
68606         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
68607
68608 2003-10-07  Karl Berry  <karl@gnu.org>
68609
68610         * config/config.{guess,sub}: update from config.
68611
68612 2003-10-06  Jim Meyering  <jim@meyering.net>
68613             Bruno Haible  <bruno@clisp.org>
68614
68615         This lets translators provide better translations for the
68616         "Written by ..." part of --version output.
68617         * lib/version-etc.h: Include stdarg.h.
68618         (version_etc_copyright): Declare as readonly.
68619         (version_etc): Make this function variadic with a NULL-terminated list
68620         of author name strings.
68621         (version_etc_va): New declaration.
68622         * lib/version-etc.c: Include stdarg.h, stdlib.h.
68623         (version_etc_copyright): Declare as readonly.
68624         (version_etc_va): New function. Provide a different translatable string
68625         for each possible number of authors < 10. Abbreviate when there are 10
68626         authors or more.
68627         (version_etc): Make this function variadic. Call version_etc_va.
68628         Suggestion from Gary V. Vaughan.
68629
68630         * lib/long-options.h (parse_long_options): Change prototype: the
68631         authors string is moved to the end and becomes variadic.
68632         * lib/long-options.c: Include stdarg.h.
68633         (parse_long_options): Make this function variadic, too.
68634         Call version_etc_va, not version_etc.
68635
68636 2003-10-06  Bruno Haible  <bruno@clisp.org>
68637
68638         * modules/version-etc-2: Remove file.
68639         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
68640
68641 2003-10-06  Bruno Haible  <bruno@clisp.org>
68642
68643         * modules/fatal-signal: New file.
68644         * MODULES.html.sh (func_all_modules): Add fatal-signal.
68645
68646 2003-10-06  Bruno Haible  <bruno@clisp.org>
68647
68648         * m4/fatal-signal.m4: New file.
68649         * m4/signalblocking.m4: New file, from GNU gettext.
68650
68651 2003-10-06  Bruno Haible  <bruno@clisp.org>
68652
68653         * lib/version-etc-2.h: Remove file.
68654         * lib/version-etc-2.c: Remove file.
68655
68656 2003-10-06  Bruno Haible  <bruno@clisp.org>
68657
68658         * lib/fatal-signal.h: New file, from GNU gettext.
68659         * lib/fatal-signal.c: New file, from GNU gettext.
68660
68661 2003-10-05  Paul Eggert  <eggert@twinsun.com>
68662
68663         * README: Rework advice for preventing empty .o files.
68664         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
68665         not <sys/types.h>.
68666
68667 2003-10-04  Karl Berry  <karl@gnu.org>
68668
68669         * lib/argp*: update from libc.
68670
68671 2003-10-04  Karl Berry  <karl@gnu.org>
68672
68673         * config/config.{guess,sub}: update from config.
68674
68675 2003-10-02  Bruno Haible  <bruno@clisp.org>
68676
68677         * modules/lchown (Include): Add lchown.h.
68678         * modules/time_r (Include): Use "..." syntax.
68679         * modules/xgetdomainname (Include): Add xgetdomainname.h.
68680
68681 2003-10-01  Simon Josefsson  <jas@extundo.com>
68682
68683         * MODULES.html.sh (func_all_modules): Move gethostname from section
68684         'based on' to section 'lacking' POSIX:2001.
68685
68686 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
68687
68688         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
68689         to output mode on the same stream.
68690
68691 2003-09-29  Paul Eggert  <eggert@twinsun.com>
68692
68693         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
68694         Fix arg typo in previous patch.
68695
68696 2003-09-28  Jim Meyering  <jim@meyering.net>
68697
68698         * lib/error.c: Correct cpp indentation.
68699
68700 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68701
68702         * modules/free: New file.
68703
68704 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68705
68706         * m4/free.m4: New file.
68707
68708 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68709
68710         * lib/minmax.h (MIN, MAX)
68711         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
68712         Omit the special code that used __typeof__, since we worry that
68713         it could be more trouble than it's worth.  See:
68714         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
68715         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
68716
68717         * lib/free.c: New file.
68718
68719 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
68720
68721         Trivial fixes to Makefile.am parts of module listings.
68722         * modules/strstr: Append strstr.h to lib_SOURCES.
68723         * modules/strcase: Likewise, for strcase.h.
68724
68725 2003-09-27  Karl Berry  <karl@gnu.org>
68726
68727         * config/mkinstalldirs: update from automake.
68728
68729 2003-09-26  Paul Eggert  <eggert@twinsun.com>
68730
68731         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
68732         (error_tail): Do not loop, reallocating temporary buffer, since
68733         the output cannot contain more wide characters than the input
68734         contains bytes, the size must be big enough already.  This avoids
68735         one potential size overflow calculation.  Check for size overflow
68736         when calculating temporary buffer size.  Free temporary buffer
68737         when done, if it was allocated with malloc; this plugs a memory
68738         leak.  Remove casts from void * to pointers, that are no longer
68739         needed now that we're assuming C89 or better.
68740
68741         Merge error changes from glibc.
68742
68743         * lib/error.c, error.h: Update copyright notice header to match glibc.
68744         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
68745         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
68746         Disable cancellation while printing error.
68747         * lib/error.h: Prepend __ to parameter names.
68748
68749 2003-09-26  Jim Meyering  <jim@meyering.net>
68750
68751         * lib/error.c (error_tail): Move some declarations
68752         into inner scope where the local variables are used.
68753
68754 2003-09-26  Bruno Haible  <bruno@clisp.org>
68755
68756         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
68757         stpncpy().
68758         Don't define stpncpy through config.h; it's now done through stpncpy.h.
68759
68760 2003-09-26  Bruno Haible  <bruno@clisp.org>
68761
68762         * lib/stpncpy.h (gnu_stpncpy): New declaration.
68763         (stpncpy): Define as alias for gnu_stpncpy.
68764         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
68765
68766 2003-09-25  Simon Josefsson  <jas@extundo.com>
68767
68768         * lib/xgetdomainname.h: New file.
68769         * lib/xgetdomainname.c: New file.
68770
68771 2003-09-25  Simon Josefsson  <jas@extundo.com>
68772             Bruno Haible  <bruno@clisp.org>
68773
68774         * modules/getdomainname: New file.
68775         * modules/xgetdomainname: New file.
68776         * MODULES.html.sh (func_all_modules): Add getdomainname,
68777         xgetdomainname.
68778
68779 2003-09-25  Simon Josefsson  <jas@extundo.com>
68780             Bruno Haible  <bruno@clisp.org>
68781
68782         * m4/getdomainname.m4: New file.
68783
68784 2003-09-25  Simon Josefsson  <jas@extundo.com>
68785             Bruno Haible  <bruno@clisp.org>
68786
68787         * lib/getdomainname.h: New file.
68788         * lib/getdomainname.c: New file.
68789
68790 2003-09-25  Karl Berry  <karl@gnu.org>
68791
68792         * lib/argp-fmtstream.c, argp-help.c: update from libc.
68793
68794 2003-09-25  Karl Berry  <karl@gnu.org>
68795
68796         * config/install-sh: update from automake.
68797
68798 2003-09-25  Bruno Haible  <bruno@clisp.org>
68799
68800         * modules/version-etc-2: New file, from modules/version-etc with
68801         modifications.
68802         * MODULES.html.sh (func_all_modules): Add version-etc-2.
68803
68804 2003-09-25  Bruno Haible  <bruno@clisp.org>
68805
68806         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
68807         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
68808
68809 2003-09-24  Simon Josefsson  <jas@extundo.com>
68810
68811         * modules/xgethostname: Add xgethostname.h.
68812
68813 2003-09-24  Paul Eggert  <eggert@twinsun.com>
68814
68815         * lib/linebuffer.c (freebuffer): Don't free the argument, just
68816         the buffer associated with the argument.  Bug reported by
68817         Simon Josefsson.
68818
68819 2003-09-24  Paul Eggert  <eggert@twinsun.com>
68820
68821         * README: Document assumptions that 'int' is at least 32 bits
68822         wide, that integer arithmetic is 2's complement without overflow,
68823         that there are no holes in integer values, that adding sizes of
68824         two nonoverlapping objects can't overflow, and that all-bits-zero
68825         yields scalar zero.  Fix spelling and capitalization typos.
68826
68827 2003-09-19  Karl Berry  <karl@gnu.org>
68828
68829         * lib/argp.h: update from libc.
68830
68831 2003-09-17  Paul Eggert  <eggert@twinsun.com>
68832
68833         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
68834         to avoid spurious warnings like "AC_RUN_IFELSE was called before
68835         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
68836
68837 2003-09-17  Paul Eggert  <eggert@twinsun.com>
68838
68839         * gnulib-tool: Use "test -h", not "test -L", for portability
68840         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
68841         (tags_regexp): Remove, since \| doesn't conform to POSIX.
68842         (sed_extract_prog): Issue s commands one-by-one, rather than
68843         using \| in one s command.
68844
68845 2003-09-16  Paul Eggert  <eggert@twinsun.com>
68846
68847         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
68848         input error, instead of returning NULL the next time we are called
68849         (and therefore losing track of errno).
68850
68851 2003-09-16  Bruno Haible  <bruno@clisp.org>
68852
68853         * gnulib-tool (func_create_testdir): Warn about duplicated
68854         dependencies.
68855
68856 2003-09-15  Paul Eggert  <eggert@twinsun.com>
68857
68858         * modules/argmatch, modules/fatal, modules/obstack,
68859         modules/xalloc, modules/xgethostname: Sort dependencies by
68860         importance, not alphabetically.
68861
68862 2003-09-15  Paul Eggert  <eggert@twinsun.com>
68863
68864         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
68865         fails, so that the caller gets the proper errno.
68866
68867         * lib/readutmp.c (read_utmp): Likewise.
68868         Check for fstat error.  Close stream and free storage
68869         when failing.
68870
68871 2003-09-14  Karl Berry  <karl@gnu.org>
68872
68873         * config/srclist.txt (strdup.c): disable for c89 changes.
68874
68875 2003-09-14  Jim Meyering  <jim@meyering.net>
68876
68877         * lib/getloadavg.c: Correct cpp indentation.
68878         * lib/strdup.c: Likewise.
68879         * lib/vasnprintf.c: Likewise.
68880
68881 2003-09-14  Bruno Haible  <bruno@clisp.org>
68882
68883         * modules/fwriteerror: New file.
68884         * MODULES.html.sh (func_all_modules): Add fwriteerror.
68885
68886 2003-09-14  Bruno Haible  <bruno@clisp.org>
68887
68888         * lib/fwriteerror.h: New file.
68889         * lib/fwriteerror.c: New file.
68890
68891 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68892
68893         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
68894         modules/xgethostname, modules/xalloc: Depend on exit.
68895
68896 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68897
68898         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
68899
68900         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
68901         and AC_MINIX, too, so that their extensions are available.
68902
68903         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
68904         This macro has been superseded by gl_BACKUPFILE.
68905
68906         More patches to assume C89 or better.
68907
68908         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
68909
68910         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
68911         unconditionally.
68912         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
68913         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
68914         Include <string.h>, <stdlib.h> unconditionally.
68915         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
68916         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
68917         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
68918         headers or for string.h.
68919         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
68920         or strtoul.
68921
68922         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
68923         headers.
68924         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
68925         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68926         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
68927         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
68928         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68929         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
68930         memcpy, memset.
68931         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
68932         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
68933         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
68934         strtol.
68935         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
68936         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
68937         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
68938         strtoul.
68939
68940 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68941
68942         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
68943         * lib/obstack.c [!defined _LIBC]: Likewise.
68944         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
68945         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
68946         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
68947
68948         More changes to assume C89 or better.
68949
68950         * lib/error.c (error_tail): Assume vprintf.
68951
68952         * lib/argmatch.c (getenv): Remove decl.
68953         * lib/progreloc.c (get_full_program_name): Define via prototype.
68954         * lib/setenv.c (clearenv): Likewise.
68955         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
68956         needed.
68957         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
68958         (malloc, memcpy): Remove decls.
68959         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
68960         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
68961         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
68962         (memcpy): Remove macro.
68963         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
68964         (__P): Remove.  All uses removed.
68965         (PTR): Remove.  All uses changed to void *.
68966         (CHAR_BIT, NULL): Remove.
68967         (spaces, zeros, memset_space, memset_zero)
68968         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
68969         Remove.
68970         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
68971         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
68972         Define with prototype.
68973         Remove now-unnecessary prototype decl.
68974         (extra_args_spec): Assume ANSI C.  All uses changed.
68975         (extra_args_spec_iso): Remove.
68976         (my_strftime, emacs_strftimeu): Define via prototype.
68977         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
68978         unconditionally.
68979         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
68980         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
68981         (strtoul, strtol): Remove decls.
68982         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
68983         LONG_MAX): Remove.
68984         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
68985         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
68986         (LOCALE_PARAM_PROTO): New macro.
68987         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
68988         (INTERNAL (strtol), strtol): Define with a prototype.
68989         (PARAMS): Remove.  All uses removed.
68990         * lib/tempname.c: Include <string.h> unconditionally.
68991         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
68992         * lib/xgethostname.c (main): Define with a prototype.
68993         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
68994         Include <stdlib.h> unconditionally.
68995         (calloc, malloc, realloc, free): Remove decls.
68996         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
68997         Include <stdlib.h> unconditionally.  Sort include file names.
68998         (strtod): Remove.
68999         (xstrtod): Define with a prototype.
69000         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
69001         (strtol, strtoul): Remove decls.
69002
69003 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69004
69005         More patches to assume C89 or better.
69006         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
69007         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
69008         string.h, memchr, STDC_HEADERS.
69009
69010 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69011
69012         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
69013         Include <stdlib.h>, <string.h> unconditionally.
69014         Remove now-unnecessary cast to char *.
69015         * lib/strnlen.c: Include <string.h> unconditionally.
69016         * lib/yesno.c (yesno): Define with a prototype.
69017
69018 2003-09-11  Bruno Haible  <bruno@clisp.org>
69019
69020         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
69021
69022 2003-09-10  Jim Meyering  <jim@meyering.net>
69023
69024         * lib/error.c: Correct indentation of cpp directives.
69025
69026 2003-09-10  Bruno Haible  <bruno@clisp.org>
69027
69028         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
69029         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
69030         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
69031         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
69032         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
69033         <stdlib.h> and <string.h> checks.
69034         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
69035         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
69036
69037 2003-09-10  Bruno Haible  <bruno@clisp.org>
69038
69039         * lib/strcspn.c: Include <string.h> unconditionally.
69040         * lib/strpbrk.c: Include <string.h> unconditionally.
69041         * lib/strstr.c: Include <string.h> unconditionally.
69042         * lib/unicodeio.c: Include <string.h> unconditionally.
69043         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
69044         * lib/unsetenv.c: Likewise.
69045         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
69046         * lib/yesno.c: Include <stdlib.h> unconditionally.
69047         (rpmatch): Add prototype.
69048
69049 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69050
69051         More patches to assume C89 or better.
69052         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
69053         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
69054         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
69055         or for string.h.
69056         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
69057         stdlib.h.
69058         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
69059         C headers.
69060         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
69061         string.h.
69062         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
69063         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
69064         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
69065         or for string.h.
69066         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
69067         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
69068         C headers.
69069         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
69070         memcpy.
69071         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
69072         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
69073         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
69074         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
69075         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
69076         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
69077         string.h, free.
69078         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
69079         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
69080         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
69081         C headers, or for string.h.
69082         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
69083         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
69084         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
69085         headers, memory.h, stdlib.h, string.h, strings.h.
69086         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
69087         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
69088         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
69089         strchr.
69090         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
69091         headers, memory.h, string.h.
69092         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
69093         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
69094         free.
69095         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
69096         headers.
69097         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
69098         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
69099         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
69100         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
69101         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
69102
69103 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69104
69105         More K&R removal.
69106
69107         * lib/acosl.c (main): Use a prototype.
69108         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
69109         tanl.c: Likewise.
69110
69111         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
69112
69113         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
69114         (getopt, etopt_long, getopt_long_only, _getopt_internal)
69115         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
69116         with a prototype.
69117         * lib/getopt.c (const): Remove macro.
69118         Include <string.h> unconditionally.
69119         (my_index): Remove; all uses changed to strchr.
69120         (strlen): Remove decl.
69121         (exchange): Remove forward decl; no longer needed.
69122         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
69123         Define with prototype.
69124         * lib/getopt1.c (const): Remove macro.
69125         (getopt_long, getopt_long_only, main): Define with prototype.
69126
69127         * lib/getugroups.c: Include <string.h> unconditionally.
69128
69129         * lib/getusershell.c: Include <stdlib.h> unconditionally.
69130         (getusershell, setusershell, endusershell, readname, main):
69131         Define with prototypes.
69132
69133         * lib/group-member.c: Include group-member.h first.
69134         Include <stdlib.h> unconditionally.
69135
69136         * lib/hard-locale.c: Include hard-locale.h first.
69137         Include <stdlib.h>, <string.h> unconditionally.
69138
69139         * lib/hash.c (free, malloc): Remove decls.
69140         Include <stdlib.h> unconditionally.
69141
69142         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
69143         (getenv): Do not declare.
69144
69145         * lib/idcache.c: Include <string.h> unconditionally.
69146
69147         * lib/long-options.c: Include long-options.h first, to test interface.
69148         Include <stdlib.h> unconditionally.
69149
69150         * lib/makepath.c: Include makepath.h first, to test interface.
69151         Include <stdlib.h> and <string.h> unconditionally.
69152
69153         * lib/linebuffer.c: Include <stdlib.h>.
69154         (free): Remove decl.
69155
69156         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
69157         stddef.h. rpl_malloc returns void *, not char *.
69158         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
69159         prototype.
69160
69161         * lib/md5.h: Include <limits.h> unconditionally.
69162         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
69163         (__P): Remove; all uses removed.
69164         * lib/md5.c: Include "md5.h" first.
69165         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
69166         md5_buffer, md5_process_bytes, md5_process_block):
69167         Define with prototypes.
69168         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
69169         * lib/sha.c: Include "sha.h" first.
69170         Include <stdlib.h>, <string.h> unconditionally.
69171
69172         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
69173         * lib/memcmp.c (__ptr_t): Likewise.
69174         * lib/memrchr.c (__ptr_t): Likewise.
69175         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
69176         Include <string.h> unconditionally.
69177         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
69178         * lib/memchr.c: Include <stdlib.h> unconditionally.
69179         * lib/memchr.c (LONG_MAX): Remove.
69180         * lib/memrchr.c (LONG_MAX): Likewise.
69181         * lib/memchr.c (__memchr): Define via a prototype.
69182         * lib/memrchr.c (__memrchr): Likewise.
69183         * lib/memcmp.c (__P): Remove, and remove all uses.
69184         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
69185         Remove forward decls; no longer needed.
69186         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
69187         Use types required by C89 in prototype.
69188
69189         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
69190         * lib/savedir.c: Likewise.
69191         * lib/mkdir.c (free): Remove decl.
69192         * lib/rmdir.c (rmdir): Define with a prototype.
69193         * lib/savedir.c: Include savedir.h first, to test interface.
69194
69195         * lib/mktime.c (STDC_HEADERS): Remove.
69196         Include <stdlib.h>, <string.h> unconditionally.
69197
69198         * lib/modechange.c: Include <stdlib.h> unconditionally.
69199         (malloc): Remove decl.
69200
69201         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
69202         (free): Remove decl.
69203
69204         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
69205         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
69206         (This type really should be intptr_t, but that's a C99ism.)
69207         (_obstack_memcpy): Remove: all uses changed to memcpy.
69208         Include <string.h> unconditionally.
69209         (struct obstack): Assume __STDC__ for types of members
69210         chunkfun, freefun, extra_arg.
69211         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
69212         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
69213         obstack_begin, obstack_specify_allocation,
69214         obstack_specify_allocation_with_arg, obstack_chunkfun,
69215         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
69216         Remove unprototyped decls and the macros that use them.
69217         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
69218         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
69219         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
69220         (defined __STDC__ && __STDC__)]:
69221         Remove nonprototyped code.
69222         Include <stdlib.h> unconditionally.
69223         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
69224         _obstack_allocated_p, _obstack_free, obstack_free,
69225         _obstack_memory_used, print_and_abort):
69226         Define using prototypes.
69227         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
69228         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
69229         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
69230         obstack_next_free, obstack_object_size, obstack_room) [0]:
69231         Remove unused, unprototyped code.
69232
69233         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
69234
69235         * lib/physmem.c (physmem_total, physmem_available, main): Define
69236         with prototypes.
69237
69238         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
69239         (main): Define with a prototype.
69240
69241         * lib/posixver.c (getenv): Remove decl.
69242
69243         * lib/putenv.c (malloc): Returns void *, not char *.
69244         Include <string.h> unconditionally.
69245         (strchr, memcpy, NULL): Do not define.
69246
69247         * lib/readtokens.c: Include readtokens.h first, to test interface.
69248         Include <stdlib.h>, <string.h> unconditionally.
69249         (init_tokenbuffer): Define with a prototype.
69250
69251         * lib/regex.c (PARAMS): Remove.  All uses removed.
69252         All uses of _RE_ARGS removed, too.
69253         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69254         unconditionally.
69255         (bzero): Assume memset exists.
69256         (memcmp, memcpy, NULL): Remove.
69257         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
69258         char, or assignments to local vars of type signed char.
69259         (init_syntax_once, PREFIX(extract_number_and_incr),
69260         PREFIX(print_partial_compiled_pattern),
69261         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
69262         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
69263         PREFIX(regex_grow_registers), PREFIX(regex_compile),
69264         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
69265         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
69266         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
69267         wcs_compile_range, byte_compile_range, truncate_wchar,
69268         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
69269         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
69270         count_mbs_length, wcs_re_match_2_internal,
69271         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
69272         PREFIX(alt_match_null_string_p),
69273         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
69274         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
69275         regfree, PREFIX(extract_number)): Define with prototype.  Remove
69276         now-unnecessary declaration, if any.
69277         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
69278         regcomp, regexec):
69279         Remove now-unnecessary casts among pointer types.
69280         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
69281
69282         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
69283         (free): Remove decl.
69284
69285         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
69286
69287         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
69288         (free): Remove decl.
69289
69290         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
69291         * lib/xgetcwd.c: Likewise.
69292
69293         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
69294         (free): Remove decl.
69295
69296         * lib/strchrnul.c (strchrnul): Define with a prototype.
69297         Fix bug: c_in was not converted to char before searching.
69298
69299         The following changes are not K&R related:
69300
69301         * lib/group-member.h: Include <sys/types.h>, so that this file is
69302         self-contained.
69303         * lib/makepath.h: Likewise.
69304
69305         * lib/getusershell.c (readname, default_index, line_size, readname):
69306         Use size_t, not int, for sizes.
69307         (readname): If the size overflows, report an error instead of
69308         looping forever.
69309
69310 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69311
69312         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
69313         libc.
69314
69315 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69316
69317         * README: New section: portability guidelines.
69318
69319 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69320
69321         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
69322         C89 spec.
69323
69324 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69325
69326         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
69327
69328 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69329
69330         Assume C89 or better; remove K&R cruft.
69331         A few of these changes were first proposed by Derek Robert Price
69332         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
69333
69334         * lib/addext.c: Include <string.h> unconditionally.
69335         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
69336         Don't declare getenv or malloc.
69337
69338         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
69339         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
69340         (NULL): Remove.
69341         (find_stack_direction, alloca): Use prototypes.
69342
69343         * lib/atexit.c (atexit): Define using a prototype.
69344
69345         * lib/basename.c, dirname.c, stripslash.c:
69346         Include <string.h> unconditionally.
69347
69348         * lib/bcopy.c: Include <stddef.h>.
69349         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
69350
69351         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
69352
69353         * lib/error.h (error, error_at_line, error_print_progname)
69354         [! (defined (__STDC__) && __STDC__)]: Remove decls.
69355         * lib/error.c: Include error.h first, to check interface.
69356         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69357         (VA_START): Remove; all uses changeed to va_start.
69358         (exit, strerror): Remove decls.
69359         (error_print_progname): Prototype uncondionally.
69360         Don't include <errno.h>; no longer needed.
69361         (private_strerror): Remove.
69362         (error_tail): Always define.
69363         (error, error_at_line): Assume C89 or better; always use prototypes.
69364         * lib/fatal.c: Include "fatal.h" first, to test interface.
69365         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69366         (VA_START): Remove; all uses changed to va_start.
69367         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
69368         this case.
69369         (exit): Remove decl.
69370         (fatal): Prototype unconditionally.  Assume va_start works.
69371         Abort at end, to pacify gcc.
69372
69373         * lib/euidaccess.c (main): Define with a prototype.
69374
69375         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
69376
69377         * lib/exitfail.c: Include <stdlib.h> unconditionally.
69378
69379         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
69380         prototypes.
69381         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
69382         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
69383         (getenv): Remove decl.
69384         (fnmatch): Define using a prototype.
69385         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
69386         (FCT): Define using a prototype.
69387
69388         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
69389
69390         * lib/gethostname.c: Include <stddef.h>.
69391         (gethostname): Define with prototype.  Length is size_t, not int.
69392
69393 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69394
69395         Assume C89 or better; remove K&R cruft.
69396         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
69397         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
69398         string.h, getenv, malloc.
69399         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
69400         headers.
69401         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
69402         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
69403         do not check for strerror.
69404         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
69405         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
69406         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
69407         do not check for doprnt or vprintf.
69408         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
69409         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
69410
69411 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69412
69413         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
69414         getversion.c should have been removed then, but was accidentally
69415         preserved.
69416
69417         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
69418         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
69419
69420 2003-09-08  Karl Berry  <karl@gnu.org>
69421
69422         * config/config.sub, config.guess, srclistvars.sh: update from savannah
69423                 config, forget about prep.
69424
69425         * config/depcomp, missing: update from automake.
69426
69427 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69428
69429         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
69430         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69431
69432 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69433
69434         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
69435         copy_tm_result.  Bug reported by Simon Josefsson in
69436         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69437
69438 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69439
69440         * m4/time_r.m4: New file.
69441         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
69442         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
69443         is. Check for timegm declaration.
69444         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
69445         Do not check for gmtime_r.
69446         Replace mktime if __mktime_internal does not exist and if mktime
69447         hasn't been replaced already.
69448
69449 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69450
69451         * lib/time_r.c, lib/time_r.h: New files.
69452
69453         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
69454         __localtime_r.
69455         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
69456         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
69457
69458         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
69459         __gmtime_r.
69460         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
69461         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
69462         Include <time_r.h>.
69463
69464         * lib/timegm.c: Switch to glibc implementation, with the following
69465         changes:
69466         [defined HAVE_CONFIG_H]: Include <config.h>.
69467         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
69468         (__mktime_internal) [!defined _LIBC]: New decl.
69469         (__gmtime_r) [!defined _LIBC]: New macro and function.
69470         (timegm): Use a prototype, since gnulib assumes C89.
69471         Do not bother declaring tmp to be const, as it's not really usefu.
69472         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
69473         (timegm): Declare only if HAVE_DECL_TIMEGM.
69474
69475 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69476
69477         * MODULES.html.sh (func_all_modules): Add time_r.
69478         * modules/time_r: New file.
69479         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
69480         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
69481
69482 2003-09-03  Paul Eggert  <eggert@twinsun.com>
69483
69484         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
69485         Bug reported by Lute Kamstra in
69486         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
69487
69488         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
69489         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
69490         course with correspondingly smaller numbers for tomorrow and
69491         yesterday.  From Tadayoshi Funaba.  Originally installed into
69492         sh-utils on 1999-08-07, but the patch got lost (I guess during the
69493         coreutils merge?).
69494
69495 2003-08-31  Simon Josefsson  <jas@extundo.com>
69496
69497         * modules/timegm: New file.
69498         * MODULES.html.sh (func_all_modules): Add timegm.
69499
69500 2003-08-31  Simon Josefsson  <jas@extundo.com>
69501
69502         * m4/timegm.m4: New file.
69503
69504 2003-08-31  Simon Josefsson  <jas@extundo.com>
69505
69506         * lib/timegm.h: New file.
69507         * lib/timegm.c: New file.  Based on
69508         wget-1.8.2/src/http.c:mktime_from_utc.
69509
69510 2003-08-31  Karl Berry  <karl@gnu.org>
69511
69512         * lib/argp.h: update from libc.
69513
69514 2003-08-28  Bruno Haible  <bruno@clisp.org>
69515
69516         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
69517         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
69518         followed by '#define fnmatch fnmatch_posix' gives an error.
69519
69520 2003-08-28  Bruno Haible  <bruno@clisp.org>
69521
69522         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
69523         warning on QNX, which defines O_BINARY to 000000.
69524
69525 2003-08-27  Jim Meyering  <jim@meyering.net>
69526
69527         * m4/mkstemp.m4: Require that the system mkstemp be able to create
69528         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
69529         would fail after 32.  Reported by Danny Levinson.  Details here:
69530         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
69531
69532 2003-08-24  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
69535         MSVC7 <stdio.h> is included later.
69536
69537 2003-08-22  Simon Josefsson  <jas@extundo.com>
69538
69539         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
69540
69541 2003-08-20  Karl Berry  <karl@gnu.org>
69542
69543         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
69544
69545 2003-08-20  Bruno Haible  <bruno@clisp.org>
69546
69547         * modules/progname: New file.
69548         * MODULES.html.sh (func_all_modules): Add progname.
69549
69550 2003-08-20  Bruno Haible  <bruno@clisp.org>
69551
69552         * lib/progname.h: New file, from GNU gettext.
69553         * lib/progname.c: New file, from GNU gettext.
69554         * lib/progreloc.c: New file, from GNU gettext.
69555
69556 2003-08-19  Jim Meyering  <jim@meyering.net>
69557
69558         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
69559         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
69560
69561 2003-08-19  Bruno Haible  <bruno@clisp.org>
69562
69563         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
69564         more.
69565
69566 2003-08-19  Bruno Haible  <bruno@clisp.org>
69567
69568         * lib/xstrdup.c: Assume <string.h> exists.
69569
69570 2003-08-18  Paul Eggert  <eggert@twinsun.com>
69571
69572         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
69573         in makefile rules.
69574
69575 2003-08-18  Jim Meyering  <jim@meyering.net>
69576
69577         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
69578         * m4/lib-ld.m4: Likewise.
69579
69580 2003-08-18  Jim Meyering  <jim@meyering.net>
69581
69582         * lib/setenv.h: Indent nested cpp directive.
69583         * lib/vasnprintf.c: Remove trailing blanks.
69584
69585 2003-08-17  Simon Josefsson  <jas@extundo.com>
69586
69587         * modules/xstrndup: New file.
69588         * MODULES.html.sh (func_all_modules): Add xstrndup.
69589
69590 2003-08-17  Simon Josefsson  <jas@extundo.com>
69591
69592         * modules/argp: Fix autoconf macro name. Add more dependencies.
69593
69594 2003-08-17  Simon Josefsson  <jas@extundo.com>
69595
69596         * m4/xstrndup.m4: New file.
69597
69598 2003-08-17  Simon Josefsson  <jas@extundo.com>
69599
69600         * m4/argp.m4: New file.
69601
69602 2003-08-17  Simon Josefsson  <jas@extundo.com>
69603             Bruno Haible  <bruno@clisp.org>
69604
69605         * lib/xstrndup.h: New file.
69606         * lib/xstrndup.c: New file.
69607
69608 2003-08-17  Bruno Haible  <bruno@clisp.org>
69609
69610         * modules/strndup (Files, Include): Add lib/strndup.h.
69611
69612 2003-08-17  Bruno Haible  <bruno@clisp.org>
69613
69614         * modules/euidaccess (Files): Add lib/euidaccess.h.
69615
69616 2003-08-17  Bruno Haible  <bruno@clisp.org>
69617
69618         * lib/strndup.h: New file.
69619
69620 2003-08-17  Bruno Haible  <bruno@clisp.org>
69621
69622         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
69623         like AC_GNU_SOURCE.
69624         * modules/extensions (configure.ac): Comment out the invocation of
69625         gl_USE_SYSTEM_EXTENSIONS.
69626
69627 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69628
69629         Merges from coreutils, etc.
69630         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
69631         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
69632         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
69633         fixing a typo.
69634         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
69635         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
69636
69637 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69638
69639         Document merge from coreutils.
69640         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
69641         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
69642         * modules/utime: Add m4/utimes-null.m4.
69643
69644 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69645
69646         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
69647         space, undoing this 2003-08-12 change:
69648         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69649
69650 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69651
69652         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
69653         strtoul.c from libc, undoing this 2003-08-12 change:
69654         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69655
69656 2003-08-16  Jim Meyering  <jim@meyering.net>
69657
69658         Merges from coreutils.
69659         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
69660         prefix.  Adjust cache variables similarly.  Create 500 rather than
69661         just 300 files, to exercise bug on Darwin6.5, too.
69662         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
69663         $missing_dir.
69664         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
69665         AM_SYS_POSIX_TERMIOS.
69666         Reported by mkc@mathdogs.com.
69667         Also change use of $am_cv_sys_posix_termios
69668         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
69669         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
69670         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
69671         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
69672         in /proc/mounts until it finds one with matching device number.  This
69673         is unnecessary when the FILE argument *is* a mount point.  No stat call
69674         is necessary in that case.  So, disable the statvfs-testing code on
69675         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
69676         as RedHat bug# 84846.
69677         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69678         to 1MB, so as not to render systems with no stack size limit (e.g.,
69679         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69680         Include <unistd.h>.  On some systems,
69681         it is required for the definition of _SC_PAGESIZE.
69682
69683 2003-08-16  Jim Meyering  <jim@meyering.net>
69684
69685         Merge from coreutils.
69686         * lib/xstrtoimax.c: #else #if -> #elif.
69687         * lib/xstrtoumax.c: Likewise.
69688
69689 2003-08-16  Jim Meyering  <jim@meyering.net>
69690
69691         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
69692         * m4/utimes.m4: Removed.
69693         * m4/utimes-null.m4: Renamed from utimes.m4.
69694
69695         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69696         to 1MB, so as not to render systems with no stack size limit (e.g.,
69697         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69698         Include <unistd.h>.  On some systems,
69699         it is required for the definition of _SC_PAGESIZE.
69700
69701 2003-08-16  Jim Meyering  <jim@meyering.net>
69702         and Paul Eggert  <eggert@cs.ucla.edu>
69703
69704         Merges from coreutils, etc.
69705
69706         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
69707         using the latest version from cvs.  This avoids problems with #line
69708         directives using a vendor (Sun) compiler.
69709         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
69710         Don't set GETGROUPS_LIB here; now it's
69711         done via getgroups.m4's wrapper function.
69712         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
69713         rather than just in sh-util/configure.in, so that the
69714         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
69715         same.
69716         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
69717         AC_FUNC_GETLOADAVG where to find getloadavg.c.
69718         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
69719         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
69720         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
69721         Remove code that is now done by the newly-required macros.
69722         Append $(EXEEXT) to DF_PROG.
69723         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
69724         Do not invoke or require the following here,
69725         since prereq.m4 or some gnulib .m4 now does this for us:
69726         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
69727         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
69728         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
69729         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
69730         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
69731         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
69732         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
69733         AC_FUNC_OBSTACK.
69734         Do not replace the following functions, as this is now the job
69735         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
69736         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
69737         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
69738         atexit getpass, strdup, getpagesize.
69739         Replace 'raise'.
69740         Do not check for the following functions, as this is now the job
69741         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
69742         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
69743         setregid.
69744         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
69745         Check for sys/sysctl.h.
69746         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
69747         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
69748         of checking for ssize_t ourselves.
69749
69750         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
69751         Require every macro that gnulib/modules/* suggests for us.
69752         (jm_PREREQ_ADDEXT): New macro.
69753         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
69754         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
69755
69756         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
69757         (gl_PHYSMEM): Use it.
69758         Also check for `table' function.
69759         Check for new headers and functions.
69760         Add check for sys/sysmp.h.
69761         With suggestions from Kaveh Ghazi.
69762         Ignore headers that are present but cannot be compiled.  This
69763         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
69764         C 5.4.
69765
69766 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69767
69768         Document merge from coreutils.
69769         * modules/userspec: Depend on posixver.
69770         * modules/strftime: Depend on tzset.
69771
69772 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69773
69774         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
69775         rather than tab, after '#' in shell-script copyright notices.
69776         Suggested by Bruno Haible.
69777
69778 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69779
69780         * config/srclist-update: Use three spaces, rather than tab, after '#'
69781         in shell-script copyright notices.  Suggested by Bruno Haible.
69782         Remove unnecessary parenthesization in regular expression.
69783
69784 2003-08-15  Jim Meyering  <jim@meyering.net>
69785
69786         Merge from coreutils.
69787         * lib/xgethostname.c: Include <stdlib.h>.
69788         (xghostname): Don't exit for anything other than memory-related
69789         failure; just return NULL.
69790         * lib/userspec.c: Include "posixver.h".
69791         (parse_user_spec): Accept `.' as a separator only
69792         in pre-POSIX-200112 mode.
69793         * lib/strtoimax.c: Use #elif rather than #else #if.
69794         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
69795         Remove function, now that we can rely on a working tzset function.
69796         [!_LIBC]: Ensure that the required autoconf test has been run.
69797         [!defined _NL_CURRENT && HAVE_STRFTIME]:
69798         Use underlying_strftime for %r.
69799         * lib/sha.c: Merge in some clean-up and optimization changes from
69800         glibc.
69801         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
69802         Ensure that it is a multiple of 64.
69803         Rearrange loop exit tests so as to avoid performing an
69804         additional fread after encountering an error or EOF.
69805         * lib/realloc.c: Update copyright date.
69806
69807 2003-08-15  Jim Meyering  <jim@meyering.net>
69808         and Paul Eggert  <eggert@twinsun.com>
69809
69810         Merge from coreutils.
69811         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
69812         member but strut utmpx does not.  Needed for AIX 4.3.3.
69813         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
69814
69815 2003-08-15  Jim Meyering  <jim@meyering.net>
69816         and Paul Eggert  <eggert@cs.ucla.edu>
69817
69818         Merges from coreutils, etc.
69819         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
69820         Require gl_FUNC_TZSET_CLOBBER.
69821         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
69822         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
69823         members.
69824
69825 2003-08-14  Paul Eggert  <eggert@twinsun.com>
69826
69827         Help the merge from coreutils.
69828         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
69829         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
69830         * m4/tzset.m4: Use it too.
69831
69832 2003-08-14  Paul Eggert  <eggert@twinsun.com>
69833
69834         * modules/tzset: New file.
69835
69836 2003-08-14  Jim Meyering  <jim@meyering.net>
69837
69838         Merges from coreutils.
69839         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
69840         variable names, rather than @FNMATCH_H@.
69841         * modules/alloca: Likewise for $(ALLOCA_H).
69842
69843         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
69844         the three copies of the literal target, `fnmatch.h'.
69845         * modules/alloca (alloca.h): Likewise.
69846
69847 2003-08-14  Jim Meyering  <jim@meyering.net>
69848
69849         Merge from coreutils.
69850         * m4/tzset.m4: New file.
69851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
69852         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
69853         otherwise, AIX 5.1 systems would end up using the latter.
69854         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
69855         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
69856         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
69857         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
69858
69859 2003-08-14  Jim Meyering  <jim@meyering.net>
69860
69861         Merge from coreutils.
69862         * lib/obstack.h: Whitespace changes.
69863         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
69864         and xcalloc return values.
69865         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
69866         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
69867         hang on OSF/1 5.1 for DIR on both local and remote file systems.
69868         Reported by (and fix confirmed by) Nelson H. F. Beebe.
69869         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69870         error from mntctl.
69871         Use mntctl's return value to drive the entry-processing loop, since
69872         we can't rely on the value of the vmt_length member in the last
69873         entry.  On some systems doing so could result in exhausting
69874         virtual memory.  Based in part on a patch from Mike Jetzer.
69875
69876 2003-08-14  Jim Meyering  <jim@meyering.net>
69877         and Paul Eggert  <eggert@twinsun.com>
69878
69879         Merges from coreutils, plus other fixes.
69880         * lib/physmem.c: Merge in portability changes from gcc/libiberty
69881         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
69882         for credits and details.  Thanks to Kaveh Ghazi for helping
69883         to keep these files in sync.
69884         (ARRAY_SIZE): Define it.
69885         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
69886         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
69887         (memcasecmp): Don't assume size_t fits in unsigned int.
69888         Remove casts and duplicate code.
69889         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
69890         (memcpy): Remove definition.
69891         Merge in some clean-up and optimization changes from glibc.
69892         [BLOCKSIZE]: Move definition to top of file.
69893         Ensure that it is a multiple of 64.
69894         Rearrange loop exit tests so as to avoid performing an
69895         additional fread after encountering an error or EOF.
69896         * lib/md5.h (md5_uintptr): Define.
69897         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
69898         return to the initial working directory.  Preserve errno
69899         for caller.
69900         * lib/idcache.c: Include "xalloc.h".
69901         (xmalloc, xrealloc): Remove decls.
69902         (getuser): Remove casts no longer required in C89.
69903         * lib/human.c: Include stdio.h, for sprintf.
69904         * lib/group-member.c: Include "xalloc.h".
69905         (xmalloc, xrealloc): Remove decls.
69906         (get_group_info): Remove casts no longer required in C89.
69907         * lib/getusershell.c (readname): Remove casts no longer required in
69908         C89.
69909         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
69910         * lib/getline.c: Whitespace fix, from coreutils.
69911
69912 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69913
69914         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
69915         Check for isascii.
69916
69917         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
69918         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
69919         Undo previous (whitespace-only) change.
69920
69921 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69922
69923         * lib/exclude.c: Include <ctype.h>
69924         (IN_CTYPE_DOMAIN): New macro.
69925         (is_space): New fn.
69926         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
69927         and empty lines.
69928
69929         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
69930         Undo previous (whitespace-only) change.
69931
69932 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69933
69934         * config/srclist-update: Change update back to the old behavior,
69935         leaving whitespace alone.  Use one 'sed' command rather than a
69936         pipeline.
69937         (fixlicense): Now a variable, not a function.
69938         (remove_trailing_blanks): Remove.
69939         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
69940         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
69941         Undo previous (whitespace-only) change.
69942
69943 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69944
69945         Merge from coreutils.
69946         * modules/euidaccess: Add lib_SOURCES, include for new
69947         file euidaccess.h
69948
69949 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69950
69951         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
69952         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
69953         Normalize leading white space and remove trailing white space.
69954
69955         Merge from coreutils
69956         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
69957
69958         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
69959         0.12.1.  These files are now being upgraded automatically by
69960         ../config/srclist-update.
69961
69962 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69963
69964         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
69965         Normalize leading white space and remove trailing white space.
69966         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
69967         notice, as per ../config/srclist-update.
69968
69969         Merge from coreutils.
69970         * lib/euidaccess.h: New file.
69971         * lib/euidaccess.c: Include it.
69972         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
69973         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
69974         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
69975
69976 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69977
69978         * config/srclist-update: Add copyright notice.
69979         (remove_id_lines, remove_trailing_blanks): New constants.
69980         (fixfile): Use them to normalize spacing a bit in copied files.
69981         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
69982         Normalize leading white space and remove trailing white space.
69983
69984         * config/texinfo.tex: Sync with texinfo.
69985
69986         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
69987         strtoul.c from libc, to merge coreutils whitespace changes.
69988
69989         * config/srclist.txt: Get the following m4 files from gettext:
69990         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
69991         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
69992         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
69993         wint_t.m4.
69994
69995 2003-08-12  Karl Berry  <karl@gnu.org>
69996
69997         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
69998         been made.
69999
70000 2003-08-11  Paul Eggert  <eggert@twinsun.com>
70001
70002         * modules/gnu-source, m4/gnu-source.m4:
70003         Remove; we're assuming Autoconf 2.54 or later now.
70004         Suggested by Bruno Haible.
70005         * MODULES.html.sh (func_all_modules): Remove gnu-source.
70006
70007 2003-08-11  Bruno Haible  <bruno@clisp.org>
70008
70009         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
70010
70011 2003-08-11  Bruno Haible  <bruno@clisp.org>
70012
70013         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
70014         (vasnprintf): Use it instead of wcslen.
70015
70016 2003-08-11  Bruno Haible  <bruno@clisp.org>
70017
70018         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
70019         value to ensure that _Bool promotes to int. Use #define for _Bool when
70020         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
70021
70022 2003-08-10  Karl Berry  <karl@gnu.org>
70023
70024         * lib/regex.h: update from libc (whitespace fix).
70025
70026 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70027
70028         Merge some files from coreutils.  These changes were
70029         originally made by Jim Meyering.
70030         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
70031         many older Unixes require this.
70032         * lib/alloca.c (alloca): Remove cast to argument of free;
70033         no longer needed in C89.
70034         * lib/alloca_.h, regex.h: Fix white space to match
70035         what GNU indent does.
70036
70037 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70038
70039         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
70040         apparently Emacs's Unicode mode got confused before my 2003-08-05
70041         checkin.
70042
70043 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70044
70045         * m4/extensions.m4: New file.
70046         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
70047         Require gl_USE_SYSTEM_EXTENSIONS.
70048         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
70049         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
70050
70051 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70052
70053         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
70054         * modules/extensions, modules/gnu-source: New files.
70055         * modules/timespec, modules/unlocked-io: Depend on extensions.
70056
70057 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70058
70059         * modules/restrict: New file.
70060         * MODULES.html.sh (func_all_modules): Add restrict.
70061         * modules/regex: Depend on restrict.
70062
70063 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70064
70065         * m4/restrict.m4: New file.
70066         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
70067
70068 2003-08-07  Bruno Haible  <bruno@clisp.org>
70069
70070         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
70071         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
70072
70073 2003-08-07  Bruno Haible  <bruno@clisp.org>
70074
70075         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
70076         makes the module 'getndelim2' compatible with the module 'getline'.
70077
70078 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70079
70080         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
70081         byte with "\201" to avoid glitches when editing that source file
70082         with multi-gnome-terminal.
70083
70084 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70085
70086         * lib/bumpalloc.h: Remove.
70087
70088 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70089
70090         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
70091         * modules/bumpalloc: Remove.
70092
70093 2003-08-04  Paul Eggert  <eggert@twinsun.com>
70094
70095         * lib/getloadavg.c: Change copyright notice and spacing to conform to
70096         GNU coding style.
70097
70098         Merge from coreutils.
70099         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
70100         1. From glibc.
70101         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
70102         from Karl Berry, implemented by Jim Meyering.
70103         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
70104         from Dmitry V. Levin.
70105         Remove anachronistic cast of xrealloc.
70106         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
70107         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
70108         type. Otherwise, it wouldn't compile with at least /bin/cc on
70109         ymp-cray-unicos9.0.2.X.
70110         Combine two mostly-identical uses of alloca into one.
70111         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
70112
70113 2003-08-04  Dave Love  <d.love@dl.ac.uk>
70114
70115         [From Emacs.]
70116
70117         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
70118         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
70119         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
70120         obsolete NLIST_NAME_UNION.
70121         [__GNU__]: Undef BSD and FSCALE.
70122         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
70123
70124 2003-08-03  Paul Eggert  <eggert@twinsun.com>
70125
70126         * lib/stdbool_.h (_Bool): Make it signed char, instead of
70127         an enum type, so that it's guaranteed to promote to int.  See:
70128         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
70129
70130 2003-08-03  Karl Berry  <karl@gnu.org>
70131
70132         * config/depcomp: update from automake.
70133
70134 2003-07-31  Paul Eggert  <eggert@twinsun.com>
70135
70136         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
70137         (strerror): Don't assume that a printable int fits in 14 bytes.
70138
70139 2003-07-31  Bruno Haible  <bruno@clisp.org>
70140
70141         * modules/getpass-gnu: New file.
70142         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
70143
70144 2003-07-31  Bruno Haible  <bruno@clisp.org>
70145
70146         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
70147
70148 2003-07-24  Karl Berry  <karl@gnu.org>
70149
70150         * config/missing: update from automake.
70151
70152 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
70153             Bruno Haible  <bruno@clisp.org>
70154
70155         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
70156         * lib/getline.c (getline, getdelim): Likewise.
70157         Remove _GNU_SOURCE define; now it's defined in config.h through
70158         m4/getline.m4.
70159
70160 2003-07-23  Karl Berry  <karl@gnu.org>
70161
70162         * config/config.sub: update from prep.
70163
70164 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70165
70166         * modules/xalloc (Depends-on): Add exitfail.
70167         * modules/xmemcoll: Likewise.
70168
70169 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70170
70171         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
70172         over-parenthesization in macros.
70173
70174         Sync with coreutils.
70175
70176         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
70177         required by C99.
70178
70179         Use `exit_failure' for xalloc and xmemcoll instead of their own
70180         private exit-failure variables.
70181         * lib/xalloc.h (xalloc_exit_failure): Remove.
70182         * lib/xmalloc.c: Likewise.  Include exitfail.h.
70183         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
70184         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
70185         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
70186         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
70187
70188 2003-07-20  Jim Meyering  <jim@meyering.net>
70189
70190         * modules/closeout (Depends-on): Add exitfail.
70191         Suggestion from Bruno Haible.
70192
70193 2003-07-19  Karl Berry  <karl@gnu.org>
70194
70195         * config/config.sub: update from prep.
70196
70197 2003-07-18  Paul Eggert  <eggert@twinsun.com>
70198
70199         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
70200         Remove.
70201         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
70202         to test that it can stand by itself.  Include "exitfail.h".
70203         Clients should set exit_failure instead.
70204         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
70205
70206 2003-07-18  Bruno Haible  <bruno@clisp.org>
70207
70208         * modules/getndelim2: New file.
70209         * modules/getline: Share files with module getndelim2.
70210         * modules/getnline: Depend on getndelim2 instead of sharing files with
70211         it. Add getnline.c to lib_SOURCES.
70212         * MODULES.html.sh (func_all_modules): Add getndelim2.
70213
70214 2003-07-18  Bruno Haible  <bruno@clisp.org>
70215
70216         * m4/getndelim2.m4: New file.
70217         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
70218         invoke gl_PREREQ_GETNDELIM2.
70219         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
70220         gl_PREREQ_GETNDELIM2.
70221         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
70222         gl_GETNDELIM2.
70223
70224 2003-07-18  Bruno Haible  <bruno@clisp.org>
70225
70226         * lib/getndelim2.h: New file.
70227         * lib/getndelim2.c: Make into a module of its own. Include config.h,
70228         getndelim2.h.
70229         (getndelim2): Make non-static. Change return type to ssize_t.
70230         * lib/getline.h: Change argument names.
70231         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
70232         * lib/getnline.c: Include getndelim2.h.
70233
70234 2003-07-18  Andreas Schwab  <schwab@suse.de>
70235
70236         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
70237
70238 2003-07-17  Karl Berry  <karl@gnu.org>
70239
70240         * config/config.sub: update from prep.
70241
70242 2003-07-17  Bruno Haible  <bruno@clisp.org>
70243
70244         * modules/getnline: New file.
70245         * modules/getline: Add lib/getndelim2.c to source file list.
70246         * MODULES.html.sh (func_all_modules): Add getnline.
70247
70248 2003-07-17  Bruno Haible  <bruno@clisp.org>
70249
70250         * m4/getnline.m4: New file.
70251
70252 2003-07-17  Bruno Haible  <bruno@clisp.org>
70253
70254         * m4/Makefile.am.in: Remove file.
70255         * m4/Makefile.am: Remove file.
70256         * m4/Makefile.in: Remove file.
70257
70258 2003-07-17  Bruno Haible  <bruno@clisp.org>
70259
70260         * lib/getnline.h: New file.
70261         * lib/getnline.c: New file.
70262         * lib/getndelim2.c: New file, extracted from getline.c.
70263         (getndelim2): Renamed from getdelim2, with added nmax argument.
70264         * lib/getline.c: Include getndelim2.c.
70265         (getdelim2): Moved out to getndelim2.c.
70266         (getline, getdelim): Update.
70267
70268 2003-07-17  Bruno Haible  <bruno@clisp.org>
70269
70270         * lib/Makefile.am: Remove file.
70271         * lib/Makefile.in: Remove file.
70272
70273 2003-07-17  Bruno Haible  <bruno@clisp.org>
70274
70275         * configure.in: Remove file.
70276         * Makefile.in: Remove file.
70277
70278 2003-07-17  Bruno Haible  <bruno@clisp.org>
70279
70280         * MODULES.html.sh: Put the </BODY> right before </HTML>.
70281
70282 2003-07-16  Karl Berry  <karl@gnu.org>
70283
70284         * config/srclist-update: was running fixlicense twice, which caused
70285                 texinfo.tex to be nullified for some reason.  Simplify,
70286                 $gplsrc is no longer needed as far as I can see?
70287
70288 2003-07-16  Jim Meyering  <jim@meyering.net>
70289
70290         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
70291
70292 2003-07-15  Paul Eggert  <eggert@twinsun.com>
70293
70294         * config/srclist.txt: Get the following files from gettext-runtime/intl
70295         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
70296         ref-del.sin.  From Bruno Haible.
70297         * config/srclist-update (fixfile): Change grep pattern again, since the
70298         previous fix didn't work (there was another trailing $).  Use
70299         '[$]' to escape the $s.
70300
70301 2003-07-15  Karl Berry  <karl@gnu.org>
70302
70303         * lib/vasnprintf.c: update from gettext.
70304
70305 2003-07-15  Karl Berry  <karl@gnu.org>
70306
70307         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
70308         gets expanded when surrounded by '$'.
70309
70310 2003-07-15  Jim Meyering  <jim@meyering.net>
70311
70312         * modules/save-cwd: Don't depend on error.  From Derek Price.
70313
70314 2003-07-15  Jim Meyering  <jim@meyering.net>
70315
70316         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
70317
70318 2003-07-14  Simon Josefsson  <jas@extundo.com>
70319
70320         * modules/mempcpy: New file.
70321         * MODULES.html.sh (func_all_modules): Add mempcpy.
70322
70323 2003-07-14  Simon Josefsson  <jas@extundo.com>
70324
70325         * m4/mempcpy.m4: New file.
70326
70327 2003-07-14  Simon Josefsson  <jas@extundo.com>
70328
70329         * lib/mempcpy.h: New file.
70330         * lib/mempcpy.c: New file.
70331
70332 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70333
70334         * modules/getdate, modules/posixtm: Depend on mktime.
70335
70336 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70337
70338         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
70339         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
70340         unicodeio.c, unicodeio.h, unlocked-io.h:
70341         Switch from LGPL to GPL.
70342
70343 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70344
70345         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
70346         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
70347         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
70348         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
70349         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
70350         updated automatically by ../config/srclist-update.  This changes
70351         their license from LPGL to GPL.
70352
70353 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70354
70355         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
70356         assumed to refer to the root of the most recent stable gettext version.
70357         * config/srclistvars.sh: Add defaults for eggert.
70358         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
70359         Match "This program" as well as "The program".  This is needed
70360         for gettext.
70361
70362 2003-07-14  Jim Meyering  <jim@meyering.net>
70363
70364         Don't emit diagnostics.  Let callers do that.
70365         * lib/save-cwd.c: Don't include "error.h".
70366         (save_cwd): Don't call error.  Ensure that errno is valid
70367         when returning nonzero.
70368
70369         * lib/save-cwd.h (restore_cwd): Update prototype.
70370         * lib/save-cwd.c (restore_cwd): Remove two parameters.
70371         Simplify.  Don't call error upon failure.  Let callers do that.
70372         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
70373         when auditing is enabled.  But don't bother updating the #if.
70374
70375 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
70376
70377         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
70378         it breaks C++ compilation.
70379         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
70380
70381 2003-07-10  Simon Josefsson  <jas@extundo.com>
70382
70383         * modules/strchrnul (Makefile.am): Add strchrnul.h.
70384
70385 2003-07-10  Jim Meyering  <jim@meyering.net>
70386
70387         * m4/clock_time.m4: Remove trailing blank.
70388         * m4/intmax_t.m4: Likewise.
70389
70390 2003-07-10  Jim Meyering  <jim@meyering.net>
70391
70392         * lib/vasnprintf.c: Remove trailing blanks.
70393         Make cpp indentation consistent.
70394
70395 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70396
70397         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
70398         posixver.c, strftime.c, strnlen.c, strverscmp.c:
70399         Switch from LGPL to GPL.
70400
70401 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70402
70403         * config/srclist.txt: Sort sublists.  Add
70404         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
70405         that differ from gnulib for one reason or another; we'd like this list
70406         to be smaller but for now let's document what we have.
70407
70408 2003-07-08  Paul Eggert  <eggert@twinsun.com>
70409
70410         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
70411         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
70412         and sweeter "eval x=$x".
70413         * config/srclist.txt: Get lib/argp* from glibc.
70414
70415 2003-07-07  Paul Eggert  <eggert@twinsun.com>
70416
70417         * lib/mktime.c: Fix some boundary cases and remove need for floating
70418         point.
70419
70420         Issue a compile-time diagnostic if time_t is floating point, or if
70421         two's complement arithmetic is not in effect, or if arithmetic
70422         right shift does not propagate the sign.  These assumptions were
70423         all in the original code but they weren't checked.
70424
70425         (TIME_T_MIDPOINT, verify): New macros.
70426         (__isleap): Remove; it has integer overflow problems.
70427         (leapyear): New function, without those problems.
70428         (ydhms_tm_diff): Remove; splitting into two parts.
70429         (ydhms_diff): New function, containing the arithmetic part of
70430         the old ydhms_tm_diff function.  Issue a compile-time
70431         diagnostic if we are not using C99 integer division.
70432         Avoid casts when possible.
70433         (guess_time_tm): New function, containing the checking part of
70434         the old ydhms_tm_diff function.  Return the new value, rather than
70435         the difference between it and the old.  Accept a new argument T
70436         so that *T specifies the old value.  Check for overflow in the result.
70437
70438         (__mktime_internal): Use a time_t offset, not a long int offset.
70439         This undoes the 2003-06-04 change, which is no longer needed now
70440         that we have better overflow checking.
70441         (localtime_offset): Likewise.
70442
70443         (__mktime_internal): Avoid harmful overflow on hosts where time_t
70444         and long are 64-bit but int is only 32-bit.
70445         (ydhms_diff): Use long int to store year1 and yday1.
70446         Issue a compile-time diagnostic if long int is not wide enough.
70447
70448         (__mktime_internal): Use long int to store adjusted year and yday.
70449         Use plain C rather than preprocessor commands, if that doesn't
70450         affect efficiency.
70451         Check for overflow (and try to repair) after each probe
70452         rather than checking only at the very end.  This avoids some bugs
70453         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
70454         does not equal GMT offset at maximum time).
70455         Use integer to check for overflow rather than floating point; this
70456         is more portable to non-IEEE hosts, and is a tad faster.
70457         When we detect that we are oscillating between two values,
70458         don't check whether tm_isdst has the requested value, since
70459         we already know the answer.  When tm_isdst has the wrong value,
70460         use a different heuristic to find the right one, based on the
70461         extreme values actually observed in practice in tz2003a,
70462         rather than the (overly optimistic) "previous 3 calendar quarters".
70463
70464         (not_equal_tm, print_tm, check_result): Use "const T" rather than
70465         "T const" to accommodate glibc style.
70466         (check_result): Use less-confusing report format.  "long" -> "long int.
70467         (main): Likewise.
70468         Don't loop if the iteration overflows time_t.
70469         Allow a negative step in the iteration.
70470
70471 2003-07-06  Karl Berry  <karl@gnu.org>
70472
70473         * config/depcomp: update from automake.
70474         * config/config.sub: update from prep.
70475
70476 2003-07-03  Karl Berry  <karl@gnu.org>
70477
70478         * config/config.guess: update from prep.
70479
70480 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70481
70482         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
70483         xreadlink.c now includes it unconditionally.
70484
70485 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70486
70487         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
70488         having it depend on HAVE_SYS_TYPES_H.
70489
70490 2003-07-01  Bruno Haible  <bruno@clisp.org>
70491
70492         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
70493         <sys/types.h> should be sufficient.
70494         Reported by Paul Eggert.
70495
70496 2003-06-26  Karl Berry  <karl@gnu.org>
70497
70498         * config/depcomp: update from automake.
70499
70500 2003-06-26  Bruno Haible  <bruno@clisp.org>
70501
70502         * modules/human: Depend on module stdbool.
70503
70504 2003-06-25  Bruno Haible  <bruno@clisp.org>
70505
70506         * modules/readlink: New file.
70507         * modules/xreadlink: Depend on it.
70508         * MODULES.html.sh (func_all_modules): Add readlink.
70509
70510 2003-06-25  Bruno Haible  <bruno@clisp.org>
70511
70512         * m4/readlink.m4: New file.
70513
70514 2003-06-25  Bruno Haible  <bruno@clisp.org>
70515
70516         * lib/readlink.c: New file.
70517
70518 2003-06-22  Karl Berry  <karl@gnu.org>
70519
70520         * config/srclist.txt: update mkinstalldirs from automake.
70521         * config/mkinstalldirs: update.
70522
70523 2003-06-22  Bruno Haible  <bruno@clisp.org>
70524
70525         Portability to mingw32.
70526         * m4/ssize_t.m4: New file, from GNU gettext.
70527         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
70528         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
70529
70530 2003-06-22  Bruno Haible  <bruno@clisp.org>
70531
70532         * modules/safe-read: Add m4/ssize_t.m4.
70533         * modules/xreadlink: Add m4/ssize_t.m4.
70534
70535 2003-06-20  Bruno Haible  <bruno@clisp.org>
70536
70537         Assume C89, so PARAMS isn't needed.
70538         * lib/unicodeio.h (PARAMS): Remove.
70539         * lib/unicodeio.c: Don't use PARAMS.
70540
70541 2003-06-18  Karl Berry  <karl@gnu.org>
70542
70543         * config/config.{guess,sub}: update from prep.
70544
70545 2003-06-18  Jim Meyering  <jim@meyering.net>
70546
70547         Merge changes from coreutils.
70548         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
70549         Remove explicit declarations of xmalloc and realloc.
70550         Include xalloc.h.
70551         (read_utmp): Remove anachronistic cast of xmalloc.
70552
70553 2003-06-17  Paul Eggert  <eggert@twinsun.com>
70554
70555         Assume C89, so PARAMS isn't needed.
70556         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
70557         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
70558         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
70559         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
70560         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
70561         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
70562         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
70563         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
70564         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
70565         lib/xstrtod.h, lib/xstrtol.h: Likewise.
70566         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
70567         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
70568         no longer needed. Anyway, config.h should always be included before any
70569         other file.
70570
70571 2003-06-11  Simon Josefsson  <jas@extundo.com>
70572
70573         * modules/sysexits: New file.
70574         * MODULES.html.sh (func_all_modules): Add sysexits.
70575
70576 2003-06-11  Simon Josefsson  <jas@extundo.com>
70577
70578         * lib/sysexit_.h: New file.
70579
70580 2003-06-11  Derek Price  <derek@ximbiot.com>
70581
70582         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
70583         necessary.
70584
70585 2003-06-11  Bruno Haible  <bruno@clisp.org>
70586
70587         * m4/sysexits.m4: New file.
70588
70589 2003-06-10  Simon Josefsson  <jas@extundo.com>
70590
70591         * lib/argp.h: New file, from glibc.
70592         * lib/argp-ba.c: New file, from glibc.
70593         * lib/argp-eexst.c: New file, from glibc.
70594         * lib/argp-fmtstream.c: New file, from glibc.
70595         * lib/argp-fmtstream.h: New file, from glibc.
70596         * lib/argp-fs-xinl.c: New file, from glibc.
70597         * lib/argp-help.c: New file, from glibc.
70598         * lib/argp-namefrob.h: New file, from glibc.
70599         * lib/argp-parse.c: New file, from glibc.
70600         * lib/argp-pv.c: New file, from glibc.
70601         * lib/argp-pvh.c: New file, from glibc.
70602         * lib/argp-xinl.c: New file, from glibc.
70603
70604 2003-06-10  Simon Josefsson  <jas@extundo.com>
70605
70606         * modules/strchrnul: New file.
70607
70608 2003-06-10  Simon Josefsson  <jas@extundo.com>
70609
70610         * modules/argp: New file.
70611
70612 2003-06-10  Simon Josefsson  <jas@extundo.com>
70613
70614         * m4/strchrnul.m4: New file.
70615
70616 2003-06-10  Simon Josefsson  <jas@extundo.com>
70617
70618         * lib/strchrnul.h: New file.
70619         * lib/strchrnul.c: New file.
70620
70621 2003-06-10  Bruno Haible  <bruno@clisp.org>
70622
70623         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
70624
70625 2003-06-07  Karl Berry  <karl@gnu.org>
70626
70627         * config/config.{guess,sub}: update from prep.
70628
70629 2003-06-07  Jim Meyering  <jim@meyering.net>
70630
70631         * modules/strtod: Use $(...) notation, not @...@ for
70632         AC_REPLACE'd variables.
70633         * modules/localcharset: Likewise.
70634
70635 2003-06-07  Jim Meyering  <jim@meyering.net>
70636
70637         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
70638         in place of my name in the copyright comment.
70639         Remove definition and uses of __P.
70640
70641         From coreutils.
70642         * lib/stat.c: Don't declare xmalloc explicitly.
70643         Instead, include "xalloc.h".
70644         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
70645         xrealloc, and xcalloc return values.
70646         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
70647         Improve comment.
70648         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
70649
70650 2003-06-07  Bruno Haible  <bruno@clisp.org>
70651
70652         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
70653         avoid AC_CONFIG_LINKS.
70654         * modules/fnmatch (Makefile.am): Use explicit creation rule for
70655         fnmatch.h, to avoid AC_CONFIG_LINKS.
70656         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
70657
70658 2003-06-07  Bruno Haible  <bruno@clisp.org>
70659
70660         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
70661         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
70662         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70663         directory.
70664         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
70665         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70666         directory.
70667
70668 2003-06-06  Jim Meyering  <jim@meyering.net>
70669
70670         Merge from coreutils.
70671         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
70672         Consolidate declarations and initializations of *_base* locals.
70673
70674         Merge from coreutils.
70675         This avoids a core dump on systems without GNU putenv,
70676         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
70677         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
70678         (unsetenv): New static function, from GNU libc.
70679         (rpl_putenv): Use it.
70680
70681         * lib/modechange.c: Remove trailing blanks.
70682
70683         Merge from coreutils.
70684         * lib/fsusage.c: Remove declaration of statfs.
70685         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
70686
70687         * lib/posixtm.c: Include <stdbool.h> unconditionally.
70688
70689 2003-06-06  Jim Meyering  <jim@meyering.net>
70690
70691         * lib/stdbool_.h: Renamed from stdbool.h.in.
70692
70693 2003-06-06  Jim Meyering  <jim@meyering.net>
70694             Bruno Haible  <bruno@clisp.org>
70695
70696         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
70697         Adjust Makefile.am snippet not to redirect directly to target.
70698         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
70699
70700 2003-06-05  Paul Eggert  <eggert@twinsun.com>
70701
70702         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
70703         mismatch, look in future quarters as well as past.  This fixes a
70704         bug when processing fall-backwards gaps immediately after a long
70705         period of daylight-saving time.
70706
70707         * lib/mktime.c: Assume freestanding C89 or better.
70708         (HAVE_LIMITS_H): Remove.  Assume it's 1.
70709         (__P): Remove; not used.
70710         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
70711         (mktime, not_equal_tm, print_tm, check_result,
70712         main): Use prototypes.  Use const * where appropriate.
70713         (main): Fix typo in testing code that uncovered by above changes.
70714         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
70715
70716 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70717
70718         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
70719         locale.h, localeconv.  This merges changes from coreutils.
70720
70721         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
70722         It can be removed after the next Autoconf is released.
70723         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
70724         needed.
70725
70726 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70727
70728         * lib/mktime.c: Fix Debian bug 177940
70729         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
70730         (localtime_offset): Now long int, not time_t, because we want it
70731         to be guaranteed to be signed.  All uses changed.
70732         (__mktime_internal): If overflow would occur when adding offset,
70733         don't add it.
70734
70735         Merge 'human' changes from coreutils.  Rewrite to support
70736         locale-specific notations like thousands separators.
70737         * lib/human.c: Simplify authorship notice.
70738         Include human.h immediately after config.h.
70739         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
70740         <limits.h>: Do not include, since human.h does.
70741         (SIZE_MAX, UINTMAX_MAX): New macros.
70742         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
70743         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
70744         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
70745         (power_letter): Renamed from suffixes.
70746         (generate_suffix_backwards): Remove.
70747         (adjust_value): Now takes int style (because of human.h changes)
70748         and long double value (for greater precision on some platforms).
70749         (group_number): New function.
70750         (human_readable): Use it.  Use integer options, not enum.
70751         Put the options before the sizes in the arg list.
70752         Support all the new options.
70753         The old human_readable function has been removed;
70754         use inttostr.h instead.
70755         (human_readable, default_block_size, humblock):
70756         Use uintmax_t, not int, for block sizes.
70757         (human_readable_inexact, block_size_types): Remove.
70758         (block_size_opts): New constant.
70759         (human_options): Renamed from human_block_size, with new signature
70760         that allows block sizes up to UINTMAX_MAX.  All callers changed.
70761         * lib/human.h: Add copyright and authorship notice.
70762         Include <limits.h> and <stdbool.h> unconditionally.
70763         (PARAMS): Remove.  All uses removed.
70764         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
70765         (enum human_inexact_style): Remove tag; now a nameless enum.
70766         (human_floor, human_ceiling, human_round_to_even): Now have
70767         values 2, 0, 1 rather than -1, 1, 0.
70768         (human_group_digits, human_suppress_point_zero, human_autoscale,
70769         human_base_1024, human_SI, human_B): New constants.
70770         (human_readable_inexact, human_block_size): Remove.
70771         (human_readable): Size args are now uintmax_t, not int.
70772         (human_options): New decl.
70773
70774         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
70775         unnecessary now that we assume C89 or better.  This change
70776         imported from coreutils.
70777
70778         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
70779         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
70780         in the 2003-05-30 sync from glibc.
70781
70782         .h files should stand alone, but we shouldn't include <sys/types.h>
70783         if we can get away with just <stddef.h>.
70784
70785         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
70786         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
70787         rather than <sys/types.h>, as we merely need size_t.
70788         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
70789         to get size_t.
70790         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
70791         Include <stdio.h>, to get FILE.
70792         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
70793         memcasecmp.h has included <stddef.h> and all we need is size_t.
70794         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
70795         our interface, instead of including <sys/types.h>
70796
70797 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70798
70799         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
70800         now, as glibc mktime is buggy on non-glibc systems.
70801
70802 2003-06-03  Karl Berry  <karl@gnu.org>
70803
70804         * config/config.sub: update from prep.
70805
70806 2003-06-02  Paul Eggert  <eggert@twinsun.com>
70807
70808         [from coreutils]
70809         Fix some minor time-related bugs with POSIX time arguments.
70810         Some valid time stamps were being rejected (notably -1, and
70811         time stamps before 1900 on 64-bit hosts).  And some invalid
70812         time stamps were being accepted, e.g. September 31.
70813
70814         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
70815         that we can return (time_t) -1 successfully.
70816         * lib/posixtm.c: Likewise.
70817         [HAVE_STDBOOL_H]: Include <stdbool.h>.
70818         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
70819         (t): Remove static var.
70820         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
70821         of static var.  All uses changed.
70822         (year): Do not reject years before 1900; they can occur with
70823         64-bit time_t.
70824         (posix_time_parse): Do not check for out-of-range components;
70825         that is now the caller's responsibility, since our checks were
70826         only approximations.
70827         (posixtime): Use mktime to check for out-of-range components,
70828         since it knows them exactly.
70829         If mktime returns (time_t) -1, check whether an error actually occurred
70830         by invoking localtime on -1.
70831         (main) [TEST_POSIXTIME]: Check for input data errors, and report
70832         posixtime failures better.
70833         Improve the test data (in comments only).
70834
70835 2003-06-02  Karl Berry  <karl@gnu.org>
70836
70837         * config/mkinstalldirs (version): new variable.
70838         (--version): new option.
70839         (usage): improve message.
70840
70841 2003-05-30  Karl Berry  <karl@gnu.org>
70842
70843         * lib/mktime.c: update from libc.
70844
70845 2003-05-30  Bruno Haible  <bruno@clisp.org>
70846
70847         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
70848         * config/config.rpath: Upgrade to gettext-0.12.1.
70849
70850 2003-05-30  Bruno Haible  <bruno@clisp.org>
70851
70852         * m4/gettext.m4: Upgrade to gettext-0.12.1.
70853         * m4/nls.m4: New file, from gettext-0.12.1.
70854         * m4/po.m4: New file, from gettext-0.12.1.
70855         * m4/progtest.m4: Upgrade to gettext-0.12.1.
70856
70857 2003-05-30  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
70860         * lib/localcharset.h: Likewise.
70861         * lib/localcharset.c: Likewise.
70862
70863 2003-05-29  Karl Berry  <karl@gnu.org>
70864
70865         * config/config.rpath: update from gettext.
70866
70867 2003-05-28  Paul Eggert  <eggert@twinsun.com>
70868
70869         Assume the headers required for C89 freestanding compilers.
70870         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
70871         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
70872         * m4/human.m4 (gl_HUMAN): Likewise.
70873         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
70874         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
70875         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70876         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
70877         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70878         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
70879
70880 2003-05-28  Paul Eggert  <eggert@twinsun.com>
70881
70882         Assume the headers required for C89 freestanding compilers.
70883         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
70884         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
70885         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
70886         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
70887         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
70888         define, since <limits.h> is guaranteed to do that.
70889         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
70890         * lib/exclude.c: Include <stdbool.h> unconditionally.
70891         * lib/tempname.c: Include <stddef.h> unconditionally.
70892         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
70893         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
70894         <stddef.h> does that.
70895         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
70896         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
70897         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
70898         needed.
70899         * lib/xstrtol.c: Likewise.
70900         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
70901         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
70902
70903         * lib/addext.c (addext): Use assignment rather than cast, to avoid
70904         warnings on some platforms.
70905
70906         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
70907         arbitrarily.
70908
70909 2003-05-26  Jim Meyering  <jim@meyering.net>
70910
70911         Merge in a change from coreutils:
70912         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
70913         that is guaranteed to be `no'.  Use `no_such_member' to indicate
70914         that condition, rather than `-1' which is slightly misleading.
70915         Change the name of the cache variable to have the gl_ prefix.
70916         Prompted by a patch from Richard Dawe for DJGPP.
70917
70918 2003-05-24  Karl Berry  <karl@gnu.org>
70919
70920         * config/config.guess: update from prep.
70921
70922 2003-05-22  Karl Berry  <karl@gnu.org>
70923
70924         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
70925
70926 2003-05-20  Karl Berry  <karl@gnu.org>
70927
70928         * config/config.guess: update from prep.
70929
70930 2003-05-18  Karl Berry  <karl@gnu.org>
70931
70932         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
70933         might actually be set by the user.
70934
70935         * config/depcomp, install-sh, mdate-sh: update from automake.
70936
70937 2003-05-17  Bruno Haible  <bruno@clisp.org>
70938
70939         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
70940         invalid expansion for AC_EGREP_CPP.
70941         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
70942         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
70943         Suggested by Akim Demaille <akim@epita.fr> in
70944         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
70945
70946 2003-05-12  Jim Meyering  <jim@meyering.net>
70947
70948         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
70949         the space-padded-by-default conversion specifiers, %e, %k, %l.
70950
70951 2003-05-12  Bruno Haible  <bruno@clisp.org>
70952
70953         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
70954         the string is longer than 4 KB.
70955
70956 2003-05-11  Karl Berry  <karl@gnu.org>
70957
70958         * config/config.{guess,sub}: update from prep.
70959
70960 2003-05-09  Bruno Haible  <bruno@clisp.org>
70961
70962         * modules/error: Add m4/strerror_r.m4 to file list.
70963
70964 2003-05-03  Bruno Haible  <bruno@clisp.org>
70965
70966         Upgrade to Unicode-4.0.
70967         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
70968         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
70969         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
70970         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
70971         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
70972         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
70973         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
70974         Change width of U+E0100..U+E01EF from 1 to 0.
70975
70976 2003-04-25  Jim Meyering  <jim@meyering.net>
70977
70978         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
70979         of type size_t, not int.
70980
70981 2003-04-25  Bruno Haible  <bruno@clisp.org>
70982
70983         * lib/copy-file.c: Include <stddef.h>, for size_t.
70984
70985 2003-04-21  Paul Eggert  <eggert@twinsun.com>
70986
70987         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
70988         code which expansion is under static control.  Patch imported from
70989         Akim Demaille's patch to Bison; see
70990         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
70991
70992 2003-04-14  Bruno Haible  <bruno@clisp.org>
70993
70994         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
70995
70996 2003-04-11  Jim Meyering  <jim@meyering.net>
70997
70998         Merge changes from Coreutils.
70999
71000         2003-03-22  Jim Meyering  <jim@meyering.net>
71001
71002         * lib/strftime.c (widen): Cast alloca return value to proper type.
71003
71004         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
71005
71006         From GNU libc.
71007         * lib/strftime.c (my_strftime): Handle very large width
71008         specifications for numeric values correctly.  Improve checks for
71009         overflow.
71010
71011         2003-01-19  Jim Meyering  <jim@meyering.net>
71012
71013         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
71014         definitions.
71015         (nl_get_alt_digit) [! defined my_strftime]: Define.
71016         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
71017         _nl_get_alt_digit and _nl_get_walt_digit.
71018
71019         * lib/strftime.c (my_strftime): Merge in locale-related changes from
71020         libc. These changes have no effect outside of _LIBC.
71021
71022 2003-04-10  Bruno Haible  <bruno@clisp.org>
71023
71024         * modules/findprog: New file.
71025         * MODULES.html.sh (func_all_modules): Add it.
71026
71027 2003-04-10  Bruno Haible  <bruno@clisp.org>
71028
71029         * m4/findprog.m4: New file.
71030         * m4/eaccess.m4: New file.
71031
71032 2003-04-10  Bruno Haible  <bruno@clisp.org>
71033
71034         * lib/findprog.h: New file, from GNU gettext.
71035         * lib/findprog.c: New file, from GNU gettext.
71036
71037 2003-04-05  Jim Meyering  <jim@meyering.net>
71038
71039         Merge changes from Coreutils.
71040
71041         * lib/exclude.h (PARAMS): Remove definition and uses.
71042         * lib/exclude.c: Remove uses of `PARAMS'.
71043
71044         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
71045         Add test-cases for DOS filenames. Declare program_name.
71046         (main): Set up program_name.  Patch by Rich Dawe.
71047
71048         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71049         error from mntctl.
71050         Use mntctl's return value to drive the entry-processing loop, since
71051         we can't rely on the value of the vmt_length member in the last
71052         entry.  On some systems doing so could result in exhausting
71053         virtual memory.  Based in part on a patch from Mike Jetzer.
71054
71055 2003-04-04  Bruno Haible  <bruno@clisp.org>
71056
71057         * modules/linebreak: New file.
71058         * MODULES.html.sh (func_all_modules): Add it.
71059
71060 2003-04-04  Bruno Haible  <bruno@clisp.org>
71061
71062         * m4/linebreak.m4: New file.
71063
71064 2003-04-04  Bruno Haible  <bruno@clisp.org>
71065
71066         * lib/linebreak.h: New file, from GNU gettext.
71067         * lib/linebreak.c: New file, from GNU gettext with slight
71068         modifications.
71069         * lib/lbrkprop.h: New file, from GNU gettext.
71070
71071 2003-04-03  Bruno Haible  <bruno@clisp.org>
71072
71073         * modules/utf8-ucs4: New file.
71074         * modules/utf16-ucs4: New file.
71075         * modules/ucs4-utf8: New file.
71076         * modules/ucs4-utf16: New file.
71077         * MODULES.html.sh (func_all_modules): Add them.
71078
71079 2003-04-03  Bruno Haible  <bruno@clisp.org>
71080
71081         * m4/utf-ucs4.m4: New file.
71082         * m4/ucs4-utf.m4: New file.
71083
71084 2003-04-03  Bruno Haible  <bruno@clisp.org>
71085
71086         * lib/utf8-ucs4.h: New file, from GNU gettext.
71087         * lib/utf16-ucs4.h: New file, from GNU gettext.
71088         * lib/ucs4-utf8.h: New file, from GNU gettext.
71089         * lib/ucs4-utf16.h: New file, from GNU gettext.
71090
71091 2003-04-02  Bruno Haible  <bruno@clisp.org>
71092
71093         * modules/binary-io: New file.
71094         * MODULES.html.sh (func_all_modules): Add it.
71095
71096 2003-04-02  Bruno Haible  <bruno@clisp.org>
71097
71098         * lib/binary-io.h: New file, from GNU gettext.
71099
71100 2003-04-01  Bruno Haible  <bruno@clisp.org>
71101
71102         * modules/pathname: New file.
71103         * MODULES.html.sh (func_all_modules): Add it.
71104
71105 2003-04-01  Bruno Haible  <bruno@clisp.org>
71106
71107         * lib/pathname.h: New file, from GNU gettext.
71108         * lib/concatpath.c: New file, from GNU gettext.
71109
71110 2003-03-30  Bruno Haible  <bruno@clisp.org>
71111
71112         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
71113
71114 2003-03-30  Bruno Haible  <bruno@clisp.org>
71115
71116         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
71117         function chown() doesn't exist.
71118
71119 2003-03-28  Bruno Haible  <bruno@clisp.org>
71120
71121         * modules/copy-file: New file.
71122         * MODULES.html.sh (func_all_modules): Add it.
71123
71124 2003-03-28  Bruno Haible  <bruno@clisp.org>
71125
71126         * m4/copy-file.m4: New file.
71127
71128 2003-03-28  Bruno Haible  <bruno@clisp.org>
71129
71130         * lib/copy-file.h: New file, from GNU gettext.
71131         * lib/copy-file.c: New file, from GNU gettext.
71132
71133 2003-03-18  Jim Meyering  <jim@meyering.net>
71134
71135         * lib/quote.c (quote_n): Fix typo in comment.
71136
71137 2003-03-18  Bruno Haible  <bruno@clisp.org>
71138
71139         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
71140         checking.
71141         * m4/onceonly_2_57.m4: Likewise.
71142
71143 2003-03-17  Bruno Haible  <bruno@clisp.org>
71144
71145         * m4/onceonly.m4: Require autoconf 2.54 or newer.
71146         (m4_quote): Remove macro.
71147         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
71148
71149 2003-03-14  Jim Meyering  <jim@meyering.net>
71150
71151         Merge changes from Coreutils.
71152         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
71153         to be const, in order to avoid warnings.
71154         (obstack_room): Likewise.
71155         (obstack_empty_p): Likewise.
71156
71157 2003-03-14  Bruno Haible  <bruno@clisp.org>
71158
71159         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
71160         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
71161
71162 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71163
71164         Merge changes from Bison.
71165         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
71166         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
71167         when compiling Bison 1.875's `bitset bset = obstack_alloc
71168         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
71169         * lib/hash.c: Include <stdbool.h> unconditionally.
71170
71171 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71172
71173         * m4/onceonly.m4 (m4_quote): New macro.
71174         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
71175         Quote AC_FOREACH variable-expansions properly.
71176
71177 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71178
71179         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
71180
71181 2003-03-09  Paul Eggert  <eggert@twinsun.com>
71182
71183         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
71184         Reported by Bruce Becker; see:
71185         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
71186
71187 2003-03-03  Paul Eggert  <eggert@twinsun.com>
71188             Bruno Haible  <bruno@clisp.org>
71189
71190         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
71191         Reported by John Hughes, see
71192         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
71193
71194 2003-02-20  Bruno Haible  <bruno@clisp.org>
71195
71196         * MODULES.html.sh (func_all_modules): Add poll.
71197
71198 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71199
71200         * modules/poll: New file.
71201
71202 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71203
71204         * lib/poll_.h: New file.
71205         * lib/poll.c: New file.
71206
71207 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71208
71209         * m4/poll.m4: New file.
71210
71211 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71212
71213         * modules/mathl: New file.
71214
71215 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71216
71217         * lib/mathl.h: New file.
71218         * lib/acosl.c: New file.
71219         * lib/asinl.c: New file.
71220         * lib/atanl.c: New file.
71221         * lib/ceill.c: New file.
71222         * lib/cosl.c: New file.
71223         * lib/expl.c: New file.
71224         * lib/floorl.c: New file.
71225         * lib/frexpl.c: New file.
71226         * lib/ldexpl.c: New file.
71227         * lib/logl.c: New file.
71228         * lib/sincosl.c: New file.
71229         * lib/sinl.c: New file.
71230         * lib/sqrtl.c: New file.
71231         * lib/tanl.c: New file.
71232         * lib/trigl.c: New file.
71233         * lib/trigl.h: New file.
71234
71235 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71236
71237         * m4/mathl.m4: New file.
71238
71239 2003-02-18  Bruno Haible  <bruno@clisp.org>
71240
71241         * MODULES.html.sh (func_all_modules): Add mathl.
71242
71243 2003-02-17  Bruno Haible  <bruno@clisp.org>
71244
71245         * modules/mkdtemp: New module.
71246         * MODULES.html.sh (func_all_modules): Add it.
71247
71248 2003-02-17  Bruno Haible  <bruno@clisp.org>
71249
71250         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
71251
71252 2003-02-17  Bruno Haible  <bruno@clisp.org>
71253
71254         * lib/mkdtemp.h: New file, from GNU gettext.
71255         * lib/mkdtemp.c: New file, from GNU gettext.
71256
71257 2003-02-02  Jim Meyering  <jim@meyering.net>
71258
71259         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
71260         e.g. glibc-2.2.93.
71261
71262 2003-01-31  Bruno Haible  <bruno@clisp.org>
71263
71264         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
71265         'rpl_rename'.
71266         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
71267         'rpl_strnlen'.
71268         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
71269         'rpl_strtod'.
71270         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
71271         'rpl_utime'.
71272
71273 2003-01-31  Bruno Haible  <bruno@clisp.org>
71274
71275         * lib/rename.c: #undef rename before defining rpl_rename.
71276         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
71277
71278 2003-01-30  Bruno Haible  <bruno@clisp.org>
71279
71280         * modules/vasnprintf, modules/vasprintf: New modules.
71281         * MODULES.html.sh (func_all_modules): Add them.
71282
71283 2003-01-30  Bruno Haible  <bruno@clisp.org>
71284
71285         * m4/signed.m4: New file, from GNU gettext.
71286         * m4/longdouble.m4: New file, from GNU gettext.
71287         * m4/wchar_t.m4: New file, from GNU gettext.
71288         * m4/wint_t.m4: New file, from GNU gettext.
71289         * m4/vasnprintf.m4: New file.
71290         * m4/vasprintf.m4: New file.
71291
71292 2003-01-30  Bruno Haible  <bruno@clisp.org>
71293
71294         * lib/printf-args.h: New file, from GNU gettext.
71295         * lib/printf-args.c: New file, from GNU gettext.
71296         * lib/printf-parse.h: New file, from GNU gettext.
71297         * lib/printf-parse.c: New file, from GNU gettext.
71298         * lib/vasnprintf.h: New file, from GNU gettext.
71299         * lib/vasnprintf.c: New file, from GNU gettext.
71300         * lib/asnprintf.c: New file, from GNU gettext.
71301         * lib/vasprintf.h: New file, from GNU gettext with modifications.
71302         * lib/vasprintf.c: New file, from GNU gettext.
71303         * lib/asprintf.c: New file, from GNU gettext.
71304
71305 2003-01-29  Bruno Haible  <bruno@clisp.org>
71306
71307         * modules/stpncpy: New module.
71308         * MODULES.html.sh (func_all_modules): Add it.
71309
71310 2003-01-29  Bruno Haible  <bruno@clisp.org>
71311
71312         * m4/stpncpy.m4: New file.
71313
71314 2003-01-29  Bruno Haible  <bruno@clisp.org>
71315
71316         * lib/stpncpy.h: New file, from GNU gettext with modifications.
71317         * lib/stpncpy.c: New file, from GNU gettext with modifications.
71318
71319 2003-01-28  Bruno Haible  <bruno@clisp.org>
71320
71321         * modules/c-ctype: New module.
71322         * MODULES.html.sh (func_all_modules): Add it.
71323
71324 2003-01-28  Bruno Haible  <bruno@clisp.org>
71325
71326         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
71327         Paul Eggert.
71328         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
71329         Paul Eggert.
71330
71331 2003-01-27  Bruno Haible  <bruno@clisp.org>
71332
71333         * modules/xsetenv: New module.
71334         * MODULES.html.sh (func_all_modules): Add it.
71335
71336 2003-01-27  Bruno Haible  <bruno@clisp.org>
71337
71338         * lib/xsetenv.h: New file, from GNU gettext.
71339         * lib/xsetenv.c: New file, from GNU gettext.
71340
71341 2003-01-23  Jim Meyering  <jim@meyering.net>
71342
71343         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
71344         from working on systems without dirfd (at least Irix and OSF1/Tru64).
71345
71346 2003-01-23  Bruno Haible  <bruno@clisp.org>
71347
71348         * modules/minmax: New module.
71349         * MODULES.html.sh (func_all_modules): Add it.
71350
71351 2003-01-23  Bruno Haible  <bruno@clisp.org>
71352
71353         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
71354         Eggert.
71355
71356 2003-01-22  Bruno Haible  <bruno@clisp.org>
71357
71358         * modules/exit: New module.
71359         * MODULES.html.sh (func_all_modules): Add it.
71360
71361 2003-01-22  Bruno Haible  <bruno@clisp.org>
71362
71363         * lib/exit.h: New file, from GNU gettext.
71364
71365 2003-01-19  Bruno Haible  <bruno@clisp.org>
71366
71367         * gnulib-tool: Recognize option --extract-maintainer.
71368         (func_get_maintainer): New function.
71369         * modules/*: Add Maintainer entry.
71370
71371 2003-01-16  Jim Meyering  <jim@meyering.net>
71372
71373         * m4/regex.m4: The `regex' struct is both input and output.
71374         Initialize it before each use.  Patch by Tim Waugh.
71375
71376 2003-01-16  Bruno Haible  <bruno@clisp.org>
71377
71378         * MODULES.html.sh: Add a table of contents. Add the module name as
71379         leftmost column. Add hyperlinks.
71380
71381 2003-01-15  Bruno Haible  <bruno@clisp.org>
71382
71383         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
71384
71385 2003-01-15  Bruno Haible  <bruno@clisp.org>
71386
71387         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
71388         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
71389         suffix.
71390
71391 2003-01-15  Bruno Haible  <bruno@clisp.org>
71392
71393         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
71394
71395 2003-01-15  Bruno Haible  <bruno@clisp.org>
71396
71397         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
71398         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
71399
71400 2003-01-14  Jim Meyering  <jim@meyering.net>
71401
71402         * lib/same.c (same_name): Tweak a comment.
71403
71404 2003-01-14  Bruno Haible  <bruno@clisp.org>
71405
71406         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
71407         when a string comparison is sufficient.
71408
71409 2003-01-14  Bruno Haible  <bruno@clisp.org>
71410
71411         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
71412         'unsigned int'.
71413
71414 2003-01-14  Bruno Haible  <bruno@clisp.org>
71415
71416         * lib/hash-pjw.c: Add comment about low quality of this function.
71417
71418 2003-01-13  Bruno Haible  <bruno@clisp.org>
71419
71420         * modules/stpcpy: Distribute lib/stpcpy.h.
71421         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
71422
71423 2003-01-13  Bruno Haible  <bruno@clisp.org>
71424
71425         * modules/*: Add a description.
71426         * modules/strpbrk: Fix Makefile.am snippet.
71427         * modules/strtoimax: Fix dependencies.
71428         * modules/strtoumax: Likewise.
71429
71430 2003-01-13  Bruno Haible  <bruno@clisp.org>
71431
71432         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
71433         * modules/alloca (Makefile.am): All object files depend on alloca.h.
71434         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
71435
71436 2003-01-13  Bruno Haible  <bruno@clisp.org>
71437
71438         * gnulib-tool (func_create_testdir): Store config/* files in the main
71439         directory.
71440         * config.rpath: Move to ...
71441         * config/config.rpath: ... here.
71442         * modules/gettext: Contains config/config.rpath, not config.rpath.
71443         * modules/iconv: Likewise.
71444
71445 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71446
71447         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71448         to avoid collisions with libcurses and libreadline.
71449
71450         * m4/getstr.m4: Remove.
71451         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
71452
71453 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71454
71455         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71456         to avoid collisions with libcurses and libreadline.
71457
71458         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
71459         * lib/getstr.h, getstr.c: Remove.
71460         * lib/getline.c: Include "getline.h", to check interface.
71461         Move body of old getstr.c here: this defines MIN_CHUNK and
71462         declares getdelim2, which is renamed from getstr.
71463         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
71464
71465         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
71466         All uses changed.
71467         * lib/linebuffer.h: Likewise.
71468         (readline): Remove backward-compatibility macro.
71469
71470 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71471
71472         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71473         to avoid collisions with libcurses and libreadline.
71474         * getstr: Remove.
71475         * MODULES.html.sh: Remove getstr.
71476         * modules/getline: Depend on unlocked-io, not getstr.
71477
71478 2003-01-12  Jim Meyering  <jim@meyering.net>
71479
71480         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
71481
71482 2003-01-10  Bruno Haible  <bruno@clisp.org>
71483
71484         * modules/alloca: Change Makefile.am requirements. Simplify Include
71485         requirements. Add lib/alloca_.h to file list.
71486
71487 2003-01-10  Bruno Haible  <bruno@clisp.org>
71488
71489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
71490
71491 2003-01-10  Bruno Haible  <bruno@clisp.org>
71492
71493         * lib/alloca_.h: New file.
71494         * lib/getdate.y: Unconditionally include alloca.h.
71495         * lib/makepath.c: Likewise.
71496         * lib/setenv.c: Likewise.
71497         * lib/userspec.c: Likewise.
71498
71499 2003-01-09  Karl Berry  <karl@gnu.org>
71500
71501         * MODULES.html.sh: include `dirname $0` in PATH, to find
71502         gnulib-tool.
71503
71504 2003-01-09  Bruno Haible  <bruno@clisp.org>
71505
71506         * modules/stdbool: Change configure.ac, Makefile.am requirements.
71507         Simplify Include requirements. Add lib/stdbool.h.in to file list.
71508
71509 2003-01-09  Bruno Haible  <bruno@clisp.org>
71510
71511         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
71512
71513 2003-01-09  Bruno Haible  <bruno@clisp.org>
71514
71515         * lib/stdbool.h.in: New file.
71516
71517 2003-01-09  Bruno Haible  <bruno@clisp.org>
71518
71519         * gnulib-tool (func_all_modules): Ignore files ending in ~.
71520         * MODULES.html.sh: Likewise.
71521
71522 2003-01-08  Jim Meyering  <jim@meyering.net>
71523
71524         * lib/full-write.c: Undefine and define-away `const' after inclusion
71525         of errno.h, not before.  Suggestion from Bruno Haible.
71526
71527 2003-01-08  Bruno Haible  <bruno@clisp.org>
71528
71529         * modules/full-read: Depend on full-write.
71530
71531 2003-01-08  Bruno Haible  <bruno@clisp.org>
71532
71533         * lib/safe-read.c: Include specification header first, to ensure its
71534         selfcontainedness.
71535         * lib/full-write.c: Likewise.
71536
71537 2003-01-07  Jim Meyering  <jim@meyering.net>
71538
71539         * lib/full-write.c: Rework so that it may serve to define full_read,
71540         too.
71541         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
71542
71543 2003-01-07  Bruno Haible  <bruno@clisp.org>
71544
71545         * lib/strtoimax.c: Include <stdint.h> as an alternative to
71546         <inttypes.h>.
71547         * lib/xstrtol.h: Likewise.
71548         * lib/xstrtoimax.c: Likewise.
71549         * lib/xstrtoumax.c: Likewise.
71550         * lib/human.h: Likewise.
71551
71552         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
71553         on systems that have <inttypes.h> but not <stdint.h>.
71554
71555 2003-01-07  Bruno Haible  <bruno@clisp.org>
71556
71557         * MODULES.html.sh: Add copyright notice.
71558         (missed_files): Omit CVS directory entries.
71559         (func_module): Make it work with sed-3.02.
71560         * MODULES.txt: Remove file.
71561
71562 2003-01-06  Jim Meyering  <jim@meyering.net>
71563
71564         * lib/version-etc.c: Update year in translatable copyright string.
71565
71566 2003-01-03  Karl Berry  <karl@gnu.org>
71567
71568         * config/config.{guess,sub}: update from prep.
71569
71570 2003-01-02  Karl Berry  <karl@gnu.org>
71571
71572         * doc/COPYING.DOC: belatedly updated to 1.2.
71573
71574 2003-01-01  Karl Berry  <karl@gnu.org>
71575
71576         * gnulib-tool (func_verify_module): report module name $module in
71577         error message, not $1.
71578         * gnulib-tool (create-testdir): don't complain if destdir couldn't
71579         be created, only if it doesn't exist.
71580         * gnulib-tool (last_checkin_date): don't expand the $Date here.
71581
71582 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71583
71584         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
71585
71586 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71587
71588         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
71589         memcmp if strcoll doesn't work.
71590
71591 2002-12-31  Bruno Haible  <bruno@clisp.org>
71592
71593         * lib/utime.c (utime_null): No need to call ftruncate if the file was
71594         nonempty.
71595
71596 2002-12-31  Bruno Haible  <bruno@clisp.org>
71597
71598         * lib/memcoll.c (STRCOLL): New macro.
71599         (memcoll): Use it.
71600
71601 2002-12-31  Bruno Haible  <bruno@clisp.org>
71602
71603         * lib/localcharset.h: New file.
71604         * lib/localcharset.c: Include it.
71605         * lib/unicodeio.c: Likewise.
71606
71607 2002-12-31  Bruno Haible  <bruno@clisp.org>
71608
71609         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
71610         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
71611
71612 2002-12-31  Bruno Haible  <bruno@clisp.org>
71613
71614         * lib/getline.h: Include <stddef.h>, for size_t.
71615
71616         * lib/unicodeio.h: Include <stddef.h>, for size_t.
71617         * lib/unicodeio.c: Don't include <stddef.h>.
71618
71619 2002-12-31  Bruno Haible  <bruno@clisp.org>
71620
71621         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
71622         HAVE_TM_ZONE.
71623
71624 2002-12-24  Karl Berry  <karl@gnu.org>
71625
71626         * config/config.guess: update from prep.
71627
71628 2002-12-24  Bruno Haible  <bruno@clisp.org>
71629
71630         General infrasructure.
71631         * m4/README: Rewritten.
71632         * m4/onceonly.m4: New file.
71633         * m4/onceonly_2_57.m4: New file.
71634
71635         Module atexit.
71636         * m4/atexit.m4: New file.
71637
71638         Module strtod.
71639         * m4/strtod.m4: New file.
71640
71641         Module strtol.
71642         * m4/strtol.m4: New file.
71643
71644         Module strtoul.
71645         * m4/strtoul.m4: New file.
71646
71647         Module memchr.
71648         * m4/memchr.m4: New file.
71649
71650         Module memcmp.
71651         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
71652         (jm_FUNC_MEMCMP): Invoke it.
71653
71654         Module memcpy.
71655         * m4/memcpy.m4: New file.
71656
71657         Module memmove.
71658         * m4/memmove.m4: New file.
71659
71660         Module memset.
71661         * m4/memset.m4: New file.
71662
71663         Module strcspn.
71664         * m4/strcspn.m4: New file.
71665
71666         Module strpbrk.
71667         * m4/strpbrk.m4: New file.
71668
71669         Module strstr.
71670         * m4/strstr.m4: New file.
71671
71672         Module strerror.
71673         * m4/strerror.m4: New file.
71674
71675         Module mktime.
71676         * m4/mktime.m4: Renamed from jm-mktime.m4.
71677         (gl_PREREQ_MKTIME): New macro.
71678         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
71679
71680         Module malloc.
71681         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
71682         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
71683         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
71684
71685         Module realloc.
71686         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
71687         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
71688         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
71689
71690         Module strftime.
71691         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
71692         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
71693         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
71694         gl_TM_GMTOFF.
71695         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
71696
71697         Module xalloc.
71698         * m4/xalloc.m4: New file.
71699
71700         Module alloca.
71701         * m4/alloca.m4: New file.
71702
71703         Module putenv.
71704         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
71705         (jm_FUNC_PUTENV): Invoke it.
71706
71707         Module setenv.
71708         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
71709         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
71710         when invoked twice.
71711         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
71712         gt_FUNC_SETENV.
71713
71714         Module memrchr.
71715         * m4/memrchr.m4: New file.
71716
71717         Module stpcpy.
71718         * m4/stpcpy.m4: New file.
71719
71720         Module strcase.
71721         * m4/strcase.m4: New file.
71722
71723         Module strdup.
71724         * m4/strdup.m4: New file.
71725
71726         Module strnlen.
71727         * m4/strnlen.m4: New file.
71728
71729         Module strndup.
71730         * m4/strndup.m4: New file.
71731
71732         Module xstrtod.
71733         * m4/xstrtod.m4: New file.
71734
71735         Module xstrtol.
71736         * m4/xstrtol.m4: New file.
71737
71738         Module getdate.
71739         * m4/getdate.m4: New file.
71740
71741         Module unlocked-io.
71742         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
71743         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
71744         * m4/jm-glibc-io.m4n: Remove file.
71745
71746         Module long-options.
71747         * m4/long-options.m4: New file.
71748
71749         Module md5.
71750         * m4/md5.m4: New file.
71751
71752         Module sha.
71753         * m4/sha.m4: New file.
71754
71755         Module getstr.
71756         * m4/getstr.m4: New file.
71757
71758         Module getline.
71759         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
71760         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
71761         <sys/types.h>, for size_t. Use the function name gnu_getline, not
71762         simply getline. Infoke gl_PREREQ_GETLINE.
71763
71764         Module obstack.
71765         * m4/obstack.m4: New file.
71766
71767         Module hash.
71768         * m4/hash.m4: New file.
71769
71770         Module readtokens.
71771         * m4/readtokens.m4: New file.
71772
71773         Module strverscmp.
71774         * m4/strverscmp.m4: New file.
71775
71776         Module stdbool.
71777         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
71778         OSF/1.
71779
71780         Module strtoll.
71781         * m4/strtoll.m4: New file.
71782
71783         Module strtoull.
71784         * m4/strtoull.m4: New file.
71785
71786         Module strtoimax.
71787         * m4/strtoimax.m4: New file.
71788
71789         Module strtoumax.
71790         * m4/strtoumax.m4: New file.
71791
71792         Module xstrtoimax.
71793         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
71794         jm_AC_PREREQ_XSTRTOIMAX.
71795         Moved the strtol prerequisites to strtol.m4.
71796         Moved the strtoll prerequisites to strtoll.m4.
71797         Moved the strtoimax prerequisites to strtoimax.m4.
71798
71799         Module xstrtoumax.
71800         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
71801         jm_AC_PREREQ_XSTRTOUMAX.
71802         Moved the strtoul prerequisites to strtoul.m4.
71803         Moved the strtoull prerequisites to strtoull.m4.
71804         Moved the strtoumax prerequisites to strtoumax.m4.
71805
71806         Module chown.
71807         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
71808         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
71809
71810         Module dup2.
71811         * m4/dup2.m4: New file.
71812
71813         Module ftruncate.
71814         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
71815         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
71816
71817         Module getgroups.
71818         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
71819         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
71820
71821         Module gettimeofday.
71822         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
71823         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
71824         gl_PREREQ_GETTIMEOFDAY.
71825
71826         Module mkdir.
71827         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
71828         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
71829
71830         Module mkstemp.
71831         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
71832         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
71833         jm_AC_TYPE_UINTMAX_T.
71834         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
71835
71836         Module stat.
71837         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
71838         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
71839
71840         Module lstat.
71841         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
71842         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
71843
71844         Module timespec.
71845         * m4/timespec.m4 (gl_TIMESPEC): New macro.
71846         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
71847         * m4/st_mtim.m4: Indentation.
71848
71849         Module nanosleep.
71850         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
71851         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
71852         gl_PREREQ_NANOSLEEP.
71853
71854         Module regex.
71855         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
71856         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
71857         (gl_REGEX): New macro.
71858
71859         Module rename.
71860         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
71861         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
71862
71863         Module rmdir.
71864         * m4/rmdir.m4: New file.
71865
71866         Module utime.
71867         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
71868         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
71869         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
71870
71871         Module dirname.
71872         * m4/dirname.m4: New file.
71873
71874         Module getopt.
71875         * m4/getopt.m4: New file.
71876
71877         Module unistd-safer.
71878         * m4/unistd-safer.m4: New file.
71879
71880         Module fnmatch.
71881         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
71882         declaration.
71883         (gl_PREREQ_FNMATCH_EXTRA): New macro.
71884         (gl_FUNC_FNMATCH_POSIX): New macro.
71885         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
71886         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
71887         simply fnmatch.
71888
71889         Module exclude.
71890         * m4/exclude.m4: New file.
71891
71892         Module human.
71893         * m4/human.m4: New file.
71894
71895         Module acl.
71896         * m4/acl.m4: Nop.
71897
71898         Module backupfile.
71899         * m4/backupfile.m4: New file.
71900         * m4/d-ino.m4: Indentation.
71901
71902         Module fsusage.
71903         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
71904         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
71905         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
71906
71907         Module dirfd.
71908         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
71909         requirements.
71910
71911         Module euidaccess.
71912         * m4/euidaccess.m4: New file.
71913
71914         Module file-type.
71915         * m4/file-type.m4: New file.
71916
71917         Module fileblocks.
71918         * m4/fileblocks.m4: New file.
71919
71920         Module filemode.
71921         * m4/filemode.m4: New file.
71922
71923         Module isdir.
71924         * m4/isdir.m4: New file.
71925
71926         Module lchown.
71927         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
71928         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
71929
71930         Module makepath.
71931         * m4/makepath.m4: New file.
71932
71933         Module modechange.
71934         * m4/modechange.m4: New file.
71935
71936         Module mountlist.
71937         * m4/mountlist.m4: New file.
71938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
71939         Indentation.
71940
71941         Module path-concat.
71942         * m4/path-concat.m4: New file.
71943
71944         Module pathmax.
71945         * m4/pathmax.m4: New file.
71946
71947         Module same.
71948         * m4/same.m4: New file.
71949
71950         Module save-cwd.
71951         * m4/save-cwd.m4: New file.
71952
71953         Module savedir.
71954         * m4/savedir.m4: New file.
71955
71956         Module xgetcwd.
71957         * m4/xgetcwd.m4: New file.
71958         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
71959
71960         Module xreadlink.
71961         * m4/xreadlink.m4: New file.
71962
71963         Module safe-read.
71964         * m4/safe-read.m4: New file.
71965
71966         Module safe-write.
71967         * m4/safe-write.m4: New file.
71968
71969         Module closeout.
71970         * m4/closeout.m4: New file.
71971
71972         Module stdio-safer.
71973         * m4/stdio-safer.m4: New file.
71974
71975         Module getpass.
71976         * m4/getpass.m4: New file.
71977
71978         Module getugroups.
71979         * m4/getugroups.m4: New file.
71980
71981         Module group-member.
71982         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
71983         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
71984
71985         Module idcache.
71986         * m4/idcache.m4: New file.
71987
71988         Module userspec.
71989         * m4/userspec.m4: New file.
71990
71991         Module gettime.
71992         * m4/clock_time.m4: New file.
71993         * m4/gettime.m4: New file.
71994
71995         Module settime.
71996         * m4/settime.m4: New file.
71997
71998         Module posixtm.
71999         * m4/posixtm.m4: New file.
72000
72001         Module gethostname.
72002         * m4/gethostname.m4: New file.
72003
72004         Module canon-host.
72005         * m4/canon-host.m4: New file.
72006
72007         Module gettext.
72008         * m4/codeset.m4: New file, from gettext-0.11.5.
72009         * m4/gettext.m4: New file, from gettext-0.11.5.
72010         * m4/glibc21.m4: New file, from gettext-0.11.5.
72011         * m4/iconv.m4: New file, from gettext-0.11.5.
72012         * m4/intdiv0.m4: New file, from gettext-0.11.5.
72013         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
72014         * m4/inttypes.m4: New file, from gettext-0.11.5.
72015         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
72016         * m4/isc-posix.m4: New file, from gettext-0.11.5.
72017         * m4/lcmessage.m4: New file, from gettext-0.11.5.
72018         * m4/lib-ld.m4: New file, from gettext-0.11.5.
72019         * m4/lib-link.m4: New file, from gettext-0.11.5.
72020         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
72021         * m4/progtest.m4: New file, from gettext-0.11.5.
72022         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
72023         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
72024         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
72025
72026         Module localcharset.
72027         * m4/localcharset.m4: New file.
72028
72029         Module hard-locale.
72030         * m4/hard-locale.m4: New file.
72031
72032         Module mbswidth.
72033         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
72034         onceonly macros.
72035         * m4/mbrtowc.m4: Add comment.
72036
72037         Module memcasecmp.
72038         * m4/memcasecmp.m4: New file.
72039
72040         Module memcoll.
72041         * m4/memcoll.m4: New file.
72042
72043         Module unicodeio.
72044         * m4/unicodeio.m4: New file.
72045
72046         Module rpmatch.
72047         * m4/rpmatch.m4: New file.
72048
72049         Module yesno.
72050         * m4/yesno.m4: New file.
72051
72052         Module exitfail.
72053         * m4/exitfail.m4: New file.
72054
72055         Module c-stack.
72056         * m4/c-stack.m4 (gl_C_STACK): New macro.
72057         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
72058
72059         Module error.
72060         * m4/error.m4 (gl_ERROR): New macro.
72061         (jm_PREREQ_ERROR): Use onceonly macros.
72062
72063         Module fatal.
72064         * m4/fatal.m4: New file.
72065
72066         Module getloadavg.
72067         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
72068         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
72069
72070         Module getpagesize.
72071         * m4/getpagesize.m4: New file.
72072
72073         Module getusershell.
72074         * m4/getusershell.m4: New file.
72075
72076         Module physmem.
72077         * m4/physmem.m4: New file.
72078
72079         Module posixver.
72080         * m4/posixver.m4: New file.
72081
72082         Module quotearg.
72083         * m4/quotearg.m4: New file.
72084
72085         Module quote.
72086         * m4/quote.m4: New file.
72087
72088         Module readutmp.
72089         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
72090
72091         Module sig2str.
72092         * m4/sig2str.m4: New file.
72093
72094         Other.
72095         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
72096         ulonglong.m4.
72097         * m4/intmax_t.m4: New file.
72098         * m4/d-type.m4: Indentation.
72099         * m4/jm-macros.m4: Update.
72100         * m4/prereq.m4 (jm_PREREQ): Update.
72101         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
72102         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
72103         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
72104         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
72105         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
72106         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
72107         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
72108         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
72109         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
72110         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
72111         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
72112         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
72113         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
72114         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
72115         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
72116         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
72117         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
72118         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
72119         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
72120
72121 2002-12-24  Bruno Haible  <bruno@clisp.org>
72122
72123         * MODULES.txt: Update according to m4/ changes.
72124
72125         Module gettext.
72126         * config.rpath: New file, from gettext-0.11.5.
72127
72128         * modules/*: New module descriptions.
72129         * gnulib-tool: New file.
72130         * MODULES.html.sh: New file.
72131
72132 2002-12-21  Karl Berry  <karl@gnu.org>
72133
72134         * doc/fdl.texi: update to version 1.2.
72135
72136 2002-12-19  Karl Berry  <karl@gnu.org>
72137
72138         * config/config.guess: update from prep.
72139
72140 2002-12-18  Bruno Haible  <bruno@clisp.org>
72141
72142         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
72143         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
72144
72145 2002-12-17  Bruno Haible  <bruno@clisp.org>
72146
72147         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
72148         stdlib.h, string.h.
72149
72150 2002-12-17  Bruno Haible  <bruno@clisp.org>
72151
72152         * lib/canon-host.c (strdup): Remove unused declaration.
72153
72154         * lib/fsusage.c: Include full_read.h.
72155         (get_fs_usage): Use full_read instead of safe_read.
72156
72157         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
72158
72159 2002-12-12  Karl Berry  <karl@gnu.org>
72160
72161         * config/config.guess: update from prep.
72162
72163 2002-12-11  Bruno Haible  <bruno@clisp.org>
72164
72165         * m4/setenv.m4: New file, from gettext-0.11.5.
72166
72167 2002-12-11  Bruno Haible  <bruno@clisp.org>
72168
72169         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
72170         not unsetenv().
72171         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
72172         modifications:
72173
72174         2002-12-11  Bruno Haible  <bruno@clisp.org>
72175
72176                 * setenv.c (alloca): Fall back to malloc.
72177                 (freea): New macro.
72178                 (setenv): Use freea() to free memory allocated with alloca().
72179
72180         2002-11-13  Bruno Haible  <bruno@clisp.org>
72181
72182                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
72183                 function declarations.
72184                 * unsetenv.c (unsetenv): Likewise.
72185
72186         2002-03-04  Bruno Haible  <bruno@clisp.org>
72187
72188                 Portability to AIX 4.3.3.
72189                 * unsetenv.c: New file, extracted from setenv.c.
72190                 * setenv.c: Move the unsetenv() function to unsetenv.c.
72191
72192         2001-12-20  Bruno Haible  <bruno@clisp.org>
72193
72194                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
72195                 use malloc instead. For SunOS 4.
72196
72197         2001-12-11  Bruno Haible  <bruno@clisp.org>
72198
72199                 * setenv.c: Declare alloca.
72200                 (compar_fn_t): New typedef.
72201                 (KNOWN_VALUE, STORE_VALUE): Use it.
72202
72203         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
72204         setenv.h.
72205
72206 2002-12-10  Paul Eggert  <eggert@twinsun.com>
72207
72208         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
72209         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
72210         Choose values that are less likely to collide with system fnmatch
72211         options.
72212         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
72213         defined (e.g., a pure POSIX system).
72214         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
72215         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
72216
72217 2002-12-06  Paul Eggert  <eggert@twinsun.com>
72218
72219         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
72220         a pain in practice to deal with generated m4 files.  This change
72221         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
72222
72223         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
72224         and jm-glibc-io.m4, as they are no longer a special case.
72225         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
72226         kludge and the auto-generation stuff.  Check only whether the
72227         functions are declared, not whether they exist, since older hosts
72228         that don't declare the functions can't use the optimization anyway.
72229
72230 2002-12-06  Jim Meyering  <jim@meyering.net>
72231
72232         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
72233
72234         Merge in changes from libc's misc/error.c, in preparation
72235         for the merge of gnulib's changes back into libc.
72236
72237         * lib/error.c (_): Define only if not already defined.
72238         Move definition to follow all #include directives.
72239         Include unlocked-io.h only if !_LIBC.
72240         [_LIBC]: Include <libio/libioP.h>.
72241         [USE_IN_LIBIO]: Include <libio/iolibio.h>
72242         (fflush): Tweak definition to use INTUSE.
72243         (putc): Define.
72244
72245 2002-12-05  Paul Eggert  <eggert@twinsun.com>
72246
72247         * lib/alloca.c [defined emacs]: Include "lisp.h".
72248         (xalloc_die) [defined emacs]: New macro.
72249         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
72250         [! defined emacs]: Include <xalloc.h>.
72251         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
72252         (pointer): Typedef to POINTER_TYPE *.
72253         (malloc): Remove decl; we now always use xmalloc.
72254         (alloca): Use old-style definition, since Emacs needs this.
72255         Check for arithmetic overflow when computing combined size.
72256
72257 2002-12-04  Paul Eggert  <eggert@twinsun.com>
72258
72259         Do not generate unlocked-io.h automatically, since it's easier to
72260         maintain it by hand.
72261
72262         * lib/unlocked-io.h: New file, from GNU diffutils,
72263         but with proper copyright notice and attribution.
72264         * lib/gen-uio: Remove.
72265         * lib/Makefile.am: Add copyright notice.
72266         (libfetish_a_SOURCES): Add unlocked-io.h.
72267         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
72268         (DISTCLEANFILES, io_functions): Remove macros.
72269         (EXTRA_DIST): Remove gen_uio.
72270         (unlocked-io.h): Remove rule.
72271
72272 2002-12-04  Jim Meyering  <jim@meyering.net>
72273
72274         Reflect the fact that stat.c and lstat.c are no longer generated.
72275         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
72276         (DISTCLEANFILES): Likewise.
72277         (EXTRA_DIST): Likewise.
72278         (all_local): Don't depend on stat.c or lstat.c.
72279         (stat.c, lstat.c): Remove rules.
72280         (EXTRA_DIST): Remove xstat.in.
72281
72282         * lib/xstat.in: Remove file.  Contents moved into stat.c.
72283         * lib/stat.c: New file.  Contents mostly from xstat.in.
72284         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
72285         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
72286
72287         * lib/safe-read.c: Rework so that it may serve to define safe_write,
72288         too.
72289         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
72290
72291 2002-12-03  Jim Meyering  <jim@meyering.net>
72292
72293         * lib/safe-read.c, safe-write.c: Change variable names and comments,
72294         but not semantics, to minimize the differences between these two files.
72295         (safe_read): Change comment to mention SAFE_READ_ERROR.
72296
72297         * lib/safe-read.c (IS_EINTR): Define.
72298         (safe_read): Use IS_EINTR in place of in-function cpp directives.
72299
72300 2002-12-02  Jim Meyering  <jim@meyering.net>
72301
72302         * lib/safe-read.c (EINTR): Define.
72303         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72304         (INT_MAX): Provide fallback.
72305         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
72306
72307         * lib/safe-read.h (SAFE_READ_ERROR): Define.
72308
72309 2002-12-02  Bruno Haible  <bruno@clisp.org>
72310
72311         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
72312         Define, taken from safe-read.c.
72313         (INT_MAX): Provide fallback.
72314         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
72315         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
72316
72317         * lib/safe-read.c (EINTR): Remove definition.
72318         (safe_read): Don't use EINTR if it is absent.
72319
72320 2002-12-01  Jim Meyering  <jim@meyering.net>
72321
72322         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
72323         zero.
72324         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
72325
72326 2002-11-27  Paul Eggert  <eggert@twinsun.com>
72327
72328         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
72329         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
72330         with `if (! (value < limit)) abort ();', for readability.
72331
72332 2002-11-26  Karl Berry  <karl@gnu.org>
72333
72334         * lib/strdup.c: copy from libc again, with jim's ok.
72335         * lib/.cppi-disable: re-add strdup.c
72336
72337 2002-11-25  Karl Berry  <karl@gnu.org>
72338
72339         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
72340         instead of "strtol.c".
72341
72342 2002-11-25  Karl Berry  <karl@gnu.org>
72343
72344         * config/install-sh: update from automake for variable quoting, $0 in
72345         error msgs, etc.
72346
72347         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
72348         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
72349         entry.
72350
72351 2002-11-25  Jim Meyering  <jim@meyering.net>
72352
72353         * lib/mktime.c: Sync from libc, now that it has the latest fix.
72354
72355 2002-11-24  Karl Berry  <karl@gnu.org>
72356
72357         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
72358         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
72359
72360 2002-11-24  Jim Meyering  <jim@meyering.net>
72361
72362         Update from coreutils:
72363
72364         * lib/mktime.c: Merge in changes from libc.
72365
72366         Avoid a link-time failure on some Linux systems.
72367         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
72368         (otherwise).
72369         (__mon_yday): Declare with the STATIC attribute.
72370         (__mktime_internal): Likewise.
72371         Based on a report from Greg Schafer.
72372
72373 2002-11-23  Jim Meyering  <jim@meyering.net>
72374
72375         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
72376         Use `unsigned', not `int', as type of index.
72377
72378         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
72379
72380         * lib/fsusage.c: Remove unneeded parentheses around operands of
72381         `defined'.
72382
72383 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72384
72385         * lib/quotearg.h: Allow multiple inclusion by surrounding with
72386         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
72387         so that we can be included first.
72388         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
72389         * lib/quotearg.c: Include quotearg.h immediately after config.h.
72390         No need to include stddef.h or sys/types.h any more.
72391         Surround local include files with "", not "<>".
72392         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
72393         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
72394         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
72395         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
72396         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
72397         (ISPRINT): Remove; no longer needed now that we assume C89.
72398
72399         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
72400         Preserve errno.
72401
72402         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
72403         quotearg_char): Use SIZE_MAX rather than
72404         (size_t) -1 when we are talking about "infinity".
72405
72406         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
72407
72408 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72409
72410         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
72411         hint that one should use `if (! x) abort ();' rather than `assert
72412         (x);', and anyway it's one less thing to worry about configuring.
72413         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
72414         hash_rehash, hash_insert): Use abort rather than assert.
72415
72416 2002-11-22  Bruno Haible  <bruno@clisp.org>
72417
72418         * lib/safe-read.h: Assume C89. Add comments.
72419         (safe_read): Change return type to size_t.
72420         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
72421         byte counts > SSIZE_MAX correctly.
72422         * lib/safe-write.h: New file.
72423         * lib/safe-write.c: New file.
72424         * lib/full-read.h: New file.
72425         * lib/full-read.c: New file.
72426         * lib/full-write.h: Assume C89. Add comments.
72427         * lib/full-write.c: Include safe-write.h.
72428         (full_write): Rewritten to use safe_write.
72429         Suggested by Jim Meyering and Paul Eggert.
72430
72431 2002-11-21  Jim Meyering  <jim@meyering.net>
72432
72433         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
72434
72435         Merge in changes from the coreutils.
72436
72437         2002-09-25  Paul Eggert  <eggert@twinsun.com>
72438         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
72439         <stdint.h>.
72440         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
72441         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
72442         int.  Work more efficiently if X is the same width as uintmax_t.
72443         Do not compare X to -1, to avoid bogus compiler warning.
72444         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
72445         Don't assume that f_frsize and f_bsize are the same type.
72446
72447         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
72448         warning on FreeBSD.
72449
72450         * lib/makepath.c (make_path): Restore umask *before* creating the final
72451         component.
72452         (make_path): Minor reformatting.
72453
72454         * lib/xmalloc.c: Adjust to work with new autoconf macros,
72455         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
72456         HAVE_MALLOC/HAVE_REALLOC.
72457
72458         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
72459         dummy ones.  At least on GNU/Linux systems, `auto' means something
72460         else.
72461         From Michael Stone.
72462
72463 2002-11-21  Bruno Haible  <bruno@clisp.org>
72464
72465         Remove case insensitive option matching.
72466         * lib/argmatch.h (argcasematch): Remove declaration.
72467         (ARGCASEMATCH): Remove macro.
72468         (__xargmatch_internal): Remove case_sensitive argument.
72469         (XARGMATCH): Update.
72470         (XARGCASEMATCH): Remove macro.
72471         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
72472         case_sensitive argument.
72473         (argcasematch): Remove function.
72474         (__xargmatch_internal): Remove case_sensitive argument.
72475         (main): Use XARGMATCH instead of XARGCASEMATCH.
72476
72477         * lib/xmalloc.c: Change compile-time error message. Add comment about
72478         required autoconf version.
72479
72480 2002-11-20  Paul Eggert  <eggert@twinsun.com>
72481
72482         Merge argmatch cleanups from Bison.  Assume C89.
72483
72484         * lib/argmatch.c: Include config.h here, not in argmatch.h.
72485         Include stdlib.h, for EXIT_FAILURE.
72486         Always include <string.h>, since we assume C89.
72487         (EXIT_FAILURE): Remove pre-C89 bug workaround.
72488         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
72489         Include <stddef.h> instead, since it's all we need for size_t.
72490         (PARAMS): Remove.  All uses removed.
72491         (ARRAY_CARDINALITY): Do not bother to #undef.
72492         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
72493         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72494         Remove unnecessary parentheses.
72495         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72496         Insert necessary parentheses.
72497         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
72498         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
72499
72500 2002-11-19  Bruno Haible  <bruno@clisp.org>
72501
72502         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
72503         * lib/mbswidth.h: Include <stddef.h>, for size_t.
72504
72505         * lib/mbswidth.h (PARAMS): Remove macro.
72506         (mbswidth, mbsnwidth): Use ANSI C function declarations.
72507         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
72508
72509         * lib/gcd.h (PARAMS): Remove macro.
72510         (gcd): Use ANSI C function declarations.
72511         * lib/gcd.c (gcd): Likewise.
72512
72513 2002-11-15  Bruno Haible  <bruno@clisp.org>
72514
72515         * lib/strcspn.c: Include <stddef.h>.
72516         (strcspn): Use ANSI C function declaration. Change return type to
72517         size_t. Use NULL.
72518         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
72519         (strpbrk): Use NULL.
72520         * lib/strpbrk.h (PARAMS): Remove macro.
72521         (strpbrk): Use ANSI C function declaration.
72522         * lib/strstr.c: Don't include <sys/types.h>.
72523         * lib/strstr.h (PARAMS): Remove macro.
72524         (strstr): Use ANSI C function declarations.
72525
72526 2002-11-14  Karl Berry  <karl@gnu.org>
72527
72528         * config/mkinstalldirs: `do' on separate line, instead of
72529         `for var; do'.
72530
72531 2002-11-06  Bruno Haible  <bruno@clisp.org>
72532
72533         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
72534         * lib/gcd.c (gcd): Likewise.
72535
72536 2002-11-05  Bruno Haible  <bruno@clisp.org>
72537
72538         * lib/gcd.h: New file, from gettext-0.11.5.
72539         * lib/gcd.c: New file, from gettext-0.11.5.
72540
72541 2002-11-05  Bruno Haible  <bruno@clisp.org>
72542
72543         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72544         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72545         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72546         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72547
72548         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
72549         <libintl.h>.
72550         * lib/makepath.c: Include gettext.h instead of <locale.h> and
72551         <libintl.h>.
72552
72553         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
72554         * lib/human.c: Include gettext.h instead of <libintl.h>.
72555         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
72556         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
72557         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
72558         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
72559         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
72560         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
72561         (textdomain): Remove definition.
72562         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
72563
72564         * lib/long-options.c: Remove include of <libintl.h> and definition of
72565         _.
72566         * lib/same.c: Remove include of <libintl.h> and definition of _.
72567
72568 2002-11-04  Owen Taylor  <otaylor@redhat.com>
72569
72570         * lib/config.charset: A few additions for Solaris.
72571
72572 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72573
72574         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
72575         * lib/localcharset.c (locale_charset): Declare as extern "C".
72576
72577 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72578
72579         * lib/config.charset: msdos in uk_UA uses CP1125.
72580
72581 2002-11-04  Bruno Haible  <bruno@clisp.org>
72582
72583         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
72584         * lib/strcase.h: New file, from GNU gettext-0.11.5.
72585         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
72586         * lib/strstr.h: New file, from GNU gettext-0.11.5.
72587         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
72588
72589 2002-11-04  Bruno Haible  <bruno@clisp.org>
72590
72591         * lib/localcharset.c (locale_charset): Don't return an empty string.
72592
72593 2002-11-04  Bruno Haible  <bruno@clisp.org>
72594
72595         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
72596         aliases.
72597
72598 2002-11-04  Bruno Haible  <bruno@clisp.org>
72599
72600         * lib/config.charset: Update for newest glibc. Add canonical names
72601         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
72602
72603 2002-11-04  Bruno Haible  <bruno@clisp.org>
72604
72605         * lib/config.charset: Add support for NetBSD.
72606
72607 2002-11-04  Bruno Haible  <bruno@clisp.org>
72608
72609         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
72610
72611 2002-11-01  Bruno Haible  <bruno@clisp.org>
72612
72613         * configure.in: Add AC_CONFIG_AUX_DIR call.
72614         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
72615         test/Makefile.
72616         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
72617
72618 2002-09-28  Karl Berry  <karl@gnu.org>
72619
72620         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
72621         installed automake until the next release, since changes have been
72622         made.
72623
72624 2002-09-25  Karl Berry  <karl@gnu.org>
72625
72626         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
72627         * lib/getopt*: copy from libc/posix.
72628         * lib/gettext.h: copy from gettext.
72629         * lib/.cppi-disable: add strdup.c, gettext.h.
72630
72631 2002-09-25  Karl Berry  <karl@gnu.org>
72632
72633         * config/srclist.txt: enable gettext.h check.
72634         * config/config.{guess,sub}: update from prep.
72635         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
72636                 from automake 1.6.3.
72637         See srclist*.
72638
72639 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
72640
72641         * regex.c (PATFETCH): Remove the translating fetch.
72642         (PATFETCH_RAW): Rename to PATFETCH.
72643         (set_image_of_range): New fun.
72644         (SET_RANGE_TABLE_WORK_AREA): Use it.
72645         (regex_compile): Don't translate the pattern chars so eagerly.
72646         Only do it when inserting an `exactn' bytecode or when handling
72647         a char-range.
72648         (mutually_exclusive_p): Avoid empty statement.
72649
72650 2002-07-06  Jim Meyering  <meyering@lucent.com>
72651
72652         * m4/README: Don't mention Makefile.am.in.
72653         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
72654
72655 2002-07-01  Jim Meyering  <meyering@lucent.com>
72656
72657         * lib/c-stack.c: Include sys/time.h.
72658         From Volker Borchert.
72659
72660 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72661
72662         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
72663
72664 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72665
72666         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
72667         New macro.  Use it uniformly instead of
72668         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
72669         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
72670         reported by Vin Shelton.
72671
72672 2002-06-22  Paul Eggert  <eggert@twinsun.com>
72673
72674         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
72675         Do not assume SA_SIGINFO behavior.
72676         Bug reported by Jim Meyering on NetBSD 1.5.2.
72677
72678 2002-06-22  Jim Meyering  <meyering@lucent.com>
72679
72680         * m4/c-stack.m4: New file, from diffutils-2.8.2.
72681         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
72682
72683         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
72684         now that configure.ac uses AC_GNU_SOURCE.
72685         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
72686         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
72687
72688         Update to latest tools.  Suggestions from Paul Eggert.
72689         * m4/stdbool.m4: New file, from diffutils-2.8.2.
72690         * m4/gnu-source.m4: Update from diffutils-2.8.2.
72691         * m4/fnmatch.m4: Likewise.
72692         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
72693         to AC_HEADER_STDBOOL
72694
72695 2002-06-22  Jim Meyering  <meyering@lucent.com>
72696
72697         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
72698         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
72699
72700 2002-06-22  Jim Meyering  <meyering@lucent.com>
72701
72702         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
72703
72704         * lib/exitfail.c, exitfail.h: Likewise.
72705         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
72706
72707         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
72708         of fnmatch.h.
72709         (EXTRA_DIST): Add fnmatch_loop.c.
72710         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
72711
72712         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
72713         * lib/fnmatch.c: Update from diffutils-2.8.2.
72714         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
72715         * lib/fnmatch.h: Remove file.
72716
72717 2002-06-21  Jim Meyering  <meyering@lucent.com>
72718
72719         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
72720         * m4/mbrtowc.m4: Likewise.
72721
72722         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
72723         * m4/mbswidth.m4: Reflect name change:
72724         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
72725         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72726
72727         * m4/lib-link.m4: Update from gettext-0.11.2.
72728         * m4/gettext.m4: Likewise.
72729
72730         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
72731         From Alfred M. Szmidt.
72732
72733 2002-06-18  Paul Eggert  <eggert@twinsun.com>
72734
72735         * lib/file-type.h: Report an error if neither S_ISREG nor
72736         S_IFREG is defined, instead of using a test specific to glibc
72737         2.2.  This should be safe, since POSIX requires S_ISREG and
72738         Unix Version 7 had S_IFREG.  We don't need to check for
72739         <sys/types.h> since we don't use any symbols that it defines.
72740
72741 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
72742
72743         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
72744         $@-t, so that each temporary file name is unique and valid in the first
72745         8 characters, for operation under DOS.
72746
72747 2002-06-15  Paul Eggert  <eggert@twinsun.com>
72748
72749         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
72750
72751 2002-06-15  Jim Meyering  <meyering@lucent.com>
72752
72753         Work even with DJGPP 2.03, which lacks support for symlinks.
72754         From Richard Dawe.
72755         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
72756         is defined.
72757         * lib/lchown.c (S_ISLNK): Likewise.
72758
72759 2002-06-15  Jim Meyering  <meyering@lucent.com>
72760
72761         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
72762         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
72763         have been included before this file.
72764
72765 2002-06-14  Jim Meyering  <meyering@lucent.com>
72766
72767         * lib/file-type.h: Use the version from diffutils-2.8.2.
72768         * lib/file-type.c: Likewise.
72769
72770 2002-06-07  Jim Meyering  <meyering@lucent.com>
72771
72772         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
72773         They're needed at least for NetBSD 1.5.2.
72774         ($statxfs_includes): Include those same headers.
72775         ($statxfs_includes): Include sys/vfs.h if available.
72776         ($statxfs_includes): Likewise for sys/statvfs.h.
72777         Check for the following members in both structs statfs and statvfs:
72778         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
72779
72780 2002-06-01  Jim Meyering  <meyering@lucent.com>
72781
72782         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
72783         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
72784
72785 2002-05-28  Jim Meyering  <meyering@lucent.com>
72786
72787         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
72788         Reported by Volker Borchert.
72789
72790 2002-05-27  Jim Meyering  <meyering@lucent.com>
72791
72792         Fix a problem seen only on nonconforming systems whereby ls.c's
72793         use of localtime, and then of gettimeofday would cause trouble:
72794         the localtime call used to initialize rpl_gettimeofday's save
72795         mechanism would clobber ls's current local time information so
72796         that in any long listing the first file would always be listed
72797         with date 1970-01-01.  Analysis by Volker Borchert.
72798
72799         * lib/gettimeofday.c (localtime): Undefine.
72800         (rpl_localtime): New function.
72801
72802 2002-05-27  Jim Meyering  <meyering@lucent.com>
72803
72804         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
72805         localtime.
72806
72807         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
72808         use the replacement function; it wouldn't resolve at link time.
72809         Reported by Volker Borchert.
72810
72811 2002-05-22  Jim Meyering  <meyering@lucent.com>
72812
72813         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
72814         file-type.h.
72815         * lib/file-type.h: New file.
72816         * lib/file-type.c (file_type): New file/function.  Extracted from
72817         diffutils.
72818
72819 2002-04-30  Jim Meyering  <meyering@lucent.com>
72820
72821         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
72822
72823 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72824
72825         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
72826
72827 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72828
72829         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
72830         Do not check for alloca.h (no longer used) or stdbool.h (was never
72831         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
72832
72833 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72834
72835         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
72836
72837 2002-04-29  Jim Meyering  <meyering@lucent.com>
72838
72839         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
72840         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
72841         Use AC_FUNC_STRNLEN here instead.
72842
72843         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
72844         With autoconf-2.53a, it's part of AC_PROG_CC.
72845
72846 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72847
72848         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
72849         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
72850
72851 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72852
72853         * lib/sig2str.h, lib/sig2str.c: New files.
72854         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
72855
72856 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72857
72858         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
72859         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
72860         of 127, since 64 is the largest conceivable number for ancient
72861         nonstandard hosts.
72862         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
72863
72864 2002-04-28  Jim Meyering  <meyering@lucent.com>
72865
72866         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
72867
72868 2002-04-24  Jim Meyering  <meyering@lucent.com>
72869
72870         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
72871         (jm_PREREQ): Use it.
72872
72873         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
72874         mach/mach.h fcntl.h.
72875         Check for this function: setlocale.
72876
72877 2002-04-24  Jim Meyering  <meyering@lucent.com>
72878
72879         * lib/gettext.h: New file, from Gettext.
72880         * lib/Makefile.am (INCLUDES): Remove -I../intl.
72881         (libfetish_a_SOURCES): Add gettext.h.
72882
72883 2002-04-16  Jim Meyering  <meyering@lucent.com>
72884
72885         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
72886         ut_pid, ut_id, ut_exit.
72887
72888 2002-04-16  Jim Meyering  <meyering@lucent.com>
72889
72890         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
72891         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
72892         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
72893
72894 2002-04-12  Jim Meyering  <meyering@lucent.com>
72895
72896         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
72897         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
72898         existence of the getmntinfo function.  Needed for Darwin 5.3.
72899
72900         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
72901         This is necessary at least on Darwin 5.3.
72902
72903         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
72904         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
72905         strnlen.o in the library, and that makes some versions of ranlib
72906         object.
72907
72908 2002-04-12  Jim Meyering  <meyering@lucent.com>
72909
72910         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
72911
72912 2002-04-09  Jim Meyering  <meyering@lucent.com>
72913
72914         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
72915         to be more precise.  Rather than saying we're checking whether the
72916         function `works', say what we're testing.
72917         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
72918         Reported by Bruno Haible.
72919
72920 2002-03-10  Jim Meyering  <meyering@lucent.com>
72921
72922         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
72923         Suggestion from Santiago Vila.
72924
72925 2002-03-08  Jim Meyering  <meyering@lucent.com>
72926
72927         * lib/rename.c: Mention that this wrapper is needed also on
72928         mips-dec-ultrix4.4 systems.
72929
72930 2002-03-02  Jim Meyering  <meyering@lucent.com>
72931
72932         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
72933         not HAVE_CLOCK_SETTIME.
72934
72935 2002-02-27  Paul Eggert  <eggert@twinsun.com>
72936
72937         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
72938         Check for clock_settime.
72939
72940 2002-02-27  Paul Eggert  <eggert@twinsun.com>
72941
72942         * lib/nanosleep.h: Rename to....
72943         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
72944
72945         * lib/gettime.c: New file.
72946         * lib/settime.c: New file.
72947         * lib/stime.c: Remove.
72948
72949         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
72950         timespec.h.  Remove nanosleep.h.
72951
72952 2002-02-25  Paul Eggert  <eggert@twinsun.com>
72953
72954         * m4/acl.m4: New file.
72955         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
72956         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
72957
72958 2002-02-25  Paul Eggert  <eggert@twinsun.com>
72959
72960         * lib/acl.c, lib/acl.h: New files.
72961         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
72962
72963 2002-02-24  Jim Meyering  <meyering@lucent.com>
72964
72965         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
72966         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
72967         cause trouble.  Reported by Nelson Beebe.
72968
72969 2002-02-23  Paul Eggert  <eggert@twinsun.com>
72970
72971         * lib/path-concat.c (xpath_concat): Reorder code to pacify
72972         compilers that don't know that xalloc_die never returns.
72973
72974 2002-02-20  Jim Meyering  <meyering@lucent.com>
72975
72976         * lib/getdate.c: Regenerate using bison-1.33.
72977
72978 2002-02-17  Jim Meyering  <meyering@lucent.com>
72979
72980         * config/config.guess (main): Don't use `head -1'; it's no longer
72981         portable. Use `sed 1q' instead.
72982
72983 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
72984
72985         * m4/codeset.m4: Upgrade to gettext-0.11.
72986         * m4/gettext.m4: Upgrade to gettext-0.11.
72987         * m4/glibc21.m4: Upgrade to gettext-0.11.
72988         * m4/iconv.m4: Upgrade to gettext-0.11.
72989         * m4/isc-posix.m4: Upgrade to gettext-0.11.
72990         * m4/lcmessage.m4: Upgrade to gettext-0.11.
72991         * m4/lib-ld.m4: New file, from gettext-0.11.
72992         * m4/lib-link.m4: New file, from gettext-0.11.
72993         * m4/lib-prefix.m4: New file, from gettext-0.11.
72994         * m4/progtest.m4: Upgrade to gettext-0.11.
72995
72996 2002-02-15  Paul Eggert  <eggert@twinsun.com>
72997
72998         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
72999         (jm_PREREQ): Use it.
73000
73001 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73002
73003         * lib/posixver.c, lib/posixver.h: New files.
73004         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73005
73006 2002-02-02  Paul Eggert  <eggert@twinsun.com>
73007             Bruno Haible  <bruno@clisp.org>
73008
73009         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
73010         (fwrite_success_callback): New declaration.
73011         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
73012         print_unicode_char. Call failure callback instead of error.
73013         (fwrite_success_callback): New function.
73014         (exit_failure_callback): New function.
73015         (fallback_failure_callback): New function.
73016         (print_unicode_char): Call unicode_to_mb.
73017
73018 2002-01-26  Jim Meyering  <meyering@lucent.com>
73019
73020         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
73021         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
73022
73023 2002-01-26  Jim Meyering  <meyering@lucent.com>
73024
73025         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
73026
73027 2002-01-22  Paul Eggert  <eggert@twinsun.com>
73028
73029         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
73030
73031 2002-01-22  Jim Meyering  <meyering@lucent.com>
73032
73033         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
73034         Otherwise, some versions of automake would omit the rule that makes
73035         Makefile from Makefile.in.
73036
73037 2002-01-21  Paul Eggert  <eggert@twinsun.com>
73038
73039         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
73040         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73041         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
73042         (memcoll): Set errno to zero if there is no error.
73043
73044         * lib/quotearg.c (quotearg_buffer_restyled):
73045         Fix bug with quoting buffers containing NUL when backslashing escapes.
73046         This bug was exposed by the other changes in this patch.
73047         (quotearg_n_options): New arg ARGSIZE.
73048         All callers changed.
73049         (quoting_options_from_style): New function.
73050         (quotearg_n_style): Use it.
73051         (quotearg_n_style_mem): New function.
73052
73053         * lib/quotearg.h (quotearg_n_style_mem): New function.
73054
73055 2002-01-19  Jim Meyering  <meyering@lucent.com>
73056
73057         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
73058         Remove useless quotes: DF_PROG="df".
73059         * m4/strnlen.m4: New file.
73060
73061 2002-01-16  Paul Eggert  <eggert@twinsun.com>
73062
73063         * lib/backupfile.c (ISDIGIT): Comment fix.
73064         * lib/getdate.y (ISDIGIT): Likewise.
73065         * lib/posixtm.c (ISDIGIT, year): Likewise.
73066         * lib/strverscmp.c (ISDIGIT): Likewise.
73067         * lib/userspec.c (ISDIGIT): Likewise.
73068
73069 2002-01-16  Jim Meyering  <meyering@lucent.com>
73070
73071         * lib/getdate.y: Add three semicolons, each just before a closing
73072         brace. Bison (as of version 1.31) no longer papers over that mistake.
73073
73074 2002-01-05  Jim Meyering  <meyering@lucent.com>
73075
73076         * lib/version-etc.c (version_etc_copyright): Update copyright year.
73077
73078 2001-12-19  Paul Eggert  <eggert@twinsun.com>
73079
73080         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
73081         not silently exit merely because the output buffer happens to
73082         have nothing pending.
73083
73084 2001-12-18  Paul Eggert  <eggert@twinsun.com>
73085
73086         See the big note in ../ChangeLog.
73087         * lib/human.c (suffixes): Prefer K to k for 1024.
73088         (generate_suffix_backwards): New function.
73089         (human_readable_inexact): Use it.
73090         * lib/xstrtol.c (__xstrtol): If there is no number but there
73091         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
73092         Accept 'K' as well as 'k'.
73093
73094 2001-12-15  Jim Meyering  <meyering@lucent.com>
73095
73096         * lib/regex.h (__restrict_arr): Update from libc.
73097
73098         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
73099         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
73100         (STREQ): Define.
73101
73102 2001-12-14  Jim Meyering  <meyering@lucent.com>
73103
73104         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
73105         Suggestion from Bruno Haible.
73106
73107 2001-12-10  Jim Meyering  <meyering@lucent.com>
73108
73109         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
73110         xrealloc, Instead, include "xalloc.h".
73111         (initbuffer): Don't cast xmalloc return value to char*.
73112         (readline): Reword comment.
73113         Don't cast xrealloc return value to char*
73114         Return NULL, not 0.
73115
73116 2001-12-09  Jim Meyering  <meyering@lucent.com>
73117
73118         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
73119         about `signed and unsigned type in conditional expression'.
73120         * lib/posixtm.c (posix_time_parse): Likewise.
73121
73122         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
73123
73124         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
73125         to avoid a pedantic warning.
73126
73127         * lib/getstr.c: Don't include assert.h.
73128         (getstr): Remove warning-evoking assertions.
73129         Return -1 if offset parameter is out of bounds.
73130         Change the type of a local from int to size_t.
73131
73132         * lib/strftime.c (my_strftime_localtime_r): Include this function
73133         definition in the `#if ! HAVE_TM_GMTOFF' block.
73134
73135         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
73136         Include xalloc.h instead.
73137
73138 2001-12-02  Jim Meyering  <meyering@lucent.com>
73139
73140         * lib/tempname.c: Don't declare getenv, thus reverting the change of
73141         2001-11-18.  It's no longer necessary, now that stdlib.h is always
73142         included.
73143
73144         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
73145         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
73146
73147 2001-11-30  Akim Demaille  <akim@epita.fr>
73148
73149         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
73150         before being defined.
73151
73152 2001-11-27  Paul Eggert  <eggert@twinsun.com>
73153
73154         * lib/quotearg.h (quotearg_n, quotearg_n_style):
73155         First arg is int, not unsigned.
73156         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
73157         (SIZE_MAX, UINT_MAX): New macros.
73158         (quotearg_n_options): Abort if N is negative.
73159         Avoid overflow check on hosts where size_t is 64 bits and int
73160         is 32 bits, as overflow is impossible there.
73161         Fix off-by-one typo that caused unnecessary reallocation.
73162
73163 2001-11-27  Jim Meyering  <meyering@lucent.com>
73164
73165         * lib/tempname.c: Merge with version from libc.
73166         * lib/regex.c: Likewise.
73167
73168         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
73169         systems for which STDC_HEADERS is 0, it was not included, resulting in
73170         a warning about an integer-to-pointer conversion problem with getenv.
73171         Reported by Volker Borchert.
73172
73173 2001-11-26  Jim Meyering  <meyering@lucent.com>
73174
73175         * lib/gtod.h: Remove file.
73176         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
73177         * lib/gettimeofday.c: Don't include gtod.h.
73178         (GTOD_init): Remove function.
73179         (rpl_gettimeofday): Do its job here instead, rather than aborting.
73180         Suggestion from Volker Borchert.
73181
73182 2001-11-23  Jim Meyering  <meyering@lucent.com>
73183
73184         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
73185         it.
73186         * lib/hash.c (struct hash_table): Define it here instead.
73187
73188 2001-11-22  Jim Meyering  <meyering@lucent.com>
73189
73190         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
73191
73192 2001-11-20  Jim Meyering  <meyering@lucent.com>
73193
73194         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
73195         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
73196
73197 2001-11-19  Jim Meyering  <meyering@lucent.com>
73198
73199         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
73200         directory.  Use "conftestXXXXXX" as the template.
73201         Suggestion from Paul Eggert.
73202
73203         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
73204         immediately, so the test doesn't mistakenly hit the max-open-files
73205         limit.
73206
73207 2001-11-18  Paul Eggert  <eggert@twinsun.com>
73208
73209         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
73210         (TEMPORARIES): New macro.
73211         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
73212         removes an artificial limitation (e.g. HP-UX 10.20, where
73213         TMP_MAX is 17576).
73214
73215 2001-11-18  Jim Meyering  <meyering@lucent.com>
73216
73217         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
73218
73219 2001-11-18  Jim Meyering  <meyering@lucent.com>
73220
73221         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
73222         on SunOS 4.
73223
73224         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
73225         files will be created before anything else.
73226
73227 2001-11-17  Paul Eggert  <eggert@twinsun.com>
73228
73229         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
73230         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
73231
73232 2001-11-17  Jim Meyering  <meyering@lucent.com>
73233
73234         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
73235         Prompted by a report from Bob Proulx.
73236
73237         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
73238         Instead, require UTILS_FUNC_MKSTEMP.
73239
73240 2001-11-17  Jim Meyering  <meyering@lucent.com>
73241
73242         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
73243         Now, that's done as part of AC_FUNC_STRTOD.
73244
73245 2001-11-17  Jim Meyering  <meyering@lucent.com>
73246
73247         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
73248         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
73249         rather than group writable.  Patch by Juan F. Codagnone.
73250
73251         * lib/readtokens.c: Remove explicit declarations of xmalloc and
73252         xrealloc, Instead, include "xalloc.h".
73253
73254         * lib/mountlist.c: Include unlocked-io.h after all system headers.
73255         Remove explicit declarations of xmalloc, xrealloc,
73256         and xstrdup.  Instead, include "xalloc.h".
73257
73258         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
73259         unlocked-io.h.
73260         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
73261         Likewise.
73262         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
73263
73264         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
73265         Reported by Padraig Brady.
73266
73267         * lib/mkstemp.c: #undef mkstemp.
73268         Include config.h.
73269         (rpl_mkstemp): Rename from mkstemp.
73270         Protoize.
73271
73272 2001-11-16  Jim Meyering  <meyering@lucent.com>
73273
73274         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
73275         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
73276         determine the amount of total physical memory, use pstat_getstatic.
73277         HPUX-11 doesn't define _SC_PHYS_PAGES.
73278         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
73279         If sysconf couldn't be used to determine the amount of available
73280         physical memory, use both pstat_getstatic and pstat_getdynamic.
73281         Based on a patch from Bob Proulx.
73282
73283 2001-11-10  Jim Meyering  <meyering@lucent.com>
73284
73285         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
73286         (jm_PREREQ): Use it.
73287
73288 2001-11-09  Jim Meyering  <meyering@lucent.com>
73289
73290         * m4/jm-macros.m4: Require autoconf-2.52f.
73291         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
73292         Use these AC_-prefixed names, not the AM_-prefixed ones.
73293
73294         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
73295
73296 2001-11-05  Jim Meyering  <meyering@lucent.com>
73297
73298         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
73299
73300 2001-11-04  Jim Meyering  <meyering@lucent.com>
73301
73302         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
73303         $DEFS.
73304
73305 2001-11-03  Jim Meyering  <meyering@lucent.com>
73306
73307         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
73308         of AC_DEFUN.
73309
73310         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
73311         know the name of the variable in the macro definition.
73312
73313 2001-11-03  Jim Meyering  <meyering@lucent.com>
73314
73315         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
73316         in argmatch_to_argument call.
73317
73318         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
73319         argument.
73320
73321         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
73322         e.g., a fault due to an attempt to free a NULL pointer.
73323
73324 2001-11-01  Jim Meyering  <meyering@lucent.com>
73325
73326         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
73327         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
73328
73329 2001-11-01  Jim Meyering  <meyering@lucent.com>
73330
73331         * lib/dirfd.c, lib/dirfd.h: New files.
73332         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
73333
73334         * lib/hash.c (hash_print) [TESTING]: Clean up.
73335
73336 2001-10-22  Paul Eggert  <eggert@twinsun.com>
73337
73338         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
73339         to avoid a warning if -Wall.
73340
73341 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
73342
73343         * README: New file
73344         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
73345         (per RMS's instructions, this is now the canonical source)
73346         * lgpl/, gpl/: New directories.
73347
73348 2001-10-21  Paul Eggert  <eggert@twinsun.com>
73349
73350         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
73351
73352 2001-10-21  Jim Meyering  <meyering@lucent.com>
73353
73354         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
73355         this code would end up calling gettext even in packages built
73356         with --disable-nls.
73357         * lib/getopt.c (_): Likewise.
73358         * lib/regex.c (_): Likewise.
73359
73360 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73361
73362         * m4/error.m4 (jm_PREREQ_ERROR):
73363         Do not invoke AC_CHECK_FUNCS with strerror_r, as
73364         AC_FUNC_STRERROR_R does that.
73365         Check for strerror declaration.
73366
73367         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
73368         are supposed to have them these days.
73369         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
73370         Merge changes from latest Autoconf CVS.
73371         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
73372         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
73373         POSIX decided to standardize on the int flavor of strerror_r.
73374
73375 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73376
73377         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
73378         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
73379         Use strerror_r that is only a macro, even if it is not a function.
73380         (strerror): Check for HAVE_DECL_STRERROR before declaring.
73381         (private_strerror): Use prototypes, not old-style function definition.
73382         (print_errno_message): New function.
73383         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
73384         char*-flavored one.
73385         (error_tail, error, error_at_line): Use it.
73386
73387 2001-10-11  Jim Meyering  <meyering@lucent.com>
73388
73389         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
73390         and quote_n (1, ... to avoid clobbering a buffer.
73391
73392 2001-10-05  Jim Meyering  <meyering@lucent.com>
73393
73394         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
73395         hash-pjw.h.
73396         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
73397         * lib/hash-pjw.h: New file.
73398
73399 2001-09-30  Jim Meyering  <meyering@lucent.com>
73400
73401         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
73402         `struct fsstat' has the `f_fstypename' member.
73403         Use that to define FS_TYPE, which is now used to make
73404         the getfsstat link test tighter.
73405
73406 2001-09-30  Jim Meyering  <meyering@lucent.com>
73407
73408         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
73409         Include <sys/ucred.h>, for Apple Darwin.
73410         Include sys/mount.h and sys/fs_types.h only if available.
73411         (FS_TYPE): Define.
73412         (read_filesystem_list): Use FS_TYPE.
73413
73414 2001-09-29  Paul Eggert  <eggert@twinsun.com>
73415
73416         * lib/exclude.c (excluded_filename): 0 -> false, since it's
73417         a boolean context.
73418
73419 2001-09-29  Jim Meyering  <meyering@lucent.com>
73420
73421         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73422         [one-argument getmntent function]): Include stdio.h before mntent.h.
73423         SunOS 4.1.x needs it for the declaration of `FILE'.
73424         Patch by Volker Borchert.
73425
73426         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73427         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
73428         sys/fs_types.h, and make the link-test for getfsstat guard #include
73429         directives with appropriate #if HAVE_*_H tests so that we can
73430         detect getfsstat on Apple Darwin1.3.7 systems.
73431         Reported by Nelson Beebe.
73432         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
73433
73434 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73435
73436         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73437         #defines strtoimax.  Also treat the other strto* functions
73438         like strtoimax.
73439
73440         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73441         Check for strtoul and strtoumax,
73442         as those declarations are made even in the signed case.
73443         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
73444         Likewise, for strtol and strtoimax.
73445
73446 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73447
73448         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73449         #defines strtoimax.  Also treat the other strto* functions
73450         like strtoimax.
73451
73452         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
73453         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
73454         (strtoimax, strtoumax): Do not declare if already defined as a macro.
73455
73456 2001-09-26  Jim Meyering  <meyering@lucent.com>
73457
73458         Most macros in unlocked-io.h had the wrong number of arguments.
73459         * lib/gen-uio: New script.
73460         (USE_UNLOCKED_IO): Define to 1 if not already defined.
73461         * lib/unlocked-io.hin: Remove file.
73462         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
73463         rather than trying to embed it here.
73464         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
73465         Reported by Padraig Brady.
73466
73467 2001-09-25  Volker Borchert  <bt@teknon.de>
73468
73469         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
73470         `result'.
73471
73472 2001-09-24  Jim Meyering  <meyering@lucent.com>
73473
73474         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
73475
73476 2001-09-23  Jim Meyering  <meyering@lucent.com>
73477
73478         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
73479         instead of the mere test for existence of mntent.h.  The latter
73480         would get a false-positive on AIX 3.4 systems.
73481         In the outer getmntent if-block, don't die if neither of the getmntent
73482         tests succeeds.  Instead, just fall through and continue with the
73483         remaining tests.
73484
73485 2001-09-23  Jim Meyering  <meyering@lucent.com>
73486
73487         * lib/mountlist.c: Remove useless parentheses in #if directives.
73488         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
73489         the deprecated MOUNTED symbol is no longer defined in mntent.h.
73490
73491 2001-09-22  Jim Meyering  <meyering@lucent.com>
73492
73493         * m4/gettext.m4: New file.  From gettext.
73494         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
73495         * m4/progtest.m4: Likewise
73496         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
73497         * m4/glibc21.m4: Likewise.
73498
73499         * m4/libintl.m4: Remove.  No longer used.
73500
73501 2001-09-22  Jim Meyering  <meyering@lucent.com>
73502
73503         * lib/localcharset.c: Update from latest gettext.
73504         * lib/config.charset: Likewise.
73505
73506 2001-09-20  Jim Meyering  <meyering@lucent.com>
73507
73508         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
73509         strtoimax.
73510         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
73511         strtoumax.
73512
73513 2001-09-20  Jim Meyering  <meyering@lucent.com>
73514
73515         * lib/xstrtol.c (strtoimax): Guard declaration with
73516         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
73517         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
73518         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
73519         (strtoumax): Likewise, for completeness (it wasn't necessary).
73520
73521 2001-09-17  Paul Eggert  <eggert@twinsun.com>
73522
73523         * lib/strtoimax.c (HAVE_LONG_LONG):
73524         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
73525         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
73526         to work around bug in IBM C compiler.
73527
73528 2001-09-17  Jim Meyering  <meyering@lucent.com>
73529
73530         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
73531         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
73532         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
73533         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
73534         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
73535         whenever the right hand side need not be expanded by the shell.
73536
73537 2001-09-16  Paul Eggert  <eggert@twinsun.com>
73538
73539         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
73540         library.  It's not correct, as some older glibcs are buggy.
73541         fnmatch wasn't fixed until glibc 2.2.
73542
73543         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
73544         special shell magic here.
73545
73546 2001-09-16  Jim Meyering  <meyering@lucent.com>
73547
73548         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
73549         * m4/jm-macros.m4: Require it.
73550
73551 2001-09-16  Jim Meyering  <meyering@lucent.com>
73552
73553         * lib/mkdir.c: New file.
73554
73555 2001-09-15  Jim Meyering  <meyering@lucent.com>
73556
73557         * m4/jm-macros.m4: Check for help2man.
73558
73559 2001-09-11  Jim Meyering  <meyering@lucent.com>
73560
73561         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
73562         The body, by Paul Eggert, was moved here from configure.in.
73563         * m4/jm-macros.m4: Require UTILS_HOST_OS.
73564
73565 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73566
73567         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
73568         (jm_PREREQ): Use it.
73569
73570 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73571
73572         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
73573         Use ssize_t, not int, to store result of readlink.
73574         Check for ssize_t overflow as well as size_t overflow,
73575         as POSIX says the result of readlink is implementation-defined
73576         when ssize_t overflows.
73577         Remove unnecessary cast to char*.
73578         Use free+malloc instead of realloc, as the storage doesn't need
73579         to be preserved and it's clearer and can be more efficient that way.
73580         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
73581         * lib/xreadlink.h (xreadlink): Update prototype.
73582
73583 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73584
73585         * lib/xgetcwd.c: Revert some of the previous change; intead,
73586         fix the HAVE_GETCWD_NULL code to behave more like the
73587         !HAVE_GETCWD_NULL code used to.
73588
73589         Include "xalloc.h".
73590         (xgetcwd): Do not return NULL when memory is exhausted; instead,
73591         invoke xalloc_die.
73592
73593 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73594
73595         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
73596         sys/param.h, as pathmax.h includes them.
73597
73598 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73599
73600         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
73601         (jm_PREREQ_XGETCWD): New macro.
73602
73603         * m4/getcwd.m4: New file.
73604
73605 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73606
73607         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
73608         like the HAVE_GETCWD_NULL code.
73609         Include pathmax.h if not HAVE_GETCWD.
73610         Do not include xalloc.h.
73611         (INITIAL_BUFFER_SIZE): New symbol.
73612         Do not use xmalloc / xrealloc, since the caller is responsible for
73613         handling errors.  Preserve errno around `free' during failure.
73614         Do not overrun buffer when using getwd.
73615
73616 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73617
73618         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
73619         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
73620         getcwd (NULL, 0).
73621
73622 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73623
73624         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
73625         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
73626         spotted by Jim Meyering.
73627
73628 2001-09-03  Jim Meyering  <meyering@lucent.com>
73629
73630         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
73631         failure.
73632
73633 2001-09-02  Jim Meyering  <meyering@lucent.com>
73634
73635         * lib/error.c: Update from GNU libc.
73636
73637 2001-09-01  Jim Meyering  <meyering@lucent.com>
73638
73639         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
73640         Used by df.
73641
73642 2001-09-01  Jim Meyering  <meyering@lucent.com>
73643
73644         * lib/xreadlink.c: New file.
73645         * lib/xreadlink.h: New file.
73646         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
73647         xreadlink.h.
73648
73649         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
73650         doesn't conflict with sparc Solaris 7's definition in
73651         /usr/include/sys/int_types.h.
73652
73653         * lib/exclude.c: Use `""', not `<>' to #include non-system header
73654         files.
73655         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
73656         and strncasecmp as r-values.  Unixware didn't have declarations.
73657
73658 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73659
73660         * lib/xstrtol.h: Add copyright notice.
73661         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
73662         LONGINT_INVALID_SUFFIX_CHAR.
73663
73664 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73665
73666         * lib/xstrtol.c (strtoimax): New decl.
73667
73668 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73669
73670         * lib/xgetcwd.c: Don't include pathmax.h.
73671         Include stdlib.h and unistd.h if available.
73672         Include xalloc.h.
73673         (xmalloc, xstrdup, free): Remove decls.
73674         (xgetcwd): Don't assume sizes fit in unsigned.
73675         Check for overflow when computing sizes.
73676         Simplify reallocation code.
73677
73678 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73679
73680         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
73681         a directory's st_size can have an arbitrary value, so the old
73682         usage could waste an arbitrary amount of memory.  All uses
73683         changed.
73684         * lib/savedir.h: Update prototype.
73685
73686 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73687
73688         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
73689
73690         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
73691         old strtoimax.c.
73692
73693         Also, make the following further changes to make this file's
73694         configuration more similar to that of strtol.c:
73695         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
73696         (strtoumax, uintmax_t, strtoull, strtol): Remove.
73697         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
73698         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
73699         changed to signed values.
73700
73701         And make the following changes as well:
73702         Fix copyright notice, as 1999 was missing.
73703         (verify): New macro.
73704         (strtoimax): Check sizes at compile-time, not run-time.
73705         Prefer strtol to strtoll if both work.
73706         (main): Remove; it was not that useful and was a pain to maintain.
73707
73708         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
73709
73710 2001-08-31  Jim Meyering  <meyering@lucent.com>
73711
73712         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
73713         Use an initial, malloc'd, buffer of length 128 rather than
73714         a statically allocated one of length 1024.
73715
73716 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73717
73718         Simplify code, partly by assuming autoconf 2.52 semantics.
73719
73720         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
73721
73722         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
73723         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
73724         All uses removed.
73725         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
73726         Move AC_REQUIRE to next-to-top level, to avoid confusion.
73727         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
73728         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
73729         jm_AC_HEADER_INTTYPES_H.
73730         * m4/jm-macros.m4 (jm_MACROS): Likewise.
73731
73732         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
73733
73734         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73735         Quote first arg of AC_DEFUN.
73736         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
73737         since they are needed to parse the include file even if we need
73738         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
73739         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
73740         but with opposite signedness.
73741
73742 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73743
73744         Merge 'exclude' changes from tar 1.13.22.
73745         This fixes one or two unlikely storage allocation overflow bugs,
73746         but doesn't change user-visible behavior otherwise.
73747
73748 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73749
73750         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
73751         (jm_PREREQ_EXCLUDE): New macro.
73752
73753 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73754
73755         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
73756         tm to be declared.
73757
73758 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73759
73760         * lib/hash.c: Remove '2001' from copyright notice.
73761
73762 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73763
73764         * lib/full-write.h: New file.
73765         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
73766         * lib/full-write.c: Correct credits, as cccp.c no longer
73767         exists and anyway it was so heavily changed from the old cccp
73768         code as to be unrecognizable.  Include full-write.h.
73769         (full_write) Return size_t, with short writes meaning failure.
73770         All callers changed.  This fixes a bug with large buffers
73771         on 64-bit hosts.
73772         * lib/utime.c: Include full-write.h.
73773
73774 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73775
73776         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
73777         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
73778         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
73779         Include if available.
73780         (<xalloc.h>): Include
73781         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
73782         (verify): New macro.  Use it to verify that EXCLUDE macros do not
73783         collide with FNM macros.
73784         (struct patopts): New struct.
73785         (struct exclude): Use it, as exclude patterns now come with options.
73786         (new_exclude): Support above changes.
73787         (new_exclude, add_exclude_file):
73788         Initial size must now be a power of two to simplify overflow checking.
73789         (free_exclude, fnmatch_no_wildcards): New function.
73790         (excluded_filename): No longer requires options arg, as the options
73791         are determined by add_exclude.  Now returns bool, not int.
73792         (excluded_filename, add_exclude):
73793         Add support for the fancy new exclusion options.
73794         (add_exclude, add_exclude_file): Now takes int options arg.
73795         Check for arithmetic overflow when computing sizes.
73796         (add_exclude_file): xrealloc might modify errno, so don't
73797         realloc until after errno might be used.
73798
73799         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
73800         New macros.
73801         (free_exclude): New decl.
73802         (add_exclude, add_exclude_file): Now takes int options arg.
73803         (excluded_filename): No longer requires options arg, as the options
73804         are determined by add_exclude.  Now returns bool, not int.
73805
73806 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73807
73808         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
73809
73810 2001-08-27  Jim Meyering  <meyering@lucent.com>
73811
73812         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
73813
73814         * lib/version-etc.c (N_): Remove definition.
73815         Revert most of last change.
73816         Instead, simply don't mark the `Copyright...' string for translation.
73817         Based on advice from Paul Eggert.
73818
73819         * lib/strtoxmax.c: Tweak comment.
73820
73821 2001-08-26  Jim Meyering  <meyering@lucent.com>
73822
73823         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
73824
73825         * m4/xstrtoimax.m4: New file.
73826         * m4/xstrtoumax.m4: Add comments explaining why we
73827         AC_REPLACE_FUNCS(strtol).
73828
73829 2001-08-26  Jim Meyering  <meyering@lucent.com>
73830
73831         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
73832         of copyright with `%s' so translators don't get an untranslated
73833         message in 2002.
73834         (COPYRIGHT_YEAR): Define.
73835         (version_etc): Use fprintf rather than fputs.
73836         Suggestion from Ulrich Drepper.
73837
73838         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
73839
73840         * lib/strtoll.c: New file, from GNU libc.
73841         * lib/xstrtoimax.c: New file.
73842
73843         * lib/xstrtol.h: Add xstrtoimax.
73844         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
73845         * lib/strtoimax.c: New file.  Likewise, but first define
73846         STRTOUXMAX_SIGNED.
73847
73848         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
73849         ...
73850         * lib/strtoxmax.c: ... then renamed to this.
73851
73852 2001-08-18  Paul Eggert  <eggert@twinsun.com>
73853
73854         * m4/inttypes.m4: Add AC_PREREQ(2.13).
73855         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
73856         (jm_AC_TYPE_INTMAX_T): New macro.
73857         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
73858
73859         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
73860
73861         * m4/longlong.m4: Renamed from ulonglong.m4.
73862         * m4/inttypes.m4: Renamed from inttypes_h.m4.
73863         * m4/uintmax_t.m4: Removed.
73864
73865 2001-08-13  Paul Eggert  <eggert@twinsun.com>
73866
73867         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
73868         Port to Solaris 8, where 'sed' requires a space after the 'r'
73869         command, and where sh dislikes "$/".  Clean up the spacing a bit.
73870         Redirect output to $tmp just once.
73871
73872 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
73873
73874         * lib/addext.c (<errno.h>): Include.
73875         (errno): Declare if not defined.
73876         (addext): Work correctly when pathconf returns -1 and leaves
73877         errno alone because there is no limit.  Also, work even if
73878         pathconf returns a value greater than SIZE_MAX.
73879
73880 2001-08-12  Jim Meyering  <meyering@lucent.com>
73881
73882         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
73883         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
73884         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
73885         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
73886         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
73887         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
73888         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
73889         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
73890         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
73891         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
73892         utime.m4, utimes.m4, xstrtoumax.m4:
73893         Quote the first argument in each use of AC_DEFUN.
73894
73895 2001-08-12  Jim Meyering  <meyering@lucent.com>
73896
73897         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
73898         Simply `return getcwd (NULL, 0);'.
73899         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
73900         Use 1300 as initial value for length, not PATH_MAX.
73901
73902         * lib/pathmax.h: Clean up cpp syntax.
73903
73904 2001-08-12  Jim Meyering  <meyering@lucent.com>
73905
73906         * lib/gettimeofday.c: New file.
73907         * lib/gtod.h: New file.
73908         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
73909
73910 2001-08-05  Jim Meyering  <meyering@lucent.com>
73911
73912         * m4/jm-macros.m4: Require autoconf-2.52.
73913
73914 2001-08-04  Jim Meyering  <meyering@lucent.com>
73915
73916         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
73917         stmt, to get in sync with glibc.
73918
73919 2001-08-03  Paul Eggert  <eggert@twinsun.com>
73920
73921         The following changes are from gettext 0.10.39 as maintained by
73922         Bruno Haible.
73923
73924         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
73925         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
73926         with inverted sense.  All uses changed.
73927
73928         * lib/mbswidth.c: Don't include <limits.h>.
73929         Include <stdlib.h> and <string.h> unconditionally.
73930         (iswcntrl, mbsinit, ISCNTRL): New macros.
73931         (mbsnwidth): Use K&R style function declarations.
73932         Don't bother checking for MB_LEN_MAX == 1, since the compiler
73933         can optimize it when MB_CUR_MAX == 1.
73934         The width of control characters is zero, not 1.
73935
73936 2001-08-03  Paul Eggert  <eggert@twinsun.com>
73937
73938         The following changes are from gettext 0.10.39 as maintained by
73939         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
73940
73941         * m4/codeset.m4: Upgrade to serial AM1.
73942         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
73943         all uses changed.  Quote first arg of AC_DEFUN.
73944         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
73945
73946         * m4/iconv.m4: Upgrade to serial AM2.
73947         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
73948         Add --with-libconv-prefix.
73949         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
73950         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
73951         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
73952         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
73953         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
73954
73955         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
73956         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
73957         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
73958         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
73959         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
73960         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
73961         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
73962         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
73963         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73964
73965         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
73966         string.h any more.
73967
73968         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
73969         not the default value.
73970
73971         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
73972         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
73973         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
73974         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
73975         Also check for iswcntrl, used for wcwidth fallback.
73976         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
73977         to Autoconf 2.13.
73978
73979 2001-08-03  Jim Meyering  <meyering@lucent.com>
73980
73981         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
73982         as it was in the original.  Reported by Paul Eggert.
73983
73984 2001-07-16  Jim Meyering  <meyering@lucent.com>
73985
73986         * m4/gettimeofday.m4: New file.
73987         Prompted by a report from Bernhard Baehr.
73988
73989 2001-07-15  Jim Meyering  <meyering@lucent.com>
73990
73991         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
73992         stuff. Now it's in ../Makefile.cfg.
73993
73994 2001-07-15  Jim Meyering  <meyering@lucent.com>
73995
73996         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
73997         (BUILT_SOURCES): Add unlocked-io.h.
73998         (io_functions): Define.
73999         (unlocked-io.h): New rule.
74000         (DISTCLEANFILES): Add unlocked-io.h.
74001         (all-local): Depend on unlocked-io.h, to ensure it is created.
74002
74003         * lib/unlocked-io.hin: New file
74004
74005         * lib/regex.c: Update from glibc.
74006
74007 2001-07-05  Jim Meyering  <meyering@lucent.com>
74008
74009         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
74010         recommendation.
74011         (libfetish_a_SOURCES): Put all .h files here instead.
74012         Remove a thus-exposed (better checks in automake) duplicate and
74013         two unnecessary .h files.
74014
74015 2001-07-04  Jim Meyering  <meyering@lucent.com>
74016
74017         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
74018         that generates jm-glibc-io.m4 so that it doesn't trigger any make
74019         distcheck failure.
74020
74021 2001-07-02  Jim Meyering  <meyering@lucent.com>
74022
74023         The following changes were prompted by suggestions from Bruno Haible.
74024
74025         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
74026         is now generated.
74027         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
74028         definition of EXTRA_DIST.
74029         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
74030         ensure that the generated file is created/updated whenever the list
74031         of $(unlocked_functions) is changed.
74032         (jm-glibc-io.m4): New rule.
74033         (unlocked-io.h): New rule -- currently unused.
74034
74035 2001-06-24  Jim Meyering  <meyering@lucent.com>
74036
74037         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
74038         unmatched right bracket, rather than kludging it with an extra,
74039         falsely-matching quote in a comment.  Patch by Akim Demaille.
74040
74041 2001-06-11  Jim Meyering  <meyering@lucent.com>
74042
74043         * lib/regex.c: Update from GNU libc.
74044
74045 2001-05-27  Jim Meyering  <meyering@lucent.com>
74046
74047         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
74048         Check for ut_type in struct utmp.
74049
74050 2001-05-27  Jim Meyering  <meyering@lucent.com>
74051
74052         * lib/readutmp.h (UT_TYPE): Define.
74053
74054 2001-05-24  Jim Meyering  <meyering@lucent.com>
74055
74056         * lib/argmatch.c: Include "quote.h".
74057         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
74058         quote function.  Reported by Göran Uddeborg.
74059
74060 2001-05-22  Jim Meyering  <meyering@lucent.com>
74061
74062         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
74063         now that we use the package-supplied version unconditionally.
74064         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
74065
74066 2001-05-21  Jim Meyering  <meyering@lucent.com>
74067
74068         * m4/regex.m4: Change a couple backticks to single quotes to avoid
74069         shell syntax errors.
74070
74071 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74072
74073         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
74074
74075 2001-05-20  Paul Eggert  <eggert@twinsun.com>
74076
74077         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
74078         Don't bother to check library strftime, since
74079         we'll be using our own my_strftime function anyway.
74080         Define my_strftime instead of strftime.
74081
74082 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
74083
74084         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
74085         which is not yet declared.
74086
74087 2001-05-15  Jim Meyering  <meyering@lucent.com>
74088
74089         * m4/regex.m4: Use proper quoting so brackets appear in the test
74090         program.
74091         Reported by, and with help from, Bruno Haible.
74092
74093 2001-05-13  Jim Meyering  <meyering@lucent.com>
74094
74095         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
74096         undefined.
74097
74098 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74099
74100         dirname code cleanup.  base_name now behaves more compatibly
74101         with POSIX basename when given file names that have trailing
74102         slashes, and similarly for dir_name.  Add new primitives
74103         base_len and dir_len.  Put the directory-name-related decls
74104         into dirname.h.
74105
74106         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
74107         * lib/backupfile.c (base_name): Likewise.
74108         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
74109         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
74110         * lib/makepath.c (strip_trailing_slashes): Likewise.
74111         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
74112         ISSLASH): Likewise.
74113         * lib/rename.c (strip_trailing_slashes): Likewise.
74114         * lib/same.c (base_name): Likewise.
74115         * lib/stripslash.c (ISSLASH): Likewise.
74116
74117         * lib/addext.c: Include <dirname.h> after size_t is defined.
74118         * lib/backupfile.c: Likewise.
74119
74120         * lib/addext.c (addext): Use base_len to trim redundant
74121         trailing slashes instead of doing it ourselves.
74122         But do not trim the last slash if it is not redundant.
74123
74124         * lib/backupfile.c (find_backup_file_name,
74125         max_backup_version): Use base_len instead of rolling it ourselves.
74126         Handle the case of "" and (on DOS) "C:" correctly.
74127
74128         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
74129         needed. Include <string.h>, <dirname.h>.
74130         (base_name): Allow file names ending in slashes, other than names
74131         that are all slashes.  In this case, return the basename followed
74132         by the slashes.  This is more general, and can be used in places
74133         where the original base_name purposely had an assertion failure.
74134         (base_len): New function.
74135
74136         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
74137         Do not include <assert.h>; no longer needed.
74138         Include xalloc.h.
74139         (memrchr): Remove decl.
74140         (dir_name_r): Remove.
74141         (dir_len): Renamed from dirlen.  All callers changed.
74142         Rewrite in terms of base_name, for simplicity and consistency.
74143         (dir_name): Never return NULL.  All callers changed.
74144         Do not include <stdlib.h> in test program; no longer needed.
74145         return 0; is fine for test program.
74146
74147         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
74148         New macros.
74149         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
74150
74151         * lib/path-concat.c (path_concat): Use base_len to compute
74152         base length, not strlen; this means we cannot rely on memcpy
74153         to null-terminate.
74154
74155         * lib/same.c (STREQ): Remove.
74156         (same_name): Handle the case where the basename ends in trailing '/'.
74157
74158         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
74159         a slash was stripped.  Do not strip the last slash after a
74160         file system prefix.
74161
74162 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74163
74164         * lib/Makefile.am (libfetish_a_SOURCES):
74165         Add strftime.c, since we now compile it on all hosts.
74166
74167         * lib/strftime.c (my_strftime):
74168         Define to nstrftime if emacs, but only if my_strftime is not defined.
74169         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
74170         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
74171         Add one more extra argument: a nanoseconds value.
74172         All uses changed.
74173         (ns): New macro.
74174         (my_strftime function): Add %N format.
74175         (emacs_strftimeu): Renamed from emacs_strftime,
74176         with extra ut argument.
74177
74178 2001-05-09  Paul Eggert  <eggert@twinsun.com>
74179
74180         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
74181
74182 2001-04-21  Jim Meyering  <meyering@lucent.com>
74183
74184         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
74185         doesn't interfere.
74186
74187 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74188
74189         * m4/ftruncate.m4: Check for chsize.
74190         Link with ftruncate.o unconditionally if ftruncate is missing.
74191         This was required when cross-compiling to i586-mingw32msvc.
74192
74193 2001-04-08  Jim Meyering  <meyering@lucent.com>
74194
74195         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
74196         recomputed; that's necessary when the offset spans a DST transition.
74197         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
74198
74199 2001-04-02  Jim Meyering  <meyering@lucent.com>
74200
74201         * lib/regex.h, regex.c: Update from GNU libc.
74202
74203 2001-03-24  Jim Meyering  <meyering@lucent.com>
74204
74205         * m4/jm-macros.m4: Require autoconf-2.49d.
74206
74207 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
74208
74209         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
74210
74211 2001-03-19  Paul Eggert  <eggert@twinsun.com>
74212
74213         * lib/version-etc.c (version_etc_copyright): Update to 2001.
74214
74215 2001-03-17  Jim Meyering  <meyering@lucent.com>
74216
74217         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
74218         now that the version in autoconf is equivalent.
74219         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
74220
74221         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
74222         Suggestion from Akim Demaille.
74223
74224         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
74225         (jm_PREREQ_TEMPNAME): New function.
74226
74227 2001-03-16  Paul Eggert  <eggert@twinsun.com>
74228
74229         * lib/tempname.c (uint64_t): Define to uintmax_t if
74230         not defined, and if UINT64_MAX is not defined.
74231         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
74232         Reported by John David Anglin.
74233
74234 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
74235
74236         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
74237         resolve alias if codeset is empty.
74238         * lib/config.charset (BeOS): Use wildcard syntax.
74239
74240 2001-03-13  Jim Meyering  <meyering@lucent.com>
74241
74242         * lib/path-concat.c (path_concat)
74243         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
74244         concatenating e.g., `C:' and `foo'.
74245         From Bruno Haible.
74246
74247 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74248
74249         * lib/localcharset.c (locale_charset): Don't use
74250         setlocale(LC_CTYPE,NULL). Don't return NULL.
74251         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
74252
74253 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74254
74255         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
74256         support for DOS/DJGPP.
74257
74258 2001-03-01  Paul Eggert  <eggert@twinsun.com>
74259
74260         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
74261         lacks mkstemp.  Compile our own tempname.c if we compile our own
74262         mkstemp.c, as mkstemp relies on tempname.
74263
74264 2001-03-01  Jim Meyering  <meyering@lucent.com>
74265
74266         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
74267         AH_VERBATIM really does output its argument verbatim.
74268
74269 2001-02-28  Paul Eggert  <eggert@twinsun.com>
74270
74271         * lib/Makefile.am (libfetish_a_SOURCES):
74272         Add dup-safer.c, fopen-safer.c.
74273         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
74274
74275         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
74276         * lib/unistd-safer.h: New files.
74277
74278 2001-02-25  Paul Eggert  <eggert@twinsun.com>
74279
74280         The mkstemp replacement is taken from glibc 2.2.2, with some
74281         portability fixes for use outside glibc, as follows:
74282
74283         * lib/tempname.c (struct_stat64): New macro.
74284         (direxists, __gen_tempname): Use it.
74285         This avoids a portability problem with Solaris 8.
74286
74287         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
74288         (<stddef.h>, <stdint.h>, <string.h>):
74289         Include only if STDC_HEADERS || _LIBC.
74290         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
74291         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
74292         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
74293         (__set_errno): Define this macro if <errno.h> doesn't.
74294         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
74295         Define these macros if <stdio.h> doesn't.
74296         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
74297         Define these macros if <sys/stat.h>
74298         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
74299         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
74300         __xstat64): Define if not _LIBC.
74301         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
74302         (__gen_tempname): Invoke gettimeofday only if
74303         HAVE_GETTIMEOFDAY || _LIBC;
74304         otherwise, fall back on plain "time".
74305         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
74306
74307         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
74308
74309         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
74310
74311 2001-02-18  Paul Eggert  <eggert@twinsun.com>
74312
74313         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
74314
74315 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74316
74317         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
74318         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
74319         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
74320         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74321
74322 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74323
74324         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
74325         Remove workaround macros for hosts that have mbrtowc but not
74326         mbstate_t, as we now insist on proper declarations for both
74327         before using mbrtowc.
74328
74329 2001-02-17  Jim Meyering  <meyering@lucent.com>
74330
74331         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
74332         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
74333         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
74334         UnixWare 7.1.1.
74335
74336         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
74337         rather than AC_CACHE_VAL.
74338
74339 2001-02-17  Jim Meyering  <meyering@lucent.com>
74340
74341         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
74342         around included file name.
74343
74344         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
74345
74346         * lib/strftime.c: Update from GNU libc (the only changes were to
74347         comments).
74348
74349 2001-02-17  Jim Meyering  <meyering@lucent.com>
74350
74351         * lib/regex.c: Update from libc.
74352
74353 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
74354
74355         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
74356         clash.
74357
74358 2001-02-16  Paul Eggert  <eggert@twinsun.com>
74359
74360         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
74361         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
74362         Reported by Mark Hounschell via Paul Eggert.
74363
74364 2001-02-07  Jim Meyering  <meyering@lucent.com>
74365
74366         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
74367
74368 2001-02-05  Jim Meyering  <meyering@lucent.com>
74369
74370         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
74371         it includes the patch required for `large file' support with at least
74372         HP-UX's 10.20 /bin/cc.
74373
74374 2001-02-03  Jim Meyering  <meyering@lucent.com>
74375
74376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
74377         AS_IF, now that it works once again (mysteriously).
74378         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74379
74380 2001-01-30  Jim Meyering  <meyering@lucent.com>
74381
74382         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
74383         * m4/chown.m4: Rename conftestchown to conftest.chown.
74384         * m4/rename.m4: s/conftestdir/conftest.d1/ and
74385         s/conftestdir2/conftest.d2/.
74386         * m4/utimes.m4: s/conftestdata/conftest.data/
74387         Inspired by Pavel Roskin's change in autoconf.
74388
74389 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
74390
74391         * lib/config.charset: Update for FreeBSD 4.2.
74392
74393 2001-01-27  Jim Meyering  <meyering@lucent.com>
74394
74395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
74396         a use of AS_IF.
74397         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74398
74399 2001-01-26  Jim Meyering  <meyering@lucent.com>
74400
74401         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
74402         quotearg.c includes it.
74403
74404 2001-01-26  Jim Meyering  <meyering@lucent.com>
74405
74406         * lib/quotearg.c: Include stddef.h.
74407         * lib/quote.c: Include stddef.h.
74408         Reported by Axel Kittenberger.
74409
74410         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
74411         line in double quotes so that it evokes a better diagnostic.
74412         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
74413         Reported by Axel Kittenberger.
74414
74415 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
74416
74417         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
74418         as if it was a `charset'.
74419
74420 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74421
74422         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
74423         has const.
74424
74425 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74426
74427         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
74428         to avoid a warning.  Add back 'const' to inptr.
74429
74430 2001-01-20  Jim Meyering  <meyering@lucent.com>
74431
74432         Be sure that headers are checked before used in code compiled
74433         for the type checks.
74434         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
74435         In place of that, invoke jm_CHECK_ALL_TYPES.
74436         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
74437         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
74438         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
74439         The check for ssize_t was mistakenly run before the test for unistd.h.
74440
74441         The configure-time check for stdbool.h was missing.
74442         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
74443         (jm_PREREQ_HASH): New function.
74444
74445 2001-01-17  Jim Meyering  <meyering@lucent.com>
74446
74447         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
74448         for autoconf-2.49c.
74449         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
74450
74451 2001-01-16  Jim Meyering  <meyering@lucent.com>
74452
74453         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
74454         From Bruno Haible.
74455
74456 2001-01-14  Jim Meyering  <meyering@lucent.com>
74457
74458         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
74459         foo and bar.  Create conftestdir/ in the script, not in the C code.
74460         Remove directories in the script, not in the C code.
74461         Remove conftestdir{,2} before trying to create the directory.
74462         Make the entire configure script fail if the mkdir fails.
74463
74464 2001-01-14  Jim Meyering  <meyering@lucent.com>
74465
74466         * lib/rename.c: New file.  From Volker Borchert.
74467         Include stdlib.h, string.h or strings.h, and xalloc.h.
74468         Use strip_trailing_slashes rather than open-coding it.
74469
74470 2001-01-03  Paul Eggert  <eggert@twinsun.com>
74471
74472         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
74473
74474 2001-01-03  Jim Meyering  <meyering@lucent.com>
74475
74476         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
74477         of local `inptr' to avoid warning with some system declarations of
74478         iconv.
74479
74480 2001-01-02  Volker Borchert  <bt@teknon.de>
74481
74482         * m4/rename.m4: New file.
74483         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
74484
74485 2001-01-01  Jim Meyering  <meyering@lucent.com>
74486
74487         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
74488         even on systems with utmpx.h.  It's necessary for the declaration of
74489         utmp's ut_user member.  Reported by Andreas Jaeger.
74490
74491         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
74492         available. They are required for the declarations of getgrgid and
74493         getpwuid resp.
74494         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
74495         Reported by Andreas Jaeger.
74496
74497 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
74498
74499         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
74500         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
74501         so `make install' also works in VPATH builds.
74502
74503 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
74504
74505         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
74506         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
74507         can be used in subdirectories.
74508
74509 2000-12-29  Paul Eggert  <eggert@twinsun.com>
74510
74511         * lib/modechange.c: Do not assume that mode_t uses the
74512         traditional octal encoding.  E.g. "chmod 1 FOO" should set
74513         the other-execute bit of FOO even if S_IXOTH != 1.
74514
74515         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
74516         WOTH, XOTH, ALLM): New macros.
74517         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
74518          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
74519         Use them.
74520         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
74521         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
74522         (mode_compile):
74523         No need to use uintmax_t; unsigned long is long enough.
74524         Don't bother to get suffix since we don't use it.
74525
74526 2000-12-26  Jim Meyering  <meyering@lucent.com>
74527
74528         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
74529         better with autoheader.
74530
74531 2000-12-24  Jim Meyering  <meyering@lucent.com>
74532
74533         * lib/hash.c (is_prime): Return explicit boolean values.
74534         (hash_get_first): Return NULL to appease Irix5.6's 89.
74535         Reported by Nelson Beebe.
74536
74537 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
74538
74539         * lib/localcharset.c (locale_charset): Add support for Win32.
74540
74541 2000-12-18  Paul Eggert  <eggert@twinsun.com>
74542
74543         * lib/physmem.h, lib/physmem.c: New files.
74544
74545         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
74546         (noinst_HEADERS): Add physmem.h.
74547
74548         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
74549         't' for compatibility with Solaris 8 sort.
74550
74551 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
74552
74553         * lib/config.charset: Add support for BeOS.
74554
74555 2000-12-17  Jim Meyering  <meyering@lucent.com>
74556
74557         * m4/dos.m4 (jm_AC_DOS): New file and macro.
74558         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
74559
74560 2000-12-16  Jim Meyering  <meyering@lucent.com>
74561
74562         This bug had a serious impact on chown: `chown N:M FILE' (for integer
74563         N and M) would have treated it like `chown N:N FILE'.
74564
74565         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
74566
74567 2000-12-16  Jim Meyering  <meyering@lucent.com>
74568
74569         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
74570         SHELLS_FILE to a file name that's useful on djgpp systems.
74571         Include stdlib.h.
74572         (ADDITIONAL_DEFAULT_SHELLS): Define.
74573         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
74574         Based mostly on a patch from Prashant TR.
74575
74576 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
74577
74578         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
74579         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
74580         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
74581
74582 2000-12-08  Andreas Schwab  <schwab@suse.de>
74583
74584         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
74585         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
74586
74587 2000-12-07  Jim Meyering  <meyering@lucent.com>
74588
74589         * lib/stripslash.c (ISSLASH): Define.
74590         (strip_trailing_slashes): Use ISSLASH rather than comparing against
74591         `/'.
74592         From Prashant TR.
74593
74594         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
74595         (dir_name_r): Declare this function as static.
74596         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
74597         manifest itself on a name containing a mix of slashes and
74598         backslashes.
74599         Make this function work with names starting with a DOS-style
74600         drive letter and colon prefix.
74601         (dir_name): Append `.' if necessary.
74602         Based mostly on patches from Prashant TR and Eli Zaretskii.
74603
74604         * lib/dirname.h (dir_name_r): Remove prototype.
74605
74606 2000-12-06  Paul Eggert  <eggert@twinsun.com>
74607
74608         * m4/off_t-format.m4: Remove this file.
74609         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
74610
74611 2000-12-06  Jim Meyering  <meyering@lucent.com>
74612
74613         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
74614         replacement strtoull, we may well need the replacement strtoul, too.
74615         Check for declarations of strtoul and strtoull.
74616         Check for strtol.  Mainly as a cue to cause automake to include
74617         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
74618         Check for limits.h -- strtol.c needs it.
74619
74620 2000-12-05  Jim Meyering  <meyering@lucent.com>
74621
74622         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
74623
74624 2000-12-04  Jim Meyering  <meyering@lucent.com>
74625
74626         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
74627         Also include memory.h, stdlib.h, unistd.h if appropriate.
74628         Reported by Andreas Jaeger (conflicting declaration of malloc).
74629
74630 2000-12-02  Jim Meyering  <meyering@lucent.com>
74631
74632         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
74633         * m4/jm-macros.m4 (jm_MACROS): require it.
74634
74635 2000-12-02  Jim Meyering  <meyering@lucent.com>
74636
74637         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
74638
74639 2000-12-01  Paul Eggert  <eggert@twinsun.com>
74640
74641         * lib/memrchr.c: Include <config.h> before any system include file.
74642
74643 2000-11-30  Jim Meyering  <meyering@lucent.com>
74644
74645         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
74646
74647 2000-11-30  Jim Meyering  <meyering@lucent.com>
74648
74649         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
74650
74651 2000-11-29  Paul Eggert  <eggert@twinsun.com>
74652
74653         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
74654
74655 2000-11-26  Jim Meyering  <meyering@lucent.com>
74656
74657         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
74658
74659 2000-11-22  Paul Eggert  <eggert@twinsun.com>
74660
74661         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
74662         size of (size_t) -1; it's not portable.
74663
74664 2000-11-17  Jim Meyering  <meyering@lucent.com>
74665
74666         * lib/strstr.c: Update from GNU libc.
74667
74668 2000-11-17  Akim Demaille  <akim@epita.fr>
74669
74670         * lib/obstack.h: Formatting changes.
74671         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
74672         prevent type checking.
74673         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
74674         cast the value to (void *): assigning a `foo *' to a `void *'
74675         variable is valid.
74676         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
74677
74678 2000-11-16  Jim Meyering  <meyering@lucent.com>
74679
74680         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
74681
74682 2000-11-11  Jim Meyering  <meyering@lucent.com>
74683
74684         * lib/error.c: Add a couple #includes, merging from GNU libc version.
74685
74686 2000-11-10  Jim Meyering  <meyering@lucent.com>
74687
74688         * lib/obstack.h: Update from GNU libc.
74689         * lib/obstack.c: Likewise.
74690
74691 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
74692
74693         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
74694
74695 2000-11-06  Paul Eggert  <eggert@twinsun.com>
74696
74697         * lib/getusershell.c (setusershell): Use rewind rather than
74698         fseek/fseeko, to avoid configuration hassles with fseeko.
74699         Don't bother opening SHELLS_FILE if shellstream is NULL;
74700         it's not necessary.
74701
74702 2000-11-05  Jim Meyering  <meyering@lucent.com>
74703
74704         * lib/makepath.h (make_dir): Declare.
74705         * lib/makepath.c (make_dir): Remove `static' attribute.
74706         Tweak a comment.
74707
74708 2000-11-04  Jim Meyering  <meyering@lucent.com>
74709
74710         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
74711
74712 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
74713
74714         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
74715         last one in a bucket, advance to the next bucket.
74716
74717 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
74718
74719         * lib/fnmatch.c: Do not comment out all the code if we are using
74720         the GNU C library, because in some cases we are replacing buggy
74721         code in the GNU C library itself.
74722
74723 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
74724
74725         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
74726         (regex_compile): Catch bogus \(\1\).
74727
74728 2000-10-30  Paul Eggert  <eggert@twinsun.com>
74729
74730         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
74731         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
74732         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
74733
74734 2000-10-30  Paul Eggert  <eggert@twinsun.com>
74735
74736         * lib/error.h, getline.h, modechange.h:
74737         Remove "2000" from Copyright line, as the file hasn't been
74738         changed this year other than in the copyright notice.
74739
74740         * lib/xalloc.h: Add "2000" to Copyright line, as this file
74741         was changed this year.
74742
74743 2000-10-29  Jim Meyering  <meyering@lucent.com>
74744
74745         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
74746         renaming.
74747         * m4/ls-mntd-fs.m4: Likewise
74748
74749 2000-10-29  Jim Meyering  <meyering@lucent.com>
74750
74751         * lib/xstat.in: Fix grammar in comment.
74752
74753 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
74754
74755         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
74756         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
74757         doesn't define __restrict_arr.
74758
74759 2000-10-28  Jim Meyering  <meyering@lucent.com>
74760
74761         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
74762         (jm_PREREQ_MEMCHR): New function.
74763
74764 2000-10-28  Jim Meyering  <meyering@lucent.com>
74765
74766         * lib/memchr.c: Update from libc.
74767         Adjust for portability:
74768         [HAVE_STDLIB_H]: Include stdlib.h.
74769         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
74770         Undef __memchr, too.
74771         [!weak_alias]: Define __memchr to memchr.
74772
74773         * lib/regex.c: Update from libc.
74774         * lib/regex.h: Likewise.
74775         * lib/getopt1.c: Likewise.
74776         * lib/memcmp.c: Likewise.
74777
74778         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
74779         Avoid using fseek, when possible -- it's broken by design.
74780         Patch by Ulrich Drepper.
74781
74782 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
74783
74784         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
74785         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
74786         Giving in to popular pressure to shut up the compiler with casts.
74787
74788 2000-10-26  Jim Meyering  <meyering@lucent.com>
74789
74790         * lib/strftime.c: Update from libc.
74791
74792 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
74793
74794         * regex.c: More `unsigned char' -> `re_char' changes.
74795         Also change several `int' into `re_wchar_t'.
74796         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
74797         (PUSH_FAILURE_POINTER): Don't cast any more.
74798         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
74799         We want GCC to complain, since this piece of code makes
74800         re_match non-reentrant, which *should* be fixed.
74801         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
74802         (EXTEND_BUFFER): Use RETALLOC.
74803         (SET_LIST_BIT): Don't cast.
74804         (re_wchar_t): New type.
74805         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
74806         that those two functions will always properly return.
74807         (IMMEDIATE_QUIT_CHECK): Cast to void.
74808         (analyse_first): Use recursion rather than an explicit stack.
74809         (re_compile_fastmap): Can't fail anymore.
74810         (re_search_2): Don't check re_compile_fastmap for failure.
74811         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
74812         Now also sets the new value (passed in a new argument).
74813         (re_match_2_internal): Use it.
74814         Also, use a new var `reg' of type size_t when looping through regs
74815         rather than reuse the inappropriate `mcnt'.
74816
74817 2000-10-25  Jim Meyering  <meyering@lucent.com>
74818
74819         * lib/obstack.c: Update from libc.
74820
74821 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
74822
74823         * regex.c (regex_compile): Change the way of handling a range from
74824         a char less than 256 to a char not less than 256.
74825
74826 2000-10-24  Andrew Innes  <andrewi@gnu.org>
74827
74828         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
74829         NT-Emacs only.
74830         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
74831         so that re_search functions only quit when callers expect them to.
74832
74833 2000-10-23  Jim Meyering  <meyering@lucent.com>
74834
74835         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
74836         wrong.  That set_locale call must not have any side effects.
74837         From Paul Eggert.
74838
74839 2000-10-22  Jim Meyering  <meyering@lucent.com>
74840
74841         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
74842         [CYCLIC]: Remove now-unused definition.
74843
74844         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
74845         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
74846         Suggestion from Ulrich Drepper.
74847
74848 2000-10-21  Jim Meyering  <meyering@lucent.com>
74849
74850         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
74851         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
74852         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
74853
74854 2000-10-21  Jim Meyering  <meyering@lucent.com>
74855
74856         * lib/dirname.c (memrchr): Declare if necessary.
74857         (dir_name): Remove the restriction that there be no
74858         trailing slashes.  Now, this code skips past them, effectively
74859         ignoring them.
74860         [TEST_DIRNAME] (main): New unit tests.
74861
74862         * lib/memrchr.c: New file from GNU libc.
74863         Undef __memrchr, too.
74864         [!weak_alias]: Define __memrchr to memrchr.
74865         Guard weak_alias use with `#ifdef weak_alias'.
74866
74867 2000-10-21  Jim Meyering  <meyering@lucent.com>
74868
74869         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
74870         (dir_name): Use dir_name_r.
74871         * lib/dirname.h (dir_name_r): Declare it.
74872
74873 2000-10-17  Jim Meyering  <meyering@lucent.com>
74874
74875         * lib/quote.h (PARAMS): Define and use.
74876         Reported by Akim Demaille.
74877
74878         * lib/getopt.c: Update from libc.
74879
74880 2000-10-16  Jim Meyering  <meyering@lucent.com>
74881
74882         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
74883         setlocale.
74884         From Jan Fedak.
74885
74886 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
74887
74888         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
74889
74890 2000-09-25  Jim Meyering  <meyering@lucent.com>
74891
74892         * lib/md5.h (rol): Define (from GnuPG).
74893
74894         * lib/sha.c: Give credit (GnuPG) where due.
74895         (M): Use rol rather than open-coding it.
74896         Add a FIXME comment.
74897
74898 2000-09-21  Jim Meyering  <meyering@lucent.com>
74899
74900         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
74901         Reported by Michael Stone.
74902
74903 2000-09-20  Jim Meyering  <meyering@lucent.com>
74904
74905         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
74906         (noinst_HEADERS): Add sha.h.
74907         Based on code from Scott G. Miller and from GnuPG.
74908
74909 2000-09-18  Jim Meyering  <meyering@lucent.com>
74910
74911         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
74912         LIBS. Otherwise, everyone ends up linking with -lelf for some
74913         configurations.
74914         Reported by Mike Stone.
74915
74916 2000-09-15  Jim Meyering  <meyering@lucent.com>
74917
74918         * lib/regex.c: Update from libc.
74919
74920 2000-09-10  Jim Meyering  <meyering@lucent.com>
74921
74922         * lib/getopt.c (_getopt_internal): Update from glibc.
74923
74924 2000-09-09  Jim Meyering  <meyering@lucent.com>
74925
74926         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
74927         think it should be used as a general replacement for isascii.
74928         * lib/fnmatch.c: Likewise.
74929         * lib/mbswidth.c: Likewise
74930         * lib/regex.c: Likewise.
74931
74932         Don't use atoi.
74933         * lib/userspec.c: Include sys/param.h and limits.h.
74934         Include xstrtol.h.
74935         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74936         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
74937         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
74938         UID, GID.  Check range.
74939
74940 2000-09-06  Jim Meyering  <meyering@lucent.com>
74941
74942         * lib/getopt.c (_getopt_internal): Update from glibc.
74943
74944 2000-08-30  Jim Meyering  <meyering@lucent.com>
74945
74946         * lib/strftime.c: Merge in changes from GNU libc.
74947
74948 2000-08-26  Jim Meyering  <meyering@lucent.com>
74949
74950         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
74951         * m4/fpending.m4: New file.
74952
74953 2000-08-26  Jim Meyering  <meyering@lucent.com>
74954
74955         * lib/closeout.c: Include "__fpending.h".
74956         (close_stdout_status): Return right away if there's nothing to flush.
74957
74958         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
74959         * lib/__fpending.c: New file.
74960         * lib/__fpending.h: New file.
74961
74962 2000-08-20  Jim Meyering  <meyering@lucent.com>
74963
74964         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
74965         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
74966         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
74967
74968 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
74969
74970         Improve fileutils installation on systems where running
74971         programs (like install) can't be unlinked.
74972         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
74973         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
74974
74975 2000-08-07  Paul Eggert  <eggert@twinsun.com>
74976
74977         Standardize on "memory exhausted" instead of "Memory exhausted"
74978         or "virtual memory exhausted".
74979         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
74980         "virtual memory exhausted".
74981         * lib/same.c (same_name): Invoke xalloc_die instead of printing
74982         our own message.
74983         * lib/userspec.c (parse_user_spec): Likewise.
74984         * lib/bumpalloc.h: comment fix
74985         * lib/same.c, userspec.c: Include xalloc.h.
74986
74987         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
74988         not char *const and pointing to a constant array.
74989         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
74990         (xrealloc): Comment fix.
74991
74992         * lib/userspec.c (parse_user_spec):
74993         Don't translate a message until just before returning,
74994         to avoid unnecessary translation.
74995
74996 2000-08-07  Jim Meyering  <meyering@lucent.com>
74997
74998         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
74999         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
75000         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
75001         getgroups.c, gethostname.c, getopt.h, group-member.c,
75002         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
75003         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
75004         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
75005         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
75006         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
75007         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
75008         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
75009         yesno.c: Back out Copyright date changes for each file with no change
75010         this year.  This eases coordination with other programs using the same
75011         source code modules.  From Paul Eggert.
75012
75013 2000-08-06  Paul Eggert  <eggert@twinsun.com>
75014
75015         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
75016         not char, for compatibility with glibc 2.1.3 strftime.c.
75017
75018 2000-08-03  Greg McGary  <greg@mcgary.org>
75019
75020         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
75021         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
75022         (EXTEND_BUFFER): Use them.
75023
75024 2000-08-01  Jim Meyering  <meyering@lucent.com>
75025
75026         * lib/dirname.c (ISSLASH): Define.
75027         (BACKSLASH_IS_PATH_SEPARATOR): Define.
75028         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
75029         both `\' and `/' may be use as path separators.
75030         Based on a patch from Prashant TR.
75031
75032 2000-07-31  Paul Eggert  <eggert@twinsun.com>
75033
75034         * lib/quotearg.c (quotearg_n_options): Don't make the initial
75035         slot vector a constant, since it might get modified.
75036
75037 2000-07-31  Jim Meyering  <meyering@lucent.com>
75038
75039         * lib/xmalloc.c: Use `virtual memory exhausted', not
75040         `Memory exhausted'.
75041         * lib/obstack.c (print_and_abort): Likewise.
75042
75043 2000-07-30  Paul Eggert  <eggert@twinsun.com>
75044
75045         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
75046         buffer, so that the caller can always quote one small
75047         component of a "memory exhausted" message in slot 0.
75048         From a suggestion by Jim Meyering.
75049
75050 2000-07-30  Jim Meyering  <meyering@lucent.com>
75051
75052         * lib/makepath.c (make_path): Quote the other instance, too.
75053
75054         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
75055         (STATIC_BUF_SIZE): Define.
75056         (quotearg_n_options): Use only statically allocated storage when
75057         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
75058         than STATIC_BUF_SIZE.
75059
75060 2000-07-29  Jim Meyering  <meyering@lucent.com>
75061
75062         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
75063         * lib/dirname.c (dir_name): Likewise.
75064
75065         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
75066         `/'.
75067
75068         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
75069         (dir_name): Assert that there are no trailing slashes.
75070
75071 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
75072
75073         * lib/mbswidth.h (mbswidth): Add a flags argument.
75074         (mbswidth): New declaration.
75075         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
75076         * lib/mbswidth.c (mbswidth): Add a flags argument.
75077         (mbsnwidth): New function.
75078
75079 2000-07-24  Jim Meyering  <meyering@lucent.com>
75080
75081         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
75082
75083 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75084
75085         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
75086
75087 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75088
75089         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
75090         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
75091         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
75092         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
75093         invoke multibyte primitives.
75094
75095 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75096
75097         * lib/quotearg.c:
75098         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
75099         so that mbstate_t is always defined.
75100
75101         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
75102         be 1 in at least one GCC installation, and this configuration
75103         error is likely to be common.  Ignoring MB_LEN_MAX hurts
75104         performance on hosts that have mbrtowc but have only unibyte
75105         locales, but I assume these hosts are rare.
75106
75107 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75108
75109         * lib/mbswidth.c (_XOPEN_SOURCE):
75110         Don't define; this causes problems on Solaris 7.
75111         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
75112
75113 2000-07-23  Jim Meyering  <meyering@lucent.com>
75114
75115         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
75116         too: getgrgid, getpwuid, getuid.
75117
75118 2000-07-23  Jim Meyering  <meyering@lucent.com>
75119
75120         * lib/basename.c (base_name): Add an assertion.
75121
75122 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
75123
75124         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
75125         shadow its mbsinit function.
75126
75127 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75128
75129         * lib/mbswidth.h: New file.
75130         * lib/mbswidth.c: New file.
75131         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
75132         (noinst_HEADERS): Add mbswidth.h.
75133
75134 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75135
75136         * lib/config.charset: Add support for FreeBSD. Improve support for
75137         HP-UX and IRIX 6.
75138
75139 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
75140
75141         * m4/mbswidth.m4: New file.
75142         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
75143
75144 2000-07-15  Jim Meyering  <meyering@lucent.com>
75145
75146         * lib/makepath.c: Include quote.h.
75147         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
75148         corresponding argument in a `quote (...)' call.
75149         Give better diagnostics.
75150
75151         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
75152         (noinst_HEADERS): Add quote.h.
75153
75154         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
75155         from tar's src/misc.c.
75156         * lib/quote.h: New file.  Prototypes for same.
75157
75158 2000-07-14  Paul Eggert  <eggert@twinsun.com>
75159
75160         From a suggestion by Bruno Haible.
75161         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
75162         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
75163         to decide whether to define the BeOS workaround macro;
75164         this adjusts to the change to AC_MBSTATE_T.
75165
75166 2000-07-14  Jim Meyering  <meyering@lucent.com>
75167
75168         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
75169         jm_AC_TYPE_UINTMAX_T.
75170
75171 2000-07-13  Paul Eggert  <eggert@twinsun.com>
75172
75173         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
75174
75175         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
75176         quotearg_buffer_restyled): Add support for
75177         clocale_quoting_style.  Undo previous change to
75178         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
75179         and "{RIGHT QUOTATION MARK}" msgids.
75180
75181 2000-07-10  Paul Eggert  <eggert@twinsun.com>
75182
75183         From a suggestion by Bruno Haible.
75184         * m4/mbstate_t.m4 (AC_MBSTATE_T):
75185         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
75186         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
75187         and mbstate_t, to a single-part test that simply defines mbstate_t.
75188         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
75189         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
75190
75191 2000-07-10  Jim Meyering  <meyering@lucent.com>
75192
75193         * m4/strerror_r.m4: Mirror the correction made in autoconf.
75194
75195         * m4/gnu-source.m4: Output to confdefs.h directly.
75196         Suggestion from Akim Demaille.
75197
75198 2000-07-09  Paul Eggert  <eggert@twinsun.com>
75199
75200         The old behavior of quoting `like this' doesn't look good with
75201         newer, ISO-style fonts.  See:
75202         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
75203
75204         Instead, quote "like this" by default.  Let the translator
75205         tailor the locale-specific quoting behavior by providing
75206         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
75207
75208         * lib/quotearg.c (N_): New macro.
75209         (gettext_default): New function.
75210         (quotearg_buffer_restyled): Use
75211         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
75212         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
75213
75214 2000-07-09  Jim Meyering  <meyering@lucent.com>
75215
75216         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
75217         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
75218
75219         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
75220         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
75221
75222 2000-07-09  Jim Meyering  <meyering@lucent.com>
75223
75224         * lib/Most files: Update copyright dates to include 2000.
75225
75226 2000-07-08  Jim Meyering  <meyering@lucent.com>
75227
75228         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
75229         if not defined.
75230         (xgethostname): Remove now-unnecessary #ifdef.
75231         Move declaration of `err' into loop where it's used.
75232
75233 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75234         and Bruno Haible  <haible@clisp.cons.org>
75235
75236         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
75237         only if the test for an object-type mbstate_t fails.  This
75238         prevents us from mistakenly reporting that mbstate_t is a
75239         system object type after we "#define mbstate_t int" to work
75240         around its lack.
75241
75242 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75243         and Bruno Haible  <haible@clisp.cons.org>
75244
75245         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
75246
75247 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75248
75249         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
75250         to strerror_r.
75251         Include <ctype.h> for use of isalpha.
75252
75253 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75254
75255         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
75256         by allocating a larger buffer. Test the gethostname return value for
75257         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
75258         returns an error and ENAMETOOLONG isn't defined.
75259
75260 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75261
75262         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
75263         dimension.
75264
75265 2000-07-04  Jim Meyering  <meyering@lucent.com>
75266
75267         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
75268         of the deprecated AC_CHECKING.
75269
75270 2000-07-04  Jim Meyering  <meyering@lucent.com>
75271
75272         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
75273         Reported by Bruno Haible.
75274
75275 2000-07-04  Jim Meyering  <meyering@lucent.com>
75276
75277         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
75278         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
75279         lacks mbrtowc.
75280
75281 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75282
75283         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
75284         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
75285
75286 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75287         and Bruno Haible  <haible@clisp.cons.org>
75288
75289         * lib/quotearg.c (mbrtowc):
75290         Assign to *pwc, and return 1 only if result is nonzero.
75291         (iswprint): Use ISPRINT when substituting our own mbrtowc.
75292
75293 2000-07-03  Jim Meyering  <meyering@lucent.com>
75294
75295         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
75296
75297 2000-07-03  Jim Meyering  <meyering@lucent.com>
75298
75299         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
75300         This is necessary to get a definition of e.g., UTMP_FILE on
75301         HP-UX 10.20.
75302         From Bob Proulx.
75303
75304 2000-07-02  Jim Meyering  <meyering@lucent.com>
75305
75306         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
75307
75308         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
75309         AC_LIBOBJ(function_name).
75310         * m4/chown.m4: Likewise.
75311         * m4/fnmatch.m4: Likewise.
75312         * m4/ftruncate.m4: Likewise.
75313         * m4/getgroups.m4: Likewise.
75314         * m4/getline.m4: Likewise.
75315         * m4/group-member.m4: Likewise.
75316         * m4/jm-macros.m4: Likewise.
75317         * m4/lstat.m4: Likewise.
75318         * m4/malloc.m4: Likewise.
75319         * m4/memcmp.m4: Likewise.
75320         * m4/nanosleep.m4: Likewise.
75321         * m4/putenv.m4: Likewise.
75322         * m4/realloc.m4: Likewise.
75323         * m4/regex.m4: Likewise.
75324         * m4/stat.m4: Likewise.
75325         * m4/strftime.m4: Likewise.
75326
75327 2000-07-02  Jim Meyering  <meyering@lucent.com>
75328
75329         * lib/quotearg.c (mbstate_t): Don't define here.
75330
75331 2000-07-02  Jim Meyering  <meyering@lucent.com>
75332
75333         * lib/nanosleep.c (SIGCONT): Define if not already defined.
75334
75335 2000-07-01  Jim Meyering  <meyering@lucent.com>
75336
75337         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
75338
75339 2000-07-01  Jim Meyering  <meyering@lucent.com>
75340
75341         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
75342         problem.
75343
75344 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75345
75346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
75347         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
75348
75349 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75350
75351         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
75352         per change in ../m4/ls-mntd-fs.m4.
75353         (read_filesystem_list): Ignore symbolic links.
75354
75355 2000-06-29  Jim Meyering  <meyering@lucent.com>
75356
75357         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
75358         for declaration of strcmp.
75359
75360         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
75361
75362         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
75363         Avoid warning by casting result to `char *' to remove `const'.
75364
75365 2000-06-28  Jim Meyering  <meyering@lucent.com>
75366
75367         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
75368         included by quotearg.c, for which we perform this test.  From
75369         Bruno Haible.
75370
75371 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75372
75373         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
75374         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
75375         <utmpx.h> exists, put readutmp.o into LIBOBJS.
75376
75377 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75378
75379         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
75380
75381 2000-06-26  Paul Eggert  <eggert@twinsun.com>
75382
75383         savedir now sets errno on failure and invokes xmalloc to get memory.
75384         Fix a couple of other minor bugs while we're at it.
75385
75386         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
75387         (NAMLEN): Remove macro.
75388         (malloc, realloc): Remove decls.
75389         (stpcpy): Likewise.
75390         ("xalloc.h"): Include.
75391         (NAME_SIZE_DEFAULT): New macro.
75392         (savedir): Use xmalloc / xrealloc to allocate memory.
75393         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
75394         Skip "" directory entries.
75395         Use strlen to calculate directory entry length, since the old method
75396         is rarely used these days and isn't worth supporting.
75397         Don't use a pointer after freeing it.
75398         Check for integer overflow when calculating allocation size.
75399         Use memcpy to copy entries, instead of stpcpy.
75400         Set errno properly when returning NULL.
75401         Check for readdir error.
75402
75403 2000-06-26  Jim Meyering  <meyering@lucent.com>
75404
75405         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
75406
75407 2000-06-25  Jim Meyering  <meyering@lucent.com>
75408
75409         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
75410         Linux header bug when _XOPEN_SOURCE is defined to 500.
75411
75412 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75413
75414         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
75415         deficiency.
75416
75417 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75418
75419         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
75420         Include xalloc.h.
75421         Don't include <stdlib.h>.  Don't declare malloc, realloc.
75422
75423 2000-06-24  Jim Meyering  <meyering@lucent.com>
75424
75425         * m4/strerror_r.m4: Revive this file -- to try out an experimental
75426         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
75427         for which strerror does return char*, but which lacks a conveniently
75428         accessible declaration of the function.  If the compile-test says
75429         strerror_r doesn't work, then resort to a `run'-test that works on
75430         BeOS and segfaults on DEC Unix.
75431
75432 2000-06-24  Jim Meyering  <meyering@lucent.com>
75433
75434         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
75435
75436 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75437
75438         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
75439         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
75440
75441 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75442
75443         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
75444         (mbrtowc, mbstate_t): Define substitutes if
75445         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
75446         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
75447         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
75448
75449 2000-06-23  Jim Meyering  <meyering@lucent.com>
75450
75451         * m4/afs.m4: Add missing AC_MSG_RESULT.
75452         Reported by Bruno Haible.
75453
75454         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
75455         Suggestion from Bruno Haible.
75456
75457 2000-06-23  Jim Meyering  <meyering@lucent.com>
75458
75459         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
75460
75461 2000-06-21  Jim Meyering  <meyering@lucent.com>
75462
75463         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
75464
75465 2000-06-21  Jim Meyering  <meyering@lucent.com>
75466
75467         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
75468         (noinst_HEADERS): Add getstr.h.
75469
75470         * lib/getline.c (getstr): Move into a separate file.
75471         * lib/getstr.c (getstr): New file, extracted from getline.c, with
75472         the following changes: new parameter, delim2; both delim[12]
75473         parameters have type `int', not `char'.  The latter would lose
75474         with 8-bit delimiters.
75475         * lib/getstr.h: New file.
75476
75477 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75478
75479         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
75480         than 1024, return a memory chunk of least possible size, instead
75481         of size PATH_MAX + 2. In the loop, increment the size proportionally.
75482         Use free/xmalloc instead of xrealloc to avoid copying for very long
75483         paths.
75484
75485 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75486
75487         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
75488         the empty string.
75489
75490 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75491
75492         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
75493         address, not strdup.  Include <stdlib.h> and don't declare free().
75494
75495 2000-06-19  Jim Meyering  <meyering@lucent.com>
75496
75497         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
75498
75499 2000-06-18  Jim Meyering  <meyering@lucent.com>
75500
75501         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
75502
75503         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
75504         `checking whether...' message to be consistent with that of the
75505         lstat test.
75506
75507 2000-06-18  Jim Meyering  <meyering@lucent.com>
75508
75509         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
75510         Besides, these days every porting target provides a mkdir function.
75511
75512         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
75513         needed. (this snippet comes from src/system.h).
75514
75515 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
75516
75517         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
75518
75519 2000-06-15  Paul Eggert  <eggert@twinsun.com>
75520
75521         * lib/human.c (adjust_value): New function.
75522         (human_readable_inexact): Apply rounding style even when
75523         printing approximate values.
75524
75525 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75526
75527         * lib/human.c (human_readable_inexact): Allow an input block
75528         size that is not a multiple of the output block size, and vice versa.
75529         Reported by Piergiorgio Sartor.
75530
75531 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75532
75533         * lib/getdate.y (get_date): Apply relative times after time
75534         zone indicator, not before.  Reported by Todd A. Jacobs.
75535
75536 2000-06-13  Jim Meyering  <meyering@lucent.com>
75537
75538         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
75539
75540         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
75541
75542 2000-06-12  Paul Eggert  <eggert@twinsun.com>
75543
75544         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
75545
75546 2000-06-12  Jim Meyering  <meyering@lucent.com>
75547
75548         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
75549         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
75550         optional argument.
75551         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
75552         the optional argument, `lib'.
75553
75554 2000-06-08  Jim Meyering  <meyering@lucent.com>
75555
75556         * m4/largefile.m4: Remove file (now that it's part of autoconf).
75557
75558 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75559
75560         Rewrite largefile configuration so that we don't need to run
75561         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
75562         AC_CANONICAL_HOST in configure.in -- jmm]
75563
75564         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
75565         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
75566         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
75567         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
75568         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
75569         All uses changed.
75570         Instead of inspecting the output of getconf, try to compile the
75571         test program without and with the macro definition.
75572         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
75573         for getconf.  Instead, check for the needed flags by compiling
75574         test programs.
75575
75576 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75577
75578         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
75579
75580 2000-06-04  Jim Meyering  <meyering@lucent.com>
75581
75582         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
75583         SunOS 4.1.4 for which gid_t is an unsigned type.
75584
75585 2000-06-03  Jim Meyering  <meyering@lucent.com>
75586
75587         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
75588         now that autoconf requires that.
75589
75590         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
75591         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
75592         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
75593
75594 2000-06-03  Jim Meyering  <meyering@lucent.com>
75595
75596         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
75597
75598 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75599
75600         * m4/glibc21.m4: New file.
75601         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
75602
75603 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75604
75605         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
75606         newer, don't install charset.alias.
75607         * lib/config.charset: Change the Linux/glibc rules so they become empty
75608         on glibc-2.1 or newer.
75609
75610 2000-06-02  Jim Meyering  <meyering@lucent.com>
75611
75612         * lib/mountlist.c: Back out last change.  Instead, do this...
75613         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
75614         me_dummy member using the same `ignore'-testing code.
75615         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
75616         fs_type strings.
75617         From Mark D. Roth.
75618
75619 2000-05-29  Jim Meyering  <meyering@lucent.com>
75620
75621         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
75622         mounts with the `ignore' attribute.  Based on a patch from
75623         Mark D. Roth.
75624
75625 2000-05-28  Jim Meyering  <meyering@lucent.com>
75626
75627         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
75628         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75629         * m4/stat.m4: Likewise.
75630         * m4/lstat.m4: Likewise.
75631         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
75632
75633         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
75634         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
75635
75636 2000-05-26  Jim Meyering  <meyering@lucent.com>
75637
75638         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
75639
75640 2000-05-24  Jim Meyering  <meyering@lucent.com>
75641
75642         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
75643         autoconf requires that.
75644         * m4/lib-check.m4: Likewise.
75645         * m4/jm-macros.m4: Likewise.
75646         * m4/strftime.m4: Likewise.
75647
75648         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
75649         AC_CHECK_DECLS, now that autoconf requires that.
75650
75651 2000-05-22  Jim Meyering  <meyering@lucent.com>
75652
75653         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75654         * m4/lstat.m4: Likewise.
75655
75656 2000-05-22  Jim Meyering  <meyering@lucent.com>
75657
75658         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
75659
75660 2000-05-20  Jim Meyering  <meyering@lucent.com>
75661
75662         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
75663         (jm_PREREQ): Use it.
75664
75665 2000-05-18  Jim Meyering  <meyering@lucent.com>
75666
75667         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
75668         back, too, since it may have been modified by allocate_entry.
75669         (hash_delete): Rewrite to use neither the assignment operator
75670         nor the comma operator in an if-expression.
75671
75672 2000-05-15  Paul Eggert  <eggert@twinsun.com>
75673
75674         * lib/closeout.c:
75675         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
75676         Remove; no longer needed.
75677         "quotearg.h": Add include.
75678         (file_name): Do not bother to explicitly initialize to NULL; it's less
75679         efficient on some hosts.
75680         (close_stdout_status): Remove test as to whether stdout was already
75681         closed; it breaks for the case "echo x | sort >&-".
75682         Quote file name colons.
75683         Do not assume that _("write error") lacks format strings.
75684
75685 2000-05-15  Jim Meyering  <meyering@lucent.com>
75686
75687         * lib/version-etc.c (version_etc_copyright): Update the copyright
75688         string used in all --version output.
75689
75690 2000-05-14  Jim Meyering  <meyering@lucent.com>
75691
75692         * lib/closeout.c (close_stdout_set_file_name): New function.
75693         (close_stdout_status): Use new file-scoped global.
75694         Return right away if fstat says the stdout file descriptor is invalid.
75695         * lib/closeout.h (close_stdout_set_file_name): Declare.
75696
75697 2000-05-10  Jim Meyering  <meyering@lucent.com>
75698
75699         * lib/closeout.c [default_exit_status]: New file-scoped variable.
75700         (close_stdout_set_status): New function.
75701         * lib/closeout.h (close_stdout_set_status): Declare.
75702
75703 2000-05-09  Jim Meyering  <meyering@lucent.com>
75704
75705         * m4/gettext.m4: Rename this...
75706         * m4/libintl.m4: ...to this.
75707
75708 2000-05-08  Jim Meyering  <meyering@lucent.com>
75709
75710         * lib/long-options.c: Don't include closeout.h.
75711         (parse_long_options): Don't call close_stdout for --version.
75712
75713 2000-05-06  Paul Eggert  <eggert@twinsun.com>
75714
75715         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
75716         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
75717         2.1.3 bug.  This avoids a clash when files like regex.c define
75718         _GNU_SOURCE.
75719
75720 2000-05-06  Jim Meyering  <meyering@lucent.com>
75721
75722         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
75723         (AC_REPLACE_FUNCS): Add strnlen.
75724
75725         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
75726         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
75727
75728         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
75729         AC_SEARCH_LIBS call for nanosleep.
75730         (LIB_NANOSLEEP): Set and AC_SUBST.
75731
75732 2000-05-06  Jim Meyering  <meyering@lucent.com>
75733
75734         * lib/strnlen.c: Undefine __strnlen and strnlen.
75735         [!weak_alias]: Define __strnlen to strnlen.
75736
75737         * lib/atexit.c: New file, from libiberty.
75738
75739 2000-05-06  Jim Meyering  <meyering@lucent.com>
75740
75741         * lib/closeout.c (close_stdout_status): Also check for errors on the
75742         stderr stream.
75743
75744 2000-05-05  Jim Meyering  <meyering@lucent.com>
75745
75746         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
75747         AC_SEARCH_LIBS call for clock_gettime.
75748         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
75749
75750         * m4/search-libs.m4: Update from autoconf.
75751
75752         su doesn't work on Solaris 2.6.
75753         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
75754         <shadow.h>.  Reported by Dragos Harabor.
75755
75756 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
75757
75758         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
75759         memcpy instead of xmalloc, xrealloc, path_concat.
75760         (locale_charset): Treat empty environment variables as absent.
75761         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
75762
75763 2000-05-04  Jim Meyering  <meyering@lucent.com>
75764
75765         * lib/getopt.c: Update from glibc.
75766         * lib/obstack.c: Likewise.
75767         * lib/obstack.h: Likewise.
75768         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
75769         file
75770
75771         * lib/regex.h: Likewise.
75772         * lib/strndup.c: Likewise.
75773         * lib/strnlen.c: New file, from glibc.
75774
75775 2000-05-03  Jim Meyering  <meyering@lucent.com>
75776
75777         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
75778
75779 2000-05-02  Paul Eggert  <eggert@twinsun.com>
75780
75781         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
75782         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
75783         compile-time test, rather than inspecting host and OS, to
75784         decide whether to define _LARGEFILE_SOURCE.
75785
75786 2000-05-01  Jim Meyering  <meyering@lucent.com>
75787
75788         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
75789
75790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
75791         Based on a patch from Bruno Haible.
75792
75793 2000-05-01  Jim Meyering  <meyering@lucent.com>
75794
75795         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
75796
75797 2000-04-29  Jim Meyering  <meyering@lucent.com>
75798
75799         * lib/path-concat.c: Declare strdup only if it's not defined.
75800         * lib/canon-host.c: Likewise.
75801
75802 2000-04-28  Jim Meyering  <meyering@lucent.com>
75803
75804         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
75805         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
75806         is included first, then limits.h is included by locale.h by libintl.h.
75807         From John David Anglin.
75808
75809 2000-04-25  Jim Meyering  <meyering@lucent.com>
75810
75811         * lib/makepath.c (S_IRWXUGO): Define.
75812         (make_path): Always perform explicit chmod if MODE specifies any
75813         of the `special' permission bits.  Prompted by a bug report against
75814         install from Mate Wierdl and Joost van Baal.
75815
75816 2000-04-18  Jim Meyering  <meyering@lucent.com>
75817
75818         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
75819         (jm_PREREQ): Use it.
75820
75821 2000-04-18  Jim Meyering  <meyering@lucent.com>
75822
75823         * lib/README: New file.
75824
75825         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
75826         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
75827
75828 2000-04-17  Jim Meyering  <meyering@lucent.com>
75829
75830         Get it right :-)
75831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
75832         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
75833         Suggestion from Akim Demaille.
75834
75835 2000-04-17  Jim Meyering  <meyering@lucent.com>
75836
75837         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
75838         the definition of it to rpl_strftime also defined-away the system's
75839         declaration.
75840
75841 2000-04-15  Jim Meyering  <meyering@lucent.com>
75842
75843         Use `C' to denote so-called `contiguous' files, the same way
75844         that tar does.
75845         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
75846         (ftypelet): Use S_ISCTG.
75847         From Michael Deutschmann.
75848
75849 2000-04-14  Jim Meyering  <meyering@lucent.com>
75850
75851         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
75852         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
75853         clobbered.
75854
75855 2000-04-14  Jim Meyering  <meyering@lucent.com>
75856
75857         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
75858
75859 2000-04-13  Jim Meyering  <meyering@lucent.com>
75860
75861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
75862         AH_VERBATIM to insert required #ifndef into config.h.in.
75863         Suggestion from Akim Demaille.
75864
75865 2000-04-12  Jim Meyering  <meyering@lucent.com>
75866
75867         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
75868         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
75869         Christian Krackowizer.
75870
75871         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
75872         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
75873         (AC_SYS_LARGEFILE): Require.
75874         (AM_C_PROTOTYPES): Require.
75875
75876 2000-04-08  Jim Meyering  <meyering@lucent.com>
75877
75878         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
75879         names don't conflict.  Reported by Eli Zaretskii.
75880
75881 2000-04-07  Jim Meyering  <meyering@lucent.com>
75882
75883         * lib/putenv.c: Move inclusion of errno.h so it follows that of
75884         sys/types.h, to work around system header problems on AIX 3.2.5.
75885         From Bruno Haible.
75886
75887 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
75888
75889         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
75890         bug.  Deal with the different error behavior of Irix iconv.
75891
75892 2000-04-05  Paul Eggert  <eggert@twinsun.com>
75893
75894         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
75895         IRIX if the installer said otherwise.
75896
75897 2000-04-05  Jim Meyering  <meyering@lucent.com>
75898
75899         Portability tweaks required for ultrix4.3.
75900         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
75901         (jm_CHECK_DECLS): Add getutent to the list of functions.
75902         (_jm_DECL_HEADERS): Add utmpx.h.
75903         From John David Anglin.
75904
75905         * m4/strftime.m4: Back out the 2000-04-02 change.
75906         Instead of that change, simply undefine putenv in the test program.
75907
75908 2000-04-05  Jim Meyering  <meyering@lucent.com>
75909
75910         Portability tweaks required for ultrix4.3.
75911         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
75912         getutent.
75913         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
75914         * lib/canon-host.c: Declare strdup.
75915         * lib/path-concat.c: Likewise.
75916         From John David Anglin.
75917
75918 2000-04-04  Jim Meyering  <meyering@lucent.com>
75919
75920         Be more DOS 8.3-friendly.
75921         * lib/ref-add.sin: Renamed from ref-add.sed.in.
75922         * lib/ref-del.sin: Renamed from ref-del.sed.in.
75923         * lib/Makefile.am: Reflect renaming.
75924         Reported by Eli Zaretskii.
75925
75926         Use a temporary file name that won't clash with `charset.alias'
75927         in the DOS 8.3 name space.
75928         * lib/Makefile.am (charset_tmp): Define.
75929         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
75930         (uninstall-local): Likewise.
75931         Reported by Eli Zaretskii.
75932
75933 2000-04-03  Jim Meyering  <meyering@lucent.com>
75934
75935         * m4/gettext.m4: Fix typo in comment.
75936
75937         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
75938         textutils/configure.in).  Suggestion from Paul Eggert.
75939         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
75940
75941 2000-04-02  Paul Eggert  <eggert@twinsun.com>
75942
75943         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
75944         variable in the shell rather than using putenv, which isn't
75945         portable.  This avoids the configure-time inter-test dependency
75946         on the potentially-renamed putenv function.
75947
75948 2000-03-30  Paul Eggert  <eggert@twinsun.com>
75949
75950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
75951         before checking struct stat.st_blksize, so that
75952         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
75953
75954 2000-03-29  Paul Eggert  <eggert@twinsun.com>
75955
75956         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
75957         since strftime.c uses HAVE_STRFTIME to decide whether to use
75958         the underlying strftime.
75959
75960 2000-03-29  Paul Eggert  <eggert@twinsun.com>
75961
75962         * lib/time/strftime.c (my_strftime): Make sure we call the system
75963         strftime, not ourselves, when invoking the underlying strftime.
75964
75965 2000-03-24  Jim Meyering  <meyering@lucent.com>
75966
75967         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
75968         (charset_alias): Define.
75969         (install-exec-local): Factor out common code.
75970         (uninstall-local): Split lines longer than 80.
75971         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
75972         (SUFFIXES): Define.
75973         (.sed.in.sed): New rule.  Don't redirect directly to $@.
75974         (CLEANFILES): Add ref-add.sed and ref-del.sed.
75975
75976 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
75977
75978         * lib/config.charset: Output a line containing "Packages using this
75979         file".
75980         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
75981         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
75982         ref-del.sed): New rules.
75983
75984 2000-03-17  Jim Meyering  <meyering@lucent.com>
75985
75986         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
75987         Otherwise, include <strings.h>
75988
75989 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
75990
75991         * lib/unicodeio.c (utf8_wctomb): New function.
75992         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
75993         format instead of in UCS-4 with platform dependent endianness.
75994
75995 2000-03-10  Jim Meyering  <meyering@lucent.com>
75996
75997         * m4/lib-check.m4: Look for getspnam in -lgen, too.
75998         From Marco Franzen.
75999
76000 2000-03-07  Paul Eggert  <eggert@twinsun.com>
76001
76002         * lib/savedir.c (savedir): Work even if directory size is
76003         negative; this can happen with some screwy NFS configurations.
76004
76005 2000-03-06  Jim Meyering  <meyering@lucent.com>
76006
76007         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
76008         if it's NULL (because we ran out of memory).  From Bruno Haible.
76009
76010 2000-03-05  Jim Meyering  <meyering@lucent.com>
76011
76012         * lib/localcharset.c ("path-concat.h"): Include.
76013         (get_charset_aliases): Use path_concat instead of ANSI string
76014         concatenation.
76015
76016         * lib/unicodeio.h (PARAMS): Define.
76017         Use it to guard prototype.
76018
76019 2000-03-04  Jim Meyering  <meyering@lucent.com>
76020
76021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
76022         for lib/localcharset.c.
76023
76024 2000-03-04  Jim Meyering  <meyering@lucent.com>
76025
76026         * lib/Makefile.am (install-exec-local): Create $(libdir) before
76027         installing into it.
76028         (uninstall-local): Uncomment this rule so `make distcheck' works
76029         once again.
76030
76031         * lib/unicodeio.c (<errno.h>): Include it.
76032         (errno): Declare if not defined.
76033
76034         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
76035
76036         * lib/config.charset: New version, incorporating remarks from a linux
76037         i18n mailing list.  From Bruno Haible.
76038
76039 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
76040
76041         * m4/codeset.m4: New file.
76042         * m4/iconv.m4: New file.
76043         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
76044
76045 2000-03-03  Jim Meyering  <meyering@lucent.com>
76046
76047         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
76048
76049 2000-03-02  Jim Meyering  <meyering@lucent.com>
76050
76051         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
76052         the messages come out on separate lines.
76053
76054         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
76055         rather than jm_CHECK_DECLARATIONS.
76056         * m4/decl.m4: Remove now-unused file.
76057
76058         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
76059         geteuid.
76060
76061 2000-03-02  Jim Meyering  <meyering@lucent.com>
76062
76063         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
76064
76065 2000-03-01  Jim Meyering  <meyering@lucent.com>
76066
76067         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
76068         * lib/unicodeio.c: Likewise.
76069
76070 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
76071
76072         * lib/config.charset: New file.
76073         * lib/localcharset.c: New file.
76074         * lib/unicodeio.h, lib/unicodeio.c: New files.
76075         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
76076         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
76077         (noinst_HEADERS): Add unicodeio.h.
76078         (all-local, install-exec-local, charset.alias): New targets.
76079
76080 2000-02-28  Paul Eggert  <eggert@twinsun.com>
76081
76082         * lib/quotearg.c (ALERT_CHAR): New macro.
76083         (quotearg_buffer_restyled): Use it.
76084
76085 2000-02-27  Jim Meyering  <meyering@lucent.com>
76086
76087         * m4/check-decl.m4: Add getenv to the list.
76088
76089 2000-02-27  Jim Meyering  <meyering@lucent.com>
76090
76091         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
76092         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
76093
76094         * lib/backupfile.c: Guard inclusion of stdlib.h with
76095         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
76096         Declare malloc if needed.
76097
76098         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
76099         `#ifndef HAVE_DECL..'
76100         now that autoconf always defines the HAVE_DECL_ symbols.
76101         * lib/human.c: Likewise.
76102         * lib/same.c: Likewise.
76103         * lib/strtoumax.c: Likewise.
76104
76105         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
76106         declaration check was not run.
76107         * lib/hash.c: Likewise.
76108         * lib/human.c: Likewise.
76109         * lib/same.c: Likewise.
76110         * lib/strtoumax.c: Likewise.
76111
76112         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
76113         `.', then first look up the entire `.'-containing string as a login
76114         name.
76115
76116 2000-02-23  Jim Meyering  <meyering@lucent.com>
76117
76118         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
76119         in place of my hack.
76120
76121 2000-02-18  Paul Eggert  <eggert@twinsun.com>
76122
76123         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
76124         (textint): New typedef.
76125         (parser_control): Member year changed from int to textint.
76126         All uses changed.
76127         (YYSTYPE): Removed; replaced by %union with int and textint members.
76128         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
76129         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
76130         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
76131         (tSNUMBER, tUNUMBER): Now of type <textintval>.
76132         (date, number, to_year): Use width of number in digits, not its value,
76133         to determine whether it's a 2-digit year, or a 2-digit time.
76134         (yylex): Store number of digits of numeric tokens.
76135         Reported by John Kendall.
76136
76137         (parser_control): Changed from struct parser_control to typedef (for
76138         consistency).  All uses changed.
76139
76140         (tID): Removed; not used.
76141         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
76142
76143 2000-02-14  Paul Eggert  <eggert@twinsun.com>
76144
76145         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
76146         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
76147
76148 2000-02-12  Jim Meyering  <meyering@lucent.com>
76149
76150         * lib/userspec.c (ISDIGIT): Define it.
76151         (isdigit): Remove definition.
76152         (is_number): Use ISDIGIT, not isdigit.
76153         <libintl.h>: Include.
76154         (_ and N_): Define.
76155         (parse_user_spec): Mark translatable strings.
76156
76157 2000-02-10  Jim Meyering  <meyering@lucent.com>
76158
76159         With these changes, nanosleep.[ch] are finally enough like the other
76160         lib/* replacement files to compile on a few more losing systems.
76161
76162         * lib/nanosleep.h: Don't include config.h.
76163         Remove prototype from declaration of nanosleep.
76164         (PARAMS): Remove now-unneeded definition.
76165         * lib/nanosleep.c: #undef nanosleep.
76166         (rpl_nanosleep): Rename from nanosleep.
76167
76168 2000-02-10  Jim Meyering  <meyering@lucent.com>
76169
76170         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
76171         gnu_nanosleep to rpl_nanosleep.
76172
76173 2000-02-09  Jim Meyering  <meyering@lucent.com>
76174
76175         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
76176         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
76177
76178 2000-02-08  Akim Demaille  <akim@epita.fr>
76179
76180         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
76181         `[' and `]' and remove uses of `changequote'.
76182         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
76183         (AC_SYS_LARGEFILE): Likewise.
76184         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
76185         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
76186         of changequote.
76187         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
76188         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
76189         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
76190         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
76191
76192 2000-02-05  Jim Meyering  <meyering@lucent.com>
76193
76194         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
76195         Remove explicit use of AC_HEADER_TIME.  It is required by
76196         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
76197         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
76198         in autoconf whereby the expansion of the latter ended up preceding
76199         the expansion of its prerequisite, AC_HEADER_TIME.
76200         Reported by Volker Borchert.
76201
76202 2000-02-03  Jim Meyering  <meyering@lucent.com>
76203
76204         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
76205
76206 2000-02-03  Jim Meyering  <meyering@lucent.com>
76207
76208         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
76209         rather than with `#if HAVE_UTMPNAME'.
76210
76211 2000-02-02  Jim Meyering  <meyering@lucent.com>
76212
76213         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
76214         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
76215         Reported by Eli Zaretskii.
76216
76217 2000-02-01  Jim Meyering  <meyering@lucent.com>
76218
76219         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
76220
76221 2000-01-31  Jim Meyering  <meyering@lucent.com>
76222
76223         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
76224         functions.  Add the time.h and sys/time.h headers along with the
76225         AC_REQUIRE'ment of AC_HEADER_TIME.
76226
76227 2000-01-31  Jim Meyering  <meyering@lucent.com>
76228
76229         * lib/nanosleep.h (nanosleep): Guard declaration with
76230         `#if ! HAVE_DECL_NANOSLEEP'.
76231         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
76232         the declaration in that vendor's sys/timers.h.
76233         Reported by Christian Krackowizer.
76234
76235         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
76236         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
76237         (ISPRINT): Likewise.
76238         Reported by Tom Tromey.
76239
76240 2000-01-30  Jim Meyering  <meyering@lucent.com>
76241
76242         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
76243
76244         * m4/prereq.m4 (utmp_includes): Define.
76245         Check for ut_user and ut_name members in both struct utmpx
76246         and struct utmp.
76247
76248 2000-01-30  Jim Meyering  <meyering@lucent.com>
76249
76250         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
76251         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
76252         header files where only utmpx.ut_user is declared.
76253
76254         * lib/readutmp.h (UT_USER): Define.
76255
76256 2000-01-29  Jim Meyering  <meyering@lucent.com>
76257
76258         * m4/lib-check.m4: New file containing library-related checks from
76259         fileutils and sh-utils (textutils had none).
76260
76261 2000-01-28  Jim Meyering  <meyering@lucent.com>
76262
76263         * m4/perl.m4: Change format of warning message to look more like that
76264         from the missing script.  Suggestion from François Pinard.
76265
76266 2000-01-25  Jim Meyering  <meyering@lucent.com>
76267
76268         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
76269         well as time.h in the compile check.
76270         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
76271         Fix typo in cross-compiling case: s/yes/no/.
76272
76273 2000-01-23  Jim Meyering  <meyering@lucent.com>
76274
76275         * m4/jm-macros.m4: Move df-related tests here from
76276         fileutils/configure.in
76277
76278         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
76279         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
76280
76281         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
76282         s/space/ac_fsusage_space/.
76283         (jm_FILE_SYSTEM_USAGE): Take two parameters.
76284
76285         * m4/ftruncate.m4: New file (derived from part of
76286         fileutils/configure.in).
76287         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
76288         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
76289
76290         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
76291         AC_SUBST these here, rather than just in sh-util/configure.in, so
76292         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
76293         all the same.
76294         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
76295         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
76296         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
76297         (AC_SUBST(POW_LIBM)): Likewise.
76298         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
76299
76300 2000-01-23  Jim Meyering  <meyering@lucent.com>
76301
76302         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
76303         obstack.c.
76304
76305 2000-01-22  Jim Meyering  <meyering@lucent.com>
76306
76307         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
76308
76309         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
76310
76311         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
76312         configure.in
76313         (AC_CHECK_HEADERS): Likewise for sh-utils.
76314         (AC_CHECK_HEADERS): Likewise for textutils.
76315         Merge the three lists of headers.
76316
76317         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
76318         from fileutils' configure.in.
76319
76320         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
76321         code. Moved tests into their own function (_jm_DECL_HEADERS) in
76322         check-decl.m4.
76323
76324         * m4/check-decl.m4: Use #if rather than #ifdef.
76325         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
76326         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
76327         (_jm_DECL_HEADERS): Define new function.
76328         (jm_CHECK_DECLARATIONS): Require it.
76329
76330 2000-01-22  Jim Meyering  <meyering@lucent.com>
76331
76332         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
76333         [! HAVE_DECL_STRTOULL]: Declare strtoull.
76334         Required for some AIX systems.  Reported by Christian Krackowizer.
76335         [TESTING] (main): New function.
76336
76337         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
76338         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
76339         letters.
76340
76341         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
76342         iswprint.
76343
76344         * lib/strverscmp.c (ISDIGIT): Define.
76345         (strverscmp): Use ISDIGIT, not isdigit.
76346
76347 2000-01-19  Jim Meyering  <meyering@lucent.com>
76348
76349         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
76350         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
76351         defines `struct timespec' in <sys/time.h>
76352
76353         * m4/c-bs-a.m4: Remove uses of changequote altogether.
76354         Thanks to Akim for explaining.
76355
76356 2000-01-17  Paul Eggert  <eggert@twinsun.com>
76357
76358         * lib/nanosleep.c (nanosleep):
76359         Don't use SA_INTERRUPT to decide whether to call sigaction, as
76360         POSIX.1 doesn't require SA_INTERRUPT and some systems
76361         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
76362         it's been part of POSIX.1 since day 1 (in 1988).
76363
76364 2000-01-17  Jim Meyering  <meyering@lucent.com>
76365
76366         * lib/interlock: Remove unused file.  Reported by François Pinard.
76367
76368 2000-01-16  Paul Eggert  <eggert@twinsun.com>
76369
76370         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
76371         alert, backslash, formfeed, and vertical tab unnecessarily in
76372         shell quoting style.
76373
76374 2000-01-16  Jim Meyering  <meyering@lucent.com>
76375
76376         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
76377         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
76378         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
76379         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
76380
76381 2000-01-16  Jim Meyering  <meyering@lucent.com>
76382
76383         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
76384         because the latter didn't work.
76385
76386 2000-01-15  Jim Meyering  <meyering@lucent.com>
76387
76388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
76389         (AC_REPLACE_FUNCS): Add memcpy and memset.
76390         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
76391         Add strpbrk.
76392         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
76393
76394 2000-01-12  Jim Meyering  <meyering@lucent.com>
76395
76396         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
76397         (jm_PREREQ): Use it.
76398         (jm_PREREQ_READUTMP): New macro.
76399         (jm_PREREQ): Use it.
76400
76401 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76402
76403         Quote multibyte characters correctly.
76404         * m4/c-bs-a.m4: New file.
76405         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
76406         (jm_PREREQ): Use it.
76407
76408 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76409
76410         * m4/uintmax_t.m4: Port to autoconf 2.13.
76411
76412 2000-01-08  Jim Meyering  <meyering@ascend.com>
76413
76414         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
76415         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
76416
76417 2000-01-04  Jim Meyering  <meyering@ascend.com>
76418
76419         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
76420         jm_STRUCT_DIRENT_D_TYPE.
76421         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
76422         jm_STRUCT_DIRENT_D_INO.
76423         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
76424         jm_STRUCT_UTIMBUF.
76425         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
76426         renamings.
76427         * m4/utime.m4: Likewise.
76428
76429         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
76430         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
76431
76432 2000-01-03  Paul Eggert  <eggert@twinsun.com>
76433
76434         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
76435         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
76436
76437 2000-01-02  Jim Meyering  <meyering@ascend.com>
76438
76439         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
76440         remember if this is necessary.
76441
76442 1999-12-26  Jim Meyering  <meyering@ascend.com>
76443
76444         * m4/jm-macros.m4: Use it here.
76445         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
76446
76447 1999-12-23  Jim Meyering  <meyering@ascend.com>
76448
76449         * m4/jm-macros.m4: Check for clock_gettime (moved from
76450         fileutils/configure.in)
76451         Check for gettimeofday.
76452
76453 1999-12-20  Jim Meyering  <meyering@ascend.com>
76454
76455         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
76456         autoconf-2.14a-1999-12-20.
76457
76458 1999-12-19  Jim Meyering  <meyering@ascend.com>
76459
76460         * m4/lstat-slash.m4: New file.
76461         * m4/jm-macros.m4: Use the new macro:
76462         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76463
76464 1999-12-07  Jim Meyering  <meyering@ascend.com>
76465
76466         * m4/perl.m4: Require that File::Compare be available, too.
76467         Too many systems seem to lack it.
76468
76469         * m4/strftime.m4: Add checks for most of the cpp macros tested in
76470         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
76471
76472 1999-11-18  Paul Eggert  <eggert@twinsun.com>
76473
76474         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
76475         problem with the QNX 4.25 shell, which doesn't propagate exit
76476         status of failed commands inside shell assignments.
76477
76478 1999-11-17  Jim Meyering  <meyering@ascend.com>
76479
76480         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
76481
76482 1999-11-07  Jim Meyering  <meyering@ascend.com>
76483
76484         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
76485
76486 1999-11-06  Jim Meyering  <meyering@ascend.com>
76487
76488         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
76489         * m4/jm-macros.m4 (jm_MACROS): Use it here.
76490
76491 1999-11-05  Jim Meyering  <meyering@ascend.com>
76492
76493         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
76494         configure.in of textutils, fileutils, and sh-utils into this one
76495         (shared between those packages) file.
76496         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
76497         AC_STRUCT_ST_BLKSIZE.
76498
76499 1999-11-03  Jim Meyering  <meyering@ascend.com>
76500
76501         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
76502         of AC_CHECK_TYPE checks includes unistd.h.
76503         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
76504         Suggestion from Akim Demaille.
76505
76506 1999-10-30  Jim Meyering  <meyering@ascend.com>
76507
76508         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
76509         m4-quoted string.
76510         * m4/ls-mntd-fs.m4: Likewise.
76511         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
76512         * m4/jm-winsz1.m4: Likewise.
76513
76514         * m4/const.m4: Remove file, since the fix made it into the experimental
76515         version of autoconf.
76516         * m4/mktime.m4: Likewise.
76517
76518         * m4/check-type.m4: Remove file, now that the latest version of
76519         AC_CHECK_TYPE takes a third arg to specify additional #includes.
76520
76521         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
76522         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
76523         AC_CHECK_TYPE.
76524
76525 1999-10-04  Jim Meyering  <meyering@ascend.com>
76526
76527         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
76528
76529 1999-09-22  Paul Eggert  <eggert@twinsun.com>
76530
76531         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
76532         2.95.1 bug with HP-UX 10.20.
76533
76534 1999-09-17  Jim Meyering  <meyering@ascend.com>
76535
76536         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
76537         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
76538         due to missing strdup (against sh-utils-2.0).
76539
76540 1999-08-29  Jim Meyering  <meyering@ascend.com>
76541
76542         * m4/jm-macros.m4: Require jm_BISON.
76543         * m4/bison.m4: New file.
76544
76545 1999-08-17  Paul Eggert  <eggert@twinsun.com>
76546
76547         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
76548         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
76549
76550 1999-08-05  Jim Meyering  <meyering@ascend.com>
76551
76552         * m4/getline.m4: Rename test file from conftestdata to conftest.data
76553         to avoid conflicts with `conftest' on 8+3 filesystems.
76554         Suggestion from Eli Zaretskii.
76555
76556 1999-08-04  Jim Meyering  <meyering@ascend.com>
76557
76558         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
76559         fileutils and sh-utils (textutils's getline test was inadequate).
76560         (AM_FUNC_GETLINE): Run this test.
76561         (AC_CHECK_FUNCS): Check for getdelim.
76562         Reported by Bob Proulx.
76563
76564 1999-08-02  Jim Meyering  <meyering@ascend.com>
76565
76566         * m4/jm-macros.m4: Add a comment.
76567
76568 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76569
76570         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
76571         <inttypes.h> defines strtoumax as a macro (and not as a
76572         function).
76573
76574 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76575
76576         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
76577         that we can shift, multiply and divide unsigned long long
76578         values; Ultrix cc can't do it.
76579
76580 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76581
76582         * m4/mktime.m4: New file, which is a preview of what should appear
76583         in the next public autoconf release.
76584
76585 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76586
76587         * m4/lfs.m4: Remove this file.
76588         * m4/largefile.m4: New file.  It contains the old contents of
76589         lfs.m4, except that all names with prefix AC_LFS have been
76590         changed to use the prefix AC_SYS_LARGEFILE instead, to be
76591         compatible with future autoconf versions.  Also, some minor m4
76592         quoting problems have been fixed.
76593
76594 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76595
76596         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
76597         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
76598         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
76599         and simplify the shell code.
76600
76601 1999-08-01  Jim Meyering  <meyering@ascend.com>
76602
76603         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
76604         m4.
76605
76606 1999-07-20  Jim Meyering  <meyering@ascend.com>
76607
76608         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
76609
76610 1999-07-15  Jim Meyering  <meyering@ascend.com>
76611
76612         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
76613
76614 1999-05-22  Jim Meyering  <meyering@ascend.com>
76615
76616         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
76617
76618 1999-05-20  Jim Meyering  <meyering@ascend.com>
76619
76620         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
76621         Add a colon after each `then' in case $4 is empty.
76622
76623 1999-05-16  Jim Meyering  <meyering@ascend.com>
76624
76625         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
76626
76627 1999-05-10  Jim Meyering  <meyering@ascend.com>
76628
76629         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
76630
76631         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
76632         AC_FUNC_MKTIME.
76633
76634 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
76635
76636         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
76637
76638 1999-05-04  Paul Eggert  <eggert@twinsun.com>
76639
76640         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
76641         not CPPFLAGS, so that linking works correctly in IRIX.
76642
76643 1999-04-30  Paul Eggert  <eggert@twinsun.com>
76644
76645         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
76646
76647 1999-04-20  Paul Eggert  <eggert@twinsun.com>
76648
76649         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
76650         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
76651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
76652         jm_AC_TYPE_UNSIGNED_LONG_LONG.
76653         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
76654
76655         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
76656
76657 1999-04-20  Jim Meyering  <meyering@ascend.com>
76658
76659         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
76660         AC_REPLACE xstroull if necessary.  From Paul Eggert.
76661         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
76662
76663 1999-04-18  Jim Meyering  <meyering@ascend.com>
76664
76665         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
76666         * m4/jm-macros.m4: Use it.
76667
76668 1999-04-06  Jim Meyering  <meyering@ascend.com>
76669
76670         * m4/strftime.m4: Remove test for %f.
76671
76672 1999-03-29  Jim Meyering  <meyering@ascend.com>
76673
76674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
76675         superset of the AC_TYPE_* checks in the textutils, fileutils,
76676         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
76677         AC_TYPE_PID_T.
76678
76679 1999-03-28  Jim Meyering  <meyering@ascend.com>
76680
76681         * m4/jm-macros.m4: Define GNU_PACKAGE here.
76682         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
76683         replaced e.g., in the *.sh files of the sh-utils.
76684
76685 1999-03-20  Jim Meyering  <meyering@ascend.com>
76686
76687         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
76688         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
76689         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
76690
76691 1999-03-19  Jim Meyering  <meyering@ascend.com>
76692
76693         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
76694
76695 1999-03-12  Jim Meyering  <meyering@ascend.com>
76696
76697         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
76698
76699 1999-03-07  Jim Meyering  <meyering@ascend.com>
76700
76701         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
76702         declared.
76703
76704 1999-02-17  Jim Meyering  <meyering@ascend.com>
76705
76706         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
76707         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
76708
76709 1999-02-07  Jim Meyering  <meyering@ascend.com>
76710
76711         * m4/group-member.m4: New file -- extracted from sh-utils'
76712         configure.in.
76713
76714         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
76715         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
76716
76717 1999-02-06  Jim Meyering  <meyering@ascend.com>
76718
76719         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
76720         * m4/fnmatch.m4: Likewise.
76721         * m4/getgroups.m4: Likewise.
76722         * m4/lstat.m4: Likewise.
76723         * m4/malloc.m4: Likewise.
76724         * m4/putenv.m4: Likewise.
76725         * m4/realloc.m4: Likewise.
76726         * m4/regex.m4: Likewise.
76727         * m4/stat.m4: Likewise.
76728         * m4/strftime.m4: Likewise.
76729         Suggestion from Alain Magloire.
76730
76731         * m4/chown.m4: Use `.$ac_objext', not `.o'.
76732         * m4/fnmatch.m4: Likewise.
76733         * m4/getgroups.m4: Likewise.
76734         * m4/getline.m4: Likewise.
76735         * m4/lstat.m4: Likewise.
76736         * m4/malloc.m4: Likewise.
76737         * m4/memcmp.m4: Likewise.
76738         * m4/putenv.m4: Likewise.
76739         * m4/realloc.m4: Likewise.
76740         * m4/regex.m4: Likewise.
76741         * m4/stat.m4: Likewise.
76742         * m4/strftime.m4: Likewise.
76743         Suggestion from Alain Magloire.
76744
76745         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
76746         an argument.
76747
76748         * m4/regex.m4: Add a run-time Test for proper operation of
76749         re_compile_pattern.
76750
76751 1999-01-31  Jim Meyering  <meyering@ascend.com>
76752
76753         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
76754
76755 1999-01-30  Jim Meyering  <meyering@ascend.com>
76756
76757         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
76758
76759         * m4/jm-mktime.m4: Make this a wrapper around the official
76760         AM_FUNC_MKTIME rather than my private copy, now that the official one
76761         is up to date.
76762         * m4/mktime.m4: Remove file.
76763
76764         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
76765         * m4/uptime.m4: Likewise.
76766         * m4/uintmax_t.m4: Likewise.
76767
76768 1999-01-28  Jim Meyering  <meyering@ascend.com>
76769
76770         * m4/jm-macros.m4: Use jm_AFS.
76771         * m4/afs.m4: New file (from fileutils' configure.in).
76772
76773         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
76774         * m4/chown.m4: Likewise.
76775         * m4/d-ino.m4: Likewise.
76776         * m4/d-type.m4: Likewise.
76777         * m4/fnmatch.m4: Likewise.
76778         * m4/getgroups.m4: Likewise.
76779         * m4/gettext.m4: Likewise.
76780         * m4/jm-mktime.m4: Likewise.
76781         * m4/jm-winsz2.m4: Likewise.
76782         * m4/lcmessage.m4: Likewise.
76783         * m4/ls-mntd-fs.m4: Likewise.
76784         * m4/malloc.m4: Likewise.
76785         * m4/memcmp.m4: Likewise.
76786         * m4/putenv.m4: Likewise.
76787         * m4/realloc.m4: Likewise.
76788         * m4/st_mtim.m4: Likewise.
76789         * m4/strftime.m4: Likewise.
76790
76791 1999-01-16  Jim Meyering  <meyering@ascend.com>
76792
76793         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
76794         (ARGMATCH_DIE_DECL): Define.
76795
76796 1999-01-12  Jim Meyering  <meyering@ascend.com>
76797
76798         * m4/Makefile.am.in: Rewrite to avoid using fmt.
76799         Reported by Lars Hecking.
76800
76801 1999-01-10  Jim Meyering  <meyering@ascend.com>
76802
76803         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
76804         gross kludge.
76805         * m4/inttypes_h.m4: Likewise.
76806         * m4/lstat.m4: Likewise.
76807         * m4/malloc.m4: Likewise.
76808         * m4/readdir.m4: Likewise.
76809         * m4/realloc.m4: Likewise.
76810         * m4/st_dm_mode.m4: Likewise.
76811         * m4/stat.m4: Likewise.
76812         * m4/utimbuf.m4: Likewise.
76813         * m4/utimes.m4: Likewise.
76814
76815         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
76816         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
76817         comments in config.h.in are meaningful.
76818
76819         * m4/jm-macros.m4: Require autoconf-2.13 here.
76820
76821         * m4/regex.m4: By default, don't use the included regex.c on systems
76822         with glibc 2.  Suggestion from Uli Drepper.
76823
76824 1999-01-02  Jim Meyering  <meyering@ascend.com>
76825
76826         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
76827
76828 1998-12-18  Jim Meyering  <meyering@ascend.com>
76829
76830         * m4/Makefile.am.in (Makefile.am): Simplify rule.
76831         Based on a suggestion from Lars Hecking.
76832
76833 1998-11-16  Paul Eggert  <eggert@twinsun.com>
76834
76835         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
76836
76837 1998-11-16  Jim Meyering  <meyering@ascend.com>
76838
76839         * m4/lfs.m4: Double-quote the `uname...` expression.
76840
76841 1998-11-14  Jim Meyering  <meyering@ascend.com>
76842
76843         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
76844         * m4/stat.m4: Likewise.
76845
76846 1998-11-03  Jim Meyering  <meyering@ascend.com>
76847
76848         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
76849         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
76850
76851 1998-10-18  Jim Meyering  <meyering@ascend.com>
76852
76853         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
76854
76855 1998-10-17  Jim Meyering  <meyering@ascend.com>
76856
76857         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
76858         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
76859         calls for those previously hard-coded headers.  Instead, take a new
76860         parameter.
76861         (jm_CHECK_DECLARATIONS): Reflect interface change.
76862         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
76863         (jm_CHECK_DECL_LOCALTIME_R): New macro.
76864
76865         * m4/mktime.m4: Test for spring-forward gap before long-running test.
76866
76867 1998-10-14  Jim Meyering  <meyering@ascend.com>
76868
76869         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
76870         instead of "TZ=America/Vancouver".  From Paul Eggert.
76871
76872 1998-10-11  Jim Meyering  <meyering@ascend.com>
76873
76874         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
76875         This adds a test for a recently added compatibility fix for mktime.c.
76876         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
76877
76878 1998-09-27  Jim Meyering  <meyering@ascend.com>
76879
76880         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
76881
76882         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
76883         ../configure.in, including a change from Gordon Matzigkeit to allow
76884         cross-compiling for the Hurd.
76885
76886         * m4/glibc.m4: New file/macro to test for the GNU C Library
76887         versions 1 and 2.  From Gordon Matzigkeit.
76888         Indent.
76889
76890 1998-09-21  Jim Meyering  <meyering@ascend.com>
76891
76892         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
76893
76894 1998-08-18  Paul Eggert  <eggert@twinsun.com>
76895
76896         Port nanosecond-resolution times to UnixWare 2.1.2 and
76897         pedantic Solaris 2.6.
76898
76899         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
76900         AC_STRUCT_ST_MTIM.
76901         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
76902         Generate name of ns member, instead of just 1 or undef.
76903         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
76904
76905 1998-08-15  Jim Meyering  <meyering@ascend.com>
76906
76907         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
76908         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
76909         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
76910         instead of jm_TYPE_SSIZE_T.
76911
76912 1998-08-12  Jim Meyering  <meyering@ascend.com>
76913
76914         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
76915
76916 1998-08-02  Jim Meyering  <meyering@ascend.com>
76917
76918         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
76919         in acconfig.h manually.
76920
76921 1998-07-31  Paul Eggert  <eggert@twinsun.com>
76922
76923         * m4/st_mtim.m4: New file.
76924
76925 1998-07-28  Jim Meyering  <meyering@ascend.com>
76926
76927         * m4/utimes.m4: Undef stat.
76928
76929 1998-07-25  Jim Meyering  <meyering@ascend.com>
76930
76931         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
76932         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
76933
76934 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
76935
76936         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
76937         uid and gid actually remain unchanged.
76938
76939 1998-07-07  Jim Meyering  <meyering@ascend.com>
76940
76941         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
76942
76943 1998-07-04  Jim Meyering  <meyering@ascend.com>
76944
76945         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
76946         to prove that this macro can be used in packages without regex.c.
76947
76948 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
76949
76950         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
76951         is to be used.
76952
76953 1998-07-03  Jim Meyering  <meyering@ascend.com>
76954
76955         * m4/gettext.m4: Add -lintl if it's found to be necessary.
76956
76957         * m4/gettext.m4: New file -- from gettext-0.10.35.
76958         * m4/lcmessage.m4: Likewise.
76959         * m4/progtest.m4: Likewise.
76960
76961         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
76962         * m4/jm-macros.m4: Require the new macro.
76963
76964 1998-06-29  Jim Meyering  <meyering@ascend.com>
76965
76966         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
76967         for the definition of NGROUPS (used in a system header included
76968         by sys/mount.h).
76969
76970 1998-06-28  Jim Meyering  <meyering@ascend.com>
76971
76972         * m4/ls-mntd-fs.m4: New file.
76973         * m4/fstypename.m4: New file.
76974
76975         * m4/jm-macros.m4: Require the new macro.
76976         * m4/jm-glibc-io.m4: New file.
76977
76978 1998-05-19  Jim Meyering  <meyering@ascend.com>
76979
76980         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
76981         * m4/lchown.m4: New file.
76982
76983         * m4/Makefile.am.in: New file.
76984         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
76985
76986 1998-05-14  Jim Meyering  <meyering@ascend.com>
76987
76988         * m4/Makefile.am (EXTRA_DIST): Add them.
76989         * m4/jm-macros.m4: New file.
76990         * m4/utimbuf.m4: New file.
76991
76992 1998-05-12  Jim Meyering  <meyering@ascend.com>
76993
76994         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
76995
76996 1998-05-11  Jim Meyering  <meyering@ascend.com>
76997
76998         * m4/isc-posix.m4: New file.
76999
77000 1998-05-10  Jim Meyering  <meyering@ascend.com>
77001
77002         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
77003
77004 1998-05-09  Jim Meyering  <meyering@ascend.com>
77005
77006         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
77007         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
77008         with automake.
77009
77010         * m4/ssize_t.m4: New file.
77011         * m4/mktime.m4: Remove file -- the new automake has this now.
77012
77013 1998-04-26  Jim Meyering  <meyering@ascend.com>
77014
77015         * m4/assert.m4: New file.
77016         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
77017
77018 1998-04-05  Jim Meyering  <meyering@ascend.com>
77019
77020         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
77021         (jm_PREREQ): Use it here.
77022
77023 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
77024
77025         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
77026         in acconfig.h.
77027
77028 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
77029
77030         * m4/prereq.m4: New file.
77031         * m4/error.m4: New file.
77032         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
77033
77034 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
77035
77036         * m4/getline.m4: Don't set am_cv_func_working_getline before the
77037         cache-check for the same variable -- that defeated the purpose of
77038         the test; the test program was never run.  This was a problem only
77039         on systems with losing getline functions -- HP-UX 10.20 is one.
77040         Reported by Bjorn Helgaas.
77041
77042 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
77043
77044         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
77045
77046 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
77047
77048         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
77049
77050         * m4/const.m4: New file.  Use an initializer in this declaration
77051         typedef int charset[2]; const charset x;
77052         Reported by Bob Glickstein.
77053
77054 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
77055
77056         * m4/chown.m4: Fix reversed types on -1 args to chown.
77057         From Kaveh Ghazi.
77058
77059 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
77060
77061         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
77062         Add lseek and memchr.
77063
77064         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
77065         T.E.Dickey <dickey@clark.net> said that some older preprocessors
77066         have a 20-character limit on names.
77067
77068 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
77069
77070         * m4/inttypes_h.m4: New file.
77071         * m4/uintmax_t.m4: New file.
77072         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
77073
77074
77075         -----
77076
77077         Local Variables:
77078         coding: utf-8
77079         End:
77080
77081         Copyright (C) 1997-2011 Free Software Foundation, Inc.
77082
77083         Copying and distribution of this file, with or without
77084         modification, are permitted provided the copyright notice
77085         and this notice are preserved.